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
Revision history for this message
Shih-Yuan Lee (fourdollars) wrote :

linux/5.15.0-28.29 kernel in jammy-proposed has the kernel panic on Dell Latitude 9420.

tags: added: verification-failed-jammy
removed: verification-done-jammy
Alex Tu (alextu)
Changed in oem-priority:
importance: High → Critical
Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote (last edit ):

Try to boot from linux/5.15.0-28.29 kernel on Latitude 9420 ANDW-DVT2-C3 202012-28492. The system will be panic as #41.

Stefan Bader (smb)
Changed in linux (Ubuntu Jammy):
status: Fix Committed → Triaged
Revision history for this message
Stefan Bader (smb) wrote :

Patches reverted from jammy:linux due to the regression.

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)
Revision history for this message
You-Sheng Yang (vicamo) wrote :
Download full text (4.4 KiB)

[File Contents]

Andews-MLK:
cheese.5.14.0-1032-oem.HDA4101000A.good
cheese.5.15.0-9032-generic.HDA4101000A.good
cheese.5.15.12-for-ubuntu.HDA4101000A.bad
cheese.5.17.0-9004-oem.HDA4101000A.slow-unusable
dmesg.5.14.0-1032-oem.HDA4101000A
dmesg.5.15.0-9032-generic.HDA4101000A
dmesg.5.15.12-for-ubuntu.HDA4101000A
dmesg.5.17.0-9004-oem.HDA4101000A
media-ctl.5.14.0-1032-oem.HDA4101000A
media-ctl.5.15.0-9032-generic.HDA4101000A
media-ctl.5.15.12-for-ubuntu.HDA4101000A
media-ctl.5.17.0-9004-oem.HDA4101000A

KC-TGL-ov01a1s:
cheese.5.15.0-32-generic.ANDW-DVT2-C3.KC-TGL-ov01a1s.bad
cheese.5.15.0-9032-generic.ANDW-DVT2-C3.KC-TGL-ov01a1s.bad
cheese.5.15.12-for-ubuntu.ANDW-DVT2-C3.KC-TGL-ov01a1s.bad
cheese.5.17.0-9004-oem.ANDW-DVT2-C3.KC-TGL-ov01a1s.bad
dmesg.5.15.0-32-generic.ANDW-DVT2-C3.KC-TGL-ov01a1s
dmesg.5.15.0-9032-generic.ANDW-DVT2-C3.KC-TGL-ov01a1s
dmesg.5.15.12-for-ubuntu.ANDW-DVT2-C3.KC-TGL-ov01a1s
dmesg.5.17.0-9004-oem.ANDW-DVT2-C3.KC-TGL-ov01a1s
media-ctl.5.15.0-32-generic.ANDW-DVT2-C3.KC-TGL-ov01a1s
media-ctl.5.15.0-9032-generic.ANDW-DVT2-C3.KC-TGL-ov01a1s
media-ctl.5.15.12-for-ubuntu.ANDW-DVT2-C3.KC-TGL-ov01a1s
media-ctl.5.17.0-9004-oem.ANDW-DVT2-C3.KC-TGL-ov01a1s

Tributo:
cheese.5.14.0-1024-oem.202109-29401.Tributo.good
cheese.5.15.0-9032-generic.202109-29401.Tributo.good
cheese.5.15.12-for-ubuntu.202109-29401.Tributo.good
cheese.5.17.0-9004-oem.202109-29401.Tributo.good
dmesg.5.14.0-1024-oem.202109-29401.Tributo
dmesg.5.15.0-9032-generic.202109-29401.Tributo
dmesg.5.15.12-for-ubuntu.202109-29401.Tributo
dmesg.5.17.0-9004-oem.202109-29401.Tributo
media-ctl.5.14.0-1024-oem.202109-29401.Tributo
media-ctl.5.15.0-9032-generic.202109-29401.Tributo
media-ctl.5.15.12-for-ubuntu.202109-29401.Tributo
media-ctl.5.17.0-9004-oem.202109-29401.Tributo

Vicamo-TGL-hm11b1:
cheese.5.14.0-1036-oem.ANDW-DVT2-C2.Vicamo-hm11b1.bad
cheese.5.15.0-9032-generic.ANDW-DVT2-C2.Vicamo-hm11b1.good
cheese.5.15.12-for-ubuntu.ANDW-DVT2-C2.Vicamo-hm11b1.good
cheese.5.17.0-9004-oem.ANDW-DVT2-C2.Vicamo-hm11b1.bad
dmesg.5.14.0-1036-oem.ANDW-DVT2-C2.Vicamo-hm11b1
dmesg.5.15.0-9032-generic.ANDW-DVT2-C2.Vicamo-hm11b1
dmesg.5.15.12-for-ubuntu.ANDW-DVT2-C2.Vicamo-hm11b1
dmesg.5.17.0-9004-oem.ANDW-DVT2-C2.Vicamo-hm11b1
media-ctl.5.14.0-1036-oem.ANDW-DVT2-C2.Vicamo-hm11b1
media-ctl.5.15.0-9032-generic.ANDW-DVT2-C2.Vicamo-hm11b1
media-ctl.5.15.12-for-ubuntu.ANDW-DVT2-C2.Vicamo-hm11b1
media-ctl.5.17.0-9004-oem.ANDW-DVT2-C2.Vicamo-hm11b1

Vicamo-TGL-ov01a1s:
cheese.5.14.0-1036-oem.ANDW-DVT2-C1.Vicamo-TGL-ov01a1s.good
cheese.5.15.0-9032-generic.ANDW-DVT2-C1.Vicamo-TGL-ov01a1s.bad
cheese.5.15.12-for-ubuntu.ANDW-DVT2-C1.Vicamo-TGL-ov01a1s.bad
cheese.5.17.0-9004-oem.ANDW-DVT2-C1.Vicamo-TGL-ov01a1s.bad
dmesg.5.14.0-1036-oem.ANDW-DVT2-C1.Vicamo-TGL-ov01a1s
dmesg.5.15.0-9032-generic.ANDW-DVT2-C1.Vicamo-TGL-ov01a1s
dmesg.5.15.12-for-ubuntu.ANDW-DVT2-C1.Vicamo-TGL-ov01a1s
dmesg.5.17.0-9004-oem.ANDW-DVT2-C1.Vicamo-TGL-ov01a1s
media-ctl.5.14.0-1036-oem.ANDW-DVT2-C1.Vicamo-TGL-ov01a1s
media-ctl.5.15.0-9032-generic.ANDW-DVT2-C1.Vicamo-TGL-ov01a1s
media-ctl.5.15.12-for-ubuntu.ANDW-DVT2-C1.Vicamo-TGL-ov01a1s
media-ctl.5.17.0-9004-oem.ANDW-DVT2-C1.Vicamo-TGL-ov01a1s

[Summary]

We should care most f...

Read more...

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

Also tested ipu6/ivsc dkms driver from bug against Jammy 5.15, created kernel branch https://code.launchpad.net/~vicamo/+git/ubuntu-kernel/+ref/bug-1972106/build-mipi-ipu6-dkms/jammy. The results are identical to 5.17.0-9004-oem (backport ipu6/ivsc drivers into kernel) as expected.

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

Filed https://github.com/intel/ipu6-drivers/issues/19 to keep track of TGL sensors problem.

As for oem-5.17+DKMS on AndrewsMLK, the stall can be reproduced with oem-5.17 version 5.17.0-1004.4, so it's irrelevant to ipu6 so far.

Revision history for this message
You-Sheng Yang (vicamo) wrote :
Changed in linux (Ubuntu Jammy):
status: Triaged → In Progress
Revision history for this message
You-Sheng Yang (vicamo) wrote :

To switch to dkms since oem-5.17.

Changed in linux (Ubuntu):
status: In Progress → Invalid
Revision history for this message
You-Sheng Yang (vicamo) wrote :
Changed in linux (Ubuntu Jammy):
status: In Progress → Fix Committed
Revision history for this message
Stefan Bader (smb) wrote :

According to HWE, the updated code is no longer showing issues on the other test systems and also enable the camera on those systems it is intended for. Updating the verification tag.

tags: added: verification-done-jammy
removed: verification-failed-jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (5.0 KiB)

This bug was fixed in the package linux - 5.15.0-40.43

---------------
linux (5.15.0-40.43) jammy; urgency=medium

  * jammy/linux: 5.15.0-40.43 -proposed tracker (LP: #1978610)

  * Packaging resync (LP: #1786013)
    - debian/dkms-versions -- update from kernel-versions (main/2022.05.30)

  * [SRU][OEM-5.14/OEM-5.17/J][PATCH 0/2] Fix system hangs after s2idle on AMD
    A+A GPU (LP: #1975804)
    - Revert "drm/amd/pm: keep the BACO feature enabled for suspend"
    - drm/amd: Don't reset dGPUs if the system is going to s2idle

  * [SRU][OEM-5.14/OEM-5.17/J][PATCH 0/1] Read the discovery registers for
    AMD_SFH (LP: #1975798)
    - HID: amd_sfh: Add support for sensor discovery

  * [UBUNTU 20.04] CPU-MF: add extended counter set definitions for new IBM z16
    (LP: #1974433)
    - s390/cpumf: add new extended counter set for IBM z16

  * [UBUNTU 20.04] KVM nesting support leaks too much memory, might result in
    stalls during cleanup (LP: #1974017)
    - KVM: s390: vsie/gmap: reduce gmap_rmap overhead

  * [UBUNTU 20.04] Null Pointer issue in nfs code running Ubuntu on IBM Z
    (LP: #1968096)
    - NFS: Fix up nfs_ctx_key_to_expire()

  * Fix REG_WAIT timeout for Yellow Carp (LP: #1971417)
    - drm/amd/display: Clear encoder assignments when state cleared.
    - drm/amd/display: fix stale info in link encoder assignment
    - drm/amd/display: Query all entries in assignment table during updates.
    - drm/amd/display: Initialise encoder assignment when initialising dc_state

  * Enable hotspot feature for Realtek 8821CE (LP: #1969326)
    - rtw88: Add update beacon flow for AP mode
    - rtw88: 8821c: Enable TX report for management frames
    - rtw88: do PHY calibration while starting AP
    - rtw88: 8821c: fix debugfs rssi value
    - rtw88: add ieee80211:sta_rc_update ops

  * prevent kernel panic with overlayfs + shiftfs (LP: #1973620)
    - SAUCE: overlayfs: prevent dereferencing struct file in ovl_vm_prfile_set()

  * disable Intel DMA remapping by default (LP: #1971699)
    - Revert "UBUNTU: [Config] enable Intel DMA remapping options by default"

  * Mute/mic LEDs no function on Elitebook 630 (LP: #1974111)
    - ALSA: hda/realtek: fix right sounds and mute/micmute LEDs for HP machine

  * [Regression] Real-time Kernel Build Failure (LP: #1972899)
    - x86/mm: Include spinlock_t definition in pgtable.

  * build backport-iwlwifi-dkms as linux-modules-iwlwifi-ABI (LP: #1969434)
    - [Packaging] support standalone dkms module builds
    - [Packaging] drop do_<mod> arch specific configs

  * IPU6 camera has no function on Andrews MLK (LP: #1964983)
    - SAUCE: IPU6: 2022-03-11 alpha release for Andrews MLK
    - [Config] IPU6: enable OV02C10 sensor
    - SAUCE: IPU6: 2022-04-01 Andrews MLK PV release
    - SAUCE: spi: ljca: return when a sub-transaction first failed
    - SACUE: ljca: disable parallelly stub write
    - SAUCE: ljca: fix race condition issue in runtime PM
    - SAUCE: i2c-ljca: fix a null pointer access issue on tgl
    - SAUCE: ljca: fix a typo issue
    - SAUCE: ljca: assume stub enum failed as a warning
    - SAUCE: mei: cleanup header file including
    - SAUCE: intel_ulpss: Replaced by LJCA and remove
    ...

Read more...

Changed in linux (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Alex (alex-wa) wrote (last edit ):

Hi all and thank you for you work!

I have the new Dell XPS 13 Plus (9320) withe the Alder Lake platform:
https://ubuntu.com/certified/202112-29761/20.04%20LTS

I have installed the latest Ubuntu 22.04 plus all the available update, so my system is now:
Linux xps 5.15.0-40-generic #43-Ubuntu SMP Wed Jun 15 12:54:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

According to the previous message in this conversation, if I understand correctly, the webcam should work in this version, but unfortunately it doesn't, as shows the attached screenshot of Cheese.

I've also tried these steps:

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

But it didn't help.

Would you think that the driver needs more work, or that it might be an issue on my side?

Cheers,
Alex

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

Reply #52,

Could you try if my pipewire gst plug-in helps the issue?

https://bugs.launchpad.net/ubuntu/+source/cheese/+bug/1978757/comments/8

Thanks,

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

@Alex,

Could you open https://webcamtests.com by Mozilla Firefox or Google Chrome to check if the webcam works or not on your Dell XPS 13 Plus (9320)?

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

Hi and thank you for your answers.

@Shih-Yuan Lee, wow! My webcam actually works on Firefox and Chrome! That's interesting because I remember testing it before and it wasn't working... something must have been updated since then. It's still not working on Cheese though.

@Kai-Chuan Hsieh, it didn't work, but it did make a difference. Before following your instructions, Cheese was displaying the error message visible in the screenshot attached to my previous message, and the little white LED placed next to the webcam above the screen, was staying OFF. (And this was still the case after having tested the webcam in Firefox and Chrome successfully.) After having followed your instructions, Cheese is now just showing a black screen, and the white LED is illuminated. So there's definitely an improvement. (I know that the webcam does infrared as well, could it be that Cheese tries to show the IR stream instead of the normal one?)

Having my webcam working on Chrome was the biggest thing to me, so I'm good now, thanks guys! However, I stay available of course if you'd like me to test anything.

Cheers,

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

Reply #55

Could you check if gstreamer1.0-clutter-3.0 package up-to-date, you can refer to https://launchpad.net/ubuntu/+source/clutter-gst-3.0 for the latest package version.

Thanks,

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

Hello, I am running 5.15.0-40-generic #43-Ubuntu on a Dell Inc. XPS 9320/0P9FNW, BIOS 1.3.0 04/19/2022 and the camera does not work. The XPS was delivered with ubuntu and the camera worked. I installed a standard Ubuntu 22.04 LTS and now cannot find a working set of packages. What can I try? Thank you!

Chromium and firefox on https://webcamtests.com fail to detect the camera.

% dpkg -l | grep ipu6
ii libcamhal-ipu6ep-common 0~git202112130639.4585612-2~ubuntu20.04.1 all HAL library for MIPI camera through Intel IPU6 - common files
ii libcamhal-ipu6ep0 0~git202112130639.4585612-2~ubuntu20.04.1 amd64 HAL library for MIPI camera through Intel IPU6
ii libipu6ep 0~git202112020845.a14b40c-1~ubuntu20.04.1 amd64 API for Intel IPU6 camera on Intel Alder Lake platform
ii oem-fix-cam-intel-mipi-ipu6-common 3 all Configs for Intel MIPI IPU6 Camara
ii oem-fix-cam-intel-mipi-ipu6ep 3 all Metapackage to enable Intel MIPI IPU6ep Camera

Cheese fails with:
(cheese:9075): cheese-WARNING **: 02:57:15.335: Device '/dev/video1' does not support 2:0:0:0 colorimetry: ../sys/v4l2/gstv4l2object.c(4104): gst_v4l2_object_set_format_full (): /GstCameraBin:camerabin/GstWrapperCameraBinSrc:camera_source/GstBin:bin18/GstV4l2Src:v4l2src1:
Device wants 2:0:0:0 colorimetry

% sudo dmesg | grep -C 2 ipu6
[ 13.020246] EDAC igen6 MC0: ADDR 0x7fffffffe0
[ 13.020299] EDAC igen6: v2.5
[ 13.021122] intel-ipu6 intel-ipu: enabling device (0000 -> 0002)
[ 13.022354] intel-ipu6 intel-ipu: Device 0x465d (rev: 0x2)
[ 13.022373] intel-ipu6 intel-ipu: physical base address 0x603c000000
[ 13.022375] intel-ipu6 intel-ipu: mapped as: 0x0000000051756e35
[ 13.022422] intel-ipu6 intel-ipu: Unable to set secure mode
[ 13.022423] intel-ipu6 intel-ipu: IPU in non-secure mode
[ 13.022434] intel-ipu6 intel-ipu: Skip ipc reset for non-secure mode
[ 13.022434] intel-ipu6 intel-ipu: IPC reset done
[ 13.022435] intel-ipu6 intel-ipu: cpd file name: intel/ipu6ep_fw.bin
[ 13.023507] intel vsc not ready
[ 13.024744] intel-ipu6 intel-ipu: FW version: 20211011
[ 13.025022] intel vsc not ready
[ 13.025482] BTRFS warning (device dm-3): swapfile must not be copy-on-write
--
[ 13.106032] RAPL PMU: hw unit of domain pp1-gpu 2^-14 Joules
[ 13.106032] RAPL PMU: hw unit of domain psys 2^-14 Joules
[ 13.143987] intel-ipu6 intel-ipu: IPU driver version 1.0
[ 13.145024] intel vsc not ready
[ 13.233381] input: VEN_04F3:00 04F3:31D1 Mouse as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-1/i2c-VEN_04F3:00/0018:04F3:31D1.0001/input/input12
--
[ 22.547455] intel vsc not ready
[ 22.564355] vsc_ace spi-INTC1094:00-5db76cf6-0a68-4ed6-9b78-0361635e2447: recv firmware id
[ 22.568296] intel-ipu6-psys intel-ipu6-psys0: pkg_dir entry count:8
[ 22.568559] intel-ipu6-psys intel-ipu6-psys0: psys probe minor: 0
[ 22.569478] intel vsc not ready
[ 22.583863] iwlwifi 0000:00:14.3: Detected Intel(R) Wi-Fi 6E AX211 160MHz, REV=0x370
--
[ 22.753152] sof-audi...

Read more...

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

Hi Stuart,

I can see a difference between your machine and mine: I updated my BIOS to 1.4.0. However, I don't really think that this makes a difference... but if you want to update yours, see this link:
https://www.dell.com/support/home/en-au/product-support/product/xps-13-9320-laptop/drivers

Note that my machine was delivered with Windows on it (only because Dell doesn't offer Ubuntu for users in Australia, and refuses to provide their Ubuntu ISO, even when you pay for "premium support"), and I used the Dell utilities provided on Windows to update my BIOS. But according to Dell, you can do it from Ubuntu as well.

Cheers,

(@Kai-Chuan Hsieh, I'll check what you asked during the weekend ;-))

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

hi Alex, can you give me the output of "dpkg -l" (edited if you prefer)? I guess that you do not know if the webcam was working with firefox & chromium before you installed libcamhal-ipu6ep0. I doubt that upgrading the BIOS will help especially as the webcam was working before.

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

I'll give you that tomorrow ;-)
Yeah, agree with the BIOS.

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

FYI: Regarding the Cheese issue, there is another bug, i.e LP: #1978757, to deal with it.

Changed in oem-priority:
status: In Progress → Fix Released
Revision history for this message
Alex (alex-wa) wrote :

Hey guys,

@Kai-Chuan Hsieh, `gstreamer1.0-clutter-3.0` is indeed at the latest version on my machine: `3.0.27-2ubuntu1`

@Stuart, I attached the full output of `dpkg -l`. Comparing it with yours using Meld, they are quite a few differences.

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

Reply #62

Can I have your $ systemctl status v4l2-relayd and $ gst-device-monitor-1.0 output?

Thanks,

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

hi! Alex, thanks for the output from "dpkg -l". Can you give me the contents of /etc/apt/sources.list and /etc/apt/sources.list.d/* so that I know where you installed your packages from? I'll make my machine like yours tomorrow.

I have attached the output of gst-device-monitor-1.0. The systemd unit v4l2-relayd is failing.

     Loaded: loaded (/lib/systemd/system/v4l2-relayd.service; enabled; vendor preset: enabled)
     Active: failed (Result: start-limit-hit) since Sat 2022-07-02 19:47:12 CEST; 7min ago
    Process: 116250 ExecCondition=/usr/bin/test -n ${VIDEOSRC} (code=exited, status=0/SUCCESS)
    Process: 116251 ExecCondition=/usr/bin/test -n $FORMAT (code=exited, status=0/SUCCESS)
    Process: 116252 ExecCondition=/usr/bin/test -n $WIDTH (code=exited, status=0/SUCCESS)
    Process: 116253 ExecCondition=/usr/bin/test -n $HEIGHT (code=exited, status=0/SUCCESS)
    Process: 116254 ExecCondition=/usr/bin/test -n $FRAMERATE (code=exited, status=0/SUCCESS)
    Process: 116255 ExecCondition=/usr/bin/test -n ${CARD_LABEL} (code=exited, status=0/SUCCESS)
    Process: 116256 ExecStart=/bin/sh -c DEVICE=$(grep -l -m1 -E "^${CARD_LABEL}$" /sys/devices/virtual/video4linux/*/name | cut -d/ -f6); exec /usr/bin/v4l2-relayd -i "${VIDEOSRC}" $${SPLASHSRC:+-s "${SPLASHSRC}"} -o "appsrc name=appsrc caps=video/x-ra>
   Main PID: 116256 (code=exited, status=0/SUCCESS)
        CPU: 42ms

Jul 02 19:47:12 -XPS-9320 systemd[1]: v4l2-relayd.service: Scheduled restart job, restart counter is at 5.
Jul 02 19:47:12 -XPS-9320 systemd[1]: Stopped v4l2-relay daemon service.
Jul 02 19:47:12 -XPS-9320 systemd[1]: v4l2-relayd.service: Start request repeated too quickly.
Jul 02 19:47:12 -XPS-9320 systemd[1]: v4l2-relayd.service: Failed with result 'start-limit-hit'.
Jul 02 19:47:12 -XPS-9320 systemd[1]: Failed to start v4l2-relay daemon service.

Jul 01 00:53:09 -XPS-9320 systemd[1]: Starting v4l2-relay daemon service...
Jul 01 00:53:09 -XPS-9320 systemd[1]: Started v4l2-relay daemon service.
Jul 01 00:53:09 -XPS-9320 sh[7311]: grep: /sys/devices/virtual/video4linux/*/name: No such file or directory
Jul 01 00:53:09 -XPS-9320 v4l2-relayd[7309]: g_source_remove: assertion 'tag > 0' failed
Jul 01 00:53:09 -XPS-9320 v4l2-relayd[7309]: g_source_remove: assertion 'tag > 0' failed
Jul 01 00:53:09 -XPS-9320 v4l2-relayd[7309]: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed
Jul 01 00:53:09 -XPS-9320 v4l2-relayd[7309]: gst_object_unref: assertion 'object != NULL' failed
Jul 01 00:53:09 -XPS-9320 v4l2-relayd[7309]: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed
Jul 01 00:53:09 -XPS-9320 v4l2-relayd[7309]: gst_object_unref: assertion 'object != NULL' failed
Jul 01 00:53:09 -XPS-9320 systemd[1]: v4l2-relayd.service: Deactivated successfully.

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

Hey guys,

I attached the output of `stemctl status v4l2-relayd` and `gst-device-monitor-1.0`, as well as the content of `sources.list` and `sources.list.d`.

Cheers

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

hi all, I didn't change anything except rebooting and now my webcam works in both firefox and chromium on https://webcamtests.com. Cheese takes a minute or so to display "There was an error playing video from the webcam" and say:

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

(cheese:17967): cheese-WARNING **: 11:49:36.517: Internal data stream error.: ../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstCameraBin:camerabin/GstWrapperCameraBinSrc:camera_source/GstBin:bin18/GstPipeWireSrc:pipewiresrc1:
streaming stopped, reason not-negotiated (-4)

The v4l2-relayd unit works.

"GST_DEBUG=2,v4l2src:5 gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! xvimagesink" works as well:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.039094074 28464 0x56465e78c300 INFO v4l2src gstv4l2src.c:550:gst_v4l2src_query_preferred_size:<v4l2src0> Detect input 0 as `loopback`
0:00:00.039161508 28464 0x56465e78c300 DEBUG v4l2src gstv4l2src.c:601:gst_v4l2src_negotiate:<v4l2src0> caps of src: video/x-raw, format=(string)YUY2, width=(int)1280, height=(int)720, framerate=(fraction)30/1; video/x-raw(format:Interlaced), format=(string)YUY2, width=(int)1280, height=(int)720, framerate=(fraction)30/1, interlace-mode=(string)alternate
0:00:00.039328145 28464 0x56465e78c300 DEBUG v4l2src gstv4l2src.c:609:gst_v4l2src_negotiate:<v4l2src0> caps of peer: video/x-raw, format=(string)YV12, width=(int)[ 1, 16384 ], height=(int)[ 1, 16384 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)I420, width=(int)[ 1, 16384 ], height=(int)[ 1, 16384 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)NV12, width=(int)[ 1, 16384 ], height=(int)[ 1, 16384 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, width=(int)[ 1, 16384 ], height=(int)[ 1, 16384 ], framerate=(fraction)[ 0/1, 2147483647/1 ], format=(string){ ABGR64_LE, BGRA64_LE, AYUV64, ARGB64_LE, ARGB64, RGBA64_LE, ABGR64_BE, BGRA64_BE, ARGB64_BE, RGBA64_BE, GBRA_12LE, GBRA_12BE, Y412_LE, Y412_BE, A444_10LE, GBRA_10LE, A444_10BE, GBRA_10BE, A422_10LE, A422_10BE, A420_10LE, A420_10BE, RGB10A2_LE, BGR10A2_LE, Y410, GBRA, ABGR, VUYA, BGRA, AYUV, ARGB, RGBA, A420, AV12, Y444_16LE, Y444_16BE, v216, P016_LE, P016_BE, Y444_12LE, GBR_12LE, Y444_12BE, GBR_12BE, I422_12LE, I422_12BE, Y212_LE, Y212_BE, I420_12LE, I420_12BE, P012_LE, P012_BE, Y444_10LE, GBR_10LE, Y444_10BE, GBR_10BE, r210, I422_10LE, I422_10BE, NV16_10LE32, Y210, v210, UYVP, I420_10LE, I420_10BE, P010_10LE, NV12_10LE32, NV12_10LE40, P010_10BE, Y444, RGBP, GBR, BGRP, NV24, xBGR, BGRx, xRGB, RGBx, BGR, IYU2, v308, RGB, Y42B, NV61, NV16, VYUY, UYVY, YVYU, YUY2, I420, YV12, NV21, NV12, NV12_64Z32, NV12_4L4, NV12_32L32, Y41B, IYU1, YVU9, YUV9, RGB16, BGR16, RGB15, BGR15, RGB8P, GRAY16_LE, GRAY16_BE, GRAY10_LE32, GRAY8 }
0:00:00.039351854 28464 0x56465e78c300 DEBUG v4l2src gstv4l2src.c:615:gst_v4l2src_negotiate:<v4l2src0> intersect: ...

Read more...

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

The above test (where the webcam worked) was with 5.15.0-40-generic (5.15.0-40.43). With 5.17.0-1012-oem #13-Ubuntu, gst-launch-1.0, firefox and chromium detect and can open the webcam but fail. Chromium says "The video track in paused". Firefox says the webcam shows a one-color filling, it streams video as a static image and has low frame rate. "GST_DEBUG=2,v4l2src:5 gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! xvimagesink" hangs with a black window while saying:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.017008892 12697 0x5606205b31e0 INFO v4l2src gstv4l2src.c:550:gst_v4l2src_query_preferred_size:<v4l2src0> Detect input 0 as `loopback`
0:00:00.017102764 12697 0x5606205b31e0 DEBUG v4l2src gstv4l2src.c:601:gst_v4l2src_negotiate:<v4l2src0> caps of src: video/x-raw, format=(string)YUY2, width=(int)1280, height=(int)720, framerate=(fraction)30/1; video/x-raw(format:Interlaced), format=(string)YUY2, width=(int)1280, height=(int)720, framerate=(fraction)30/1, interlace-mode=(string)alternate
0:00:00.017322363 12697 0x5606205b31e0 DEBUG v4l2src gstv4l2src.c:609:gst_v4l2src_negotiate:<v4l2src0> caps of peer: video/x-raw, format=(string)YV12, width=(int)[ 1, 16384 ], height=(int)[ 1, 16384 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)I420, width=(int)[ 1, 16384 ], height=(int)[ 1, 16384 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)NV12, width=(int)[ 1, 16384 ], height=(int)[ 1, 16384 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, width=(int)[ 1, 16384 ], height=(int)[ 1, 16384 ], framerate=(fraction)[ 0/1, 2147483647/1 ], format=(string){ ABGR64_LE, BGRA64_LE, AYUV64, ARGB64_LE, ARGB64, RGBA64_LE, ABGR64_BE, BGRA64_BE, ARGB64_BE, RGBA64_BE, GBRA_12LE, GBRA_12BE, Y412_LE, Y412_BE, A444_10LE, GBRA_10LE, A444_10BE, GBRA_10BE, A422_10LE, A422_10BE, A420_10LE, A420_10BE, RGB10A2_LE, BGR10A2_LE, Y410, GBRA, ABGR, VUYA, BGRA, AYUV, ARGB, RGBA, A420, AV12, Y444_16LE, Y444_16BE, v216, P016_LE, P016_BE, Y444_12LE, GBR_12LE, Y444_12BE, GBR_12BE, I422_12LE, I422_12BE, Y212_LE, Y212_BE, I420_12LE, I420_12BE, P012_LE, P012_BE, Y444_10LE, GBR_10LE, Y444_10BE, GBR_10BE, r210, I422_10LE, I422_10BE, NV16_10LE32, Y210, v210, UYVP, I420_10LE, I420_10BE, P010_10LE, NV12_10LE32, NV12_10LE40, P010_10BE, Y444, RGBP, GBR, BGRP, NV24, xBGR, BGRx, xRGB, RGBx, BGR, IYU2, v308, RGB, Y42B, NV61, NV16, VYUY, UYVY, YVYU, YUY2, I420, YV12, NV21, NV12, NV12_64Z32, NV12_4L4, NV12_32L32, Y41B, IYU1, YVU9, YUV9, RGB16, BGR16, RGB15, BGR15, RGB8P, GRAY16_LE, GRAY16_BE, GRAY10_LE32, GRAY8 }
0:00:00.017356962 12697 0x5606205b31e0 DEBUG v4l2src gstv4l2src.c:615:gst_v4l2src_negotiate:<v4l2src0> intersect: video/x-raw, width=(int)1280, height=(int)720, framerate=(fraction)30/1, format=(string)YUY2
0:00:00.017372396 12697 0x5606205b31e0 DEBUG v4l2src gstv4l2src.c:406:gst_v4l2src_fixate:<v4l2src0> Fixating caps video/x-raw, width=(int)1280, height=(int)720, framerate=(fraction)30/1, format=(string)YUY2
0:00:00.0...

Read more...

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

Reply #65,

Hello,

Can I have your dmi product_sku info by $ cat /sys/class/dmi/id/product_sku?
The product sku we support for XPS 9320 is 0AF3

By the way, does $ gst-launch-1.0 v4l2src ! videoconvert ! glimagesink work?

Thanks,

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

hello, I confirm that an install of Ubuntu 22.04 LTS followed by "sudo add-apt-repository ppa:oem-solutions-group/intel-ipu6 && sudo apt install libcamhal-ipu6ep0 && sudo reboot" is enough to get the webcam working with firefox, chromium and "gst-launch-1.0 v4l2src ! videoconvert ! glimagesink". Cheese does not work:

$ cheese
../src/intel/isl/isl.c:2216: FINISHME: ../src/intel/isl/isl.c:isl_surf_supports_ccs: CCS for 3D textures is disabled, but a workaround is available.
(cheese:11937): Gdk-WARNING **: 14:28:28.463: Native Windows taller than 65535 pixels are not supported
(cheese:11937): cheese-WARNING **: 14:28:58.618: Internal data stream error.: ../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstCameraBin:camerabin/GstWrapperCameraBinSrc:camera_source/GstBin:bin18/GstPipeWireSrc:pipewiresrc1:
streaming stopped, reason not-negotiated (-4)

/sys/class/dmi/id/product_sku contains 0AF3.

When will the packages in ppa:oem-solutions-group/intel-ipu6 be in jammy-proposed?

$ uname -a
Linux work-XPS-9320 5.15.0-40-generic #43-Ubuntu SMP Wed Jun 15 12:54:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Thanks to all!

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

Hi all, glad to read that your camera is working, Stuart!

My product_sku is also 0AF3.

Cheers

Revision history for this message
Norbert Schuch (nschuch) wrote (last edit ):
Download full text (6.3 KiB)

Hello,

I am having issues which look similar to those reported by Stuart in getting to run the Camera on a Lenovo X1 Gen10. (But unfortunately, rebooting did not help.) The camera shows up in gst-device-monitor as "ipu6" with unreasonable parameters, and gst-launch complains about 2:0:0:0 colorimetry.

This behavior is observed both in Ubuntu 22.04 with the default kernel 5.15.0-40 and in Ubuntu/Debian with a self-compiled kernel 5.18.9 with the ipu6/ivsc modules included (with small variations, the 5.18.9 does not manage to bring up the relayd, and no test device is present; and under 5.15, gst-device-monitor only reports the ipu6 device for root).

Any help is very much appreciated -- thank you! Let me know what other information to supply.

To start with, here's what I see for the default 5.15.0-40 kernel + ipu6 packages:

=====================================================
# gst-device-monitor-1.0 | head -n50
Probing devices...

Device found:

 name : ipu6
 class : Video/Source
 caps : video/x-raw(format:Interlaced), format=YUY2, framerate=[ 0/1, 2147483647/1 ], width=[ 1, 16384 ], height=[ 1, 16384 ], interlace-mode=alternate
         video/x-raw, format=YUY2, framerate=[ 0/1, 2147483647/1 ], width=[ 1, 16384 ], height=[ 1, 16384 ], interlace-mode={ (string)progressive, (string)interleaved }
         video/x-raw(format:Interlaced), format=YUY2, framerate=[ 0/1, 2147483647/1 ], width=[ 1, 16384 ], height=[ 1, 16384 ], interlace-mode=alternate
         video/x-raw(format:Interlaced), format=UYVY, framerate=[ 0/1, 2147483647/1 ], width=[ 1, 16384 ], height=[ 1, 16384 ], interlace-mode=alternate
         video/x-raw, format=UYVY, framerate=[ 0/1, 2147483647/1 ], width=[ 1, 16384 ], height=[ 1, 16384 ], interlace-mode={ (string)progressive, (string)interleaved }
         video/x-raw(format:Interlaced), format=UYVY, framerate=[ 0/1, 2147483647/1 ], width=[ 1, 16384 ], height=[ 1, 16384 ], interlace-mode=alternate
         video/x-raw(format:Interlaced), format=BGRx, framerate=[ 0/1, 2147483647/1 ], width=[ 1, 16384 ], height=[ 1, 16384 ], interlace-mode=alternate
         video/x-raw, format=BGRx, framerate=[ 0/1, 2147483647/1 ], width=[ 1, 16384 ], height=[ 1, 16384 ], interlace-mode={ (string)progressive, (string)interleaved }
         video/x-raw(format:Interlaced), format=BGRx, framerate=[ 0/1, 2147483647/1 ], width=[ 1, 16384 ], height=[ 1, 16384 ], interlace-mode=alternate
         video/x-raw(format:Interlaced), format=xRGB, framerate=[ 0/1, 2147483647/1 ], width=[ 1, 16384 ], height=[ 1, 16384 ], interlace-mode=alternate
         video/x-raw, format=xRGB, framerate=[ 0/1, 2147483647/1 ], width=[ 1, 16384 ], height=[ 1, 16384 ], interlace-mode={ (string)progressive, (string)interleaved }
         video/x-raw(format:Interlaced), format=xRGB, framerate=[ 0/1, 2147483647/1 ], width=[ 1, 16384 ], height=[ 1, 16384 ], interlace-mode=alternate
         video/x-bayer, format=rggb, framerate=[ 0/1, 2147483647/1 ], width=[ 1, 16384 ], height=[ 1, 16384 ]
         video/x-bayer, format=grbg, framerate=[ 0/1, 2147483647/1 ], width=[ 1, 16384 ], height=[ 1, 16384 ]
         video/x-bayer, format=gbrg, framerate=[ 0/1, 2147483647/1 ], width=...

Read more...

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

Ubuntu is only supporting Intel MIPI camera for few Dell laptops via OEM enablement process.
Please check https://wiki.ubuntu.com/Dell for details.
We are working on supporting more Dell laptops for Intel MIPI camera.

Intel MIPI camera on Ubuntu Linux needs the works of BIOS/firmwares, kernel and userspace from Intel.
It needs the PC vendors such as Dell, HP, Lenovo, ..., to request the support from Intel.

Revision history for this message
David Burke (bufke) wrote :

The XPS 13 Plus 9320 webcam does not work for me since upgrading to 22.04 from the original 20.04 OEM installation.

BIOS: 1.4.0
Kernel:5.17.0-1013-oem
libcamhal-ipu6ep0 is installed from the mentioned PPA
v4l2-ctl --list-devices
Intel MIPI Camera (platform:v4l2loopback-000):
 /dev/video0

Neither chrome nor Firefox show video. Similar to the issue described here https://askubuntu.com/questions/1414767/dell-xps-plus-9320-webcam-not-detected-in-ubuntu-22-04?atw=1#comment2465343_1417193

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

@bufke

Hello,

May I know how you upgrade ubuntu from 20.04 oem to 22.04? by $ do-release-upgrade or $ sudo apt dist-upgrade. I am curious how you have 5.17.0-1013-oem installed.

May I know if you keep using 5.14.0-10XX-oem, does it work for webcamtest or any application utilize camera by browser?

Thanks,

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

@bufke,
Can you help to provide logs from /var/log and `dpkg -l`?
I also tried one 9320 and do-release-upgrade to Jammy. I didn't install 5.17 after do-release-upgrade.

Revision history for this message
David Burke (bufke) wrote :

I upgraded via do-release-upgrade -d

With 5.15.0-41-generic the webcam works! At least in Chrome/Firefox. However wifi becomes unreliable and disconnects after some time. I will confirm that this is reproducible later. For now, it doesn't look like a viable solution for me.

I had installed the 22.04 oem kernel, assuming it would be better, as the oem 20.04 install was using an oem kernel.

Is there any advantage of using 5.14.0-10XX-oem instead of 5.15 generic? How would I install it?

Let me know if more logs would be helpful.

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

@bufke

You can try install linux-modules-iwlwifi-generic to see if it can improve your wifi experience, and the linux-firmware should be up-to-date too. If it doesn't help, please open another bug for it.

The patches that in oem kernel 5.14.0-10xx-oem for your platform should be in 5.15.0-xx-generic too, there is no advantage for using 5.14 oem kernel.

Also, the XPS 9320 plus has certified by 5.15 generic kernel. Please keep on this track and report issue on it, thanks.

https://arstechnica.com/gadgets/2022/07/dells-xps-13-plus-developer-edition-gets-ubuntu-22-04-lts-certified/

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

I just got a new XPS 13 plus 9320 and it came with Windows 11. I replaced it with Ubuntu 22.04, but the Webcam wasn't working so I replaced that with Ubuntu 20.04, but the webcam still doesn't seem to be working. I tried:

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

And now Firefox can detect it but https://webcamtests.com/ and Cheese just show a black screen. I'm pretty sure the hardware is fine since I tested it when it still had Windows 11 and it was running fine. I'm also fairly new to Linux so I feel like I just didn't install something, but anyone know what could be up with this?

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

@hobble

When you install 22.04 stock Ubuntu please enable the oem meta in software-properties-gtk > additional drivers, then do the full dist-upgrade by $ sudo apt dist-upgrade. Please also make sure the BIOS is the latest,https://www.dell.com/support/home/zh-tw/product-support/product/xps-13-9320-laptop/drivers. You can upgrade the BIOS by exe file or run $ sudo fwupdmgr update. If it is still black in webcamtest, please attach kernel log and $ apt list --installed or $ dpkg-query -W, so that I can check it for you.

Revision history for this message
Edward Wong (hobble) wrote :
Download full text (54.8 KiB)

@kchsieh

I tried doing what you said by enabling the oem meta then upgrading the distro, but I'm still getting a black screen with the webcam. I also ran $ dpkg-query -W and here are the results:

accountsservice 0.6.55-0ubuntu12~20.04.5
acl 2.2.53-6
acpi-support 0.143
acpid 1:2.0.32-1ubuntu1
adduser 3.118ubuntu2
adwaita-icon-theme 3.36.1-2ubuntu0.20.04.2
aisleriot 1:3.22.9-1
alsa-base 1.0.25+dfsg-0ubuntu5
alsa-topology-conf 1.2.2-1
alsa-ucm-conf 1.2.2-1ubuntu0.13
alsa-utils 1.2.2-1ubuntu2.1
amd64-microcode 3.20191218.1ubuntu1
anacron 2.3-29
apg 2.2.3.dfsg.1-5
app-install-data-partner 19.04
apparmor 2.13.3-7ubuntu5.1
apport 2.20.11-0ubuntu27.24
apport-gtk 2.20.11-0ubuntu27.24
apport-symptoms 0.23
appstream 0.12.10-2
apt 2.0.9
apt-config-icons 0.12.10-2
apt-config-icons-hidpi 0.12.10-2
apt-utils 2.0.9
aptdaemon 1.1.1+bzr982-0ubuntu32.3
aptdaemon-data 1.1.1+bzr982-0ubuntu32.3
apturl 0.5.2ubuntu19
apturl-common 0.5.2ubuntu19
aspell 0.60.8-1ubuntu0.1
aspell-en 2018.04.16-0-1
at-spi2-core 2.36.0-2
avahi-autoipd 0.7-4ubuntu7.1
avahi-daemon 0.7-4ubuntu7.1
avahi-utils 0.7-4ubuntu7.1
baobab 3.34.0-1
base-files 11ubuntu5.5
base-passwd 3.5.47
bash 5.0-6ubuntu1.2
bash-completion 1:2.10-1ubuntu1
bc 1.07.1-2build1
bind9-dnsutils 1:9.16.1-0ubuntu2.10
bind9-host 1:9.16.1-0ubuntu2.10
bind9-libs:amd64 1:9.16.1-0ubuntu2.10
binutils 2.34-6ubuntu1.3
binutils-common:amd64 2.34-6ubuntu1.3
binutils-x86-64-linux-gnu 2.34-6ubuntu1.3
bluez 5.53-0ubuntu3.6
bluez-cups 5.53-0ubuntu3.6
bluez-obexd 5.53-0ubuntu3.6
bolt 0.9.1-2~ubuntu20.04.1
branding-ubuntu 0.10
brltty 6.0+dfsg-4ubuntu6
bsdmainutils 11.1.2ubuntu3
bsdutils 1:2.34-0.1ubuntu9.3
bubblewrap 0.4.0-1ubuntu4
build-essential 12.8ubuntu1.1
busybox-initramfs 1:1.30.1-4ubuntu6.4
busybox-static 1:1.30.1-4ubuntu6.4
bzip2 1.0.8-2
ca-certificates 20211016~20.04.1
cheese 3.34.0-1ubuntu1
cheese-common 3.34.0-1ubuntu1
colord 1.4.4-2
colord-data 1.4.4-2
command-not-found 20.04.6
console-setup 1.194ubuntu3
console-setup-linux 1.194ubuntu3
coreutils 8.30-3ubuntu2
cpio 2.13+dfsg-2ubuntu0.3
cpp 4:9.3.0-1ubuntu2
cpp-9 9.4.0-1ubuntu1~20.04.1
cracklib-runtime 2.9.6-3.2
crda 3.18-1build1
cron 3.0pl1-136ubuntu1
cups 2.3.1-9ubuntu1.2
cups-browsed 1.27.4-1
cups-bsd 2.3.1-9ubuntu1.2
cups-client 2.3.1-9ubuntu1.2
cups-common 2.3.1-9ubuntu1.2
cups-core-drivers 2.3.1-9ubuntu1.2
cups-daemon 2.3.1-9ubuntu1.2
cups-filters 1.27.4-1
cups-filters-core-drivers 1.27.4-1
cups-ipp-utils 2.3.1-9ubuntu1.2
cups-pk-helper 0.2.6-1ubuntu3
cups-ppdc 2.3.1-9ubuntu1.2
cups-server-common 2.3.1-9ubuntu1.2
dash 0.5.10.2-6
dbus 1.12.16-2ubuntu2.2
dbus-user-session 1.12.16-2ubuntu2.2
dbus-x11 1.12.16-2ubuntu2.2
dc 1.07.1-2build1
dconf-cli 0.36.0-1
dconf-gsettings-backend:amd64 0.36.0-1
dconf-service 0.36.0-1
dctrl-tools 2.24-3
debconf 1.5.73
debconf-i18n 1.5.73
debianutils 4.9.1
deja-dup 40.7-0ubuntu1
desktop-file-utils 0.24-1ubuntu3
dictionaries-common 1.28.1
diffutils 1:3.7-3
dirmngr 2.2.19-3ubuntu2.2
distro-info 0.23ubuntu1
distro-info-data 0.43ubuntu1.10
dkms 2.8.1-5ubuntu2
dmidecode 3.2-3
dmsetup 2:1.02.167-1ubuntu1
dmz-cursor-theme 0.4.5ubuntu1
dns-root-data 2019052802
dnsmasq-base 2.80-1.1ubuntu1.5
docbook-xml 4.5-9
dosfstools 4.1-2
dpkg 1.19.7ubuntu3.2
dpkg...

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

Hello,

The comment #79 is for 22.04 Ubuntu. The instructions for 20.04 can be found here [1].
Please make sure which Ubuntu codename you've installed.

[1] https://wiki.ubuntu.com/Dell

Thanks,

Revision history for this message
Edward Wong (hobble) wrote :
Download full text (57.7 KiB)

@kchsieh

Hi, so I tried following the wiki for 20.04, but that didn't work, so I just ended up upgrading to 22.04 and tried what comment #79 mentioned but I'm still getting a black screen. I ran $ dpkg-query -W again and here are the results:

accountsservice 22.07.5-2ubuntu1.3
acl 2.3.1-1
acpi-support 0.144
acpid 1:2.0.33-1ubuntu1
adduser 3.118ubuntu5
adwaita-icon-theme 41.0-1ubuntu1
aisleriot 1:3.22.22-1
alsa-base 1.0.25+dfsg-0ubuntu7
alsa-topology-conf 1.2.5.1-2
alsa-ucm-conf 1.2.6.3-1ubuntu1
alsa-utils 1.2.6-1ubuntu1
amd64-microcode 3.20191218.1ubuntu2
anacron 2.3-31ubuntu2
apg 2.2.3.dfsg.1-5build2
apparmor 3.0.4-2ubuntu2.1
apport 2.20.11-0ubuntu82.1
apport-gtk 2.20.11-0ubuntu82.1
apport-symptoms 0.24
appstream 0.15.2-2
apt 2.4.5
apt-config-icons 0.15.2-2
apt-config-icons-hidpi 0.15.2-2
apt-utils 2.4.5
aptdaemon 1.1.1+bzr982-0ubuntu39
aptdaemon-data 1.1.1+bzr982-0ubuntu39
apturl 0.5.2ubuntu22
apturl-common 0.5.2ubuntu22
aspell 0.60.8-4build1
aspell-en 2018.04.16-0-1
at-spi2-core 2.44.0-3
avahi-autoipd 0.8-5ubuntu5
avahi-daemon 0.8-5ubuntu5
avahi-utils 0.8-5ubuntu5
baobab 41.0-2
base-files 12ubuntu4.1
base-passwd 3.5.52build1
bash 5.1-6ubuntu1
bash-completion 1:2.11-5ubuntu1
bc 1.07.1-3build1
bind9-dnsutils 1:9.18.1-1ubuntu1.1
bind9-host 1:9.18.1-1ubuntu1.1
bind9-libs:amd64 1:9.18.1-1ubuntu1.1
binutils 2.38-3ubuntu1
binutils-common:amd64 2.38-3ubuntu1
binutils-x86-64-linux-gnu 2.38-3ubuntu1
bluez 5.64-0ubuntu1
bluez-cups 5.64-0ubuntu1
bluez-obexd 5.64-0ubuntu1
bolt 0.9.2-1
branding-ubuntu 0.10
brltty 6.4-4ubuntu2
bsdextrautils 2.37.2-4ubuntu3
bsdmainutils 12.1.7+nmu3ubuntu2
bsdutils 1:2.37.2-4ubuntu3
bubblewrap 0.6.1-1
build-essential 12.9ubuntu3
busybox-initramfs 1:1.30.1-7ubuntu3
busybox-static 1:1.30.1-7ubuntu3
bzip2 1.0.8-5build1
ca-certificates 20211016
ca-certificates-java 20190909
cheese 41.1-1build1
cheese-common 41.1-1build1
colord 1.4.6-1
colord-data 1.4.6-1
command-not-found 22.04.0
console-setup 1.205ubuntu3
console-setup-linux 1.205ubuntu3
coreutils 8.32-4.1ubuntu1
cpio 2.13+dfsg-7
cpp 4:11.2.0-1ubuntu1
cpp-11 11.2.0-19ubuntu1
cpp-9 9.4.0-5ubuntu1
cracklib-runtime 2.9.6-3.4build4
crda 3.18-1build1
cron 3.0pl1-137ubuntu3
cups 2.4.1op1-1ubuntu4.1
cups-browsed 1.28.15-0ubuntu1
cups-bsd 2.4.1op1-1ubuntu4.1
cups-client 2.4.1op1-1ubuntu4.1
cups-common 2.4.1op1-1ubuntu4.1
cups-core-drivers 2.4.1op1-1ubuntu4.1
cups-daemon 2.4.1op1-1ubuntu4.1
cups-filters 1.28.15-0ubuntu1
cups-filters-core-drivers 1.28.15-0ubuntu1
cups-ipp-utils 2.4.1op1-1ubuntu4.1
cups-pk-helper 0.2.6-1ubuntu5
cups-ppdc 2.4.1op1-1ubuntu4.1
cups-server-common 2.4.1op1-1ubuntu4.1
dash 0.5.11+git20210903+057cd650a4ed-3build1
dbus 1.12.20-2ubuntu4
dbus-user-session 1.12.20-2ubuntu4
dbus-x11 1.12.20-2ubuntu4
dc 1.07.1-3build1
dconf-cli 0.40.0-3
dconf-gsettings-backend:amd64 0.40.0-3
dconf-service 0.40.0-3
dctrl-tools 2.24-3build2
debconf 1.5.79ubuntu1
debconf-i18n 1.5.79ubuntu1
debianutils 5.5-1ubuntu2
deja-dup 42.9-1ubuntu3
desktop-file-utils 0.26-1ubuntu3
dictionaries-common 1.28.14
diffutils 1:3.8-0ubuntu2
dirmngr 2.2.27-3ubuntu2.1
distro-info 1.1build1
distro-info-data 0.52ubuntu0.1
dkms 2.8.7-2ubuntu2
dmidecode 3.3-3
dmsetup 2:1.02.175-2.1ubuntu4
dmz-cursor-theme 0....

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

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.

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

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 (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...

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.