From owner-freebsd-ppc@freebsd.org Fri Oct 30 14:31:59 2020 Return-Path: Delivered-To: freebsd-ppc@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6DEF7453333 for ; Fri, 30 Oct 2020 14:31:59 +0000 (UTC) (envelope-from volkovdablo@hotmail.com) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-oln040092073093.outbound.protection.outlook.com [40.92.73.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CN4Wf0G32z42f1 for ; Fri, 30 Oct 2020 14:31:57 +0000 (UTC) (envelope-from volkovdablo@hotmail.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ETOtSensimM+rYXMrOHDsLM8RUim7wokTjwy7/GhSRlSUXDAxUj4BwipUuqoSkN4kefN2ZajxifPvhTaS4lrkyhk/elWZSsHdHFc7iKdV2OUdspD2HMt5u89Wam1VzvJIYn1tFtXo06K26GSluDf/APST51tkUbxmb953jHfc//vrkKk5aR/3G/LSUiAkFOiu2mfr00rbczWCWtK1KJBGlnvyywf9uD8GZXKCmOAk9QMvPh7oKlrBld5909kz++o2TK1YOAYCGmbnqEGlpBbxRdbWHx9jmWOLS5vvgnK9MGR+DEFz75pIXcMRk6emOJ10qoOf3HU+GPHEEVioEXs/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AgA7wikHcfqniTF+6oS7UtvRdLiTI0OgyFv4TY0CXH4=; b=ngwXXRnkJgFm3Jt+NvuBDlpwP3m3WhJCO8iI37Ucu+CUtlCvRUCj78cOXwJsi4k8Klik5ucQG9ZB1qNXKetZ5fPswmno16sstfIiwA3Nwmv06VVEQuMCXbP+bfFqWc7elF8ECI9ePnivrmkYKtE5P2s8y2CCCfaKjGe1MI679sDMfXlJh1r83kYlXPxaA495pzekO3/jmJjhInMxN1IxdSQPZyOBWhEU6sVhvyWdSqRUdX/mkS2owvSfAetH2VEabu/fK2qg5R29fYY0YT1nKHwT0lJ3kYyi0Y3nX18ZwO14eUlj8VSe/x6/7ZqxH/Ks4U/6x+lDfRAorBL1Lixciw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AgA7wikHcfqniTF+6oS7UtvRdLiTI0OgyFv4TY0CXH4=; b=pMdQrCyNb8FmX2DLFEy7/KPfgfQQkikW4Avtfd4FhoSgkwfxRW1nC8ixBqCMGfehmLo/aRB/OGf3iXZFBRMtB8MPztgiyT/Ffai2z76x7Iv6B4bJ7k2mhaDA0qA1nIvNTcalZS38hUILjsN6dCZ14x+CdjB5/2m0yQLo9B4ah6dHK5z9/UGVvgEAFtZto1i19DTex6QhTzSh34njHFC+odqaV2ESFy/UpFGwnFStdIAr8MdyQyA/zm9DGGfuexwiWQkawcyCSMC7kiqNH3GFBvXd2xQTzh88+5g0NXX2DTdRD96Kin454YQNiFHqKQ5m7H8TCb9fMZQShDPt6G7T5g== Received: from HE1EUR04FT051.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::4c) by HE1EUR04HT040.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::322) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3520.15; Fri, 30 Oct 2020 14:31:55 +0000 Received: from DB8PR04MB6860.eurprd04.prod.outlook.com (2a01:111:e400:7e0d::4a) by HE1EUR04FT051.mail.protection.outlook.com (2a01:111:e400:7e0d::296) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3520.15 via Frontend Transport; Fri, 30 Oct 2020 14:31:55 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:3EF12E661E1C60F6802CE98CB61BE140B24338271FB027B8CDB9918B48C5A14B; UpperCasedChecksum:5C086B047353A468D4AC7CE4B99C937AA2C431C235EF7F321CAE882B9224B465; SizeAsReceived:10842; Count:48 Received: from DB8PR04MB6860.eurprd04.prod.outlook.com ([fe80::6588:d0ca:2a59:9822]) by DB8PR04MB6860.eurprd04.prod.outlook.com ([fe80::6588:d0ca:2a59:9822%9]) with mapi id 15.20.3499.029; Fri, 30 Oct 2020 14:31:55 +0000 To: Jason Bacon , freebsd-ppc@freebsd.org References: <88d23ee0-765d-1b82-4318-2c8359018b1a@freebsd.org> <0f4a1ee8-a37f-ea3d-6807-bb2431235a82@gmail.com> From: Javi Hotmail Autocrypt: addr=volkovdablo@hotmail.com; keydata= mQENBF6Yg10BCAC03sof//KadqOy0/xRlSzOjAVWXj8TGzmtTu0ec2RPMZQwdXeX+Bv7BiB+ cK9+Pnio/AMS6ueHc/ZJptRSX/K7csNUgh/+m0jwclcI6W/Sa/UmHLxYpiuLAG1nogk60JmC RoMKhei9EHBuxoTtRB/4l3u2RL+wipuIwx6rAgQEjgtItkao8JtJKi43C3i1z8OeEqbe78P9 +ssCMdfnR0AopPApoQBfJirJSPdCdyZL0mOQx5tL1AcHDJXeqFu/sKh9M2Tr5mECzUz3a1r5 F0AQROdntQ2REohXSSdfswJWDM1tLse3tW/Lw5AV6XTzR9vxobrHy89xKwj2hGU/MLYjABEB AAG0JkphdmkgSG90bWFpbCA8dm9sa292ZGFibG9AaG90bWFpbC5jb20+iQFUBBMBCAA+FiEE 2CMVjWEbFs4g+dD5GCgQIAgKsPUFAl6Yg14CGwMFCQHhM4A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k9z2KtbKQjo+WMo+Su/WGVDH2n SloqcUw1ocx+pYnDGPZYq+8fWvX7nQeHttIhPZDzJwmRkKbr3JokqTOSBL/mje8mtOFN6gIk rnP5xQ== Subject: Re: Question about xserve G5 Message-ID: Date: Fri, 30 Oct 2020 14:31:54 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 In-Reply-To: <0f4a1ee8-a37f-ea3d-6807-bb2431235a82@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-TMN: [MHEPg8XtVp5AbaGE4rT78TbgZRkneqAI] X-ClientProxiedBy: LO2P265CA0073.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:8::13) To DB8PR04MB6860.eurprd04.prod.outlook.com (2603:10a6:10:112::22) X-Microsoft-Original-Message-ID: <68e81931-37d1-07f9-6837-8e44f81a8d68@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.100] (88.104.31.11) by LO2P265CA0073.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:8::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18 via Frontend Transport; Fri, 30 Oct 2020 14:31:54 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 558f8c74-bdb3-4df6-0e14-08d87ce08cc8 X-MS-TrafficTypeDiagnostic: HE1EUR04HT040: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lFykxHimRW7c8LzsUoFivbeMRS4gWXn2UQhDq2LcgTNV/y/mHg4+U03aDNVkRtKNOOp6wEtaJIjZ9wT+2sonslp4k8fIo6TskOsMffT7/Fc1sQCVdWMyCr+Vr/5XsYJwRsqEVG1dJXV6W7HQo0YUj2EXcRNbEBTB7Z5JM+zahUNj6C5EGO0VdF8srbEDUuZWh4scFXZzQJKuO0OTDnldTD3jEmDPNRVQiIFgXv0Jj9DLjM9/nY5U7hkXMGB4cuol X-MS-Exchange-AntiSpam-MessageData: Xna619G4gNDuYDfUm+giirsHFUX2/06O6E+/XMPVfT//ufn1iaKBf73xkS53OWml4PN4tKzRlnBGW0mIWyifabw6zkHwQkxk1kH6bCcHmbcBc1RDHFquNB7hwLCqBT8PaGobkpwQ3GdJZdUxdrw+Dw== X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-Network-Message-Id: 558f8c74-bdb3-4df6-0e14-08d87ce08cc8 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2020 14:31:55.5896 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: HE1EUR04FT051.eop-eur04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR04HT040 X-Rspamd-Queue-Id: 4CN4Wf0G32z42f1 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=pMdQrCyN; dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (mx1.freebsd.org: domain of volkovdablo@hotmail.com designates 40.92.73.93 as permitted sender) smtp.mailfrom=volkovdablo@hotmail.com X-Spamd-Result: default: False [-2.29 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[hotmail.com]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/15]; DKIM_TRACE(0.00)[hotmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; NEURAL_HAM_SHORT(-0.81)[-0.810]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; RECEIVED_SPAMHAUS_PBL(0.00)[88.104.31.11:received]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; NEURAL_HAM_MEDIUM(-0.97)[-0.974]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.01)[-1.008]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[40.92.73.93:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.92.73.93:from]; MAILMAN_DEST(0.00)[freebsd-ppc] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Oct 2020 14:31:59 -0000 I also have a PowerMac G5 (Dual Core 2.3 Ghz) and it really works like a charm. But the heatsink in literally four times the size of the Xserve. And to be honest I don't know what they were thinking when Apple was designing the airflow of the case, because is less than optimal in many ways. I know that is an overheating issue because the FreeBSD kernel start spitting a message saying (CPU Diode is 134C, and maximum temperature allowed is 90C). After that the blowers got to maximum speed for few second. Sometime it can actually regulate the temperature and it won't shut down. But if it continues to print the same message for 5 seconds the kernel will initiate shutdown automatically. I really want to get cpufreq + powerd working because if this happens you can also underclock the cpu to balance out the heat issue. But it really seems to me that the implementation for G5 in cpufreq is a mess. So I guess that I'll need to jump into that. I've never used the kernel debugger (DDB) on a powerpc (my idea is to use it via serial port). If anybody has any tips in this regard I'm all ears. Javi. On 30/10/2020 13:47, Jason Bacon wrote: > > I don't have any overheating problems on my PowerMac G5, which I think > is pretty similar except for the form factor.=C2=A0 Are you sure it's > overheating that's causing the shutdown? > > The wild fan issue in my case oddly seems to be mitigated by having a > monitor and keyboard connected during boot.=C2=A0 If I boot headless, the > fans ramp up almost every time.=C2=A0 With monitor and keyboard, it almos= t > never happens. > > On 10/29/20 2:15 PM, Javi Hotmail wrote: >> Also another issue that (despite the fact that I cleaned the CPUs and >> added new thermal paste) they overheat and the system turns off. >> >> With kern.smp.disabled=3D1 takes a bit longer, but it also shuts down. I= s >> this also a known issue? >> >> >> Kind Regards, >> >> Javi. >> >> >> On 29/10/2020 18:07, Javi Hotmail wrote: >>> Here it is. >>> >>> >>> Javi. >>> >>> >>> On 29/10/2020 14:14, Nathan Whitehorn wrote: >>>> Could you provide your dmesg? It would be nice to do what sensors you >>>> have. >>>> -Nathan >>>> >>>> On 10/29/20 8:36 AM, Javi Hotmail wrote: >>>>> If I'm not mistake the issue then is how the PPC implementation reads >>>>> the device tree data from open firmware correct?. >>>>> >>>>> I believe this implementation is within: >>>>> >>>>> pcr.c=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 pmcr.c=C2=A0=C2=A0=C2=A0 = =C2=A0=C2=A0=C2=A0 pmufreq.c >>>>> >>>>> >>>>> Thanks in advance, >>>>> >>>>> Javi. >>>>> >>>>> >>>>> On 29/10/2020 12:26, Michael Tuexen wrote: >>>>>>> On 29. Oct 2020, at 10:51, Javi Hotmail >>>>>>> wrote: >>>>>>> >>>>>>> Hello all, >>>>>>> >>>>>>> I'm new in this mailing list, although I've been going back and >>>>>>> forth >>>>>>> with PPC (G4/G5) and FreeBSD since 9.0. >>>>>>> >>>>>>> I have a question that perhaps some of you already stumbled across, >>>>>>> but >>>>>>> I wanted to know if there is a way to get it to work before I >>>>>>> jump in >>>>>>> the code. >>>>>>> >>>>>>> I have a xserve G5 dual 2.3Ghz, and I installed FreeBSD 12.1. Works >>>>>>> quite well, but I cannot get cpufreq + powerd/powerdxx to work >>>>>>> at all. >>>>>>> >>>>>>> I get this: >>>>>>> >>>>>>> # powerdxx >>>>>>> powerd++: (ENOFREQ) cannot access dev.cpu.0.freq, at least the >>>>>>> first CPU >>>>>>> core must support frequency updates >>>>>>> >>>>>>> >>>>>>> This is the relevant part of sysctl: >>>>>>> # sysctl dev.cpu >>>>>>> dev.cpu.1.%parent: cpulist0 >>>>>>> dev.cpu.1.%pnpinfo: name=3DPowerPC,G5 >>>>>>> dev.cpu.1.%location: >>>>>>> dev.cpu.1.%driver: cpu >>>>>>> dev.cpu.1.%desc: Open Firmware CPU >>>>>>> dev.cpu.0.%parent: cpulist0 >>>>>>> dev.cpu.0.%pnpinfo: name=3DPowerPC,G5 >>>>>>> dev.cpu.0.%location: >>>>>>> dev.cpu.0.%driver: cpu >>>>>>> dev.cpu.0.%desc: Open Firmware CPU >>>>>>> dev.cpu.%parent: >>>>>>> >>>>>>> The issue is that after few minutes the fans ramp up to insane >>>>>>> levels, >>>>>>> and my goal with this is to use powerd or powerdxx to manage the >>>>>>> situation. >>>>>> The fans ramping up is a known issue. One way to work around it >>>>>> is to >>>>>> disable SMP. >>>>>> >>>>>> To disable SMP, put in /boot/loader.conf >>>>>> kern.smp.disabled=3D1 >>>>>> >>>>>> Best regards >>>>>> Michael >>>>>>> Thanks in advance, >>>>>>> >>>>>>> Javi. >>>>>>> >>>>>>> _______________________________________________ >>>>>>> freebsd-ppc@freebsd.org mailing list >>>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc >>>>>>> To unsubscribe, send any mail to >>>>>>> "freebsd-ppc-unsubscribe@freebsd.org" >>>>> _______________________________________________ >>>>> freebsd-ppc@freebsd.org mailing list >>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc >>>>> To unsubscribe, send any mail to >>>>> "freebsd-ppc-unsubscribe@freebsd.org" >>>>> >>>> _______________________________________________ >>>> freebsd-ppc@freebsd.org mailing list >>>> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc >>>> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" >> _______________________________________________ >> freebsd-ppc@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc >> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" > >