From: Matthew Rosato <mjrosato@linux.ibm.com>
To: joro@8bytes.org, will@kernel.org, robin.murphy@arm.com,
gerald.schaefer@linux.ibm.com, schnelle@linux.ibm.com
Cc: hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com,
svens@linux.ibm.com, borntraeger@linux.ibm.com,
clegoate@redhat.com, iommu@lists.linux.dev,
linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org
Subject: Re: [PATCH 0/7] iommu/s390: support additional table regions
Date: Mon, 9 Dec 2024 14:27:04 -0500 [thread overview]
Message-ID: <ed43d5bb-313f-477b-b453-375c9721cafb@linux.ibm.com> (raw)
In-Reply-To: <20241209192549.107226-1-mjrosato@linux.ibm.com>
On 12/9/24 2:25 PM, Matthew Rosato wrote:
> The series extends the maximum table size allowed by s390-iommu by
> increasing the number of table regions supported. It also adds logic to
> construct the table use the minimum number of regions based upon aperture
> calculation.
>
> Matthew Rosato (7):
> iommu/s390: add initial fields to track table size
> s390/pci: set appropriate IOTA region type
> iommu/s390: add basic routines for region 1st and 2nd tables
> iommu/s390: support cleanup of additional table regions
> iommu/s390: support iova_to_phys for additional table regions
> iommu/s390: support map/unmap for additional table regions
> iommu/s390: allow larger region tables
>
> arch/s390/include/asm/pci.h | 2 +
> arch/s390/include/asm/pci_dma.h | 3 +
> arch/s390/pci/pci.c | 17 +-
> drivers/iommu/s390-iommu.c | 289 +++++++++++++++++++++++++++++---
> 4 files changed, 285 insertions(+), 26 deletions(-)
>
One note: this series and 'iommu/s390: add support for IOMMU passthrough' have a minor merge conflict but are otherwise independent. If anyone would care to test with both series simultaneously here is the conflict resolution of merging this series on top of 'iommu/s390: add support for IOMMU passthrough':
diff --cc arch/s390/pci/pci.c
index 758b23331754,9f7adf913729..291a3ee4d059
--- a/arch/s390/pci/pci.c
+++ b/arch/s390/pci/pci.c
@@@ -130,10 -146,7 +145,10 @@@ int zpci_register_ioat(struct zpci_dev
fib.pal = limit + (1 << 12);
else
fib.pal = limit;
- fib.iota = iota | zpci_get_iota_region_flag(zdev);
+ if (iota == 0)
+ fib.iota = iota;
+ else
- fib.iota = iota | ZPCI_IOTA_RTTO_FLAG;
++ fib.iota = iota | zpci_get_iota_region_flag(zdev);
fib.gd = zdev->gisa;
cc = zpci_mod_fc(req, &fib, status);
if (cc)
prev parent reply other threads:[~2024-12-09 19:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-09 19:25 Matthew Rosato
2024-12-09 19:25 ` [PATCH 1/7] iommu/s390: add initial fields to track table size Matthew Rosato
2024-12-09 19:25 ` [PATCH 2/7] s390/pci: set appropriate IOTA region type Matthew Rosato
2024-12-09 19:25 ` [PATCH 3/7] iommu/s390: add basic routines for region 1st and 2nd tables Matthew Rosato
2024-12-11 10:57 ` Thomas Huth
2024-12-09 19:25 ` [PATCH 4/7] iommu/s390: support cleanup of additional table regions Matthew Rosato
2024-12-09 19:25 ` [PATCH 5/7] iommu/s390: support iova_to_phys for " Matthew Rosato
2024-12-09 19:25 ` [PATCH 6/7] iommu/s390: support map/unmap " Matthew Rosato
2024-12-09 19:25 ` [PATCH 7/7] iommu/s390: allow larger region tables Matthew Rosato
2024-12-09 19:27 ` Matthew Rosato [this message]
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=ed43d5bb-313f-477b-b453-375c9721cafb@linux.ibm.com \
--to=mjrosato@linux.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=clegoate@redhat.com \
--cc=gerald.schaefer@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=robin.murphy@arm.com \
--cc=schnelle@linux.ibm.com \
--cc=svens@linux.ibm.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
all inboxes | Powered by JetHome®