Intel MIPI Camera sometimes does not work on Ubuntu 22.04.2

Bug #2008224 reported by Kent Lin
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Incomplete
Undecided
Unassigned
Jammy
Confirmed
Undecided
Unassigned
Kinetic
Won't Fix
High
You-Sheng Yang
Lunar
Incomplete
Undecided
Unassigned
v4l2-relayd (Ubuntu)
Invalid
Undecided
Unassigned
Jammy
Invalid
Undecided
Unassigned
Kinetic
New
Undecided
Unassigned
Lunar
Invalid
Undecided
Unassigned

Bug Description

Install Ubuntu 22.04.02 daily build (2023-02-23) and do `dist-upgrade`.
The camera sometimes does not work with Google Meet and any sort of camera application.

[steps]
1. boot into OS
2. check kernel log

[rate]
1/3

[kernel]
[ 3.169297] intel-ipu6 intel-ipu: enabling device (0000 -> 0002)
[ 3.169665] intel-ipu6 intel-ipu: Device 0x465d (rev: 0x1)
[ 3.169682] intel-ipu6 intel-ipu: physical base address 0x603e000000
[ 3.169683] intel-ipu6 intel-ipu: mapped as: 0x00000000d0bf5156
[ 3.169729] intel-ipu6 intel-ipu: Unable to set secure mode
[ 3.169730] intel-ipu6 intel-ipu: IPU in non-secure mode
[ 3.169731] intel-ipu6 intel-ipu: IPU secure touch = 0x0
[ 3.169731] intel-ipu6 intel-ipu: IPU camera mask = 0xff
[ 3.170713] intel-ipu6 intel-ipu: Skip ipc reset for non-secure mode
[ 3.170714] intel-ipu6 intel-ipu: IPC reset done
[ 3.170715] intel-ipu6 intel-ipu: cpd file name: intel/ipu6ep_fw.bin
[ 3.171885] intel-ipu6 intel-ipu: FW version: 20220510
[ 3.174214] intel-ipu6 intel-ipu: IPU6-v3 driver version 1.0
[ 3.218000] intel-ipu6-psys intel-ipu6-psys0: pkg_dir entry count:8
[ 3.218094] intel-ipu6-psys intel-ipu6-psys0: psys probe minor: 0
[ 12.433762] vsc_ace spi-INTC1094:00-5db76cf6-0a68-4ed6-9b78-0361635e2447: recv firmware id
[ 17.721699] vsc_ace spi-INTC1094:00-5db76cf6-0a68-4ed6-9b78-0361635e2447: command 19 response timeout
[ 17.721725] ipu own camera failed
[ 17.829513] ov01a10 i2c-OVTI01A0:00: Acquire VSC failed
[ 17.829987] ov01a10: probe of i2c-OVTI01A0:00 failed with error -110

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: v4l2-relayd 0.1.2-0ubuntu1
ProcVersionSignature: Ubuntu 5.19.0-32.33~22.04.1-generic 5.19.17
Uname: Linux 5.19.0-32-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Feb 23 05:16:46 2023
InstallationDate: Installed on 2023-02-23 (0 days ago)
InstallationMedia: Ubuntu 22.04.2 LTS "Jammy Jellyfish" - Release amd64 (20230223)
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: v4l2-relayd
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.modprobe.d.v4l2-relayd.conf: options v4l2loopback exclusive_caps=1 card_label="Intel MIPI Camera"
mtime.conffile..etc.modprobe.d.v4l2-relayd.conf: 2023-02-23T03:30:34.242686

Revision history for this message
Kent Lin (kent-jclin) wrote :
Revision history for this message
Kent Lin (kent-jclin) wrote :

oem-log

Revision history for this message
Kent Lin (kent-jclin) wrote :
Download full text (3.8 KiB)

Test result of v4l2-compliance

u@u-XPS-9320:~$ 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 : 5.19.17
 Capabilities : 0x85200001
  Video Capture
  Read/Write
  Streaming
  Extended Pix Format
  Device Capabilities
 Device Caps : 0x05200001
  Video Capture
  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)
 test VIDIOC_G/S/ENUMINPUT: OK
 test VIDIOC_G/S_AUDIO: OK (Not Supported)
 Inputs: 1 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 (Not Supported)
 test VIDIOC_G/S_AUDOUT: OK (Not Supported)
 Outputs: 0 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 (Input 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 (Input 0):
  fail: v4l2-test-formats.cpp(327): Video Output cap not set, but Video Output formats defined
 test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: FAIL
  fail: v4l2-test-formats.cpp(1290): node->has_frmintervals && !cap->capability
 test VIDIOC_G/S_PARM: FAIL
 test VIDIOC_G_FBUF: OK (Not Supported)
  fail: v4l2-test-formats.cpp(623): Video Output cap not set, but Video Output formats defined
 test VIDIOC_G_FMT: FAIL
  warn: v4l2-test-formats.cpp(784): TRY_FMT cannot handle an invalid pixelformat.
  warn: v4l2-test-formats.cpp(785): This may or may not be a problem. For more information see:
  warn: v4l2-test-formats.cpp(786): http://<email address hidden>/msg56550.html
 test VIDIOC_TRY_FMT: OK
  warn: v4l2-test-formats.cpp(1147): S_FMT cannot handle an invalid pixelformat.
  warn: v4l2-test-formats.cpp(1148): This may or may not be a problem. For more information see:
  warn: v4l2-test-formats.cpp(1149): http://<email address hidden>/msg56550.html
 test VIDIOC_S_FMT: OK
 test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
 test Cropping: OK (Not Supported)
 test Composin...

Read more...

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

Checked on TRBA-DVT2-C5_202112-29763, the camera does not work sometimes.

[steps]
1. boot into OS
2. check kernel log

[rate]
1/3

I can reproduce by warm boot

[kernel]
[ 3.169297] intel-ipu6 intel-ipu: enabling device (0000 -> 0002)
[ 3.169665] intel-ipu6 intel-ipu: Device 0x465d (rev: 0x1)
[ 3.169682] intel-ipu6 intel-ipu: physical base address 0x603e000000
[ 3.169683] intel-ipu6 intel-ipu: mapped as: 0x00000000d0bf5156
[ 3.169729] intel-ipu6 intel-ipu: Unable to set secure mode
[ 3.169730] intel-ipu6 intel-ipu: IPU in non-secure mode
[ 3.169731] intel-ipu6 intel-ipu: IPU secure touch = 0x0
[ 3.169731] intel-ipu6 intel-ipu: IPU camera mask = 0xff
[ 3.170713] intel-ipu6 intel-ipu: Skip ipc reset for non-secure mode
[ 3.170714] intel-ipu6 intel-ipu: IPC reset done
[ 3.170715] intel-ipu6 intel-ipu: cpd file name: intel/ipu6ep_fw.bin
[ 3.171885] intel-ipu6 intel-ipu: FW version: 20220510
[ 3.174214] intel-ipu6 intel-ipu: IPU6-v3 driver version 1.0
[ 3.218000] intel-ipu6-psys intel-ipu6-psys0: pkg_dir entry count:8
[ 3.218094] intel-ipu6-psys intel-ipu6-psys0: psys probe minor: 0
[ 12.433762] vsc_ace spi-INTC1094:00-5db76cf6-0a68-4ed6-9b78-0361635e2447: recv firmware id
[ 17.721699] vsc_ace spi-INTC1094:00-5db76cf6-0a68-4ed6-9b78-0361635e2447: command 19 response timeout
[ 17.721725] ipu own camera failed
[ 17.829513] ov01a10 i2c-OVTI01A0:00: Acquire VSC failed
[ 17.829987] ov01a10: probe of i2c-OVTI01A0:00 failed with error -110

Andy Chi (andch)
Changed in v4l2-relayd (Ubuntu Jammy):
status: New → Invalid
Changed in v4l2-relayd (Ubuntu):
status: New → Invalid
Changed in linux (Ubuntu Jammy):
status: New → Confirmed
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 2008224

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
Andy Chi (andch) wrote : Re: Intel MIPI Camera does not work on Ubuntu 22.04.02

BIOS on TRBA-DVT2-C5_202112-29763 is 2.0.0

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

I tried on TRBA-DVT2-C1_202112-29801 with warm boot 10 times, the kernel does not report error. MIPI camera works well from webcamtests.com.

I'll try to run a stress test to perform 100 times warm boot to see what will happen.

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

The BIOS on TRBA-DVT2-C1_202112-29801 is 1.11.0

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

ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: ubuntu 1692 F.... pulseaudio
CRDA: N/A
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 22.04
InstallationDate: Installed on 2023-02-24 (0 days ago)
InstallationMedia: Ubuntu 22.04.2 LTS "Jammy Jellyfish" - Release amd64 (20230223)
MachineType: Dell Inc. XPS 9320
Package: linux (not installed)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.19.0-32-generic root=UUID=4747e171-2f31-4d0f-a7d2-ddac842c6a91 ro quiet splash i915.enable_psr2_sel_fetch=0 vt.handoff=7
ProcVersionSignature: Ubuntu 5.19.0-32.33~22.04.1-generic 5.19.17
RelatedPackageVersions:
 linux-restricted-modules-5.19.0-32-generic N/A
 linux-backports-modules-5.19.0-32-generic N/A
 linux-firmware 20220329.git681281e4-0ubuntu3.10
Tags: jammy wayland-session wayland-session
Uname: Linux 5.19.0-32-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 02/06/2023
dmi.bios.release: 2.0
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 2.0.0
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr2.0.0:bd02/06/2023:br2.0: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.

tags: added: apport-collected
Revision history for this message
Andy Chi (andch) wrote : AlsaInfo.txt

apport information

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

apport information

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

apport information

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

apport information

Revision history for this message
Andy Chi (andch) wrote : Lspci-vt.txt

apport information

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

apport information

Revision history for this message
Andy Chi (andch) wrote : Lsusb-t.txt

apport information

Revision history for this message
Andy Chi (andch) wrote : Lsusb-v.txt

apport information

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

apport information

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

apport information

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

apport information

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

apport information

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

apport information

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

apport information

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

apport information

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

apport information

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

apport information

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

apport information

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

apport information

Andy Chi (andch)
description: updated
Revision history for this message
Andy Chi (andch) wrote : Re: Intel MIPI Camera sometimes does not work on Ubuntu 22.04.02

Test with warm boot 39 times and checked the log. I can reproduce this issue once. Please see the attached dmesg.txt.

description: updated
summary: - Intel MIPI Camera does not work on Ubuntu 22.04.02
+ Intel MIPI Camera sometimes does not work on Ubuntu 22.04.02
Revision history for this message
Andy Chi (andch) wrote :

Compare to the normal log, the sensor does not register completed.

[Fail]
intel-ipu6 intel-ipu: cpd file name: intel/ipu6ep_fw.bin
intel-ipu6 intel-ipu: FW version: 20220510
intel-ipu6 intel-ipu: IPU6-v3 driver version 1.0
intel-ipu6-psys intel-ipu6-psys0: pkg_dir entry count:8
intel-ipu6-psys intel-ipu6-psys0: psys probe minor: 0
mei_vsc spi-INTC1094:00: gpio get resetfw failed
mei_vsc: probe of spi-INTC1094:00 failed with error -22

[Success]
intel-ipu6 intel-ipu: cpd file name: intel/ipu6ep_fw.bin
intel-ipu6 intel-ipu: FW version: 20220510
intel-ipu6 intel-ipu: IPU6-v3 driver version 1.0
intel-ipu6-psys intel-ipu6-psys0: pkg_dir entry count:8
intel-ipu6-psys intel-ipu6-psys0: psys probe minor: 0
intel-ipu6-isys intel-ipu6-isys0: bind ov01a10 3-0036 nlanes is 1 port is 2
intel-ipu6-isys intel-ipu6-isys0: All sensor registration completed.

summary: - Intel MIPI Camera sometimes does not work on Ubuntu 22.04.02
+ Intel MIPI Camera sometimes does not work on Ubuntu 22.04.2
Changed in linux (Ubuntu Kinetic):
assignee: nobody → You-Sheng Yang (vicamo)
importance: Undecided → High
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Ubuntu 22.10 (Kinetic Kudu) has reached end of life, so this bug will not be fixed for that specific release.

Changed in linux (Ubuntu Kinetic):
status: New → Won't Fix
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.