From owner-freebsd-ppc@freebsd.org Sun Jan 19 11:13:11 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 CDE021F6672 for ; Sun, 19 Jan 2020 11:13:11 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-24.consmr.mail.gq1.yahoo.com (sonic303-24.consmr.mail.gq1.yahoo.com [98.137.64.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 480sbp6dw9z4CnZ for ; Sun, 19 Jan 2020 11:13:10 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: kM96ygcVM1me0SK2xNIovU8QmKW6_RcP9mN30LIEQLxqtHODWnBPZd4D3gmyyCk ap4ip50DU3J7jIFVEfoZXMmko.D._tkkR7m1TOhHD1ujzD1MBy_BRjoNcu465lN_hw9HRjFSDakt YxQSEGRFqCuXngNvk1QjRcatnQMhGOn_mhL.MglnPPH.OTHr9AKH.XYSht8a2RJQTocuFUHSl_bz fom5BErGVWHDc_z5B.6m8u3Th_f4Wko0EPJP3P59aCpfuVw2r5l9FpR7AqTqM9yxjd3siGhy3F_E FgvZ5vUrU3BsmaaX3QN.CBDjLvB6i0STd_tZuuHrlG0p0izy8rZ.xIw6rGkB7pB8H8aXsHy25fre 53gUrjsFPQGrwxApkPuV7Ci5RHEilxLCs5gxo8vXwuMDFvtg8T2nUo_G3AYVnipxx9aHToEAn.Ux WQZgl818npu0UAZ1uGIVwWvafMh3t6YkunkkA1JmrSWmEUB03DW5WA0wAL4aTOFRqssIQabDb_6g cMYftfFpkfUduudpe9QZfqu_gL.UE1GBruATRFH3Zzgy574SYcrGJ_UcF18oKqScx8O_r55v59Im GJTX6D4OPuMDk0rHY0_bM6vgj8q75pun9FGTgUdbGsnDUScJha.Tz3tCQ329FhuPenieGlob9Xr5 Tn9_XFAQVX5MPzdj0yen8vZrw669Y4DqMKjmsFYSaHx6borc8ixT42XKARuWWieykGW.9JzA18t_ hupuPL.wtcxsI6O7nqJrshbkDzIOPu5C9ETevs8ozbkNl5_ahs1vQHSEVuJMIlqk4g4eTgLkgUmR D9wlex3mASPYSEHlIUNdXjHXTpcUrsKZqYKAKl.WKqxcQUkFTeJUyL57d_a9EaVjC32ZzvSSIdPV sMiH8dFZOHZ7tA8aFzzDClLEhI57bEh3fce5bcYolNrTuTlTSV4VcpQMoW9Zsh.kPG4g8ZPvA7vp 3F0v8g.nCZeoIamUtEMkIp_V4OKh677aZde1Y1pEW0.s0tGvdVeN6_DwOSGq8VimnC_NsW1qRgbV TcnFUi9d8yzM2ZiZSHw5yuSQ.ZmfXNXJXnqfuIlGDDqGySZRSZOGvZ4JF8Y2W7DEQ2dP44MF6kcU Dk2mzivXfgeswflwxGDKN_JN2FlbrSaDYobvaaI0QfvLuwHvqRs00bhFz7b5FnsUwNskeKk6GnKH mKXWnGLpr1sapXsiPQGrswARdZF92vcR8Wcfb_TFNHWAE1g9PHJJ8f4eAWP5U_TWAShBROmIhoAH MH0T1b8AH0K98AV_FXs9GGbCQONddG2sEujx6PEuKAqf81.zFUEWo0_wKJCoNfQ3Y1YEEPXL_QKy QuUOUewVS_DL.vtDHoLbrX8M8S0Flsfutb.SktaQHVnOgG.mbUxbXByVZAzdGU8ysVP2x5j3zir2 h73VNLY1eMU.KfCBTs9MiDgobeZIUPk6VctV5ToUGnrTjLUT5eFKkomzFtFDWBSts Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Sun, 19 Jan 2020 11:13:08 +0000 Received: by smtp403.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID e3b76516b47278df8fe455b5ca1a401d; Sun, 19 Jan 2020 11:13:06 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: G5 Quad Fans full speed after 1 min From: Mark Millard In-Reply-To: Date: Sun, 19 Jan 2020 03:13:06 -0800 Cc: FreeBSD PowerPC ML Content-Transfer-Encoding: 7bit Message-Id: <21533290-667C-472E-89F7-D1E7DE773193@yahoo.com> References: To: Francis Little X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 480sbp6dw9z4CnZ X-Spamd-Bar: / X-Spamd-Result: default: False [0.30 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_GOOD(-0.10)[text/plain]; MV_CASE(0.50)[]; NEURAL_SPAM_MEDIUM(0.63)[0.632,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[205.64.137.98.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_LONG(0.17)[0.170,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.00)[ip: (5.16), ipnet: 98.137.64.0/21(0.85), asn: 36647(0.68), country: US(-0.05)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jan 2020 11:13:11 -0000 On 2020-Jan-19, at 00:38, Francis Little wrote: > Hi, > > My G5 Quad is running current from a few days ago, but this issue has been > happening for a long time. > > After about 1 min of uptime, the fans go full speed. > > As soon as I query anything like CPU temp or fan rpm with sysctl, the fans > return to a normal speed. > > 1 min later the fans go full speed again. > > I've been working round this for some time with a cron job that runs sysctl > with one of the cpu temp sensors to calm the system. QUOTING an old message: The mftb figures on the various cores can be so far apart that threads can end-up stuck sleeping, such as syncr, pmac_thermal, and buf*deamon* threads. (This can really mess things up by not updating the storage correctly.) Such is still true of the ELFv2 context. (Most folks notice this via shutdown timeouts and the fans going fast unnecessarily. But it is involved earlier as well.) END QUOTE Nothing in the boot sequence is forcing the CPUs/Cores to see any particular time relationship to each other and on the multi-socket PowerMacs it can vary widely (G4 and G5). Sometimes it will happen to end up okay, other times not. (I've no access to a single-socket, multi-core PowerMac, so I just do not know for that kind of context.) I run with patched boot-code that has cross-cpu/core time observations and adjustments to non-bsp time to see the bsp time as between the start and end of a round trip to the bsp from each non-bsp to get the bsp's time. It is based on the mid-point of the start and end times for the non-bsp's round trip vs. the bsp's returned time. With at most 4 cores, each non-bsp is done in sequence. The code only does this on PowerMacs, having no access to other types of PowerPC examples to test. I've not seen this type of problem since mid 2019-May on any of: 1 G5 with 2 sockets, 1 core each 2 G5's, 2 sockets, 2 cores each 2 G4's, 2 sockets, 1 core each (The mid-May time frame is when I adjusted the code to deal with the faster time increment on the slower 32-bit processors for the model that I have access to. I had to be more careful to avoid biasing the approximate symmetry to be less symmetric. On the G5's its been longer since I've seen this problem, based on earlier source code.) Unfortunately the "lab" the machines are in is powered down currently. FYI: Prior to this technique, I had a pure hack that was observed to avoid the problem. But it changed code used all the time --code that I did not want to have any hack's in if I could avoid it. FYI: I also run with other PowerMac related patches. Generally this mftb() time adjustment is one of the newest patches, possibly the newest. So my test context may be biased by the other patches. > If I boot to OS X 10.5 and load the system, the fans are stable. I've not done any investigation of the issue for the older contexts. But, if I remember right, I did see the problem on occasion back in that time frame. > Does anyone else get this? My understanding is everyone booting a fairly modern standard FreeBSD gets this sometimes for the kind of context that you specified. (I'm not sure of the variability if the frequency of the problem happening for that kind of context.) I certainly saw it before I investigated avoiding it. === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)