From nobody Thu Mar 16 18:53:29 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PcxHY747bz3ySQ3 for ; Thu, 16 Mar 2023 18:53:45 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-24.consmr.mail.gq1.yahoo.com (sonic312-24.consmr.mail.gq1.yahoo.com [98.137.69.205]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PcxHY4QVNz44kq for ; Thu, 16 Mar 2023 18:53:45 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1678992823; bh=GoywMVloqBckF92m/uvVjO1To8ZQlUuNF4gd4NcvXE8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=Z+4yvx6NH5VXwmyCymV3GRwHWEwcGyBCUv574zAGW2YIeDNWFbA3LBtGvQAABSFdLbo8h4OtO3PeerPP2lZoC5XDkp+4n3vK0tLUg2BQMt/9VLkCQ3osAenbgzYCpFpR9Q7t6UvdG+ZTQW3bGqJXoQfuBw3s7GuFv8X0gncE+9Taf1hSxVuaBAEjXsxGsCAzLdbMudsKqgTxtmTLp5ZvvXuPCBK3mPTjmgiPYwU9Vmt+tfScOPk070njMRe4SxwlT01SJnAhul+bw+sIxtksL74a6Q+HdIpDQHQaT/V2O4XhCl+nXvX5edoLfsTY/He6RqigA/pdLO2x7m9j4j6bIA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1678992823; bh=ZDvzocVsIA5wbWJ+3JB//grzqYf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FDweprwm9zo3xgyCMA1ilBz7AZ7G5UexMkDmkOxhmHzyR_us__UjetNtyF2VQJF UHyqqlf0TKwCFAj0scot1OEQdOmpKL.Z77Q8wm3IRLh6vUxvsJJrk63JFrn88up3II7VSZKa2Ox6 NDLBmSE19a5QPNMztDNQ2hVGy_GZkBSAK.YtLzC3FFvrHDP6vhosiQUNax47O7nrVBk79g40KLxc QEJ235QQSlbQ6KGaddl8tYc7CmuSgQj9zDbuP3vAg2P9I2XXefmqeJE4tMSFwOE8_suFbpWKZSVH J9vAJsnQ07smDWRfmPgkaf_88JjCzze5L9krh6Pj9tDFcyqnbG9nb1pUPw.dLQX408F.A.5UNCl5 kqR8m470Kfq68o0A.oVc2BgIrdyEBC.9s404bGRQHvYVre.QkzIzIHkBY7lc.vWEypPey2uO4v.T afaMJEuuVmPjASKIPsFlEiSd6r7P7Ag96rrczVYJcN7K9KUO_yFz80ucqXk9d23FBEOp9ZIIU7qe m1234aReGvisJyIHN7St7sf5AnJ9KPw9YQqq31S6Kz269HKCZJhsvvyQhdlr6C7les5i4QsyQCGS cyQ-- X-Sonic-MF: X-Sonic-ID: 398da7a4-49d4-4d32-b2c9-1283600a6ced Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Thu, 16 Mar 2023 18:53:43 +0000 Received: by hermes--production-gq1-6cf7749bc8-72cjd (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 7cfa9dd4bbd77afefeff7bad1ddb9244; Thu, 16 Mar 2023 18:53:40 +0000 (UTC) Content-Type: text/plain; charset=utf-8 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: git: 3473f2832284 - main - Switch the arm64 VM_MEMATTR_DEVICE to nGnRE From: Mark Millard In-Reply-To: <402C0A31-BAE8-4A2C-87DB-C52813D62F5F@fubar.geek.nz> Date: Thu, 16 Mar 2023 11:53:29 -0700 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: References: <202303161646.32GGkB3A022273@gitrepo.freebsd.org> <402C0A31-BAE8-4A2C-87DB-C52813D62F5F@fubar.geek.nz> To: Andrew Turner X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Rspamd-Queue-Id: 4PcxHY4QVNz44kq X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Mar 16, 2023, at 09:53, Andrew Turner wrote: > I=E2=80=99ve pushed a change to relax the default device memory type = on arm64. This is now equivalent to the device memory type used on arm. >=20 > Because of this I expect most devices to just work, however if you are = seeing strange issues you can set kern.force_nonposted=3D1 in = loader.conf to revert to the previous memory type globally, or = hint...force_nonposted=3D1 to disable it for a specific = device. For example to disable it for xhci0 you would use = hint.xhci.0.force_nonposted=3D1. >=20 > If you do find this fixes an issue please report it so we can fix the = driver. A probably unfortunate issue relative to some types of testing is that drm-515-kmod and drm-510-kmod fail to build for aarch64 (arm64). (drm-510-kmod might not be reasonable for aarch64 for alll I know.) The current problem for drm-515-kmod is lack of in_interrupt via lack of sufficient #include use (that provides the macro definition involved): error: call to undeclared function 'in_interrupt' (I'm guessing that amd64 works only via some amd64 specific header polution that aarch64 does not get.) My vague understanding of issues that exist in Linux land may suggest that Cortex-A72's may have additional issues shown via video card use. An example is the video-related activity for the HoneyComb to avoid the issues. > Andrew >=20 >> Begin forwarded message: >>=20 >> From: Andrew Turner >> Subject: git: 3473f2832284 - main - Switch the arm64 = VM_MEMATTR_DEVICE to nGnRE >> Date: 16 March 2023 at 16:46:11 GMT >> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, = dev-commits-src-main@FreeBSD.org >>=20 >> The branch main has been updated by andrew: >>=20 >> URL: = https://cgit.FreeBSD.org/src/commit/?id=3D3473f283228401ba585044ac6dea8c8e= b27237a5 >>=20 >> commit 3473f283228401ba585044ac6dea8c8eb27237a5 >> Author: Andrew Turner >> AuthorDate: 2023-03-16 15:36:06 +0000 >> Commit: Andrew Turner >> CommitDate: 2023-03-16 16:45:42 +0000 >>=20 >> Switch the arm64 VM_MEMATTR_DEVICE to nGnRE >>=20 >> Move device memory to a weaker type. The new device memory type = allows >> the system to acknowledge a write to a device before the write has >> completed. This is inline with VM_MEMATTR_DEVICE on armv6/armv7. >>=20 >> Sponsored by: Arm Ltd >> Differential Revision: https://reviews.freebsd.org/D38945 >> --- >> sys/arm64/include/vm.h | 6 +----- >> 1 file changed, 1 insertion(+), 5 deletions(-) >>=20 >> diff --git a/sys/arm64/include/vm.h b/sys/arm64/include/vm.h >> index e479aab52e26..a8c1ea97b513 100644 >> --- a/sys/arm64/include/vm.h >> +++ b/sys/arm64/include/vm.h >> @@ -36,11 +36,7 @@ >> #define VM_MEMATTR_WRITE_THROUGH 3 >> #define VM_MEMATTR_DEVICE_nGnRE 4 >>=20 >> -/* >> - * VM_MEMATTR_DEVICE can be changed to VM_MEMATTR_DEVICE_nGnRE when >> - * the PCI drivers use VM_MEMATTR_DEVICE_NP for their config space. >> - */ >> -#define VM_MEMATTR_DEVICE VM_MEMATTR_DEVICE_nGnRnE >> +#define VM_MEMATTR_DEVICE VM_MEMATTR_DEVICE_nGnRE >> #define VM_MEMATTR_DEVICE_NP VM_MEMATTR_DEVICE_nGnRnE >>=20 >> #ifdef _KERNEL >>=20 >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com