From owner-freebsd-arm@freebsd.org Thu Sep 24 21:04:25 2020 Return-Path: Delivered-To: freebsd-arm@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 F25013E0576 for ; Thu, 24 Sep 2020 21:04:25 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic310-21.consmr.mail.gq1.yahoo.com (sonic310-21.consmr.mail.gq1.yahoo.com [98.137.69.147]) (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 4By6x43Wbnz4F7R for ; Thu, 24 Sep 2020 21:04:24 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: aibJ1yoVM1n5yF0E1hdp9axbyB5oV0QGEpISBtED1T03GZw.ujcCqNxcYDvG7kc Eh.ARqcSl2f1xGNED7.An2bgHHtq0TQ29Ug5ewzuaEPyqQJho4v.rYodl25_PrUqZvZcjAvqYPVN iEKNcEgV9lSQWOTb6Ok5W03q9Taj9T7PKmgkLgSdbYyURZbgxXEKQ8nfRmif3YL5zhKM8vPPgXKA xB.zH..Kt7SaIO9qZAaW5AGFdzrLzXzPryWcP6fTAvg55T4xEzBE4XSQJT1TqqeRuGRxvv0W81o_ cD_qZRWfgb1SpoIs44ysP.UpJ0D6B.dV3HU1rQFnIn1xsIMTSc2IiVnU.OE47lj42203w3FSAm.e sPzXhBPD7XqLR6nK7qBtdigVYtDNIFIrwizYkz8vxSI4pDgsHcYXqYmS6ld.rtuex3WiRbnK7M2a a_rEms8Vof02_Cvs9oaFImSKP9LYTKbdcbW9YkOoTxS_fVF7W41I5AqApZ_w6Hs7.7NG2.p22f.6 z1o6ltgry0aQ4gKqbk4TNTEiKn9BYZ.ZN5_KtZ9ifkMPOQTXpiH9.PwbiajwCuudYhhIMNWT.yZL LGX3Q0J6QY_WzSmOYQu4io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u, 24 Sep 2020 21:04:21 +0000 Received: by smtp410.mail.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 6f3033918cb46761edcc828c9aa3423f; Thu, 24 Sep 2020 21:04:18 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: head -r365677 and later do not have the xhci related DMA problem fixed Date: Thu, 24 Sep 2020 14:04:17 -0700 References: <5A60B29E-0D24-480C-807D-4A5E92D9C92A@yahoo.com> <4432F794-FB30-49A6-B88D-93FF954BDB99@yahoo.com> To: Robert Crowston , freebsd-arm In-Reply-To: <4432F794-FB30-49A6-B88D-93FF954BDB99@yahoo.com> Message-Id: <7CB42754-9EF1-468F-B9C1-8993CB5C0F40@yahoo.com> X-Mailer: Apple Mail (2.3608.120.23.2.1) X-Rspamd-Queue-Id: 4By6x43Wbnz4F7R X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.18 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-0.66)[-0.659]; FREEMAIL_TO(0.00)[protonmail.com,freebsd.org]; 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/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.03)[-1.034]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.985]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.147:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.147:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-arm] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2020 21:04:26 -0000 On 2020-Sep-24, at 13:24, Mark Millard wrote: > On 2020-Sep-24, at 12:04, Mark Millard wrote: >=20 >> I finally got around to updating the systems that I have access >> to, including the 8 GiByte RPi4B, from head -r363590 to -r363932 . >> This puts the sytem after then head -r365677 check in of the >> attempted DMA fix that involved restricting the xhci DMA range to >> 1 GiByte. >>=20 >> I've tested head -r363932 under uefi/ACPI v1.20 with the >> 3072 limit disabled and it failed the large file duplicate >> and diff/cmp test: >>=20 >> # cp -aRx /usr/obj/clang-armv7-on-aarch64.tar = /usr/obj/clang-armv7-on-aarch64.alt_tar >> # diff /usr/obj/clang-armv7-on-aarch64.tar = /usr/obj/clang-armv7-on-aarch64.alt_tar >> Binary files /usr/obj/clang-armv7-on-aarch64.tar and = /usr/obj/clang-armv7-on-aarch64.alt_tar differ >> # cmp -l /usr/obj/clang-armv7-on-aarch64.tar = /usr/obj/clang-armv7-on-aarch64.alt_tar | head -30 >> 2633269249 3 0 >> 2633269251 3 0 >> 2633269252 55 0 >> 2633269253 6 0 >> 2633269254 21 0 >> 2633269255 227 0 >> 2633269256 1 0 >> 2633269257 135 0 >> 2633269258 336 0 >> 2633269259 22 140 >> 2633269260 0 100 >> 2633269261 346 0 >> 2633269262 353 0 >> 2633269265 227 0 >> 2633269266 1 160 >> 2633269267 170 140 >> 2633269268 336 100 >> 2633269269 22 0 >> 2633269271 362 0 >> 2633269272 353 0 >> 2633269275 227 0 >> 2633269276 1 0 >> 2633269277 225 0 >> 2633269278 336 0 >> 2633269279 22 0 >> 2633269281 376 0 >> 2633269282 353 1 >> 2633269285 0 1 >> 2633269289 0 223 >> 2633269290 0 321 >>=20 >> For reference: >>=20 >> # ls -ldT /usr/obj/clang-armv7-on-aarch64* >> -rw-r--r-- 1 root wheel 11570948096 Jul 18 18:32:37 2020 = /usr/obj/clang-armv7-on-aarch64.alt_tar >> -rw-r--r-- 1 root wheel 11570948096 Jul 18 18:32:37 2020 = /usr/obj/clang-armv7-on-aarch64.tar >>=20 >> (So the over 10 GiByte original file is significantly larger than the >> 8 GiByte RAM.) >>=20 >=20 > I figured I'd gather some more evidence by putting back the > 3072 MiByte limit and diff'ing/cmp'ing the above files and > then making another duplicate and diff'ing it. >=20 > # diff /usr/obj/clang-armv7-on-aarch64.tar = /usr/obj/clang-armv7-on-aarch64.alt_tar=20 > Binary files /usr/obj/clang-armv7-on-aarch64.tar and = /usr/obj/clang-armv7-on-aarch64.alt_tar differ > # cmp -l /usr/obj/clang-armv7-on-aarch64.tar = /usr/obj/clang-armv7-on-aarch64.alt_tar | head -30 > 2633269249 3 0 > 2633269251 3 0 > 2633269252 55 0 > 2633269253 6 0 > 2633269254 21 0 > 2633269255 227 0 > 2633269256 1 0 > 2633269257 135 0 > 2633269258 336 0 > 2633269259 22 140 > 2633269260 0 100 > 2633269261 346 0 > 2633269262 353 0 > 2633269265 227 0 > 2633269266 1 160 > 2633269267 170 140 > 2633269268 336 100 > 2633269269 22 0 > 2633269271 362 0 > 2633269272 353 0 > 2633269275 227 0 > 2633269276 1 0 > 2633269277 225 0 > 2633269278 336 0 > 2633269279 22 0 > 2633269281 376 0 > 2633269282 353 1 > 2633269285 0 1 > 2633269289 0 223 > 2633269290 0 321 >=20 > So the copy made without the 3072 MiByte limit appears to be > corrupt as written: it looks like the error is not just at > diff/cmp time. >=20 > Making and testing a .alt2_tar copy: >=20 > # cp -aRx /usr/obj/clang-armv7-on-aarch64.tar = /usr/obj/clang-armv7-on-aarch64.alt2_tar > # cp -aRx /usr/obj/clang-armv7-on-aarch64.tar = /usr/obj/clang-armv7-on-aarch64.alt2_tar > # diff /usr/obj/clang-armv7-on-aarch64.tar = /usr/obj/clang-armv7-on-aarch64.alt2_tar=20 > #=20 The duplicated cp line is a copy/paste error: I had copied/pasted the cp line before it finished and copied/pasted the 3 lines after the diff completed --but I did not replace the original cp line like I should have. Only noted so that the structure of my test procedure can be followed as it actually was executed. > So, with the 3072 MiByte limit: no evidence of a problem with = duplicating > the huge file and diff'ing the result. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)