From nobody Sun Feb 11 05:22:50 2024 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 4TXbb13zsHz59S5K for ; Sun, 11 Feb 2024 05:23:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic311-25.consmr.mail.gq1.yahoo.com (sonic311-25.consmr.mail.gq1.yahoo.com [98.137.65.206]) (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 4TXbb037Slz4W8w for ; Sun, 11 Feb 2024 05:23:08 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=mNJrR8Xa; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.206 as permitted sender) smtp.mailfrom=marklmi@yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1707628986; bh=Lxd6EzteRShKJ7REwTJRaNbADjZ/Qw430Km+0FpZmcU=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=mNJrR8Xalnil+Z8HQ05ZpgiCCp/Z5d6r8glv5kv3b10FpcPRNxbGFjIW4Ng1uv112OjAzPYWVvRtOj4E/csjjN1XAdgGWcnBKbILBlTjFtMPj/9gqGGOkfr+yhbsom26Y9kct3x2xcfoL+beCVc0ocPoxXoyj0SigNJN35gRNqpu2lgXlkHxtAxkcQwX05fzZNboRMaae3hkbFPOYAytEzk52SjGbtt7ofTwlQE3JzmXvPyZPIDPq99B/72bhdeoibaK4wsvTvhiZubJCACjFO424qUN2UzqeeMEsr7xCwfe9phZRgTCD5WsM5suLCkVsp9/f5KxMxRUQTdMCqbeUw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1707628986; bh=0uenp3nu7+k6FSLBCcHOcKZf5VZRr1q1VRsEzpRD7DO=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=PYWJUbJm0NuN0GzArYPO8MjAZfFqsT/iNNWDQ6/6edj6hK2RiEGTpHZFD9sakXmEifMOjeALPEqVk3SlIvVoLjMZwRXok0OYnWO7jSc/+5dqHW9KuakqewtRoZSNm44Vl3GC8rTsK5UtbGVREIgLTBIQOuGKCSn7f6l7hsfJEASVq67rYLhmHYCaBHqeYyPccdrNz7coVrXUZarOKbMwiXFycrv+a5xrGawRcNlD7Wh5zipmqEwV21yXlWsP//TLpuEvU17djhYCh5pR1xu8xWVeZoQ9jbJB3Dzwy7j0Z8PASWCT65ojNRaz7TGERyxYS3HM/7cOrR42uBEff7BBow== X-YMail-OSG: up17l9kVM1nhhh95ndD3QvG0kPYeXy9YAlS8WZRGN83VrQyBsagA2D5CUq1relH dagHgPV2CK8fNJ3A32fUOJCNEf_ryQjJ2xWnFfs4A0RxuHgJKGzd6kEvk7g5EF10WjIAmaswS21r yoJEL4Pj_.9fvPMC2fcZIcaDFfTD36s4L3wJ2N2WPaMRdKvroHB4aQ6kP4jXGhwgQ96x.QwDVG3q 3kFHA0haLfXbunF37Tv59B5hnFHbmpAgJUJhMD_257e1nFLEb9AE_uZUS9qar.4FQ7Lrj_HcO4xt jHX_aKUSRZLha8ZA9.WjCFODkN1rlMByqLywW90blB1bgSgyddkRpqWYRALZW7WvPe4zjVTY1FUt vUkPPBed2WGsABVS.7QlZk6XrAqNgDJhkHBvpExodRkPx6LwnBmudtbsas1HIq6hjaLj6QfWPNlN Gxn1K7wzt64jHbtkz2gnd0rgR10gvFHBUVshQ53YBYgcwUO2Wmci8PU4AIPV_Wt4ItT1icHE2nK7 TkNX1cST6AqYRVJPhGPG6DVEd4QUmHhKvmPUc2q7g7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Gpg2ZnQHc5t9juEcylTusckh0hZIQ u36gbmPa25MpE9YBBDZSLjbJmfchSdJN.tF1jOoW_ivmlwIn6EwhXv025ONHnwgLgTiqMXkJiAqf Ew95xsUNoDmmvfE30eqTuVkf8UXgmZwi2R1wrucLVZydYNU_a_KXBWcetpmWgoRDG6M3utD4Ydnt z8FGSSakKJZp1Q8CdjfyShwJZ87MnLBJNaTF3GxWhlH46bJw0pWf3iSKv3RI55lNY0qfxG_wqSCT oAX30xq_yoiKq7hllWGbsMdMT5fQEL6WUQCNJxCgunWPF.uWSlVq_qXUlj_uYLgfhv3W1XNtQhNp aSxY7RJ1H3t6rHtO55LuseYRD0vCXarkcu10X9jmrD.cUEAJ0gaGXhMoxoLMmW8IhrpHQ_J4QuRG gePkt3bc89gClpThaVxokvGjueYooeEle3svw5pptOItQLA.cN3EhcHiMf0j_h_fBKpahfnYRWSx KfJ4opPnx7DUSAyGL9b884kT6COWaxrvOyT8jTjq8HEA3lpBAmR0sbo0hsYnZJtWSLN07de541Mj 4l9YcC9ZFy_o2vf2C1r2LB6PGWe3.Q99Ox8K.8pRoaUUGKIoByxA51uY5gpTtNIIUn0Nq53GfMhT EeOP20yZUxT_Q_eGxKFQcW1gMJQgZy.EjN7fx4QJ56BHK4jzMuEAa.Q1xmfFBjg-- X-Sonic-MF: X-Sonic-ID: ef1a6f7b-cb15-47dd-9b71-94900b510b0c Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Sun, 11 Feb 2024 05:23:06 +0000 Received: by hermes--production-gq1-5c57879fdf-p26ct (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 81f759f65a2fc0ef27117a084b626496; Sun, 11 Feb 2024 05:23:01 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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 \(3774.400.31\)) Subject: RPi5 PCIe and L1 Substates (and more): implications for using the RasPiOS .dtb (including on the PCIe that has the RP1) Message-Id: <5B4E7F48-CAB9-4A2E-8802-B59AB5EDFBB6@yahoo.com> Date: Sat, 10 Feb 2024 21:22:50 -0800 To: FreeBSD ARM List X-Mailer: Apple Mail (2.3774.400.31) References: <5B4E7F48-CAB9-4A2E-8802-B59AB5EDFBB6.ref@yahoo.com> X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.206:from]; APPLE_MAILER_COMMON(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.206:from] X-Rspamd-Queue-Id: 4TXbb037Slz4W8w The RPi5 has in its live dtb (rasPiOS64) and on-disk dtb: pcie@120000 { . . . aspm-no-l0s; brcm,enable-l1ss; brcm,enable-mps-rcb; brcm,vdm-qos-map =3D <0xbbaa9888>; . . . I found material indicating that for the brcm,enable-l1ss (L1 Substates, using a Bidirectional CLKREQ#): "Setting this property only makes sense = when the downstream device is L1SS-capable and the OS is configured to = activate this mode". This would seem to potentially mean that use of the RasPiOS dtb = effectively requires support of L1 Substates by the OS (or firmware for EDK2?). Note: pcie@120000 is the one that contains the rpi1 (that, in turn, has many of the devices). I found material indicating that aspm-no-l0s means that L0's should be disabled to avoid signal noise (plus it did not help much for power savings). I have not found material about brcm,enable-mps-rcb or brcm,vdm-qos-map = . There seem to be a fair number of dma ranges and plain ranges: dma-ranges =3D <0x2000000 0x0 0x0 0x1f 0x0 0x0 0x400000 0x43000000 0x10 = 0x0 0x0 0x0 0x10 0x0>; ranges =3D <0x2000000 0x0 0x0 0x1f 0x0 0x0 0xfffffffc 0x43000000 0x4 0x0 = 0x1c 0x0 0x3 0x0>; Note for the above: #address-cells =3D <0x3>; #interrupt-cells =3D <0x1>; #size-cells =3D <0x2>; rp1's are: dma-ranges =3D <0x10 0x0 0x43000000 0x10 0x0 0x10 0x0 0xc0 0x40000000 = 0x2000000 0x0 0x0 0x0 0x400000 0x0 0x0 0x2000000 0x10 0x0 0x10 0x0>; ranges =3D <0xc0 0x40000000 0x2000000 0x0 0x0 0x0 0x400000>; Note for the above: #address-cells =3D <0x2>; #interrupt-cells =3D <0x2>; #size-cells =3D <0x2>; Both usb@200000 and usb@300000 have: snps,axi-pipe-limit =3D [08]; snps,dis_rxdet_inp3_quirk; snps,tx-max-burst-prd =3D <0x8>; snps,tx-thr-num-pkt-prd =3D = <0x2>; usb3-lpm-capable; "axi-pipe-limit" suggests that axi places some of its own constraints on what usb style-of-usage is valid. There are no xhci@ . . . in the dtb's. axi contains all 3 pcie@*'s and has: axi { #address-cells =3D <0x2>; #size-cells =3D <0x2>; compatible =3D "simple-bus"; dma-ranges =3D <0x0 0x0 0x0 0x0 0x10 0x0 0x10 0x0 0x10 = 0x0 0x1 0x0 0x14 0x0 0x14 0x0 0x4 0x0 0x18 0x0 0x18 0x0 0x4 0x0 0x1c 0x0 = 0x1c 0x0 0x4 0x0>; phandle =3D <0xae>; ranges =3D <0x0 0x0 0x0 0x0 0x10 0x0 0x10 0x0 0x10 0x0 = 0x1 0x0 0x14 0x0 0x14 0x0 0x4 0x0 0x18 0x0 0x18 0x0 0x4 0x0 0x1c 0x0 = 0x1c 0x0 0x4 0x0>; =3D=3D=3D Mark Millard marklmi at yahoo.com