From owner-freebsd-ppc@freebsd.org Sun Jan 26 14:58:44 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 52E191F08C9 for ; Sun, 26 Jan 2020 14:58:44 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-yw1-xc44.google.com (mail-yw1-xc44.google.com [IPv6:2607:f8b0:4864:20::c44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 485GGq2jDvz46r7 for ; Sun, 26 Jan 2020 14:58:43 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: by mail-yw1-xc44.google.com with SMTP id n184so3523336ywc.3 for ; Sun, 26 Jan 2020 06:58:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=EMlP1plFk5+m2K241rKMNst+cXYlnjIa4pBZUYi8ooo=; b=Z1YGsimxMKF76kyYaRplgw/Q9+OeMugBuQPwc19t/z0gtCckfj+dh2COWLOJ8ja05d 1mxaDsVWiAXBEJRZqbu8GHj2WI+Ft80ffcDWDfO/wuaY8yblrH19g1w9wIiYUi8/w4Mw RviUjOFL5H/Mp94od0i7DZaJFUtRUuXM9ql4nv3uezFq1H7QpCCrLJaDsQR8mmzd+GxD DRPpan0SRMqM9MZlk+y9Bk0Emjbs9S5K2yaQDtTQW8s1Wqn0g8NyD+Mdtz/Xk2bjZZx8 yd9PQaV/c3dsrMeD/JwmGpIgxnbiuyLGedlqZNSwpsGuoNP8GSaKdMM3e/YqpZMXRgpS Wo2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=EMlP1plFk5+m2K241rKMNst+cXYlnjIa4pBZUYi8ooo=; b=lafJDoOEkwtZ7PIIeZ8URlDNj/yceh+UtsiuI1qXB/Xd2uwSRdumzb8OOwiFJjle/U dwPgGnl609x8q+X49Ph4NYT5FB2LMTZGkeIRsq22MkWnG51ClPf6JsKnUY1gJbiNiSNE Rl2cqzPRQUtvVqk8y9MWJA4iqgvED/QhQTQhb9l2P0O6bCKPWVUkTbV9JPBRks3Kmfj1 U5/JQb62bf3wo8ZTx/9Le8Up9EW1IvooqDnp2Fsox9nUzpRAbhXV2UC8LzYMg2gijyAY uNtD/4t0s7u+5qcbRU8verLNdlvV+MOu2FQzzIt6VzpH1Wch9h88y6x+V2GmWPeY4iVx ZGLA== X-Gm-Message-State: APjAAAU0eEKNY9yMUkyWYl4rgDBHxJq9f2SObIHUbhDhHgkWmw7nPbTw 6AcPBI8FvRTWj6SV32wQKemZ15wu X-Google-Smtp-Source: APXvYqyFOkxh9xF0dAyu2fWAWIzNXbQmocs1rUO7QecSzVF1cxfN3ez5iwPs7keCpwwB+cuDl0vGlQ== X-Received: by 2002:a81:8c7:: with SMTP id 190mr9795684ywi.294.1580050721900; Sun, 26 Jan 2020 06:58:41 -0800 (PST) Received: from orca.acadix.biz (2603-6000-a446-9100-0224-d2ff-fe27-bb80.res6.spectrum.com. [2603:6000:a446:9100:224:d2ff:fe27:bb80]) by smtp.gmail.com with ESMTPSA id g190sm5191662ywf.41.2020.01.26.06.58.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 26 Jan 2020 06:58:41 -0800 (PST) Subject: Re: G5 Quad Fans full speed after 1 min To: freebsd-ppc@freebsd.org References: <21533290-667C-472E-89F7-D1E7DE773193@yahoo.com> <08867d39-807a-494b-9ea5-d29d483e9c29@gmail.com> From: Jason Bacon Message-ID: <47a32dc1-097a-de2d-8cd4-1b6b31f5ca70@gmail.com> Date: Sun, 26 Jan 2020 08:58:38 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Rspamd-Queue-Id: 485GGq2jDvz46r7 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Z1YGsimx; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of bacon4000@gmail.com designates 2607:f8b0:4864:20::c44 as permitted sender) smtp.mailfrom=bacon4000@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (1.90), ipnet: 2607:f8b0::/32(-2.05), asn: 15169(-1.79), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ppc@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[4.4.c.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] 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, 26 Jan 2020 14:58:44 -0000 Until this is fixed, you might just try a warm reboot.=C2=A0 For my dual = core=20 PowerMac, it's always just a matter of how many reboots are needed=20 before it runs without issues.=C2=A0 Sometimes 1, once it was close to 10= ,=20 usually a few. =C2=A0=C2=A0=C2=A0 JB On 2020-01-20 02:47, Francis Little wrote: > I'm more than willing to test patches, but I think trying to figure out= > what to apply is a little beyond me, I'm more the pull a source from he= re > and go! > > As for my machine, running with SMP off, compile times are terrible, wi= th > SMP on, compiling ports etc is stable enough, just LOUD! > > So I'm opting for the put it somewhere I can't hear it for now, and bac= k to > the corn job prodding sysctl once in a while to calm it! > > On Mon, 20 Jan 2020 at 02:35, Mark Millard via freebsd-ppc < > freebsd-ppc@freebsd.org> wrote: > >> >> On 2020-Jan-19, at 15:24, Jason Bacon wrote: >> >>> On 2020-01-19 05:13, Mark Millard via freebsd-ppc wrote: >>>> 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 h= as >> 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, t= he >> 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 run= s >> 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. >>>> >>>> . . . >>> On my dual CPU PowerMac G5, this issue happens for 80 - 90% of boots.= >>> >>> I'd love to test a patch if one is available. Cutting the speed in h= alf >> would be problematic for testing large ports. >> >> For the svn diffs against head -r356426 for my code for >> this issue, see: >> >> https://lists.freebsd.org/pipermail/freebsd-ppc/2020-January/011239.ht= ml >> https://lists.freebsd.org/pipermail/freebsd-ppc/2020-January/011240.ht= ml >> >> But you likely want to avoid the one instance of: >> >> -extern void *ap_pcpu; >> +extern void * volatile ap_pcpu; >> >> It would lead to needing analogous changes in a >> bunch of other files. There are notes in those >> other list entries about avoiding needing to >> update the wider set of files. >> >> >> I will note that there are more PowerMac related >> patch sets around of mine that, if someone tries >> them, I'd like to hear how things go: >> >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233863 >> >> has 3 other patch attachments that I use for other PowerMac >> issues. I originally did the work because the "workaround" >> recommended for what was being reported crashed what I had >> access to and I was trying to enable the workaround. But it >> ended up far more capable than just enabling the workaround. >> None of these attachments were involved in the "Closed FIXED" >> status change: none of the patch sets are in FreeBSD. >> >> My 3 attachments were before I'd tested my "modern" patches >> for the per-core TB value relationships long enough for me >> to be willing to put those materials there. (In fact, I >> see that I deleted an old, insufficient patch on 2019-05-12.) >> >> For what is there, the svn diff's are about 7 or more >> months old compared to svn diffing with head -r356426 >> where my context is currently synchronized. >> >> (There were 1 or two more patches at one time but >> some other change or variation of them removed the >> issue that they were for.) >> >> =3D=3D=3D >> Mark Millard >> marklmi at yahoo.com >> ( dsl-only.net went >> away in early 2018-Mar) >> >> _______________________________________________ >> 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" --=20 Earth is a beta site.