mbox series

[0/1,SRU,OEM-6.0/Unstable] use IOMMU passthrough mode for Intel IPUs on Intel Raptor Lake platforms

Message ID 20220913175019.1483658-1-vicamo.yang@canonical.com
Headers show
Series use IOMMU passthrough mode for Intel IPUs on Intel Raptor Lake platforms | expand

Message

You-Sheng Yang Sept. 13, 2022, 5:50 p.m. UTC
From: "You-Sheng Yang (vicamo)" <vicamo.yang@canonical.com>

BugLink: https://bugs.launchpad.net/bugs/1989041

[Impact]

Intel iommu was turned on by default in mainline build v5.15.5 or jammy
-generic kernel 5.15.0-12.12. This would breaks IPU6.

For TGL and ADL platforms, it has been fixed in bug 1958004 for oem-5.14 and
above. This patch adds a new ID for RPL.

[Fix]

Use IOMMU passthrough mode for IPU6 as it has its own iommu hardware.

[Test Case]

Apply the fix and kernel should print a new info line:

  Passthrough IOMMU for integrated Intel IPU

and IPU6 camera should continue to work without intel_iommu=off
work-around.

[Where problems could occur]

No. That's what it should have been done.

[Other Info]

Nominates only oem-6.0 and unstable for we have RPL IPU6 enabled on oem-6.0
and newer.

zouxiaoh (1):
  UBUNTU: SAUCE: iommu: intel-ipu: use IOMMU passthrough mode for Intel
    IPUs on Raptor Lake

 drivers/iommu/intel/iommu.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Timo Aaltonen Oct. 24, 2022, 3:25 p.m. UTC | #1
You-Sheng Yang kirjoitti 13.9.2022 klo 20.50:
> From: "You-Sheng Yang (vicamo)" <vicamo.yang@canonical.com>
> 
> BugLink: https://bugs.launchpad.net/bugs/1989041
> 
> [Impact]
> 
> Intel iommu was turned on by default in mainline build v5.15.5 or jammy
> -generic kernel 5.15.0-12.12. This would breaks IPU6.
> 
> For TGL and ADL platforms, it has been fixed in bug 1958004 for oem-5.14 and
> above. This patch adds a new ID for RPL.
> 
> [Fix]
> 
> Use IOMMU passthrough mode for IPU6 as it has its own iommu hardware.
> 
> [Test Case]
> 
> Apply the fix and kernel should print a new info line:
> 
>    Passthrough IOMMU for integrated Intel IPU
> 
> and IPU6 camera should continue to work without intel_iommu=off
> work-around.
> 
> [Where problems could occur]
> 
> No. That's what it should have been done.
> 
> [Other Info]
> 
> Nominates only oem-6.0 and unstable for we have RPL IPU6 enabled on oem-6.0
> and newer.
> 
> zouxiaoh (1):
>    UBUNTU: SAUCE: iommu: intel-ipu: use IOMMU passthrough mode for Intel
>      IPUs on Raptor Lake
> 
>   drivers/iommu/intel/iommu.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 

applied to oem-6.0

but as khfeng said, this should go in mainline