iommu/vt-d: Disable IOMMU on Lenovo ThinkPad P50s
Subsystems (2)
PATCH 1/1 iommu/vt-d: Disable IOMMU on Lenovo ThinkPad P50s
On Lenovo ThinkPad P50s, enabling Intel IOMMU causes TPM initialization failures, suspend/resume issues, and prevents the system from powering off completely.
The system works correctly with intel_iommu=off. A locally tested kernel with this DMI quirk also works correctly without requiring the kernel parameter.
Add a DMI quirk to disable Intel IOMMU on this platform.
--- drivers/iommu/intel/iommu.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
drivers/iommu/intel/iommu.c +19 -0
@@ -278,6 +278,19 @@ static int __init intel_iommu_setup(char *str)return 1 ; } + +static const struct dmi_system_id intel_iommu_broken_dmar_table[]__initconst = { + { + .ident ="Lenovo ThinkPad P50s" , + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"LENOVO" ), +DMI_MATCH (DMI_PRODUCT_NAME ,"20FLCTO1WW" ), +DMI_MATCH (DMI_PRODUCT_VERSION ,"ThinkPad P50s" ), + }, + }, + {} +}; +__setup ("intel_iommu=" , intel_iommu_setup);/*
@@ -2565,6 +2578,12 @@ int __init intel_iommu_init(void) force_on = (!intel_iommu_tboot_noforce &&tboot_force_iommu ()) ||platform_optin_force_iommu (); +if (!force_on &&dmi_check_system (intel_iommu_broken_dmar_table)) { + dmar_disabled =1 ; + no_platform_optin =1 ; +pr_info ("DMAR: IOMMU disabled on Lenovo ThinkPad P50s due to firmware issue\n" ); + } +down_write (&dmar_global_lock);if (dmar_table_init ()) {if (force_on)
Signature · 1 line
2.53.0
Baolu Lu
maintainerQuoted 26 lines · Oliver Lin
On Lenovo ThinkPad P50s, enabling Intel IOMMU causes TPM initialization failures, suspend/resume issues, and prevents the system from powering off completely.
The system works correctly with intel_iommu=off. A locally tested kernel with this DMI quirk also works correctly without requiring the kernel parameter.
Add a DMI quirk to disable Intel IOMMU on this platform.
--- drivers/iommu/intel/iommu.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)drivers/iommu/intel/iommu.c +2
-0@@ -278,6 +278,19 @@ static int __init intel_iommu_setup(char *str)return 1 ; } + +static const struct dmi_system_id intel_iommu_broken_dmar_table[]__initconst = {
drivers/iommu/intel/iommu.c static int __init intel_iommu_setup(char *str) · line 292
Quoted 10 lines
drivers/iommu/intel/iommu.c +10
-0+ { + .ident = "Lenovo ThinkPad P50s", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_NAME, "20FLCTO1WW"), + DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad P50s"), + }, + }, + {} +};
Is this a broken ACPI DMAR table? If so, please try updating to the latest firmware. Otherwise, report the issue to the laptop vendor and ask them to resolve it, especially if they claim their product supports Linux.
Thanks,
baolu
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Baolu,
Thanks for the feedback.
I will investigate the DMAR table further and provide acpidump + dmesg comparison in the next revision.
Best regards,
Oliver
PATCH 1/1 iommu/vt-d: respect user override for intel_iommu=on on Lenovo ThinkPad P50s
From: oliver <[email protected]>
The current DMI quirk disables VT-d on ThinkPad P50s unconditionally, even when intel_iommu=on is explicitly requested via kernel command line.
This breaks kernel parameter precedence and user intent.
Make the quirk conditional so that it does not override explicit user enabling of Intel IOMMU.
--- drivers/iommu/intel/iommu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/iommu/intel/iommu.c +5 -1
@@ -201,6 +201,7 @@ static void intel_iommu_domain_free(struct iommu_domain *domain);int dmar_disabled = !IS_ENABLED (CONFIG_INTEL_IOMMU_DEFAULT_ON );int intel_iommu_sm =IS_ENABLED (CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON ); +static int intel_iommu_cmdline_on;int intel_iommu_enabled =0 ;EXPORT_SYMBOL_GPL (intel_iommu_enabled);
@@ -241,10 +242,12 @@ static int __init intel_iommu_setup(char *str)while (*str) {if (!strncmp (str,"on" ,2 )) { dmar_disabled =0 ; + intel_iommu_cmdline_on =1 ;pr_info ("IOMMU enabled\n" ); }else if (!strncmp (str,"off" ,3 )) { dmar_disabled =1 ; no_platform_optin =1 ; + intel_iommu_cmdline_on =0 ;pr_info ("IOMMU disabled\n" ); }else if (!strncmp (str,"igfx_off" ,8 )) { disable_igfx_iommu =1 ;
@@ -2578,7 +2581,8 @@ int __init intel_iommu_init(void) force_on = (!intel_iommu_tboot_noforce &&tboot_force_iommu ()) ||platform_optin_force_iommu (); -if (!force_on &&dmi_check_system (intel_iommu_broken_dmar_table)) { +if (!force_on && !intel_iommu_cmdline_on && +dmi_check_system (intel_iommu_broken_dmar_table)) { dmar_disabled =1 ; no_platform_optin =1 ;pr_info ("DMAR: IOMMU disabled on Lenovo ThinkPad P50s due to firmware issue\n" );
Signature · 1 line
2.53.0
Baolu Lu
maintainerRe: [PATCH] iommu/vt-d: respect user override for intel_iommu=on on Lenovo ThinkPad P50s
Quoted 4 lines · Oliver Lin
From: oliver<[email protected]>
The current DMI quirk disables VT-d on ThinkPad P50s unconditionally, even when intel_iommu=on is explicitly requested via kernel command line.
The current driver doesn't have the DMI quirk, so this patch cannot be applied to the tree as-is.
Quoted 9 lines
This breaks kernel parameter precedence and user intent.
Make the quirk conditional so that it does not override explicit user enabling of Intel IOMMU.
Signed-off-by Oliver<[email protected]>--- drivers/iommu/intel/iommu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
Thanks,
baolu
PATCH v3 1/1 iommu/vt-d: Disable IOMMU by default on Lenovo ThinkPad P50s
Lenovo ThinkPad P50s exhibits firmware issues when Intel VT-d is enabled.
With IOMMU enabled, the system reports DMAR DMA faults during boot, TPM 2.0 (tpm_crb) fails to initialize with timeout errors, and the machine cannot shut down or resume reliably. Booting with intel_iommu=off avoids these issues.
Add a DMI quirk to disable Intel IOMMU by default on this platform. If the user explicitly specifies intel_iommu=on on the kernel command line, do not apply the quirk so that VT-d can still be enabled for testing and debugging.
--- drivers/iommu/intel/iommu.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)
drivers/iommu/intel/iommu.c +23 -0
@@ -201,6 +201,7 @@ static void intel_iommu_domain_free(struct iommu_domain *domain);int dmar_disabled = !IS_ENABLED (CONFIG_INTEL_IOMMU_DEFAULT_ON );int intel_iommu_sm =IS_ENABLED (CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON ); +static int intel_iommu_cmdline_on;int intel_iommu_enabled =0 ;EXPORT_SYMBOL_GPL (intel_iommu_enabled);
@@ -241,10 +242,12 @@ static int __init intel_iommu_setup(char *str)while (*str) {if (!strncmp (str,"on" ,2 )) { dmar_disabled =0 ; + intel_iommu_cmdline_on =1 ;pr_info ("IOMMU enabled\n" ); }else if (!strncmp (str,"off" ,3 )) { dmar_disabled =1 ; no_platform_optin =1 ; + intel_iommu_cmdline_on =0 ;pr_info ("IOMMU disabled\n" ); }else if (!strncmp (str,"igfx_off" ,8 )) { disable_igfx_iommu =1 ;
@@ -278,6 +281,19 @@ static int __init intel_iommu_setup(char *str)return 1 ; } + +static const struct dmi_system_id intel_iommu_broken_dmar_table[]__initconst = { + { + .ident ="Lenovo ThinkPad P50s" , + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"LENOVO" ), +DMI_MATCH (DMI_PRODUCT_NAME ,"20FLCTO1WW" ), +DMI_MATCH (DMI_PRODUCT_VERSION ,"ThinkPad P50s" ), + }, + }, + {} +}; +__setup ("intel_iommu=" , intel_iommu_setup);/*
@@ -2565,6 +2581,13 @@ int __init intel_iommu_init(void) force_on = (!intel_iommu_tboot_noforce &&tboot_force_iommu ()) ||platform_optin_force_iommu (); +if (!force_on && !intel_iommu_cmdline_on && +dmi_check_system (intel_iommu_broken_dmar_table)) { + dmar_disabled =1 ; + no_platform_optin =1 ; +pr_info ("DMAR: IOMMU disabled on Lenovo ThinkPad P50s due to firmware issue\n" ); + } +down_write (&dmar_global_lock);if (dmar_table_init ()) {if (force_on)
Signature · 1 line
2.53.0
Baolu Lu
maintainerRe: [PATCH v3] iommu/vt-d: Disable IOMMU by default on Lenovo ThinkPad P50s
Quoted 1 line · Oliver Lin
Lenovo ThinkPad P50s exhibits firmware issues when Intel VT-d is enabled.
Why not fix the firmware issue instead?
Quoted 4 lines
With IOMMU enabled, the system reports DMAR DMA faults during boot, TPM 2.0 (
tpm_crb) fails to initialize with timeout errors, and the machine cannot shut down or resume reliably. Booting with intel_iommu=off avoids these issues.
So the driver already provides a command-line workaround for this firmware issue, right? Why is a hardcoded kernel quirk necessary here?
Quoted 10 lines
Add a DMI quirk to disable Intel IOMMU by default on this platform. If the user explicitly specifies intel_iommu=on on the kernel command line, do not apply the quirk so that VT-d can still be enabled for testing and debugging.
Signed-off-by Oliver Lin <[email protected]>--- drivers/iommu/intel/iommu.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)
[..snip...]
Thanks,
baolu
Re: [PATCH v3] iommu/vt-d: Disable IOMMU by default on Lenovo ThinkPad P50s
Quoted 5 lines · Baolu Lu
Why not fix the firmware issue instead?
So the driver already provides a command-line workaround for this
firmware issue, right? Why is a hardcoded kernel quirk necessary here?
Thanks for the review.
The machine is already running the latest available Lenovo BIOS, version 1.45. I am not aware of any newer firmware update that fixes the issue, and the ThinkPad P50s is no longer receiving firmware updates from Lenovo.
Yes, intel_iommu=off provides a working command-line workaround. With VT-d enabled, however, the issue occurs during a normal default boot and causes several unrelated failures: DMAR faults are reported, tpm_crb times out during initialization, and shutdown and suspend/resume are unreliable. Adding intel_iommu=off consistently avoids all of these failures.
My reason for proposing a DMI quirk was that users installing a current kernel on this platform would otherwise encounter a partially unusable system without knowing that the failures are caused by VT-d or that intel_iommu=off is required.
That said, I understand the concern about disabling IOMMU functionality based on a single platform report. At the moment, my testing is limited to one ThinkPad P50s. I can provide the full DMAR, TPM, shutdown, and resume logs for both configurations, and I can also look for reports or testing from additional P50s systems before pursuing the quirk further.
Would additional reproductions from other P50s machines be required before a DMI quirk could be considered, or would you prefer that this remain a documented command-line workaround?
Thanks,
Oliver
Re: [PATCH v3] iommu/vt-d: Disable IOMMU by default on Lenovo ThinkPad P50s
Hi Baolu,
Just following up on this patch.
I was wondering if there are any further concerns about the approach, or if additional testing/logs from other ThinkPad P50s systems would help evaluate whether a DMI quirk is appropriate.
Thanks,
Oliver
RE: [PATCH v3] iommu/vt-d: Disable IOMMU by default on Lenovo ThinkPad P50s
In reply to Oliver LinQuoted 3 lines
From: Oliver Lin <[email protected]>
Sent: Monday, July 13, 2026 10:28 AM
[...]
Quoted 10 lines
That said, I understand the concern about disabling IOMMU functionality based on a single platform report. At the moment, my testing is limited to one ThinkPad P50s. I can provide the full DMAR, TPM, shutdown, and resume logs for both configurations, and I can also look for reports or testing from additional P50s systems before pursuing the quirk further.
Would additional reproductions from other P50s machines be required before a DMI quirk could be considered, or would you prefer that this remain a documented command-line workaround?
This needs an official erratum disclosure from the vendor...
Re: [PATCH v3] iommu/vt-d: Disable IOMMU by default on Lenovo ThinkPad P50s
Quoted 1 line · Kevin
This needs an official erratum disclosure from the vendor...
Thanks for the clarification.
Could you please advise whether this issue should be treated as an Intel VT-d erratum or a Lenovo firmware issue?
The symptom is:
- ThinkPad P50s with VT-d enabled cannot fully power off.
- Adding intel_iommu=off resolves the issue.
- The issue is reproducible on this platform.
If Intel erratum is not applicable, would a Lenovo firmware confirmation be sufficient for adding a platform quirk?
RE: [PATCH v3] iommu/vt-d: Disable IOMMU by default on Lenovo ThinkPad P50s
Quoted 10 lines
From: Oliver Lin <[email protected]>
Sent: Monday, July 27, 2026 11:22 AMQuoted 1 line · Kevin
This needs an official erratum disclosure from the vendor...
Thanks for the clarification.
Could you please advise whether this issue should be treated as an Intel VT-d erratum or a Lenovo firmware issue?
Quoted 7 lines
The symptom is:
- ThinkPad P50s with VT-d enabled cannot fully power off.
- Adding intel_iommu=off resolves the issue.
- The issue is reproducible on this platform.If Intel erratum is not applicable, would a Lenovo firmware confirmation be sufficient for adding a platform quirk?
If it's confirmed to be a hardware issue, it should be (or will be) documented as an VT-d erratum. Then a quirk could be added accordingly.
If Lenovo confirms to be a firmware issue, then they should release a new firmware version to fix it. It doesn't justify a quirk in iommu driver.
and it is not about a policy "whether this issue should be *treated* as...". It needs a root cause first.
Re: [PATCH v3] iommu/vt-d: Disable IOMMU by default on Lenovo ThinkPad P50s
Quoted 8 lines · Kevin
If it's confirmed to be a hardware issue, it should be (or will be) documented as an VT-d erratum. Then a quirk could be added accordingly.
If Lenovo confirms to be a firmware issue, then they should release a new firmware version to fix it. It doesn't justify a quirk in iommu driver.
and it is not about a policy "whether this issue should be *treated* as...". It needs a root cause first.
Hi Kevin,
I performed additional investigation on the DMA fault.
With intel_iommu enabled:
DMAR: [DMA Read NO_PASID] Request device [0000:00:12.4] fault addr 0xb7fff000 [fault reason 0x02] Present bit in context entry is clear
However, requester ID 0000:00:12.4 does not appear in PCI enumeration:
- lspci -nn -s 00:12.4 returns no output
- lspci -xxxx -s 00:12.0 through 00:12.4 all return no device
- /sys/bus/pci/devices/ contains no matching entry
I also checked the firmware-provided ACPI DMAR table. It contains scopes for 00:02.0 and 00:14.0, but no scope for 00:12.4.
Could this requester ID correspond to an internal platform device, or does this suggest a firmware/platform issue?
Thanks.
RE: [PATCH v3] iommu/vt-d: Disable IOMMU by default on Lenovo ThinkPad P50s
Quoted 30 lines
From: Oliver Lin <[email protected]>
Sent: Monday, July 27, 2026 12:49 PMQuoted 1 line · Kevin
If it's confirmed to be a hardware issue, it should be (or will be)
documented
Quoted 7 lines
as an VT-d erratum. Then a quirk could be added accordingly.
If Lenovo confirms to be a firmware issue, then they should release a new firmware version to fix it. It doesn't justify a quirk in iommu driver.
and it is not about a policy "whether this issue should be *treated* as...". It needs a root cause first.
Hi Kevin,
I performed additional investigation on the DMA fault.
With
intel_iommuenabled:DMAR: [DMA Read
NO_PASID] Request device [0000:00:12.4] fault addr0xb7fff000[fault reason0x02] Present bit in context entry is clearHowever, requester ID 0000:00:12.4 does not appear in PCI enumeration:
-
lspci -nn -s 00:12.4returns no output
-lspci -xxxx -s 00:12.0through00:12.4all return no device
-/sys/bus/pci/devices/contains no matching entry
Quoted 6 lines
I also checked the firmware-provided ACPI DMAR table. It contains scopes for 00:02.0 and 00:14.0, but no scope for 00:12.4.
Could this requester ID correspond to an internal platform device, or does this suggest a
firmware/platformissue?
from a hidden device? no idea... You should report this issue to Lenovo first as only they know the detail of this platform.