From owner-freebsd-arm@freebsd.org Fri May 7 20:48:24 2021 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 2D84863C403 for ; Fri, 7 May 2021 20:48:24 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-21.consmr.mail.gq1.yahoo.com (sonic309-21.consmr.mail.gq1.yahoo.com [98.137.65.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 4FcMwl1QTwz3Lq3 for ; Fri, 7 May 2021 20:48:22 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1620420501; bh=OgYwUJWj1JY7jdXTzGbK5VN8ySM4pkbVLFfHx6RUK6i=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=eUGA7Y/6uUBPQollUTfZ/6FwufdEv8neUPLgk/0rSDbki8urPVVprOrrd87wfobc6FG0KauuB4gBEvxYHHQ2D/OQShh0GGNotNMfd+h/wyuoC2go79UDvyJLNagDidwX0dR+nuRhEeDp5i9Ewr1gQzyDqVY8VSgTeFNGztGaajUgkPJAskjAg9BRRTmKgytZQYeOkjhN/UbyYiWmZL2a/ASXVKaTF4rQsZO8X2D9ElDhX8/ymTpTsP43nlFBl+u4zjQ1kzFjGDEo4KFFpzP8j+Jv00ByH8d9i2ib6r7iT7PTnwtZJVeQG/Mp7wUqhYWLJAt/7oi4STKwDtQCK7st5g== X-YMail-OSG: em2rgiEVM1ktIXM5.RnD3E7XuiTGhZM39dUuxV3nf.ZZoBLhXQn8O3kNXx1C0Ka 5xx1UGF7bvMP2PdqBeC0GEEpYbE7xy9sE009ajmbf6hbsCIC2WV1mLoaYqFAYHxyxIT7VR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YVVDzWrsCwL2u5mKLRVrsJQh.oyCMa4uDlCf8af30uHXSv9TFiXX70K0IqZNSlbu3ghymtt6g p3XY22Cc2yALzy2Jo4Gu_TjXpf8j.3pxc8rnPdvd.SLkNFbFZvh0GY9PtsNUVQH8ubVCT7ZCs8pO Vu76b8CQUCeamxr4cMoVr_3AgaHygLltqKlJM2JesuQzsiIexHz64PnfNFqhRbrwP0Pf_L3btKUG BaMiLtFHeF0iiMqUWuUWT.Of93t0Q0UIswBSKIY4MLTxg1Eo6u5fZO7No X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Fri, 7 May 2021 20:48:21 +0000 Received: by kubenode508.mail-prod1.omega.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID dc6d65d1f6fbfaa0efafe19f9fc3624d; Fri, 07 May 2021 20:48: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 14.0 \(3654.80.0.2.43\)) Subject: FYI: Testing for RPi4B (and other BCM2711 device) SoC revisions Message-Id: <51D7E4EF-F7DE-4AE8-97B0-97996E34D519@yahoo.com> Date: Fri, 7 May 2021 13:48:17 -0700 To: freebsd-arm X-Mailer: Apple Mail (2.3654.80.0.2.43) References: <51D7E4EF-F7DE-4AE8-97B0-97996E34D519.ref@yahoo.com> X-Rspamd-Queue-Id: 4FcMwl1QTwz3Lq3 X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 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:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; 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]; RBL_DBL_DONT_QUERY_IPS(0.00)[98.137.65.147:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[98.137.65.147:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.147:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.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.34 Precedence: list List-Id: Porting FreeBSD to ARM processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 May 2021 20:48:24 -0000 Looks like EDK2 is getting work on dealing with the updated BCM2711 vintages that do not require as many workarounds or imposed limitations. = https://github.com/jlinton/edk2-platforms/commit/769d36d6d400b1dac2ec5e8a7= b3eebd0a4751b8b has AML code based on the following sort of logic #define ID_CHIPREV 0xfc404000 . . . OperationRegion (CHPR, SystemMemory, ID_CHIPREV, 0x4) Field (CHPR, DWordAcc, NoLock, Preserve) { SOCI, 32 } if ((SOCI & 0xFF) >=3D 0x20) . . . else . . . (Not bothering with which file contains which text here.) This (and the not shown code) is described with: QUOTE The newer BCM2711 SoC's don't have a DMA constraint on the emmc2 controller. So we don't need to do the 1M translation. Lets allow the AML to detect the SoC revision and return a different _DMA resource. END QUOTE My guess is that the above presumes that the context has already been established to be a BCM2711 one. Note: I'm not AML literate. So I'm guessing interpretations for the code shown. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)