Support Intel IPU6 MIPI camera on Alder Lake platforms

Bug #1955383 reported by You-Sheng Yang
88
This bug affects 13 people
Affects Status Importance Assigned to Milestone
HWE Next
Fix Released
Undecided
Unassigned
OEM Priority Project
Fix Released
Critical
Shih-Yuan Lee
linux (Ubuntu)
Invalid
High
You-Sheng Yang
Focal
Invalid
Undecided
Unassigned
Jammy
Fix Released
Medium
You-Sheng Yang
linux-firmware (Ubuntu)
Fix Released
High
You-Sheng Yang
Focal
Fix Released
High
You-Sheng Yang
Jammy
Fix Released
High
You-Sheng Yang
linux-oem-5.14 (Ubuntu)
Invalid
Undecided
Unassigned
Focal
Fix Released
High
You-Sheng Yang
Jammy
Invalid
Undecided
Unassigned

Bug Description

========== kernel driver SRU ==========

[SRU Justification]

[Impact]

To support Intel IPU6 MIPI camera on Alder Lake platforms.

[Fix]

Initial support for Intel IPU6 MIPI camera on Tiger Lake platforms has
been addressed by bug 1921345 and 1939539. They are backported from
https://github.com/intel/ipu6-drivers.

Further works to enable IPU6 camera on Alder Lake platforms depend on a
few more fixes from same ipu6-drivers repository, as well as an extra
https://github.com/intel/ivsc-driver for Intel Vision Sensing
Controller(IVSC).

[Test Case]

This depends on an integral of enablement components inclusive of the
kernel drivers that are being proposed, firmware, updates for the
userspace camera hardware abstration layer library and a gstreamer
element as what we have for Tiger Lake platforms.

[Where problems could occur]

It's confirmed Intel IPU6 MIPI camera doesn't support suspend at
streaming.

[Other Info]

Jammy is planned, but yet the support for 5.15 kernel is not yet started
from Intel side.

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

[SRU Justification]

[Impact]

Intel IPU6 MIPI camera on Alder Lake platform takes a different fw blob.

[Fix]

While Intel has no intention to upstream IPU6 driver before kernel
camera is out, it's available in
https://github.com/intel/ipu6-camera-bins commit e60fae2b5128 from its
main branch.

[Test Case]

This would take both kernel and firmware fixes, as well as updates for
the userspace middleware, gstreamer element plugin, to enable the device.
With all of them in position, one should be able to browse camera with
legacy camera apps like cheese.

[Where problems could occur]

It's confirmed Intel IPU6 MIPI camera doesn't support suspend at
streaming.

========== original bug report ==========

This depends on following componenets:
* ipu6ep firmware in https://github.com/intel/ipu6-camera-bins/commit/e60fae2b5128cf5b8b948b234dab28e58c93877d
* Intel VSC fw version 1.2.3.439 (not yet available publicly)
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27.21
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CasperMD5CheckResult: skip
Dependencies:

DistributionChannelDescriptor:
 # This is the distribution channel descriptor for the OEM CDs
 # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
 canonical-oem-somerville-focal-amd64-20200502-85+fossa-tentacool+X188
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2021-12-20 (7 days ago)
InstallationMedia: Ubuntu 20.04 "Focal" - Build amd64 LIVE Binary 20200502-05:58
MachineType: Dell Inc. XPS 9320
Package: linux-firmware 1.187.23+staging.38 [origin: unknown]
PackageArchitecture: all
ProcFB: 0 i915
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.14.0-2013-oem root=UUID=f4ad7114-fc86-47d7-b750-86bd1560a5f6 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 5.14.0-2013.13+lp1955383.1-oem 5.14.20
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-5.14.0-2013-oem N/A
 linux-backports-modules-5.14.0-2013-oem N/A
 linux-firmware 1.187.23+staging.38
Tags: third-party-packages focal
Uname: Linux 5.14.0-2013-oem x86_64
UnreportableReason: This is not an official Ubuntu package. Please remove any third party package and try again.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: True
dmi.bios.date: 12/02/2021
dmi.bios.release: 0.2
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 0.2.7
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr0.2.7:bd12/02/2021:br0.2:svnDellInc.:pnXPS9320:pvr:rvnDellInc.:rn:rvr:cvnDellInc.:ct10:cvr:sku0AF3:
dmi.product.family: XPS
dmi.product.name: XPS 9320
dmi.product.sku: 0AF3
dmi.sys.vendor: Dell Inc.

CVE References

You-Sheng Yang (vicamo)
tags: added: oem-priority originate-from-1942915 somerville
tags: added: originate-from-1932254
tags: added: originate-from-1949435
You-Sheng Yang (vicamo)
description: updated
Revision history for this message
You-Sheng Yang (vicamo) wrote (last edit ):

SRU:
* https://lists.ubuntu.com/archives/kernel-team/2021-December/126747.html (linux-firmware/focal)
* https://lists.ubuntu.com/archives/kernel-team/2021-December/126749.html (linux-firmware/jammy)

Note that vsc fw is still not included in above pull requests due to the lake of a formal release allowing public redistribution. Might have to be done in follow-ups.

Changed in linux-firmware (Ubuntu Focal):
status: New → In Progress
importance: Undecided → High
assignee: nobody → You-Sheng Yang (vicamo)
Changed in linux-firmware (Ubuntu Jammy):
status: New → In Progress
importance: Undecided → High
assignee: nobody → You-Sheng Yang (vicamo)
Changed in linux-oem-5.14 (Ubuntu Jammy):
status: New → Invalid
Changed in linux (Ubuntu Focal):
status: New → Invalid
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1955383

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
You-Sheng Yang (vicamo) wrote :
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Pushed test kernels for oem-5.14 and Jammy 5.15 (recompiled on Focal). However, the jammy port doesn't bring up the camera successfully. To be fixed.

[ 2.637019] intel-lpss 0000:00:15.0: enabling device (0000 -> 0002)
[ 2.713033] intel-lpss 0000:00:15.1: enabling device (0000 -> 0002)
[ 2.749152] intel-lpss 0000:00:1e.0: enabling device (0000 -> 0002)
[ 2.769920] intel-lpss 0000:00:1e.3: enabling device (0000 -> 0002)
[ 6.603991] intel-hid INTC1070:00: platform supports 5 button array
[ 6.630369] intel vsc not ready
[ 6.670757] intel-ipu6 intel-ipu: enabling device (0000 -> 0002)
[ 6.670957] intel-ipu6 intel-ipu: Device 0x465d (rev: 0x0)
[ 6.670980] intel-ipu6 intel-ipu: physical base address 0x6054000000
[ 6.670982] intel-ipu6 intel-ipu: mapped as: 0x0000000036c6551f
[ 6.671061] intel-ipu6 intel-ipu: Unable to set secure mode
[ 6.671062] intel-ipu6 intel-ipu: IPU in non-secure mode
[ 6.671384] intel-ipu6 intel-ipu: Skip ipc reset for non-secure mode
[ 6.671385] intel-ipu6 intel-ipu: IPC reset done
[ 6.671386] intel-ipu6 intel-ipu: cpd file name: intel/ipu6ep_fw.bin
[ 6.673289] intel-ipu6 intel-ipu: FW version: 20211011
[ 6.686514] intel vsc not ready
[ 6.802722] intel-ipu6 intel-ipu: IPU driver version 1.0
[ 7.191790] intel-ipu6-psys intel-ipu6-psys0: pkg_dir entry count:8
[ 7.196100] intel-ipu6-psys intel-ipu6-psys0: psys probe minor: 0
[ 8.279709] intel-ipu6-isys intel-ipu6-isys0: isys port open ready failed -16
[ 8.279717] intel-ipu6-isys intel-ipu6-isys0: Device close failure: -16
[ 10.283081] intel-ipu6-isys intel-ipu6-isys0: Device release time out -16
[ 13.425831] intel-ipu6-isys intel-ipu6-isys0: Clearing old context
[ 14.506911] intel-ipu6-isys intel-ipu6-isys0: isys port open ready failed -16
[ 14.506916] intel-ipu6-isys intel-ipu6-isys0: Device close failure: -16
[ 15.659493] intel vsc not ready
[ 15.688684] intel vsc not ready
[ 15.735681] intel vsc not ready
[ 15.943350] intel-ipu6-isys intel-ipu6-isys0: bind ov01a10 3-0036 nlanes is 1 port is 2
[ 15.943728] intel-ipu6-isys intel-ipu6-isys0: All sensor registration completed.
...

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

apport information

Changed in linux-oem-5.14 (Ubuntu Focal):
assignee: nobody → You-Sheng Yang (vicamo)
status: New → In Progress
importance: Undecided → High
tags: added: apport-collected focal third-party-packages
description: updated
Revision history for this message
You-Sheng Yang (vicamo) wrote : CRDA.txt

apport information

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

apport information

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

apport information

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

apport information

Revision history for this message
You-Sheng Yang (vicamo) wrote : Lspci-vt.txt

apport information

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

apport information

Revision history for this message
You-Sheng Yang (vicamo) wrote : Lsusb-t.txt

apport information

Revision history for this message
You-Sheng Yang (vicamo) wrote : Lsusb-v.txt

apport information

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

apport information

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

apport information

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

apport information

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

apport information

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

apport information

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

apport information

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

apport information

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

apport information

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

apport information

Revision history for this message
You-Sheng Yang (vicamo) wrote :
description: updated
Juerg Haefliger (juergh)
tags: added: kern-1793
Revision history for this message
You-Sheng Yang (vicamo) wrote :

ivsc firmware is now available. Filed bug 1956426 for it.

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-oem-5.14/5.14.0-1015.15 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-focal' to 'verification-done-focal'. If the problem still exists, change the tag 'verification-needed-focal' to 'verification-failed-focal'.

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: verification-needed-focal
Changed in oem-priority:
assignee: nobody → Shih-Yuan Lee (fourdollars)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Shih-Yuan Lee (fourdollars) wrote :

I confirmed that linux-oem-20.04d 5.14.0.1015.15 in focal-proposed can make the MIPI camera workable.

tags: added: verification-done-focal
removed: verification-needed-focal
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello You-Sheng, or anyone else affected,

Accepted linux-firmware into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/linux-firmware/1.187.25 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-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. 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.

Changed in linux-firmware (Ubuntu Focal):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (6.7 KiB)

This bug was fixed in the package linux-firmware - 1.204

---------------
linux-firmware (1.204) jammy; urgency=medium

  * Support Intel IPU6 MIPI camera on Alder Lake platforms (LP: #1955383)
    - SAUCE: intel-ipu6: Add IPU6 firmware files
    - SAUCE: intel-ipu6: update IPU6 Release_20210121 WW04 firmware files
    - SAUCE: Camera bins release on 2021-11-01 for Alder Lake
  * [Packaging] Downgrade firmware-sof-signed depends to recommends
  * QCA: Add Bluetooth default nvm file for WCN685x (LP: #1955689)
  * Missing firmware for Intel Visual Sensing Controller (LP: #1956426)
    - SAUCE: first release of ivsc firmware binaries
    - SAUCE: firmware: add support of more sensors
  * Add basic Wifi support for Qualcomm WCN6856 (LP: #1955613)
    - SAUCE: WCN6855 hw2.0: update board-2.bin
    - SAUCE: WCN6855 hw2.0: 1.1: add WLAN.HSP.1.1-03003-QCAHSPSWPL_V1_V2_SILICONZ_LITE-2

linux-firmware (1.203) jammy; urgency=medium

  * SAUCE: check_whence.py: Add python3 shebang
  * SAUCE: check_whence.py: Also process WHENCE.ubuntu
  * SAUCE: check_whence.py: Ignore debian/ and fw_source/ directories
  * SAUCE: check_whence.py: Ignore ea/ directory
  * [Packaging] Add check debian rule
  * [Packaging] rebase-upstream: Add usage
  * [Packaging] rebase-upstream: Fix shellcheck warnings
  * Rebase to upstream commit b0e898fbaf377c99a36aac6fdeb7250003648ca4 (LP: #1953008)
    Rebase against git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
    - linux-firmware: Update firmware file for Intel Bluetooth AX201
    - linux-firmware: Update firmware file for Intel Bluetooth AX200
    - linux-firmware: Update firmware file for Intel Bluetooth 9260
    - linux-firmware: Update firmware file for Intel Bluetooth 9560
    - linux-firmware: Update firmware file for Intel Bluetooth AX210
    - linux-firmware: Update firmware file for Intel Bluetooth AX211
    - linux-firmware: Update firmware file for Intel Bluetooth AX211
    - linux-firmware: Update firmware file for Intel Bluetooth AX201
    - linux-firmware: Update firmware file for Intel Bluetooth AX201
    - linux-firmware: Update firmware file for Intel Bluetooth 9560
    - linux-firmware: Update firmware file for Intel Bluetooth 9560
    - linux-firmware: Update firmware file for Intel Bluetooth 9462
    - linux-firmware: Update firmware file for Intel Bluetooth 9462
    - rtw89: 8852a: update fw to v0.13.30.0
    - linux-firmware: update firmware for MT7921 WiFi device
    - QCA: Update Bluetooth firmware for WCN685x
    - linux-firmware: Update NXP Management Complex firmware to version 10.28.1
    - Mellanox: Add new mlxsw_spectrum firmware xx.2010.1006
    - bnx2x: Add FW 7.13.20.0
    - QCA: Update Bluetooth firmware for WCN685x
    - linux-firmware: Update AMD cpu microcode
    - linux-firmware: update frimware for mediatek bluetooth chip (MT7921)
    - amdgpu: update VCN firmware for green sardine
    - iwlwifi: update 9000-family firmwares to core64-96
    - iwlwifi: add new FWs from core64-96 release
    - rtl_bt: Update RTL8852A BT USB firmware to 0xDBA9_6937
    - amdgpu: update sienna cichlid firmware from 21.40
    - amdgpu: update arcturus firmware from 21.40
    - amdgpu...

Read more...

Changed in linux-firmware (Ubuntu Jammy):
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (3.2 KiB)

This bug was fixed in the package linux-oem-5.14 - 5.14.0-1018.19

---------------
linux-oem-5.14 (5.14.0-1018.19) focal; urgency=medium

  * OOB write on BPF_RINGBUF (LP: #1956585)
    - SAUCE: bpf: prevent helper argument PTR_TO_ALLOC_MEM to have offset other
      than 0

linux-oem-5.14 (5.14.0-1015.15) focal; urgency=medium

  * focal/linux-oem-5.14: 5.14.0-1015.15 -proposed tracker (LP: #1956424)

  * Support Intel IPU6 MIPI camera on Alder Lake platforms (LP: #1955383)
    - SAUCE: intel ipu drivers first release
    - SAUCE: IPU driver release WW48
    - SAUCE: IPU driver release WW48 with MCU
    - SAUCE: IPU driver release WW52
    - SAUCE: IPU driver release WW04
    - SAUCE: IPU driver release WW14
    - SAUCE: Fix ov01a1s output mirror issue
    - SAUCE: integrate IPU6 builds
    - [Config] updateconfigs for IPU6 driver
    - SAUCE: Fix ov01a1s IQ issues
    - SAUCE: intel/ipu6: Remove unnecessary video devices
    - SAUCE: change power control driver to acpi driver
    - SAUCE: IPU6 driver release for kernel 5.13
    - SAUCE: sensor HM11b1 brightness bugfix
    - SAUCE: Fix build error on Kernel 5.13
    - SAUCE: IPU6 driver release for kernel 5.14 on 2021-11-01
    - [Config] IPU6: enable OV01A10 sensor
    - SAUCE: intel visual sensing controller(VSC) driver first release
    - [Config] ivsc: enable Intel VSC drivers
    - SAUCE: ivsc: return error when device not ready
    - SAUCE: ivsc: add soft dependencies for intel_vsc module
    - SAUCE: ljca: switch wait event to uninterruptible
    - SAUCE: mei-vsc: switch wait event to uninterruptible
    - SAUCE: mei_vsc: add ACPI HID for ADL
    - SAUCE: ljca: add multi ACPI HID support
    - SAUCE: ivsc: add delay for acquire camera to wait firmware ready
    - SAUCE: mei_vsc: distinguish platform with different camera sensor
    - SAUCE: i2c-ljca: fix a potential issue
    - SAUCE: ljca: disable autosuspend by default

  * Add Bluetooth support for Qualcomm WCN6856 (LP: #1955689)
    - Revert "UBUNTU: SAUCE: Bluetooth: btusb: Add support using different nvm for
      variant WCN6855 controller"
    - Bluetooth: btusb: Add support using different nvm for variant WCN6855
      controller
    - Bluetooth: btusb: re-definition for board_id in struct qca_version
    - Bluetooth: btusb: Add the new support IDs for WCN6855

  * Add basic Wifi support for Qualcomm WCN6856 (LP: #1955613)
    - bus: mhi: core: Add support for forced PM resume
    - ath11k: add string type to search board data in board-2.bin for WCN6855
    - ath11k: change to use dynamic memory for channel list of scan

  * rtw88_8821ce causes freeze (LP: #1927808)
    - rtw88: Disable PCIe ASPM while doing NAPI poll on 8821CE

linux-oem-5.14 (5.14.0-1014.14) focal; urgency=medium

  * focal/linux-oem-5.14: 5.14.0-1014.14 -proposed tracker (LP: #1956354)

  * [SRU][J/OEM-5.14] Add an ID of QCOM WCN6855 bluetooth (LP: #1955906)
    - SAUCE: Bluetooth: btusb: Add support for Foxconn QCA 0xe0d0

  * audio mute/ mic mute are not working on a HP machine (LP: #1955691)
    - ALSA: hda/realtek: fix mute/micmute LEDs for a HP ProBook

  * CVE-2021-4090
    - NFSD: Fix exposure in nfsd4_decode_bitmap()

 -- Thadeu Lima de Souza Casca...

Read more...

Changed in linux-oem-5.14 (Ubuntu Focal):
status: In Progress → Fix Released
Revision history for this message
Shengyao Xue (xueshengyao) wrote :

Another OEM also need this linux-firmware SRU(because the two additional firmwares: rampatch_usb_00130200.bin and nvm_usb_00130200.bin):

https://bugs.launchpad.net/sutton/+bug/1939648/comments/10

And I confirmed the package in linux-firmware(1.187.25) can fix the issue #1939648, the OEM schedule just need the package lands to focal-updates from focal-proposed ASAP.

Revision history for this message
Shih-Yuan Lee (fourdollars) wrote :

@Shengyao,

Please check LP: #1955689 instead.

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
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-firmware - 1.187.25

---------------
linux-firmware (1.187.25) focal; urgency=medium

  * SAUCE: Camera bins release on 2021-11-01 for Alder Lake (LP: #1955383)
  * Add Bluetooth support for Qualcomm WCN6856 (LP: #1955689)
    - QCA: Add Bluetooth firmware for WCN685x
    - QCA: Update Bluetooth firmware for WCN685x
    - QCA: Add Bluetooth firmware for WCN685x
    - QCA: Add Bluetooth default nvm file for WCN685x
  * Missing firmware for Intel Visual Sensing Controller (LP: #1956426)
    - SAUCE: first release of ivsc firmware binaries
    - SAUCE: firmware: add support of more sensors
  * Add basic Wifi support for Qualcomm WCN6856 (LP: #1955613)
    - SAUCE: WCN6855 hw2.0: update board-2.bin
    - SAUCE: WCN6855 hw2.0: 1.1: add WLAN.HSP.1.1-03003-QCAHSPSWPL_V1_V2_SILICONZ_LITE-2

 -- Juerg Haefliger <email address hidden> Mon, 10 Jan 2022 11:19:19 +0100

Changed in linux-firmware (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
You-Sheng Yang (vicamo) wrote :

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 leaving error messages:

[ 6.681241] intel-ipu6 intel-ipu: IPU driver version 1.0
[ 7.056166] DMAR: DRHD: handling fault status reg 2
[ 7.056169] DMAR: [DMA Read NO_PASID] Request device [00:05.0] fault addr 0x11b1d4000 [fault reason 0x06] PTE Read access is not set
[ 7.056421] DMAR: DRHD: handling fault status reg 2
[ 7.056422] DMAR: [DMA Read NO_PASID] Request device [00:05.0] fault addr 0x3fffffff000 [fault reason 0x06] PTE Read access is not set
[ 7.056456] intel-ipu6-psys intel-ipu6-psys0: pkg_dir entry count:8
[ 7.056637] intel-ipu6-psys intel-ipu6-psys0: psys probe minor: 0
[ 7.056652] DMAR: DRHD: handling fault status reg 2
[ 7.056653] DMAR: [DMA Read NO_PASID] Request device [00:05.0] fault addr 0x3fffffff000 [fault reason 0x06] PTE Read access is not set
[ 7.056882] DMAR: DRHD: handling fault status reg 2
[ 8.197149] intel-ipu6-isys intel-ipu6-isys0: isys port open ready failed -16
[ 8.197157] intel-ipu6-isys intel-ipu6-isys0: Device close failure: -16
[ 10.201677] intel-ipu6-isys intel-ipu6-isys0: Device release time out -16
[ 10.240523] intel-ipu6-isys intel-ipu6-isys0: Clearing old context
...

This has been filed as bug 1958004 and will be tracked separately.

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

Filed also bug 1958006 for UBSAN warnings.

Revision history for this message
You-Sheng Yang (vicamo) wrote :
Bin Li (binli)
tags: added: originate-from-1961382 sutton
Revision history for this message
You-Sheng Yang (vicamo) wrote :
You-Sheng Yang (vicamo)
Changed in linux-oem-5.17 (Ubuntu Focal):
status: New → Invalid
Changed in linux-oem-5.17 (Ubuntu Jammy):
assignee: nobody → You-Sheng Yang (vicamo)
importance: Undecided → High
status: New → In Progress
Revision history for this message
You-Sheng Yang (vicamo) wrote (last edit ):
Stefan Bader (smb)
Changed in linux (Ubuntu Jammy):
importance: High → Medium
status: In Progress → Fix Committed
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux/5.15.0-28.29 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' to 'verification-done-jammy'. If the problem still exists, change the tag 'verification-needed-jammy' to 'verification-failed-jammy'.

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: verification-needed-jammy
Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote (last edit ):

On XPS 9320, the MIPI camera can work with #39 kernel + ppa:oem-solutions-group/intel-ipu6 software package.

The verification method is:

$ sudo add-apt-repository ppa:oem-solutions-group/intel-ipu6
$ sudo apt install libcamhal-ipu6ep0

tags: added: verification-done-jammy
removed: verification-needed-jammy
tags: added: verification-failed-jammy
removed: verification-done-jammy
Alex Tu (alextu)
Changed in oem-priority:
importance: High → Critical
Stefan Bader (smb)
Changed in linux (Ubuntu Jammy):
status: Fix Committed → Triaged
You-Sheng Yang (vicamo)
no longer affects: linux-oem-5.17 (Ubuntu)
no longer affects: linux-oem-5.17 (Ubuntu Focal)
no longer affects: linux-oem-5.17 (Ubuntu Jammy)
You-Sheng Yang (vicamo)
Changed in linux (Ubuntu Jammy):
status: Triaged → In Progress
Changed in linux (Ubuntu):
status: In Progress → Invalid
Changed in linux (Ubuntu Jammy):
status: In Progress → Fix Committed
Stefan Bader (smb)
tags: added: verification-done-jammy
removed: verification-failed-jammy
Changed in linux (Ubuntu Jammy):
status: Fix Committed → Fix Released
Changed in oem-priority:
status: In Progress → Fix Released
42 comments hidden view all 122 comments
Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote (last edit ):

Did you see the camera lighted up when you open it in webcamtest? Can you attach your kernel log $ journalctl -k -b and $ cat /sys/class/dmi/id/product_sku

The packages are all installed properly. Have you tried oem image from Dell's website? If it doesn't work within Dell's oem image, I think you can request Dell to check the hardware.

https://www.dell.com/community/XPS/Can-t-download-XPS-13-Plus-Recovery-Image-Ubuntu/td-p/8218080

Revision history for this message
Edward Wong (hobble) wrote :

@kchsieh

No, the webcam light doesn't turn on even on webcamtest. I don't think I have tried the oem image from Dell's website. Do you think you could attach a link to it? I can't seem to find it. I ran $ journalctl -k -b and the results of this are attached in "results.txt". I also ran $ cat /sys/class/dmi/id/product_sku and this was the result: 0AF3

Thanks.

Revision history for this message
Andy Chi (andch) wrote :

@hobble,
I tried on my XPS9320, and I can find the camera sensor here:
$sudo dmesg|grep ipu6
sudo dmesg|grep ipu6
[ 3.194527] intel-ipu6 intel-ipu: enabling device (0000 -> 0002)
[ 3.195342] intel-ipu6 intel-ipu: Device 0x465d (rev: 0x1)
[ 3.195364] intel-ipu6 intel-ipu: physical base address 0x603e000000
[ 3.195365] intel-ipu6 intel-ipu: mapped as: 0x000000006b2a87b5
[ 3.195536] intel-ipu6 intel-ipu: Unable to set secure mode
[ 3.195539] intel-ipu6 intel-ipu: IPU in non-secure mode
[ 3.195565] intel-ipu6 intel-ipu: Skip ipc reset for non-secure mode
[ 3.195567] intel-ipu6 intel-ipu: IPC reset done
[ 3.195568] intel-ipu6 intel-ipu: cpd file name: intel/ipu6ep_fw.bin
[ 3.200251] intel-ipu6 intel-ipu: FW version: 20211011
[ 3.328464] intel-ipu6 intel-ipu: IPU driver version 1.0
[ 12.524157] intel-ipu6-psys intel-ipu6-psys0: pkg_dir entry count:8
[ 12.524301] intel-ipu6-psys intel-ipu6-psys0: psys probe minor: 0
[ 13.088490] intel-ipu6-isys intel-ipu6-isys0: bind ov01a10 3-0036 nlanes is 1 port is 2
[ 13.088584] intel-ipu6-isys intel-ipu6-isys0: All sensor registration completed.
[ 103.993750] ipu_psys_mapbuf_locked+0x178/0x450 [intel_ipu6_psys]
[ 103.993757] ipu_psys_ioctl+0x155/0x3d0 [intel_ipu6_psys]
[ 104.000689] intel-ipu6-isys intel-ipu6-isys0: stream on ov01a10 3-0036

I can't find ox01a10 in you kernel log.
Could you also try to load BIOS default settings?

Revision history for this message
Edward Wong (hobble) wrote :

@andch

You're a genius. Turns out I just needed to reset the BIOS to default settings!

Thanks a ton!

Revision history for this message
Andy Chi (andch) wrote :

@hobble,
I'm glad that the camera works on your XPS.
Enjoy it!

Changed in hwe-next:
status: New → Fix Released
Revision history for this message
Andy Lee (andylikewater) wrote :

I can confirm that the camera is now working (but not thoroughly tested) on my Dell XPS 13 (9315) running stock kernel (5.15.0-46-generic #49-Ubuntu SMP) and following the steps in Comment #40:

$ sudo add-apt-repository ppa:oem-solutions-group/intel-ipu6
$ sudo apt install libcamhal-ipu6ep0

1 comments hidden view all 122 comments
Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote :

Lenovo X1 Carbon gen 10 hasn't supported, here are the hardwares supported currently:

https://wiki.ubuntu.com/Dell, "The Intel IPU6/IPU6EP is supported on some certified platforms, it contains the characteristic below"

Revision history for this message
TaylorHere (taylorherec) wrote :

Chess and https://webcamtests.com/ not working for me

/dev/video0 and /dev/video1 can found

Kernel Version: 5.15.0-46-generic
Device: Lenovo X1 Carbon gen 10
Packages: libcamhal-ipu6ep0=0~git202208100225.2a7c9c2~ubuntu22.04.1

╰─ sudo dmesg|grep ipu6
[ 4.636891] intel-ipu6 intel-ipu: enabling device (0000 -> 0002)
[ 4.637161] intel-ipu6 intel-ipu: Device 0x465d (rev: 0x2)
[ 4.637176] intel-ipu6 intel-ipu: physical base address 0x603c000000
[ 4.637178] intel-ipu6 intel-ipu: mapped as: 0x0000000042f5c0da
[ 4.637245] intel-ipu6 intel-ipu: IPU in secure mode
[ 4.653932] intel-ipu6 intel-ipu: IPC reset done
[ 4.653937] intel-ipu6 intel-ipu: cpd file name: intel/ipu6ep_fw.bin
[ 4.655247] intel-ipu6 intel-ipu: FW version: 20211011
[ 4.776455] intel-ipu6 intel-ipu: Sending BOOT_LOAD to CSE
[ 4.785568] intel-ipu6 intel-ipu: Sending AUTHENTICATE_RUN to CSE
[ 4.853780] intel-ipu6 intel-ipu: CSE authenticate_run done
[ 4.853811] intel-ipu6 intel-ipu: IPU driver version 1.0
[ 4.892138] intel-ipu6-isys intel-ipu6-isys0: no subdev found in graph
[ 4.932719] intel-ipu6-psys intel-ipu6-psys0: pkg_dir entry count:8
[ 4.932913] intel-ipu6-psys intel-ipu6-psys0: psys probe minor: 0

journalctl -k -b shows in attachment.

Revision history for this message
Alex (alex-wa) wrote :

Hi again everyone,

The camera on my XPS 13 Plus (9320) has been working well for more than two months, but it looks like the recent update of `libipu6ep`, `ibcamhal-ipu6ep0`, `libcamhal-ipu6ep-common`, `gstreamer1.0-icamera`, and/or `libgsticamerainterface-1.0-1` broke it.

On https://webcamtests.com/, the webcam LED turns ON briefly then turns OFF again, and I receive the message `The video track is paused.`. Cheese displays `There was an error playing video from the webcam`.

Anyone else having this issue? Any idea about how to fix it?

The versions installed are:

```
libipu6ep_0~git202209170647.d30e6eb-1~ubuntu22.04.1_amd64.deb
libcamhal-ipu6ep0_0~git202209170647.115a04b~ubuntu22.04.2_amd64.deb
libcamhal-ipu6ep-common_0~git202209170647.115a04b~ubuntu22.04.2_all.deb
gstreamer1.0-icamera_0~git202209170647.af811b3~ubuntu22.04.8_amd64.deb
libgsticamerainterface-1.0-1_0~git202209170647.af811b3~ubuntu22.04.8_amd64.deb
linux-firmware_20220329.git681281e4-0ubuntu3.5_all.deb
```

Cheers,
Alex

Revision history for this message
Shih-Yuan Lee (fourdollars) wrote :

Dell XPS 13 Plus (9320) is a certified platform for Ubuntu 20.04 and Ubuntu 22.04 now.
Please don't use ppa:oem-solutions-group/intel-ipu6.
Please remove those packages from ppa:oem-solutions-group/intel-ipu6, and then install oem-somerville-tentacool-meta from Ubuntu archive instead.
ppa:oem-solutions-group/intel-ipu6 is a development PPA for Intel IPU6 camera support.

1 comments hidden view all 122 comments
Revision history for this message
Alex (alex-wa) wrote :

Wow, thanks so much to both of you for your quick and effective replies. My camera is working again.

Your work and your help are greatly appreciated.

Note for anyone in the same situation: it appears that removing the packages from `ppa:oem-solutions-group/intel-ipu6` automatically triggers the installation of packages from `oem-somerville-tentacool-meta` (my log of `apt remove` contains some `Selecting previously unselected package ...`, it's the first time I see this kind of thing, I believe). However, running `apt autoremove` uninstalls the newly installed packages from `oem-somerville-tentacool-meta`. So I manually reinstalled `libcamhal-ipu6ep0` with all its dependencies, restarted my machine, and all works well now.

Cheers,
Alex

Revision history for this message
Stuart Pook (slp110264) wrote :
Download full text (3.3 KiB)

hi, I too am having problems getting the webcam working on my "Dell Inc. XPS 9320/0P9FNW, BIOS 1.4.0 05/13/2022" running jammy. I only have http://fr.archive.ubuntu.com/ubuntu/ and http://security.ubuntu.com/ubuntu as sources in /etc/apt. I have oem-somerville-tentacool-meta 22.04~ubuntu1 and libcanberra-gtk3-module:amd64 0.30-10ubuntu1 installed. I have the 5.15.0-52-generic kernel. I have looked at https://wiki.ubuntu.com/Dell but the instructions seem to be out of date. Thanks for any help, Stuart

zbarcam causes dmesg to output "intel-ipu6-isys intel-ipu6-isys0: dma_alloc_coherent of size 536903680 failed"

stuart@xps9320:/etc/apt$ zbarcam
Using mplane plugin for capture
libv4l2: error turning on stream: Link has been severed
ERROR: zbar processor in v4l2_start():
    system error: starting video stream (VIDIOC_STREAMON): Link has been severed (67)
stuart@xps9320:/etc/apt$ cheese
../src/intel/isl/isl.c:2220: FINISHME: ../src/intel/isl/isl.c:isl_surf_supports_ccs: CCS for 3D textures is disabled, but a workaround is available.
(cheese:7404): cheese-WARNING **: 00:53:26.993: Device '/dev/video0' does not support 2:0:0:0 colourimetry: ../sys/v4l2/gstv4l2object.c(4105): gst_v4l2_object_set_format_full (): /GstCameraBin:camerabin/GstWrapperCameraBinSrc:camera_source/GstBin:bin18/GstV4l2Src:v4l2src1:
Device wants 2:0:0:0 colorimetry

stuart@xps9320:/etc/apt$ chromium https://webcamtests.com/
Gtk-Message: 00:57:53.924: Failed to load module "canberra-gtk-module"
Gtk-Message: 00:57:53.925: Failed to load module "canberra-gtk-module"
WARNING: Kernel has no file descriptor comparison support: Operation not permitted
[7612:7701:1029/005757.683021:ERROR:udev_watcher.cc(98)] Failed to begin udev enumeration.

stuart@xps9320:/etc/apt$ firefox https://webcamtests.com/
Gtk-Message: 01:06:54.292: Failed to load module "canberra-gtk-module"
Gtk-Message: 01:06:54.293: Failed to load module "canberra-gtk-module"

stuart@xps9320:/etc/apt$ sudo dmesg | grep ipu6
[ 11.006142] intel-ipu6 intel-ipu: enabling device (0000 -> 0002)
[ 11.006332] intel-ipu6 intel-ipu: Device 0x465d (rev: 0x2)
[ 11.006351] intel-ipu6 intel-ipu: physical base address 0x603c000000
[ 11.006352] intel-ipu6 intel-ipu: mapped as: 0x000000004d40cc25
[ 11.006446] intel-ipu6 intel-ipu: Unable to set secure mode
[ 11.006446] intel-ipu6 intel-ipu: IPU in non-secure mode
[ 11.006450] intel-ipu6 intel-ipu: Skip ipc reset for non-secure mode
[ 11.006451] intel-ipu6 intel-ipu: IPC reset done
[ 11.006451] intel-ipu6 intel-ipu: cpd file name: intel/ipu6ep_fw.bin
[ 11.008293] intel-ipu6 intel-ipu: FW version: 20211011
[ 11.131890] intel-ipu6 intel-ipu: IPU driver version 1.0
[ 20.435874] intel-ipu6-psys intel-ipu6-psys0: pkg_dir entry count:8
[ 20.435988] intel-ipu6-psys intel-ipu6-psys0: psys probe minor: 0
[ 20.575899] intel-ipu6-isys intel-ipu6-isys0: bind ov01a10 17-0036 nlanes is 1 port is 2
[ 20.576105] intel-ipu6-isys intel-ipu6-isys0: All sensor registration completed.
[ 936.060203] intel-ipu6-isys intel-ipu6-isys0: dma_alloc_coherent of size 536903680 failed
[ 1347.230485] intel-ipu6-isys intel-ipu6-isys0: dma_alloc_coherent of size 536903680 failed
[ 1821...

Read more...

Revision history for this message
Andy Chi (andch) wrote :

Hi @slp110264,
Just noticed that your oem-somerville-tentacool-meta is not the newest.
Can you help to try update that package?

$ sudo apt install oem-somerville-tentacool-meta

The newest version is 22.04ubuntu5, and XPS 9320 won't need to add ppa:oem-solutions-group/intel-ipu6 to install libcamhal-ipu6ep0.

oem-somerville-tentacool-meta recommends the library of mipi camera, it'll install them automatically when you update oem-somerville-tentacool-meta.

Revision history for this message
Benjamin Herrenschmidt (benh-kernel) wrote :

Is there any expectation of X1 Gen 10 being supported ? It's currently giving the same error as slp110264 above with cheese:

$ cheese
../src/intel/isl/isl.c:2220: FINISHME: ../src/intel/isl/isl.c:isl_surf_supports_ccs: CCS for 3D textures is disabled, but a workaround is available.

(cheese:50217): GLib-GObject-CRITICAL **: 17:17:03.292: g_value_dup_string: assertion 'G_VALUE_HOLDS_STRING (value)' failed

(cheese:50217): GLib-GObject-CRITICAL **: 17:17:03.419: g_value_dup_string: assertion 'G_VALUE_HOLDS_STRING (value)' failed

(cheese:50217): cheese-WARNING **: 17:17:03.433: Device '/dev/video0' does not support 2:0:0:0 colorimetry: ../sys/v4l2/gstv4l2object.c(4105): gst_v4l2_object_set_format_full (): /GstCameraBin:camerabin/GstWrapperCameraBinSrc:camera_source/GstBin:bin18/GstV4l2Src:v4l2src1:
Device wants 2:0:0:0 colorimetry

1 comments hidden view all 122 comments
Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote :

reply #98,

Please check comment #72.

Revision history for this message
Stuart Pook (slp110264) wrote :

hello @andch

If I look at https://packages.ubuntu.com/search?keywords=oem-somerville-tentacool-meta&searchon=names&suite=all&section=all I see 22.04~ubuntu1. Where can I find the 22.04ubuntu5 you mention? thanks

stuart@xps9320:/$ sudo apt update
Hit:1 http://fr.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://fr.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://fr.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
stuart@xps9320:/$ sudo apt install oem-somerville-tentacool-meta
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
oem-somerville-tentacool-meta is already the newest version (22.04~ubuntu1).
0 to upgrade, 0 to newly install, 0 to remove and 2 not to upgrade.

Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote (last edit ):

reply #101,

The package oem-somerville-tentacool-meta will install another source list /etc/apt/sources.list.d/oem-somerville-tantacool-meta.list. when you do the $ sudo apt update, it should update packages in dell.archive.canonical.com. after $ sudo apt install oem-somerville-tentacool-meta, it will update to a new oem-somerville-tentacool-meta here [1].

Did you disable other source list in you environment?

[1] http://dell.archive.canonical.com/dists/jammy-somerville-jellyfish-tentacool/public/binary-amd64/Packages

Revision history for this message
Frederik Feichtmeier (frederik-feichtmeier) wrote :

@fourdollars it looks like fedora managed to get the camera working for the Lenovo x1 gen10
https://hansdegoede.dreamwidth.org/27235.html

Could this information help to get this working?

Revision history for this message
Bin Li (binli) wrote :

@fourdollars,

 I believe it could help with this information, but we need package these akmod-intel-ipu6,ipu6-camera-bins, ipu6-camera-hal, gstreamer1-plugins-icamerasrc and akmod-v4l2loopback + v4l2-relayd.

 From https://launchpad.net/~oem-solutions-group/+archive/ubuntu/intel-ipu6?field.series_filter=jammy , there are only 4 packages, do we package the akmod-intel-ipu6? Thanks!

Revision history for this message
Shih-Yuan Lee (fourdollars) wrote :

akmod-intel-ipu6 in Fedora should be intel-ipu6-dkms in Ubuntu.

Revision history for this message
Bin Li (binli) wrote :

Currently it couldn't work on 20.04.6 on X1 Carbon G10.

$ sudo apt install linux-generic-hwe-20.04

$ sudo add-apt-repository ppa:oem-solutions-group/intel-ipu6

$ sudo apt install libcamhal-ipu6ep0

$ sudo reboot

Aug 29 06:00:14 u-ThinkPad-X1-Carbon-Gen-10 gst-plugin-scan[1134]: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgsticamerasrc.so': /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /lib/x86_64-linux-gnu/libgcss-ipu6ep.so.0)

Aug 29 06:00:18 u-ThinkPad-X1-Carbon-Gen-10 gst-plugin-scan[1589]: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgsticamerasrc.so': /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /lib/x86_64-linux-gnu/libgcss-ipu6ep.so.0)

Revision history for this message
Bin Li (binli) wrote :

Currently it couldn't work on 22.04.3 on X1 Carbon G10 too, kernel is 6.2.0-31 and linux-firmware is ubuntu3.18.

$ sudo apt install linux-generic-hwe-22.04 linux-modules-ipu6-generic-hwe-22.04 linux-modules-ivsc-generic-hwe-22.04
$ sudo add-apt-repository ppa:oem-solutions-group/intel-ipu6
$ sudo apt install libcamhal-ipu6ep0

Revision history for this message
Bin Li (binli) wrote :

6.1.0-oem kernel has the same issue.

Aug 30 00:01:20 binli-ThinkPad-X1-Carbon-Gen-10 kernel: intel-ipu6-isys intel-ipu6-isys0: isys port open ready failed -16
Aug 30 00:01:20 binli-ThinkPad-X1-Carbon-Gen-10 kernel: intel-ipu6-isys intel-ipu6-isys0: Device close failure: -16
Aug 30 00:01:22 binli-ThinkPad-X1-Carbon-Gen-10 kernel: intel-ipu6-isys intel-ipu6-isys0: Device release time out -16

Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote :

reply #107 #108,

Hello,

I think the hardware info in your system has problem.

Aug 30 00:01:18 binli-ThinkPad-X1-Carbon-Gen-10 kernel: ov2740 i2c-INT3474:01: chip id mismatch: 2740!=0
Aug 30 00:01:18 binli-ThinkPad-X1-Carbon-Gen-10 kernel: ov2740 i2c-INT3474:01: failed to find sensor: -6

May I know if the MIPI camera working under windows?

Thanks,

Revision history for this message
Bin Li (binli) wrote :

Tried vicamo's ppa, it didn't work too.

https://launchpad.net/~vicamo/+archive/ubuntu/ppa-2031412

sudo apt install gstreamer1.0-icamera libgsticamerainterface-1.0-1

And reboot, then try the command (if you are in wayland session):

$ sudo -E gst-launch-1.0 icamerasrc buffer-count=7 ! video/x-raw,format=NV12,width=1280,height=720 ! videoconvert ! glimagesink
[08-30 02:46:41.958] CamHAL[INF] load_camera_hal_library, the library name: lib/x86_64-linux-gnu/libcamhal/pluginsipu6ep.so
[08-30 02:46:41.958] CamHAL[ERR] load_camera_hal_library, failed to open library: lib/x86_64-linux-gnu/libcamhal/pluginsipu6ep.so, error: lib/x86_
64-linux-gnu/libcamhal/pluginsipu6ep.so: cannot open shared object file: No such file or directory
[08-30 02:46:41.958] CamHAL[ERR] get_number_of_cameras, function call is nullptr
[08-30 02:46:41.958] CamHAL[ERR] get_number_of_cameras, function call is nullptr
[08-30 02:46:41.958] CamHAL[ERR] get_number_of_cameras, function call is nullptr

(gst-launch-1.0:3805): GLib-GObject-CRITICAL **: 02:46:41.958: g_param_spec_enum: assertion 'g_enum_get_value (enum_class, default_value) != NULL'
 failed

(gst-launch-1.0:3805): GLib-GObject-CRITICAL **: 02:46:41.958: validate_pspec_to_install: assertion 'G_IS_PARAM_SPEC (pspec)' failed

(gst-launch-1.0:3805): GLib-GObject-CRITICAL **: 02:46:41.958: g_param_spec_ref_sink: assertion 'G_IS_PARAM_SPEC (pspec)' failed

(gst-launch-1.0:3805): GLib-GObject-CRITICAL **: 02:46:41.958: g_param_spec_unref: assertion 'G_IS_PARAM_SPEC (pspec)' failed
[08-30 02:46:41.958] CamHAL[ERR] get_number_of_cameras, function call is nullptr
[08-30 02:46:41.958] CamHAL[ERR] get_number_of_cameras, function call is nullptr
WARNING: erroneous pipeline: could not link camerasrc0 to videoconvert0, camerasrc0 can't handle caps video/x-raw, format=(string)NV12, width=(int
)1280, height=(int)720

Revision history for this message
Bin Li (binli) wrote :

@kc,

 For #109, Gabriel tried the windows last year, but he remember he never made the mipi work before. Thanks!

Revision history for this message
Stuart Pook (slp110264) wrote :
Download full text (6.4 KiB)

hi all, the webcam on my Dell XPS 9320 was working until this week. I just did the standard required system upgrades and it has stopped working. zbarcam shows an empty black image. cheese pauses before showing "There was an error playing video from the webcam". Chromium https://webcamtests.com/ detects my Intel MIPI Camera but after I click on "Test my cam" I get the error: "The video track is paused." What should I check?

:; sudo apt upgrade && sudo apt update && dpkg -l oem-somerville-tentacool-meta
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  maven libmaven3-core-java libavdevice58 ffmpeg libopenexr25 libpostproc55
  libmagickcore-6.q16-6-extra libavcodec58 libmagickwand-6.q16-6 libavutil56
  libswscale5 libmagickcore-6.q16-6 libswresample3 imagemagick-6-common
  libavformat58 libavfilter7
Learn more about Ubuntu Pro at https://ubuntu.com/pro
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Hit:1 http://fr.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://dell.archive.canonical.com jammy InRelease
Hit:3 http://fr.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 https://ppa.launchpadcontent.net/oem-solutions-group/intel-ipu6/ubuntu jammy InRelease
Get:5 http://fr.archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease
Fetched 109 kB in 1s (216 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=============================-============-============-=====================================
ii oem-somerville-tentacool-meta 22.04ubuntu6 all hardware support for Dell XPS 13 9320
:; zbarcam
:; sudo dmesg | grep ipu6
[ 10.199619] intel-ipu6 intel-ipu: enabling device (0000 -> 0002)
[ 10.199821] intel-ipu6 intel-ipu: Device 0x465d (rev: 0x2)
[ 10.199845] intel-ipu6 intel-ipu: physical base address 0x603c000000
[ 10.199846] intel-ipu6 intel-ipu: mapped as: 0x00000000a28c5f74
[ 10.199908] intel-ipu6 intel-ipu: Unable to set secure mode
[ 10.199910] intel-ipu6 intel-ipu: IPU in non-secure mode
[ 10.199911] intel-ipu6 intel-ipu: IPU secure touch = 0x0
[ 10.199913] intel-ipu6 intel-ipu: IPU camera mask = 0xff
[ 10.199973] intel-ipu6 intel-ipu: Skip ipc reset for non-secure mode
[ 10.199976] intel-ipu6 intel-ipu: IPC reset done
[ 10.199978] intel-ipu6 intel-ipu: cpd file name: intel/ipu6ep_fw.bin
[ 10.210322] intel-ipu6 intel-ipu: FW version: 20220510
[ 10.212444] intel-ipu6 intel-ipu: IPU6-v3 driver version 1.0
[ 10.295703] intel-ipu6-psys intel-ipu6-psys0...

Read more...

Revision history for this message
Shih-Yuan Lee (fourdollars) wrote :

@Stuart Pook (slp110264)

Please DON'T use ppa:oem-solutions-group/intel-ipu6 because it is a development PPA that it will often break the MIPI camera during the development.

You can use `sudo add-apt-repository --remove ppa:oem-solutions-group/intel-ipu6` to remove it.

However there may still be some broken packages in your system that you need to downgrade/remove them manually.

The simple way is to reinstall Ubuntu 22.04.3 on your Dell XPS 13 9320 again and upgrade the whole system to the latest.

Revision history for this message
Stuart Pook (slp110264) wrote :

thanks @Shih-Yuan Lee, I did (more or less)

sudo add-apt-repository --remove ppa:oem-solutions-group/intel-ipu6
sudo apt remove libcamhal-ipu6ep0 linux-modules-ipu6-generic-hwe-22.04 linux-modules-ivsc-generic-hwe-22.04 oem-somerville-tentacool-meta libcanberra-gtk0 v4l2-relayd libcamhal-ipu6ep0 libipu6ep libcamhal-ipu6ep-common
sudo apt autoremove
sudo apt install oem-somerville-tentacool-meta

and my webcam is working again.

Revision history for this message
Bin Li (binli) wrote (last edit ):

ON ThinkPad X1 Carbon Gen 10, the mipi works fine now on 22.04 with genericc kernel or 6.1.0-oem kernel, tested in gst-launch-1.0 or https://webcamtests.com/ .

$ sudo apt install inux-modules-ipu6-generic-hwe-22.04 linux-modules-ivsc-generic-hwe-22.04
$ sudo apt install linux-modules-ipu6-oem-22.04c linux-modules-ivsc-oem-22.04c
$ sudo add-apt-repository ppa:oem-solutions-group/intel-ipu6
$ sudo apt install libcamhal0
$ sudo reboot

$ gst-launch-1.0 v4l2src ! glimagesink

I just found some 'Payload checksum (CRC) error', not sure if it has any risks.

Sep 08 05:15:18 binli-X1-Carbon-G10 kernel: intel-ipu6-isys intel-ipu6-isys0: stream on ov2740 5-0036
Sep 08 05:15:18 binli-X1-Carbon-G10 kernel: intel-ipu6-isys intel-ipu6-isys0: csi2-1 error: Payload checksum (CRC) error
Sep 08 05:15:18 binli-X1-Carbon-G10 kernel: intel-ipu6-isys intel-ipu6-isys0: csi2-1 error: Single packet header error corrected
Sep 08 05:15:18 binli-X1-Carbon-G10 kernel: intel-ipu6-isys intel-ipu6-isys0: csi2-1 error: Multiple packet header errors detected
Sep 08 05:15:18 binli-X1-Carbon-G10 kernel: intel-ipu6-isys intel-ipu6-isys0: csi2-1 error: Payload checksum (CRC) error
Sep 08 05:15:18 binli-X1-Carbon-G10 kernel: intel-ipu6-isys intel-ipu6-isys0: csi2-1 error: Incomplete long packet detected
Sep 08 05:15:18 binli-X1-Carbon-G10 kernel: intel-ipu6-isys intel-ipu6-isys0: csi2-1 error: Frame sync error
Sep 08 05:15:18 binli-X1-Carbon-G10 kernel: intel-ipu6-isys intel-ipu6-isys0: csi2-1 error: Inter-frame short packet discarded
Sep 08 05:15:18 binli-X1-Carbon-G10 kernel: intel-ipu6-isys intel-ipu6-isys0: csi2-1 error: Inter-frame long packet discarded

Revision history for this message
Bin Li (binli) wrote :

linux-oem-22.04d in updates now, but it could not support mipi yet.

6.5.0-1003-oem

Sep 08 06:03:58 binli-X1-Carbon-G10 kernel: intel-ipu6-isys intel-ipu6-isys0: isys port open ready failed -16
Sep 08 06:03:58 binli-X1-Carbon-G10 kernel: intel-ipu6-isys intel-ipu6-isys0: Device close failure: -16
Sep 08 06:04:00 binli-X1-Carbon-G10 kernel: intel-ipu6-isys intel-ipu6-isys0: Device release time out -16
Sep 08 06:04:00 binli-X1-Carbon-G10 kernel: intel-ipu6-isys intel-ipu6-isys0: Clearing old context

Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote :

continue #116

Please be aware to remove ppa from source list after you install the working packages on your system.
It is because the ppa will keep updating packages from upstream, sometimes it might break your system since upstream didn't validate on all systems when they commit new code drop.

Revision history for this message
Bin Li (binli) wrote (last edit ):

ON ThinkPad X1 Carbon Gen 11(8086:a75d), the mipi works fine now on 22.04 with generic kernel or 6.1.0-oem kernel, tested in gst-launch-1.0, it works fine.

I found it the gst-plugin-scanner crashed after install libcamhal0 , and I met this issue on X1 Carbon Gen 10(8086:465d) too.

Revision history for this message
Ory Band (oryband) wrote :

Not working on Ubuntu 22.04 with following Kernel version and libcamhal-ipu6ep0 driver:

```
# uname -ar
Linux roach 6.2.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Oct 6 10:23:26 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
```

Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote :

reply #119

May I have you system information?

$ sudo -E oem-getlogs

Revision history for this message
Nacho Mg (nacho-mg) wrote :

After a bit of a fight, I've managed to get the MIPI camera working on my Lenovo ThinkPad X1 Carbon Gen 10. Here's what I've got:

- I'm using Ubuntu 22.04.3 LTS.
- I'm using Kernel 6.2.0-34-generic (with 6.2.0-35-generic for example it doesn't work for me)

With the above, I followed these steps: https://wiki.ubuntu.com/Lenovo

And I have added these configurations (replacing what is there, if any):

- In the file /etc/modprobe.d/v4l2loopback.conf:

options v4l2loopback card_label="Intel MIPI Camera" exclusive_caps=1 video_nr=0

- In the /etc/modprobe.d/v4l2-relayd.conf file:

options v4l2loopback exclusive_caps=1 card_label="Intel MIPI Camera"

- In the /etc/default/v4l2-relayd file:

# GStreamer source element name:
VIDEOSRC="icamerasrc"
#SPLASHSRC="filesrc location=/.../splash.png ! pngdec ! imagefreeze num-buffers=4 ! videoscale ! videoconvert"
# Output format, width, height, and frame rate:
FORMAT=NV12
WIDTH=1280
HEIGHT=720
FRAMERATE=30/1
# Virtual video device name:
CARD_LABEL="Intel MIPI Camera"
# Extra options to pass to v4l2-relayd:
#EXTRA_OPTS=-d

With this, after rebooting the system, the camera usually works in both chrome and firefox (meet, zoom, webcam test, etc...).

- In Cheese, I can also get it to work by launching it this way:

sudo cheese -d "Intel MIPI Camera".

- Sometimes when a black screen appears, just restart the v4l2-relayd service:

sudo systemctl restart v4l2-relayd.service

I hope this helps someone

Revision history for this message
Dmitry Veltishev (vdmit) wrote (last edit ):
Download full text (38.9 KiB)

I have exactly same laptop (Lenovo ThinkPad X1 Carbon Gen 10) and exactly same Ubuntu 22.04.3 LTS.

Tried to follow instructions in prev comment, but NOT suceeded.

gstreamer cmd from official wiki page yields following errors:

$ gst-launch-1.0 v4l2src ! glimagesink
Setting pipeline to PAUSED ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video0' is not a capture device.
Additional debug info:
../sys/v4l2/v4l2_calls.c(629): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Capabilities: 0x5200002
ERROR: pipeline doesn't want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL ...
Freeing pipeline ...

Some more diagnostics:

root@vdmit-ix:~# v4l2-ctl --list-devices
ipu6 (PCI:pci:pci0000:00):
 /dev/video1
 /dev/video2
 /dev/video3
 /dev/video4
 /dev/video5
 /dev/video6
 /dev/video7
 /dev/video8

ipu6 (pci:pci0000:00):
 /dev/media0

Intel-MIPI-Camera (platform:v4l2loopback-000):
 /dev/video0

root@vdmit-ix:~#

$ v4l2-compliance
v4l2-compliance 1.22.1, 64 bits, 64-bit time_t

Compliance test for v4l2 loopback device /dev/video0:

Driver Info:
 Driver name : v4l2 loopback
 Card type : Intel-MIPI-Camera
 Bus info : platform:v4l2loopback-000
 Driver version : 6.2.16
 Capabilities : 0x85200002
  Video Output
  Read/Write
  Streaming
  Extended Pix Format
  Device Capabilities
 Device Caps : 0x05200002
  Video Output
  Read/Write
  Streaming
  Extended Pix Format

Required ioctls:
 test VIDIOC_QUERYCAP: OK
 test invalid ioctls: OK

Allow for multiple opens:
 test second /dev/video0 open: OK
 test VIDIOC_QUERYCAP: OK
 test VIDIOC_G/S_PRIORITY: OK
  fail: v4l2-compliance.cpp(736): !ok
 test for unlimited opens: FAIL

Debug ioctls:
 test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
 test VIDIOC_LOG_STATUS: OK (Not Supported)

Input ioctls:
 test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported)
 test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
 test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported)
 test VIDIOC_ENUMAUDIO: OK (Not Supported)
  fail: v4l2-test-input-output.cpp(469): G_INPUT not supported, but ENUMINPUT is
 test VIDIOC_G/S/ENUMINPUT: FAIL
 test VIDIOC_G/S_AUDIO: OK (Not Supported)
 Inputs: 0 Audio Inputs: 0 Tuners: 0

Output ioctls:
 test VIDIOC_G/S_MODULATOR: OK (Not Supported)
 test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
 test VIDIOC_ENUMAUDOUT: OK (Not Supported)
 test VIDIOC_G/S/ENUMOUTPUT: OK
 test VIDIOC_G/S_AUDOUT: OK (Not Supported)
 Outputs: 1 Audio Outputs: 0 Modulators: 0

Input/Output configuration ioctls:
 test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported)
 test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported)
 test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported)
 test VIDIOC_G/S_EDID: OK (Not Supported)

Control ioctls (Output 0):
 test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
 test VIDIOC_QUERYCTRL: OK
 test VIDIOC_G/S_CTRL: OK
 test VIDIOC_G/S/TRY_EXT_CTRLS: OK
 test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
 test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
 Standard Controls: 1 Private Controls: 4

Format ioctls (Output 0):
  fail: v4l2-test-formats.cpp(263): fmtdesc.description mismatch: was 'Y/UV 4:2:0', expected 'Y/CbCr 4:2:0'
 test VIDIOC_E...

Displaying first 40 and last 40 comments. View all 122 comments or add a comment.
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.