From owner-freebsd-ppc@freebsd.org Sun Jan 19 23:24:33 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 2B034227B7F for ; Sun, 19 Jan 2020 23:24:33 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-yw1-xc42.google.com (mail-yw1-xc42.google.com [IPv6:2607:f8b0:4864:20::c42]) (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 4819qh3FrJz3MMb for ; Sun, 19 Jan 2020 23:24:32 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: by mail-yw1-xc42.google.com with SMTP id i190so17142636ywc.2 for ; Sun, 19 Jan 2020 15:24:32 -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=bd5O0NI9o80RvtvsX90GHjANaSieqx1HXLyh1sWsR3g=; b=hhqmlifPlNjUgMvKLkNJXZfG138QLpvuHZdI4J2crTVm9OIDAbsGWTwvWSamfZjgHO bSMc3OL3szUkvXVAk7Z43ixUUlcSfuAXlA6KKeZ5x6MZ4JdCQIb09QAYc1IltV9pvqiA gjxH3Xp+Ex1QUWZmbzNmHPZyzP0IQn6FGnfV7OkXrliRCq1mMmiNqPJkESHXZf/MjM+d vXY97AdgqoaW0hpNnUJgghXTV21FfnlSXD5xuVZFKVHgPxOW2IiggJUnc6ei4mm6DlBb GmKV/CsvvBN0smWxpqkV6e+Ul7UJ+0G5DfkgVTELYhp/LEo8bFNT16oUopyufP5DRVO/ 5N2g== 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=bd5O0NI9o80RvtvsX90GHjANaSieqx1HXLyh1sWsR3g=; b=NX24CTGCYr4lAQih3ninB3wyfAibCzn95+j+N7Pu7YDOqZvUUpxkPTuNPqDcsmcjAW NewBNXdfle7SW3/nwKEMxVBQJK5TqEqjGeehUa4sQxaZv1OyQkz1yaf7Pv9MxFQvQBBo db46yLkPIzRSJZjkGjnuU8YM9tMfPBB+jMLK+6WERNnco3o88C7F89+lUGGVlWHjZsOQ o+VdeTg/HnEaEmwrbjgv2syXLrpPdKEczl7Q5qo+mxQUidggyTirD8eVkxVw30hAR6Ra B8p78JYMdMDBn4OPq+HrO4wLes3KvuuiiZxZ/gsT40iWjeqt9cekk3v3U7PYfcghn4Ni CCwA== X-Gm-Message-State: APjAAAVMrXQQ7+Xf0fBLEt40iEtCmEjckHVZXJp8ECBbPBp93UnOuleM IFN89u3xSUzwacwLVCtPj0jLzI0n X-Google-Smtp-Source: APXvYqxCF9dpTglEDHj9sa0Isxv6g9xHoSWf92/jh6JqHRaL35jessBI9+AsT41PWBzCCRVVqWFB6g== X-Received: by 2002:a81:780b:: with SMTP id t11mr33748974ywc.117.1579476270954; Sun, 19 Jan 2020 15:24:30 -0800 (PST) Received: from coral.acadix.biz (2603-6000-a446-9100-0223-24ff-fe37-c4d7.res6.spectrum.com. [2603:6000:a446:9100:223:24ff:fe37:c4d7]) by smtp.gmail.com with ESMTPSA id w142sm15018314ywa.87.2020.01.19.15.24.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 19 Jan 2020 15:24:30 -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> From: Jason Bacon Message-ID: <08867d39-807a-494b-9ea5-d29d483e9c29@gmail.com> Date: Sun, 19 Jan 2020 17:24:28 -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: <21533290-667C-472E-89F7-D1E7DE773193@yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Rspamd-Queue-Id: 4819qh3FrJz3MMb X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=hhqmlifP; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of bacon4000@gmail.com designates 2607:f8b0:4864:20::c42 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: (2.17), ipnet: 2607:f8b0::/32(-2.08), asn: 15169(-1.82), 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)[2.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, 19 Jan 2020 23:24:33 -0000 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 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 s= ysctl >> 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. > > =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" 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.=C2=A0 Cutting the speed in = half=20 would be problematic for testing large ports. Thanks, =C2=A0=C2=A0=C2=A0 JB --=20 Earth is a beta site.