Failed to enable camera on Dell XPS 9320: ov01a10 i2c-OVTI01A0:00: failed to check hwcfg: -22

Bug #2073453 reported by You-Sheng Yang
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ipu6-drivers (Ubuntu)
Status tracked in Oracular
Noble
Fix Committed
High
You-Sheng Yang
Oracular
Fix Released
High
You-Sheng Yang

Bug Description

[SRU Justfication]

[Impact]

Device camera won't work. dmesg has:

  ov01a10 i2c-OVTI01A0:00: can't get clock frequency
  ov01a10 i2c-OVTI01A0:00: failed to check hwcfg: -22
  ov01a10: probe of i2c-OVTI01A0:00 failed with error -22

[Fix]

For kernels >= 6.8, there are ACPI fixes for MIPI DisCo image in the BIOS, but for older kernels, this has to be worked around by skipping hwcfg checks. The affected device is not in the matching list, so an additional entry to ov01a10 camera sensor driver is required.

[Test Case]

dmesg should no longer have error messages from ov01a10. Instead:

  intel-ipu6-isys intel-ipu6-isys0: bind ov01a10 18-0036 nlanes is 1 port is 2
  intel-ipu6-isys intel-ipu6-isys0: All sensor registration completed.

[Where problems could occur]

No.

[Other Info]

While this happens to ipu6-drivers/{oracualr,noble} only, proposed fixes are therefore nominated accordingly.

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

```
$ sudo dmesg|grep ov0
[ 5.500462] ov01a10 i2c-OVTI01A0:00: can't get clock frequency
[ 5.500466] ov01a10 i2c-OVTI01A0:00: failed to check hwcfg: -22
[ 5.500578] ov01a10: probe of i2c-OVTI01A0:00 failed with error -22

$ sudo dmidecode
...
System Information
        Manufacturer: Dell Inc.
        Product Name: XPS 9320
...
```

---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: ubuntu 1256 F.... pulseaudio
CasperMD5json:
 {
   "result": "skip"
 }
DistributionChannelDescriptor:
 # This is the distribution channel descriptor for the OEM CDs
 # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
 canonical-oem-somerville-jammy-amd64-20220504-33+jellyfish-tentacool-rpl+X88
DistroRelease: Ubuntu 22.04
InstallationDate: Installed on 2024-07-05 (12 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - somerville-jammy-amd64-20220504-33
MachineType: Dell Inc. XPS 9320
Package: ipu6-drivers (not installed)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.5.0-1026-oem root=UUID=c5e7cb2e-c5d0-4d3d-a43f-de322f3fd42e ro automatic-oem-config quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 6.5.0-1026.27-oem 6.5.13
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-6.5.0-1026-oem N/A
 linux-backports-modules-6.5.0-1026-oem N/A
 linux-firmware 20220329.git681281e4-0ubuntu3.31
Tags: jammy
Uname: Linux 6.5.0-1026-oem x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: True
dmi.bios.date: 02/02/2023
dmi.bios.release: 1.0
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.0.0
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.ec.firmware.release: 1.0
dmi.modalias: dmi:bvnDellInc.:bvr1.0.0:bd02/02/2023:br1.0:efr1.0:svnDellInc.:pnXPS9320:pvr:rvnDellInc.:rn:rvr:cvnDellInc.:ct10:cvr:sku0C10:
dmi.product.family: XPS
dmi.product.name: XPS 9320
dmi.product.sku: 0C10
dmi.sys.vendor: Dell Inc.

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

apport information

tags: added: apport-collected
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 : HookError_ubuntu.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 : PaInfo.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

description: updated
You-Sheng Yang (vicamo)
Changed in ipu6-drivers (Ubuntu Noble):
status: New → In Progress
Changed in ipu6-drivers (Ubuntu Oracular):
status: New → In Progress
Changed in ipu6-drivers (Ubuntu Noble):
importance: Undecided → High
Changed in ipu6-drivers (Ubuntu Oracular):
importance: Undecided → High
Changed in ipu6-drivers (Ubuntu Noble):
assignee: nobody → You-Sheng Yang (vicamo)
Changed in ipu6-drivers (Ubuntu Oracular):
assignee: nobody → You-Sheng Yang (vicamo)
Revision history for this message
You-Sheng Yang (vicamo) wrote :

This is being SRU-ed along with bug 2072643. Proposed debdiffs can be found there.

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

This bug was fixed in the package ipu6-drivers - 0~git202406240945.aecec2aa-0ubuntu2

---------------
ipu6-drivers (0~git202406240945.aecec2aa-0ubuntu2) oracular; urgency=medium

  [ You-Sheng Yang ]
  * Embedded camera using camera sensors ov02e10 and ov08a10 doesn't work:
    missing kernel driver (LP: #2072643)
    - debian: fix index numbers in dkms.conf
  * Failed to enable camera on Dell XPS 9320: ov01a10 i2c-OVTI01A0:00: failed
    to check hwcfg: -22 (LP: #2073453)
    - debian: skip hwcfg checks for Dell XPS 9320 with ov01a10 camera sensor

 -- You-Sheng Yang <email address hidden> Thu, 18 Jul 2024 12:02:47 +0800

Changed in ipu6-drivers (Ubuntu Oracular):
status: In Progress → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello You-Sheng, or anyone else affected,

Accepted ipu6-drivers into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ipu6-drivers/0~git202406240945.aecec2aa-0ubuntu2~24.04.1 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-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. 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 ipu6-drivers (Ubuntu Noble):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-noble
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.