From: Baolu Lu <baolu.lu@linux.intel.com>
To: 70sp <70sp@protonmail.com>,
"iommu@lists.linux.dev" <iommu@lists.linux.dev>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"regressions@lists.linux.dev" <regressions@lists.linux.dev>
Subject: Re: [REGRESSION] GPU passes into VM improperly after c376a3456d8b or a98db518dde2
Date: Mon, 13 Apr 2026 14:47:42 +0800 [thread overview]
Message-ID: <56ce85d5-e0b9-407c-9a86-708111a8a509@linux.intel.com> (raw)
In-Reply-To: <z7Rkts0EsooZcnCjNfJaK6ursftFU8ubOkH0hcNjzxugEAwGsHLMblOdfoAx-gJzBZ-TMmeUtD7iWBngbFY5UCJCwdSmYqmCVMy-yhbirUk=@protonmail.com>
On 4/12/26 19:17, 70sp wrote:
> Hello,
>
> I have been dealing with a regression launching a Windows QEMU/KVM
> virtual machine with a GPU passed through.
>
> The issue consists of launching a QEMU/KVM VM, which gets stuck for
> about 2 minutes on booting with a white screen and then having NVIDIA’s
> code 43 in Windows.
>
> I’m certain, that the issue is not caused by anything in Windows or
> related software in Linux, because I tried reinstalling my whole PC
> including the Windows VM. I tried to reproduce the bug on an out-of-the-
> box Arch Linux install and the bug is still present.
>
> The first bad commit is either a98db518dde246e01ead53617dc0a30d6aaa3752
> or c376a3456d8bef43ec556a98c0a04c35086c2737. I don’t know for sure which
> one introduced it, because during bisection I had to skip
> a98db518dde246e01ead53617dc0a30d6aaa3752 due to it being unable to
> launch the virtual machine resulting in a different error (didn’t even
> start booting). In kernels before these commits, the VM works flawlessly.
>
> I have tested it on latest mainline kernel and the issue is still
> present. I have been experiencing the issue since kernel 6.13, so I just
> switched to the 6.12 LTS kernel instead which doesn’t have this issue.
>
> Configuration of my Linux install and hardware: https://pastebin.com/
> rcsyyYiK
> .config: https://pastebin.com/RTQCBduD
> dmesg errors: https://pastebin.com/84jPP81E
> lspci: https://pastebin.com/qi29BSWi
>
> #regzbot introduced:
> a98db518dde246e01ead53617dc0a30d6aaa3752..c376a3456d8bef43ec556a98c0a04c35086c2737
Before these commits, if a device was attached to a domain that didn't
perfectly match the hardware's capabilities (such as address width or
coherency), the kernel would dynamically adjust the domain to
accommodate the hardware.
Following these two commits, the driver now applies a "match or fail"
policy. If the domain is incompatible with the device's hardware
capabilities, it returns -EINVAL. This expects the caller to allocate a
new domain dedicated to that specific device and attempt the attachment
again.
Can you please add a message line in paging_domain_compatible() to
verify whether it's a domain compatibility issue?
diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c
index 205debd76989..c7e1e0dfa250 100644
--- a/drivers/iommu/intel/iommu.c
+++ b/drivers/iommu/intel/iommu.c
@@ -3111,8 +3111,10 @@ int paging_domain_compatible(struct iommu_domain
*domain, struct device *dev)
ret =
paging_domain_compatible_second_stage(dmar_domain, iommu);
else if (WARN_ON(true))
ret = -EINVAL;
- if (ret)
+ if (ret) {
+ dev_info(dev, "domain is not compatible with device, ret
= %d", ret);
return ret;
+ }
if (sm_supported(iommu) && !dev_is_real_dma_subdevice(dev) &&
context_copied(iommu, info->bus, info->devfn))
Thanks,
baolu
next parent reply other threads:[~2026-04-13 6:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <z7Rkts0EsooZcnCjNfJaK6ursftFU8ubOkH0hcNjzxugEAwGsHLMblOdfoAx-gJzBZ-TMmeUtD7iWBngbFY5UCJCwdSmYqmCVMy-yhbirUk=@protonmail.com>
2026-04-13 6:47 ` Baolu Lu [this message]
2026-04-14 9:22 ` [REGRESSION] GPU passes into VM improperly after c376a3456d8b or a98db518dde2 70sp
2026-04-12 11:25 70sp
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=56ce85d5-e0b9-407c-9a86-708111a8a509@linux.intel.com \
--to=baolu.lu@linux.intel.com \
--cc=70sp@protonmail.com \
--cc=iommu@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=regressions@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