From: Christoph Hellwig <hch@lst.de>
To: Robin Murphy <robin.murphy@arm.com>
Cc: linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org,
will@kernel.org, hch@lst.de,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] iommu/dma: Add config for PCI SAC address trick
Date: Thu, 19 May 2022 09:11:46 +0200 [thread overview]
Message-ID: <20220519071146.GB22301@lst.de> (raw)
In-Reply-To: <ef8abf1c6b0839e39b272738fc7bc4d9699c8bcb.1652895419.git.robin.murphy@arm.com>
On Wed, May 18, 2022 at 06:36:59PM +0100, Robin Murphy wrote:
> +config IOMMU_DMA_PCI_SAC_OPT
> + bool "Enable 64-bit legacy PCI optimisation by default"
> + depends on IOMMU_DMA
> + default X86
> + help
> + Enable by default an IOMMU optimisation for 64-bit legacy PCI devices,
> + wherein the DMA API layer will always first try to allocate a 32-bit
> + DMA address suitable for a single address cycle, before falling back
> + to allocating from the full usable address range. If your system has
> + 64-bit legacy PCI devices in 32-bit slots where using dual address
> + cycles reduces DMA throughput significantly, this optimisation may be
> + beneficial to overall performance.
The config option name sounds odd. Yes, maybe for actual 64-bit PCI
this actualy is an optimization. But I'd think of it more as a
workaround. and I'd probably word it as such. I also would not not
default to true for x86, just allow for that. There is nothing
fundamental about x86 wanting that, just that people use more crap
drivers on x86. An the fact that AMD SEV sets the high bit for
encrypted memory has been weeding out at least some of them.
> +bool iommu_dma_forcedac __read_mostly = !IS_ENABLED(CONFIG_IOMMU_DMA_PCI_SAC_OPT);
Overly long line here.
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
next prev parent reply other threads:[~2022-05-19 7:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-18 17:36 [PATCH] iommu/dma: Add config for PCI SAC address trick Robin Murphy
2022-05-19 7:11 ` Christoph Hellwig [this message]
2022-05-19 10:20 ` John Garry via iommu
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=20220519071146.GB22301@lst.de \
--to=hch@lst.de \
--cc=iommu@lists.linux-foundation.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.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