From: Yee Li <seven.yi.lee@gmail.com>
To: iommu@lists.linux.dev
Subject: Not fully traversing iova reservations bug
Date: Fri, 10 Jan 2025 14:19:10 +0800 [thread overview]
Message-ID: <88b97162-bace-4e9b-b362-4da96a7a2cfe@gmail.com> (raw)
Dear All,
Is there any other method to fix not fully traversing iova reservations bug.
A case:
For multiple devices in the same iommu group, sorted later device (based
on Bus:Dev.Func) have the RMRR.
Sorted earlier device (without RMRR) initialized the iova domain causing
the sorted later device goto done_unlock in iommu_dma_init_domain.
if (iovad->start_pfn) {
if (1UL << order != iovad->granule ||
base_pfn != iovad->start_pfn) {
pr_warn("Incompatible range for DMA domain\n");
ret = -EFAULT;
goto done_unlock;
}
ret = 0;
goto done_unlock;
}
Actually RMRR ignored.
The solution patch link(no response so far):
https://lore.kernel.org/lkml/20240819104219.8057-1-LeoLiu-oc@zhaoxin.com/T/
reply other threads:[~2025-01-10 6:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=88b97162-bace-4e9b-b362-4da96a7a2cfe@gmail.com \
--to=seven.yi.lee@gmail.com \
--cc=iommu@lists.linux.dev \
/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