From nobody Sat Jan 7 18:58:55 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 4NqGC349BRz2pNTF for ; Sat, 7 Jan 2023 23:10:23 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NqGC33fF8z425f for ; Sat, 7 Jan 2023 23:10:23 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x62f.google.com with SMTP id u19so11349243ejm.8 for ; Sat, 07 Jan 2023 15:10:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=omShni4RNwVJqfH2T4nTNPGbue2kVgWvciIDiYdmK1I=; b=KguWSc1pS6xxfUwh03C9pSLCuuZaKdfN3HtRC3Yz5M0FOt+76r17uWKbSnRqicgoeC g7OurAVbhlUzMryCxw01NDpV6qMApvgOXChUjlL7sEWwLIMKVwruPGxulrlujXmsYFB1 VSTv3Nejx6itppCtKzFIimVyRjqf91c72EJ+9P1vx9IOlw5K4HoD9DgWfiYNigh/sxbv EmOMMdNcoPHllgdAL19xfTLDWGUUxL5PLX39Q0Pawb9XRNoT1lwQuu2GQFW0ZLq4M9N3 Uz88bXBWX2/MCvTsNH2mjFRfHMXnpSjih069Eukn+42ajBK4gA1Dj8+9YFX/bkUF91z/ nC7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=omShni4RNwVJqfH2T4nTNPGbue2kVgWvciIDiYdmK1I=; b=YkfZErJPXql5gplx9P/orbs3dNBdXQXg6KCd7weIoSMMjqC3vuhLtB1isryihIJQbp 61PXNNVuLk8M/QRmfecxhxLWKX6nYX0zuAzEM04BnPNFdxAFy+II+2so5kddOY0a8jIj Lbh5cQIm4npaS18aA+9BNBvsXQ+y5Q9DRPUzDK5Ostq443NAISe9ePlYmSgjwxH2ENeV ySXTjYVjdoJKC8pJEP7lxGP8FoH08P7FUxXJYvy4hsxVy/oR+bhhWMX3GPDVy9a9eCFL 5F7eVopwWn2RjOZyvpwdnCHi+0sXNJrs2DjmyE83Jb7POq0rbaCSGqqwitmDRL2nC3W9 iTZA== X-Gm-Message-State: AFqh2krTV67NIzr0VJ6+Q6LWoOgWjn5n1ss6ZSOqJmTrHu9coM5ebnMf ULQ3fw7ve4PbhT+epvzGTWs= X-Google-Smtp-Source: AMrXdXuA7GcN1L79ncmnbvpURlOB8fne7gn35ur0gQAJLi8t8OQ/J6LenD8EtDeIjE0rSWjEeslDtA== X-Received: by 2002:a17:907:a0d6:b0:7d3:c516:6ef4 with SMTP id hw22-20020a170907a0d600b007d3c5166ef4mr67291584ejc.20.1673133022403; Sat, 07 Jan 2023 15:10:22 -0800 (PST) Received: from smtpclient.apple (dynamic-046-114-060-191.46.114.pool.telefonica.de. [46.114.60.191]) by smtp.googlemail.com with ESMTPSA id l10-20020a1709063d2a00b0084767d40f0dsm1868699ejf.115.2023.01.07.15.10.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Jan 2023 15:10:21 -0800 (PST) From: =?utf-8?Q?Klaus_K=C3=BCchemann?= Content-Type: text/plain; charset=utf-8 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 \(3731.300.101.1.3\)) Subject: Re: How to make FreeBSD's kernel boot a RPi4B with modern RPi* firmware Date: Sat, 7 Jan 2023 19:58:55 +0100 References: <9C037D3F-A440-4708-993D-117F313691BB@yahoo.com> <374EC3E5-4CB4-4336-A8B9-7A9CF6151691@yahoo.com> <9E9C739E-8308-472A-B797-05A37559DD00@googlemail.com> To: Mark Millard , freebsd-arm@freebsd.org In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3731.300.101.1.3) X-Rspamd-Queue-Id: 4NqGC33fF8z425f X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N > Am 07.01.2023 um 11:18 schrieb Mark Millard : >=20 >=20 > =E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6= ... >>>=20 >>>=20 >>> stable/13's source code changes are ( similarly for >>> releng/13.1 ): >>>=20 >>> # git -C /usr/13S-src/ diff sys/arm/broadcom/bcm2835/bcm2835_dma.c >>> diff --git a/sys/arm/broadcom/bcm2835/bcm2835_dma.c = b/sys/arm/broadcom/bcm2835/bcm2835_dma.c >>> index cab8639bb607..6d521d6dcace 100644 >>> --- a/sys/arm/broadcom/bcm2835/bcm2835_dma.c >>> +++ b/sys/arm/broadcom/bcm2835/bcm2835_dma.c >>> @@ -766,5 +766,6 @@ static driver_t bcm_dma_driver =3D { >>>=20 >>> static devclass_t bcm_dma_devclass; >>>=20 >>> -DRIVER_MODULE(bcm_dma, simplebus, bcm_dma_driver, bcm_dma_devclass, = 0, 0); >>> +EARLY_DRIVER_MODULE(bcm_dma, simplebus, bcm_dma_driver, = bcm_dma_devclass, >>> + 0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE); >>> MODULE_VERSION(bcm_dma, 1); >>>=20 >>>=20 >>> main's [so: 14's] source code changes are: >>>=20 >>> # git -C /usr/main-src/ diff sys/arm/broadcom/bcm2835/bcm2835_dma.c >>> diff --git a/sys/arm/broadcom/bcm2835/bcm2835_dma.c = b/sys/arm/broadcom/bcm2835/bcm2835_dma.c >>> index 5f9ecb0b7981..d901447df1e9 100644 >>> --- a/sys/arm/broadcom/bcm2835/bcm2835_dma.c >>> +++ b/sys/arm/broadcom/bcm2835/bcm2835_dma.c >>> @@ -764,5 +764,6 @@ static driver_t bcm_dma_driver =3D { >>> sizeof(struct bcm_dma_softc), >>> }; >>>=20 >>> -DRIVER_MODULE(bcm_dma, simplebus, bcm_dma_driver, 0, 0); >>> +EARLY_DRIVER_MODULE(bcm_dma, simplebus, bcm_dma_driver, 0, 0, >>> + BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE); >>> MODULE_VERSION(bcm_dma, 1); >>>=20 >=20 >=20 > =3D=3D=3D > Mark Millard > marklmi at yahoo.com >=20 =E2=80=A6=E2=80=A6.on the other hand : if your = EARLY_DRIVER_MODULE(bcm_dma=E2=80=A6 doesn=E2=80=99t do anything wrong, you could give it in phabricator review, why not?!.. Regards K.=20=