From: Bjorn Helgaas <helgaas@kernel.org>
To: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Cc: "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,
"Janne Grunau" <j@jannau.net>
Subject: Re: [PATCH] PCI: apple: Add depends on PAGE_SIZE_16KB
Date: Tue, 11 Feb 2025 12:38:59 -0600 [thread overview]
Message-ID: <20250211183859.GA51030@bhelgaas> (raw)
In-Reply-To: <20250211-pci-16k-v1-1-7fc7b34327f2@rosenzweig.io>
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?
> Signed-off-by: Janne Grunau <j@jannau.net>
> Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
> ---
> drivers/pci/controller/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/pci/controller/Kconfig b/drivers/pci/controller/Kconfig
> index 9800b768105402d6dd1ba4b134c2ec23da6e4201..507e6ac5d65257578e4eec74b459f6605c9c2907 100644
> --- a/drivers/pci/controller/Kconfig
> +++ b/drivers/pci/controller/Kconfig
> @@ -39,6 +39,7 @@ config PCIE_APPLE
> depends on ARCH_APPLE || COMPILE_TEST
> depends on OF
> depends on PCI_MSI
> + depends on PAGE_SIZE_16KB || COMPILE_TEST
> select PCI_HOST_COMMON
> help
> Say Y here if you want to enable PCIe controller support on Apple
>
> ---
> base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
> change-id: 20250211-pci-16k-4c391a5dcd18
>
> Best regards,
> --
> Alyssa Rosenzweig <alyssa@rosenzweig.io>
>
next prev parent reply other threads:[~2025-02-11 18:39 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 [this message]
2025-02-11 19:56 ` Janne Grunau
2025-02-11 22:00 ` Janne Grunau
2025-02-14 15:44 ` Manivannan Sadhasivam
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=20250211183859.GA51030@bhelgaas \
--to=helgaas@kernel.org \
--cc=alyssa@rosenzweig.io \
--cc=bhelgaas@google.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.