From: Manivannan Sadhasivam <mani@kernel.org>
To: Janne Grunau <j@jannau.net>
Cc: "Bjorn Helgaas" <helgaas@kernel.org>,
"Alyssa Rosenzweig" <alyssa@rosenzweig.io>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Krzysztof Wilczyński" <kw@linux.com>,
"Manivannan Sadhasivam" <manivannan.sadhasivam@linaro.org>,
"Rob Herring" <robh@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] PCI: apple: Add depends on PAGE_SIZE_16KB
Date: Fri, 14 Feb 2025 21:14:15 +0530 [thread overview]
Message-ID: <20250214154415.ns5li3ywlxawmzz6@thinkpad> (raw)
In-Reply-To: <20250211220019.GC810942@robin.jannau.net>
On Tue, Feb 11, 2025 at 11:00:19PM +0100, Janne Grunau wrote:
> On Tue, Feb 11, 2025 at 08:56:04PM +0100, Janne Grunau wrote:
> > On Tue, Feb 11, 2025 at 12:38:59PM -0600, Bjorn Helgaas wrote:
> > > On Tue, Feb 11, 2025 at 01:03:52PM -0500, Alyssa Rosenzweig wrote:
> > > > From: Janne Grunau <j@jannau.net>
> > > >
> > > > The iommu on Apple's M1 and M2 supports only a page size of 16kB and is
> > > > mandatory for PCIe devices. Mismatched page sizes will render devices
> > > > useless due to non-working DMA. While the iommu prints a warning in this
> > > > scenario, it seems a common and hard to debug problem, so prevent it at
> > > > build-time.
> > >
> > > Can we include a sample iommu warning here to help people debug this
> > > problem?
> >
> > I don't remember and it might have changed in the meantime due to iommu
> > subsystem changes. What currently happens is that
> > apple_dart_attach_dev_identity() fails with -EINVAL. I can't say whether
> > that results in a failure to probe now. I'll test and report back.
>
> Using a kernel with 4K page size It results now in following warning per
> PCI device:
>
> | ------------[ cut here ]------------
> | WARNING: CPU: 7 PID: 260 at drivers/iommu/iommu.c:2979 iommu_setup_default_domain+0x348/0x590
This should be added to the patch description.
- Mani
--
மணிவண்ணன் சதாசிவம்
next prev parent reply other threads:[~2025-02-14 15:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-11 18:03 [PATCH] PCI: apple: Add depends on PAGE_SIZE_16KB Alyssa Rosenzweig
2025-02-11 18:38 ` Bjorn Helgaas
2025-02-11 19:56 ` Janne Grunau
2025-02-11 22:00 ` Janne Grunau
2025-02-14 15:44 ` Manivannan Sadhasivam [this message]
2025-02-16 19:51 ` Alyssa Rosenzweig
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=20250214154415.ns5li3ywlxawmzz6@thinkpad \
--to=mani@kernel.org \
--cc=alyssa@rosenzweig.io \
--cc=bhelgaas@google.com \
--cc=helgaas@kernel.org \
--cc=j@jannau.net \
--cc=kw@linux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=robh@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