From: Daniel Drake <dan@reactivated.net>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: "Joerg Roedel (AMD)" <joro@8bytes.org>,
Will Deacon <will@kernel.org>,
Robin Murphy <robin.murphy@arm.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Florian Fainelli <florian.fainelli@broadcom.com>,
Broadcom internal kernel review list
<bcm-kernel-feedback-list@broadcom.com>,
iommu@lists.linux.dev, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
nick.hollinghurst@raspberrypi.com, Jason Gunthorpe <jgg@ziepe.ca>
Subject: Re: [PATCH v2 4/5] iommu: Add Broadcom BCM2712 IOMMU driver
Date: Fri, 31 Jul 2026 21:34:02 +0100 [thread overview]
Message-ID: <6d9b28ec-0905-4cb0-9a62-980c7fa69572@reactivated.net> (raw)
In-Reply-To: <20260730-small-solid-spoonbill-8a8bbd@quoll>
On 30/07/2026 08:00, Krzysztof Kozlowski wrote:
> On Mon, Jul 27, 2026 at 09:43:59PM +0100, Daniel Drake wrote:
>> +static int bcm2712_iommu_init_cache(struct bcm2712_iommu *mmu,
>> + struct platform_device *pdev)
>> +{
>> + struct device *dev = &pdev->dev;
>> + struct platform_device *cache_pdev;
>> + struct device_node *cache_np;
>> +
>> + cache_np = of_parse_phandle(dev->of_node, "brcm,iommu-cache", 0);
>> +
>> + /* Fall back on 'cache' property used in old/downstream firmware */
>> + if (!cache_np)
>> + cache_np = of_parse_phandle(dev->of_node, "cache", 0);
>
> NAK.
>
> You cannot have undocumented ABI. I asked you to drop this at v1.
Is there any approach I should consider here in order to support
existing shipped firmware versions that use the 'cache' property, or
should I simply break compatibility?
While I was working on another issue recently there was a lean towards
supporting existing/wrong DTs at the end of
https://lore.kernel.org/all/878q898ulx.wl-maz@kernel.org/
but admittedly that case has some different parameters: it was incorrect
DT values (not incorrect ABI) and also was more severe (breaks boot). In
this case if the system were to boot without iommu support it is not the
end of the world.
Thanks,
Daniel
next prev parent reply other threads:[~2026-07-31 20:34 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-27 20:43 [PATCH v2 0/5] Add support for Broadcom BCM2712 IOMMU driver (Raspberry Pi 5) Daniel Drake
2026-07-27 20:43 ` [PATCH v2 1/5] generic_pt: allow missing sw bit in DMA_INCOHERENT case Daniel Drake
2026-07-27 20:43 ` [PATCH v2 2/5] dt-bindings: iommu: Add Broadcom BCM2712 IOMMU Daniel Drake
2026-07-30 6:59 ` Krzysztof Kozlowski
2026-07-27 20:43 ` [PATCH v2 3/5] iommu/generic_pt: Add Broadcom BCM2712 page table format Daniel Drake
2026-07-27 20:43 ` [PATCH v2 4/5] iommu: Add Broadcom BCM2712 IOMMU driver Daniel Drake
2026-07-27 22:08 ` sashiko-bot
2026-07-28 10:51 ` Robin Murphy
2026-07-29 0:10 ` Jason Gunthorpe
2026-07-29 11:21 ` Robin Murphy
2026-07-31 20:22 ` Daniel Drake
2026-08-16 12:50 ` Daniel Drake
2026-08-16 16:57 ` Jason Gunthorpe
2026-07-30 7:00 ` Krzysztof Kozlowski
2026-07-31 20:34 ` Daniel Drake [this message]
2026-08-01 9:15 ` Krzysztof Kozlowski
2026-08-03 10:53 ` Nick Hollinghurst
2026-07-27 20:44 ` [PATCH v2 5/5] arm64: dts: broadcom: bcm2712: Add GPU IOMMU and IOMMU cache nodes Daniel Drake
2026-07-28 22:57 ` [PATCH v2 4/5] iommu: Add Broadcom BCM2712 IOMMU driver Jim Quinlan
2026-08-19 19:22 ` Daniel Drake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6d9b28ec-0905-4cb0-9a62-980c7fa69572@reactivated.net \
--to=dan@reactivated.net \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=florian.fainelli@broadcom.com \
--cc=iommu@lists.linux.dev \
--cc=jgg@ziepe.ca \
--cc=joro@8bytes.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=nick.hollinghurst@raspberrypi.com \
--cc=robh@kernel.org \
--cc=robin.murphy@arm.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox