Support mipi camera on Intel Meteor Lake platform

Bug #2031412 reported by You-Sheng Yang
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HWE Next
New
Undecided
Unassigned
ipu6-drivers (Ubuntu)
Status tracked in Noble
Jammy
Won't Fix
Undecided
Unassigned
Mantic
In Progress
High
You-Sheng Yang
Noble
Fix Released
High
You-Sheng Yang
ivsc-driver (Ubuntu)
Status tracked in Noble
Jammy
Won't Fix
Undecided
Unassigned
Mantic
In Progress
High
You-Sheng Yang
Noble
Fix Released
High
You-Sheng Yang
linux (Ubuntu)
Status tracked in Noble
Jammy
Won't Fix
Undecided
Unassigned
Mantic
Fix Committed
High
You-Sheng Yang
Noble
Triaged
High
You-Sheng Yang
linux-firmware (Ubuntu)
Status tracked in Noble
Jammy
Fix Released
High
You-Sheng Yang
Mantic
Fix Released
High
You-Sheng Yang
Noble
Fix Released
High
You-Sheng Yang
linux-oem-6.5 (Ubuntu)
Status tracked in Noble
Jammy
Fix Released
High
You-Sheng Yang
Mantic
Invalid
Undecided
Unassigned
Noble
Invalid
Undecided
Unassigned

Bug Description

[SRU Justification]

========== ipu6-driver ==========

[Impact]

Missing Intel MIPI firmware for Meteor Lake platform.

[Fix]

Based on upstream tag https://github.com/intel/ipu6-drivers/releases/tag/Release_20231019, and an additional patch to enable/fix compilation of additional sensor modules.

[Test Case]

This is verified on MTL Lattice and VSC platforms, as well as previous generations e.g. TGL and ADL.

To actually verify the camera framework:
```
$ sudo add-apt-repository ppa:oem-solutions-group/intel-ipu6
$ sudo add-apt-repository ppa:canonical-hwe-team/intermediate-kernel
$ sudo apt install linux-oem-22.04d-exp
$ sudo apt install linux-modules-ipu6-oem-22.04d-exp
$ sudo apt install linux-modules-ivsc-oem-22.04d-exp
$ sudo apt install linux-modules-usbio-oem-22.04d-exp
$ sudo apt install gstreamer1.0-icamera v4l2-relayd
```
And then browse https://webcamtests.com/ for testing.

[Where problems could occur]

This is a new platform. We've been verifying its functions and features, and
are still polishing it.

[Other Info]

While Intel Meteor Lake is only supported by linux-oem-6.5/jammy and
linux/mantic and on, and yet the lastest stable driver was verified after Mantic was released, it's being proposed to Noble instead.

========== ivsc-driver ==========

[Impact]

Missing Intel MIPI firmware for Meteor Lake platform.

[Fix]

4 commits from the latest trunk branch on upstream repository https://github.com/intel/ivsc-driver.

[Test Case]

With all other changes in position, Intel VSC driver modules are to be loaded as a soft dependency of some selected camera sensor modules. LJCA modules should be loaded automatically on MTL platforms as well.

To actually verify the camera framework:
```
$ sudo add-apt-repository ppa:oem-solutions-group/intel-ipu6
$ sudo add-apt-repository ppa:canonical-hwe-team/intermediate-kernel
$ sudo apt install linux-oem-22.04d-exp
$ sudo apt install linux-modules-ipu6-oem-22.04d-exp
$ sudo apt install linux-modules-ivsc-oem-22.04d-exp
$ sudo apt install linux-modules-usbio-oem-22.04d-exp
$ sudo apt install gstreamer1.0-icamera v4l2-relayd
```
And then browse https://webcamtests.com/ for testing.

[Where problems could occur]

While it changes how LJCA modules match from ACPI ID, it's also tested and verified on previous generations using IVSC, e.g. TGL, ADL.

[Other Info]

While Intel Meteor Lake is only supported by linux-oem-6.5/jammy and
linux/mantic and on, and yet the lastest stable driver was verified after Mantic was released, it's being proposed to Noble instead.

========== linux/linux-oem-6.5 ==========

[Impact]

Need kernel driver fixes for int3472/iommu for Intel IPU6 platform on MTL.

[Fix]

Two fixes in need. One, we need IOMMU passthrough for MTL platform. The other, fix is for handshake pin support for Lattice MIPI aggregator.

The Intel IPU6 camera drivers are not yet all upstreamed yet. So far
Intel VSC, LJCA (the previous MIPI aggregator for ADL/RPL platforms) are
in v6.6 already, and IPU6 ISYS is under upstream review. More components
to come according to Intel.

These two fixes are therefore for related components for not-yet fully
upstreamed IPU6 as needed for out-of-tree dkms drivers.

[Test Case]

```
$ sudo dmesg | grep "Passthrough IOMMU for integrated Intel IPU"
$ sudo dmesg | grep int3472
# should have no "int3472-discrete INT3472:0c: GPIO type 0x12 unknown; the sensor may not work"
```

[Where problems could occur]

IOMMU Passthrough as necessary to enable IPU6 on Intel platforms, and it has been patching a few generations e.g. Bug 1989041 for Raptor Lake, Bug 1958004 for TGL and ADL. As IPU is not an external facing device which is not risky.

For INT3472, the proposed patch might receive further updates per current upstream reviewers' opinions.

[Other Info]

Nominated for linux/mantic and oem-6.5/jammy as they're for MTL.

========== linux-firmware ==========

[Impact]

Missing Intel MIPI firmware for Meteor Lake platform.

[Fix]

Firmware blobs from upstream ipu6-camera-bins repository.

[Test Case]

With firmware loaded correctly, there should be firmware version printed:

  intel-ipu6 intel-ipu: FW version: 20220510

For camera functions, we'll need also updates in the ipu6-drivers, ivsc-drivers
dkms as well.

[Where problems could occur]

This is a new platform. We've been verifying its functions and features, and
are still polishing it.

[Other Info]

While Intel Meteor Lake is only supported by linux-oem-6.5/jammy and
linux/mantic, so only Jammy/Mantic are nominated.

You-Sheng Yang (vicamo)
tags: added: oem-priority originate-from-2026688 somerville
tags: added: originate-from-1998160
Changed in linux-firmware (Ubuntu Jammy):
status: New → In Progress
Juerg Haefliger (juergh)
tags: added: kern-7771
Revision history for this message
You-Sheng Yang (vicamo) wrote :

It appears linux/mantic is going to receive updates of v6.5 kernel.

Changed in linux-firmware (Ubuntu Mantic):
assignee: nobody → You-Sheng Yang (vicamo)
importance: Undecided → High
status: New → In Progress
Changed in linux-firmware (Ubuntu Jammy):
assignee: nobody → You-Sheng Yang (vicamo)
importance: Undecided → High
Revision history for this message
You-Sheng Yang (vicamo) wrote :
description: updated
description: updated
Revision history for this message
You-Sheng Yang (vicamo) wrote :

linux-firmware SRU:
* https://lists.ubuntu.com/archives/kernel-team/2023-September/143027.html (mantic, V2, rebase only)

Juerg Haefliger (juergh)
Changed in linux-firmware (Ubuntu Jammy):
status: In Progress → Fix Committed
Changed in linux-firmware (Ubuntu Mantic):
status: In Progress → Fix Committed
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello You-Sheng, or anyone else affected,

Accepted linux-firmware into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/linux-firmware/20220329.git681281e4-0ubuntu3.19 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-firmware - 20230919.git3672ccab-0ubuntu2

---------------
linux-firmware (20230919.git3672ccab-0ubuntu2) mantic; urgency=medium

  * Support mipi camera on Intel Meteor Lake platform (LP: #2031412)
    - SAUCE: Update Intel IPU6 firmware

 -- Juerg Haefliger <email address hidden> Fri, 22 Sep 2023 15:21:03 +0200

Changed in linux-firmware (Ubuntu Mantic):
status: Fix Committed → Fix Released
Timo Aaltonen (tjaalton)
tags: added: verification-needed-jammy
You-Sheng Yang (vicamo)
tags: added: verification-done-jammy
removed: verification-needed-jammy
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Affects linux-oem-6.5/jammy, linux/mantic for IOMMU passthrough for Intel Meteor Lake B stepping.

Changed in linux-oem-6.5 (Ubuntu Mantic):
assignee: nobody → You-Sheng Yang (vicamo)
importance: Undecided → High
status: New → Triaged
assignee: You-Sheng Yang (vicamo) → nobody
importance: High → Undecided
status: Triaged → Invalid
Changed in linux-oem-6.5 (Ubuntu Jammy):
assignee: nobody → You-Sheng Yang (vicamo)
importance: Undecided → High
status: New → Triaged
Changed in linux (Ubuntu Jammy):
status: New → Won't Fix
Changed in linux (Ubuntu Mantic):
assignee: nobody → You-Sheng Yang (vicamo)
importance: Undecided → High
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-firmware - 20220329.git681281e4-0ubuntu3.19

---------------
linux-firmware (20220329.git681281e4-0ubuntu3.19) jammy; urgency=medium

  * Missing firmware for Intel VPU on Intel Meteor Lake platforms (LP: #2031882)
    - SAUCE: Add firmware for Intel VPU on Meteor Lake platforms
  * Support Realtek RTL8852CE WiFi 6E/BT Combo (LP: #2025672)
    - rtl_bt: Add firmware v2 file for RTL8852C
    - rtw89: 8852c: update fw to v0.27.56.8
    - rtw89: 8852c: update fw to v0.27.56.9
    - rtw89: 8852c: update fw to v0.27.56.10
    - rtw89: 8852c: update fw to v0.27.56.13
  * S3 stress issue for amdgpu Navi 31/Navi33 (LP: #2024427)
    - amdgpu: update GC 11.0.0 firmware for amd.5.5 release
    - amdgpu: update GC 11.0.2 firmware for amd.5.5 release
  * Support mipi camera on Intel Meteor Lake platform (LP: #2031412)
    - SAUCE: Update Intel IPU6 firmware

 -- Juerg Haefliger <email address hidden> Fri, 22 Sep 2023 15:10:51 +0200

Changed in linux-firmware (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Update Released

The verification of the Stable Release Update for linux-firmware has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
You-Sheng Yang (vicamo) wrote :
You-Sheng Yang (vicamo)
description: updated
Changed in linux (Ubuntu Mantic):
status: Triaged → In Progress
Changed in linux-oem-6.5 (Ubuntu Jammy):
status: Triaged → In Progress
Revision history for this message
You-Sheng Yang (vicamo) wrote :
Revision history for this message
You-Sheng Yang (vicamo) wrote :
Revision history for this message
You-Sheng Yang (vicamo) wrote :
description: updated
Changed in linux (Ubuntu Mantic):
status: In Progress → Fix Committed
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Attach debdiff for noble. Need sponsoring.

Changed in ivsc-driver (Ubuntu Jammy):
status: New → Won't Fix
Changed in ipu6-drivers (Ubuntu Jammy):
status: New → Won't Fix
Changed in ipu6-drivers (Ubuntu Noble):
assignee: nobody → You-Sheng Yang (vicamo)
importance: Undecided → High
status: New → In Progress
Changed in ivsc-driver (Ubuntu Noble):
assignee: nobody → You-Sheng Yang (vicamo)
importance: Undecided → High
status: New → In Progress
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Attach debdiff for ivsc-driver/noble. Need sponsoring.

You-Sheng Yang (vicamo)
description: updated
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Re-do debdiff against latest version 0~git202302081010.7fdfb5eb-0ubuntu0.23.10.2 instead.

You-Sheng Yang (vicamo)
description: updated
You-Sheng Yang (vicamo)
description: updated
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-oem-6.5/6.5.0-1007.7 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-jammy-linux-oem-6.5' to 'verification-done-jammy-linux-oem-6.5'. If the problem still exists, change the tag 'verification-needed-jammy-linux-oem-6.5' to 'verification-failed-jammy-linux-oem-6.5'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-jammy-linux-oem-6.5-v2 verification-needed-jammy-linux-oem-6.5
You-Sheng Yang (vicamo)
tags: added: verification-done-jammy-linux-oem-6.5
removed: verification-needed-jammy-linux-oem-6.5
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux/6.5.0-12.12 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-mantic-linux' to 'verification-done-mantic-linux'. If the problem still exists, change the tag 'verification-needed-mantic-linux' to 'verification-failed-mantic-linux'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-mantic-linux-v2 verification-needed-mantic-linux
Timo Aaltonen (tjaalton)
Changed in linux-oem-6.5 (Ubuntu Jammy):
status: In Progress → Fix Committed
You-Sheng Yang (vicamo)
tags: added: verification-done-mantic-linux
removed: verification-needed-mantic-linux
You-Sheng Yang (vicamo)
Changed in ipu6-drivers (Ubuntu Mantic):
assignee: nobody → You-Sheng Yang (vicamo)
importance: Undecided → High
status: New → Triaged
Changed in ivsc-driver (Ubuntu Mantic):
assignee: nobody → You-Sheng Yang (vicamo)
importance: Undecided → High
status: New → Triaged
Timo Aaltonen (tjaalton)
Changed in ipu6-drivers (Ubuntu Noble):
status: In Progress → Fix Committed
Changed in ivsc-driver (Ubuntu Noble):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ivsc-driver - 0~git202212210258.94ecb88b-0ubuntu0.24.04.1

---------------
ivsc-driver (0~git202212210258.94ecb88b-0ubuntu0.24.04.1) noble; urgency=low

  [ You-Sheng Yang ]
  * Support mipi camera on Intel Meteor Lake platform (LP: #2031412)
    - ljca: try to find acpi device from hub device
    - mei-vsc: port mei api change in v6.2
    - mfd: ljca: Fix try_match_acpi_hid return value checking
    - misc: spi-vsc: Fix cvfd_ids array with terminator

 -- You-Sheng Yang <email address hidden> Wed, 23 Aug 2023 00:11:46 +0800

Changed in ivsc-driver (Ubuntu Noble):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ipu6-drivers - 0~git202310180730.3f813580-0ubuntu0.24.04.1

---------------
ipu6-drivers (0~git202310180730.3f813580-0ubuntu0.24.04.1) noble; urgency=low

  [ Hao Yao ]
  * New upstream 20230802_1500_mtl_plat release.
  * New upstream 20230911_0620_mtl_plat_pv release.

  [ Hans de Goede ]
  * Fix compilation with kernels >= 6.5.0 (LP: #2026402)
    - ipu-psys: Fix compilation with kernels >= 6.5.0
    - ipu6: Fix compilation with kernels >= 6.6.0
    - ipu6: Fix sensor driver compilation with kernels >= 6.6.0

  [ You-Sheng Yang ]
  * Support mipi camera on Intel Meteor Lake platform (LP: #2031412)
    - debian: refresh patches
  * dkms: add CONFIG_VIDEO_V4L2_I2C to BUILD_EXCLUSIVE_CONFIG (LP: #2012407)
  * debian: add modaliases (LP: #2021740)
  * UBUNTU: SAUCE: i2c: compile omitted sensor drivers

 -- You-Sheng Yang <email address hidden> Fri, 01 Sep 2023 17:51:53 +0800

Changed in ipu6-drivers (Ubuntu Noble):
status: Fix Committed → Fix Released
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Add debdiff for ipu6-drivers/mantic since it's landed in Noble already. This is identical to that in ipu6-drivers/noble except for the version string. It's a version bump, as we need this for linux-oem-6.5 builds that tracks ipu6-drivers/mantic.

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Add debdiff for ivsc-driver/mantic since it's landed in Noble already. This is identical to that in ivsc-driver/noble except for the version string. It's a version bump, as we need this for linux-oem-6.5 builds that tracks ivsc-driver/mantic.

Changed in ipu6-drivers (Ubuntu Mantic):
status: Triaged → In Progress
Changed in ivsc-driver (Ubuntu Mantic):
status: Triaged → In Progress
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Need sponsors for Mantic SRU.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-oem-6.5 - 6.5.0-1007.7

---------------
linux-oem-6.5 (6.5.0-1007.7) jammy; urgency=medium

  * jammy/linux-oem-6.5: 6.5.0-1007.7 -proposed tracker (LP: #2041654)

  * Support speaker mute hotkey for Cirrus CS35L41 HDA codec (LP: #2039151)
    - ALSA: hda: cs35l41: Support systems with missing _DSD properties
    - ALSA: hda: cs35l41: Fix the loop check in cs35l41_add_dsd_properties
    - ALSA: hda: cs35l41: Add notification support into component binding
    - ALSA: hda/realtek: Support ACPI Notification framework via component binding
    - ALSA: hda: cs35l41: Support mute notifications for CS35L41 HDA
    - ALSA: hda: cs35l41: Add read-only ALSA control for forced mute

  * Unable to power off the system with MTL CPU (LP: #2039405)
    - Revert "x86/smp: Put CPUs into INIT on shutdown if possible"

  * Support mipi camera on Intel Meteor Lake platform (LP: #2031412)
    - SAUCE: iommu: intel-ipu: use IOMMU passthrough mode for Intel IPUs on Meteor
      Lake
    - SAUCE: platform/x86: int3472: Add handshake GPIO function

  * Miscellaneous upstream changes
    - Revert "UBUNTU: SAUCE: modpost: support arbitrary symbol length in
      modversion"
    - Revert "UBUNTU: [Packaging] ZSTD compress modules"

  [ Ubuntu: 6.5.0-10.10 ]

  * mantic/linux: 6.5.0-10.10 -proposed tracker (LP: #2039204)
  * CVE-2023-4921
    - net: sched: sch_qfq: Fix UAF in qfq_dequeue()
  * CVE-2023-42756
    - netfilter: ipset: Fix race between IPSET_CMD_CREATE and IPSET_CMD_SWAP
  * CVE-2023-4881
    - netfilter: nftables: exthdr: fix 4-byte stack OOB write
  * CVE-2023-5197
    - netfilter: nf_tables: disallow rule removal from chain binding

 -- Timo Aaltonen <email address hidden> Fri, 27 Oct 2023 15:50:55 +0300

Changed in linux-oem-6.5 (Ubuntu Jammy):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.