From owner-freebsd-hackers@freebsd.org Wed Apr 3 00:26:10 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AA08E15544C1 for ; Wed, 3 Apr 2019 00:26:10 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-20.consmr.mail.gq1.yahoo.com (sonic314-20.consmr.mail.gq1.yahoo.com [98.137.69.83]) (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 BBB7887744 for ; Wed, 3 Apr 2019 00:26:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 7LTWA5QVM1kW3Lb6rCmlym1zAVjEOf5kpfujlRwpU98uzMbUR0dXozL.eCkTYb2 Hg52w2GaMFi_5gRcaQmEEjYYttGg5p1nML0LLGf_EYr64Zasv8oJ.9rI_XiV89RMxYuJ3.bldXxg 5ftaW1fdUkwr36p2Xbbd7_ajVNDzkM7ilrfkfHEHSeuBDWXLgJnpwq3nZ0J_v3tNHES425yfCx6j m2FOrCX3e.pcd9wY0PUEGz9CnAeVTOwuy7rXUUhQ5uMmw5aP7ueOd7ds7qGFLV06F3KiOnle9dgo mz2AGPeF_Co70RlQ5MU8MFGm0eLlCLtqwaZaZVUzAmEOg5F2MzRjlwsde6y8ZnKyIqMMsgYgIAOj uBaOOPWykAuyTzoMzvs3J1AtGwSWMI0zaLZAYynUt_6tbUomxg9zFZPzxwUwibcJdaDr.6w485td CfZmYSHMtOTUIO9DuoeZKzfgwKhwuuA7gOiIMtZ_tWg4ECbun7GAXCPiUUP8L2HTNNSBhlM8O3g8 PuULbzP9UOCMT0MOnwKs4p7ZyHeKVOWFwgoIY051_XwDC6TIA1vczy3m6RdfAK3EOP0KYEgHFGor yMqkAn4HK_5sUoxodMWR1Ut1bZOhBRXXLeM5iKfhj1moqMP.b52TsU4w80VeLZpbtIIObcn1rxVT smhSGpu1erFRgh80sqAYMRXTarEBxJJsJLU36kue9ZmdiM.x73RE13LR5jd9aZ02QgFKGu38AgFO RGAKjf6fxg0cpg4cfF8Ug6Ig8cSV3fCzGEnL.qfRPffVwcrm1FbMSk3NMQ9ibGTt4byQliZfQaJA i.ABdYU7ofx_njt01iaVl3Fbm6SQTCSzc9Z_rETVZplXkDoqdGwtGZnJmOo6P97D5Vr9vcYqH1eX YIu1XlAvj3uuiubavTH67sPvb37yW1fqnrJdvnsHUC36Z417pAQ7F3J66yppNHtm5.ZKjBvBIMvP nmz43X9qfeZr.3h7W0oBxX0LEyjHnGBJRHAQGSnzBE.MJihHobBYZqZhblYGD37ZbgcFjLk6OJM_ 1p9MyyBPrlEHMlGBi7UgOelX7GzuZ8oBZlHLX2NYuAlfsJEMsAL3qnh9riJukBnBrYOF.SVK3N3d A Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Wed, 3 Apr 2019 00:26:07 +0000 Received: from c-67-170-167-181.hsd1.or.comcast.net (EHLO [192.168.1.113]) ([67.170.167.181]) by smtp424.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 935369d1782ce17aa08491c035fe8ef3; Wed, 03 Apr 2019 00:15:57 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: powerpc64 head -r344018 stuck sleeping problems: th->th_scale * tc_delta(th) overflows unsigned 64 bits sometimes [patched failed] From: Mark Millard In-Reply-To: Date: Tue, 2 Apr 2019 17:15:56 -0700 Cc: Konstantin Belousov , freebsd-hackers Hackers , Bruce Evans , FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <70B2E795-1FCC-41A3-8F4D-6E6C97379116@yahoo.com> References: <20190303111931.GI68879@kib.kiev.ua> <20190303223100.B3572@besplex.bde.org> <20190303161635.GJ68879@kib.kiev.ua> <20190304043416.V5640@besplex.bde.org> <20190304114150.GM68879@kib.kiev.ua> <20190305031010.I4610@besplex.bde.org> <20190306172003.GD2492@kib.kiev.ua> <20190308001005.M2756@besplex.bde.org> <20190307222220.GK2492@kib.kiev.ua> <20190309144844.K1166@besplex.bde.org> <20190324110138.GR1923@kib.kiev.ua> To: Michael Tuexen X-Mailer: Apple Mail (2.3445.104.8) X-Rspamd-Queue-Id: BBB7887744 X-Spamd-Bar: +++ X-Spamd-Result: default: False [3.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(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)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.68)[0.677,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(1.90)[ip: (7.88), ipnet: 98.137.64.0/21(0.95), asn: 36647(0.76), country: US(-0.06)]; NEURAL_SPAM_MEDIUM(0.53)[0.529,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.70)[0.700,0]; RCVD_IN_DNSWL_NONE(0.00)[83.69.137.98.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[83.69.137.98.rep.mailspike.net : 127.0.0.17]; FREEMAIL_CC(0.00)[gmail.com] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Apr 2019 00:26:10 -0000 On 2019-Apr-2, at 15:27, Michael Tuexen = wrote: >> On 24. Mar 2019, at 12:01, Konstantin Belousov wrote: >>=20 >> On Sat, Mar 09, 2019 at 06:00:14PM +1100, Bruce Evans wrote: >>> I more strongly disclike (sic) the more complete merge. The central = APIs >>> have even more parameters and reduced type safety to describe = objects as >>> (offset, size) pairs. >> I changed the patch to be type-safe. Now I like it even more. It = provides >> 1. internal >> 2. concise >> 3. type-safe >> API to fetch data from timehands. The implementation needs to be = read >> only once. > Hi, >=20 > I'm a bit lost... I think this started to fix a problem on G5 = PowerMacs. > Do you think this patch solves the problem. Should this be tested? > Or is this still work in progress or a general improvement not = necessary > fixing the problem on G5 PowerMacs? >=20 > Best regards > Michael > . . . A much earlier version of the patch made things much worse on the PowerMc G5 (massively long hangups, inability to effectively enter commands). I had to cut power, repair the file system, and undo the separately (not booted from that media). I've not tried again since then. I suspect that while my report prompted the looking into the code, the issues noticed are likely not fixes to the behavior observed on the old PowerMac G5's. I've my own hack/workaround that has my context operational, avoiding the original issue. Definitely not what FreeBSD should be doing. It even involves constants figured out by observation of the failing conditions in the specific context. =46rom what I've seen, my detailed hack-text will not apply to the new code. I'll likely have to work out a variant until the original problem and a solution is identified and provided. Note: The only PowerPC contexts that I've access to are old PowerMacs. I've no clue if other contexts have the original issue or not. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)