Bug 2368506 - IPU6 camera on dell 7450 with hi556 sensor not working - requires USBIO
Summary: IPU6 camera on dell 7450 with hi556 sensor not working - requires USBIO
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 42
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Hans de Goede
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2402329 (view as bug list)
Depends On: 2333299
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-26 06:56 UTC by traxtopel
Modified: 2025-11-25 16:27 UTC (History)
18 users (show)

Fixed In Version: kernel-6.17.1-300.fc43 kernel-6.17.4-200.fc42 kernel-6.17.4-100.fc41
Clone Of:
Environment:
Last Closed: 2025-10-07 19:48:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
journalctl -b 0 -k > kernel.txt (181.76 KB, text/plain)
2025-05-26 06:57 UTC, traxtopel
no flags Details
lsusb > lsusb.txt (453 bytes, text/plain)
2025-05-26 06:57 UTC, traxtopel
no flags Details
ls -l /sys/bus/i2c/devices/ > i2c-devices.txt (2.32 KB, text/plain)
2025-05-26 06:58 UTC, traxtopel
no flags Details
ls -l /sys/bus/spi/devices/ > spi-devices.txt (462 bytes, text/plain)
2025-05-26 06:58 UTC, traxtopel
no flags Details
kernel-6.17.0-63.fc43 logs (164.60 KB, text/plain)
2025-10-01 09:33 UTC, Ondřej Pospíšil
no flags Details
kernel-6.17.0-300.ipu6.fc43 logs (119.82 KB, text/plain)
2025-10-01 20:25 UTC, Ondřej Pospíšil
no flags Details

Description traxtopel 2025-05-26 06:56:32 UTC
Follow on from https://bugzilla.redhat.com/show_bug.cgi?id=2341731

Tried the steps Hans mentions, camera not working with FOSS or PROPRIETARY driver.

Will attach logs as follows.
sudo grubby --update-kernel=ALL --args="intel_skl_int3472_discrete.dyndbg"
reboot

journalctl -b 0 -k > kernel.txt
lsusb > lsusb.txt
ls -l /sys/bus/i2c/devices/ > i2c-devices.txt
ls -l /sys/bus/spi/devices/ > spi-devices.txt


Reproducible: Always

Comment 1 traxtopel 2025-05-26 06:57:23 UTC
Created attachment 2091575 [details]
journalctl -b 0 -k > kernel.txt

Comment 2 traxtopel 2025-05-26 06:57:54 UTC
Created attachment 2091576 [details]
lsusb > lsusb.txt

Comment 3 traxtopel 2025-05-26 06:58:19 UTC
Created attachment 2091577 [details]
ls -l /sys/bus/i2c/devices/ > i2c-devices.txt

Comment 4 traxtopel 2025-05-26 06:58:39 UTC
Created attachment 2091578 [details]
ls -l /sys/bus/spi/devices/ > spi-devices.txt

Comment 5 Hans de Goede 2025-05-26 10:19:17 UTC
Thank you for the logs. With the latest kernel + rpmfusion USBIO drivers the issue seems to be that the hi556 camera sensor driver lacks dvdd regulator control which is required on this laptop.

I've prepared a Fedora test-kernel with a set of hi556 driver patches which add dvdd regulator support:

https://koji.fedoraproject.org/koji/taskinfo?taskID=133212953

Note this is still building atm, it should be finished in a couple of hours.

For instructions for directly installing a kernel from koji (Fedora's buildsystem) see:

https://fedorapeople.org/~jwrdegoede/kernel-test-instructions.txt

Please give this kernel a try and if things still do not work please collect new kernel logs using "journalctl -b 0 -k > kernel.txt".

Comment 6 Jon Richter 2025-06-03 11:29:39 UTC
Reporting back that after installing the (unsigned) 6.14.8-300.ipu6 Kernel from Koji above, a hi556 camera started working (for the first time).

This was due to the `grep` command in https://github.com/9elements/v4l2-relayd/blob/f14d6d4458de4962f065ae77c428c9e43b1f00ac/data/systemd/v4l2-relayd.service#L15 not failing anymore. Without the patched Kernel, there wouldn't have been a `video4linux` directory.

Before, in addition to installing the RPMFusion non-free akmod-intel-ipu6 package, it was also needed to enroll the akmods MOK key, as precisely described in https://bugzilla.redhat.com/show_bug.cgi?id=2332997#c15. This allowed the USBIO devices to show up in /sys/bus/i2c/devices

Comment 7 Ondřej Pospíšil 2025-09-22 14:49:25 UTC
Hello,

is there any update on this bug? I have exactly the same issue - Dell Latitude 7450 with the hi556 sensor.

I wanted to try the test-kernel, but the RPMs are no longer available. Is there any other way to test the patches?

Comment 8 Hans de Goede 2025-09-30 16:09:55 UTC
Good news the just released 6.17 kernel has support for the IPU7 CSI2
receiver and the missing USBIO drivers have recently landed in linux-next.
I have backported the USBIO drivers + a few other camera fixes to
the Fedora 6.17 kernel:

https://gitlab.com/cki-project/kernel-ark/-/merge_requests/4105

I've also prepared an updated libcamera-0.5.2 Fedora package with support
for IPU7 (Lunar Lake) CSI2 receivers as well as backporting a set of
upstream SwStats and AGC fixes, fixing various crashes as well as the
bad flicker MIPI camera users have been hitting with libcamera 0.5.2.

Together these 2 updates should make the FOSS MIPI camera support work on
most Meteor Lake, Lunar Lake and Arrow Lake laptops:

https://bodhi.fedoraproject.org/updates/FEDORA-2025-a2b653cff6
https://bodhi.fedoraproject.org/updates/FEDORA-2025-bdeff04027

Please install these updates, disable the proprietary stack from rpmfusion
(if installed) by running: "sudo ipu6-driver-select foss", reboot and
give the new drivers a try by running qcam, snapshot or video-conferencing
in Firefox. After testing please report the testing results in this bug.

If things work well for you please leave positive feedback on the updates
in bodhi.

Note snapshot on Lunar Lake triggers a bug in the LNL Vulkan code,
to avoid this start snapshot from a terminal with:

GSK_RENDERER=gl snapshot

Comment 9 Ondřej Pospíšil 2025-10-01 09:31:16 UTC
Unfortunately, it's still not working.

I've upgraded to Fedora 43 Beta and installed the recommended updates. Here are the current package versions:

$ rpm -q libcamera
libcamera-0.5.2-4.fc43.x86_64

$ rpm -q kernel-headers
kernel-headers-6.17.0-63.fc43.x86_64

When I open qcam, it still can't find the camera and prints the following message:

$ qcam
[0:24:41.058977353] [9612]  INFO Camera camera_manager.cpp:330 libcamera v0.5.2
[0:24:41.067706411] [9624]  INFO SimplePipeline simple.cpp:1687 No sensor found for /dev/media0

I am attaching the new kernel logs to this post for further analysis.

Comment 10 Ondřej Pospíšil 2025-10-01 09:33:14 UTC
Created attachment 2108219 [details]
kernel-6.17.0-63.fc43 logs

Comment 11 Hans de Goede 2025-10-01 18:36:21 UTC
(In reply to nukpopik from comment #10)
> Created attachment 2108219 [details]
> kernel-6.17.0-63.fc43 logs

Thank you.

Looking at the log, one of the issues seems to be that the ACPI hardware-ids for the GPIO and I2C functions of the USBIO expander used on this laptop are missing from the gpio-usbio / i2c-usbio drivers.

I've done a Fedora kernel test-build with 2 patches added to add these missing ids:

https://koji.fedoraproject.org/koji/taskinfo?taskID=137685917

See here for instructions for installing a kernel directly from koji (Fedora's buildsystem):

https://fedorapeople.org/~jwrdegoede/kernel-test-instructions.txt

Please give this a kernel a try. I cannot promise it will work, but it should at least get us a step closer to something working.

Comment 12 Ondřej Pospíšil 2025-10-01 20:24:40 UTC
Excellent! The test kernel you provided fixed the issue. 👍

The camera is now working correctly in both qcam and my web browser.

Here is the kernel version I'm running:
$ uname -r
6.17.0-300.ipu6.fc43.x86_64

Although the camera is functioning, I am seeing several warnings related to the hi556 sensor when I launch qcam. I'm not sure if these are relevant, but I wanted to report them:
$ qcam
[0:08:13.642056522] [6318]  INFO Camera camera_manager.cpp:330 libcamera v0.5.2
[0:08:13.680565385] [6331]  WARN CameraSensor camera_sensor_legacy.cpp:354 'hi556 16-0020': Recommended V4L2 control 0x009a0922 not supported
[0:08:13.680605033] [6331]  WARN CameraSensor camera_sensor_legacy.cpp:426 'hi556 16-0020': The sensor kernel driver needs to be fixed
[0:08:13.680610006] [6331]  WARN CameraSensor camera_sensor_legacy.cpp:428 'hi556 16-0020': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
[0:08:13.680960545] [6331]  WARN CameraSensorProperties camera_sensor_properties.cpp:484 No static properties available for 'hi556'
[0:08:13.680968944] [6331]  WARN CameraSensorProperties camera_sensor_properties.cpp:486 Please consider updating the camera sensor properties database
[0:08:13.680973680] [6331]  WARN CameraSensor camera_sensor_legacy.cpp:594 'hi556 16-0020': Failed to retrieve the camera location
[0:08:13.680979285] [6331]  WARN CameraSensor camera_sensor_legacy.cpp:616 'hi556 16-0020': Rotation control not available, default to 0 degrees
[0:08:13.680987007] [6331]  WARN CameraSensor camera_sensor_legacy.cpp:501 'hi556 16-0020': No sensor delays found in static properties. Assuming unverified defaults.
[0:08:13.686207943] [6331]  WARN IPAProxy ipa_proxy.cpp:177 Configuration file 'hi556.yaml' not found for IPA module 'simple', falling back to 'uncalibrated.yaml'
[0:08:13.706282537] [6332]  INFO IPAProxySoftWorker soft_ipa_proxy_worker.cpp:448 Starting worker for IPA module /usr/lib64/libcamera/ipa/ipa_soft_simple.so with IPC fd = 29
[0:08:13.707203990] [6332]  WARN IPASoft soft_simple.cpp:103 IPASoft: Failed to create camera sensor helper for hi556
[0:08:13.707835422] [6331]  INFO Camera camera_manager.cpp:220 Adding camera '\_SB_.PC00.LNK1' for pipeline handler simple

I am also attaching the kernel logs from the test build, in case you find them useful for confirmation or debugging the warnings.

Comment 13 Ondřej Pospíšil 2025-10-01 20:25:58 UTC
Created attachment 2108259 [details]
kernel-6.17.0-300.ipu6.fc43 logs

Comment 14 Hans de Goede 2025-10-02 15:17:29 UTC
(In reply to Ondřej Pospíšil from comment #12)
> Excellent! The test kernel you provided fixed the issue. 👍

Great thank you for testing.

I've submitted the 2 patches which I added to the test kernel upstream now:

https://lore.kernel.org/linux-i2c/20251001212310.4813-1-hansg@kernel.org/
https://lore.kernel.org/linux-gpio/20251001212416.4871-1-hansg@kernel.org/

and I've submitted a merge-request to get these added as downstream patches
to the Fedora 6.17 kernel builds:

https://gitlab.com/cki-project/kernel-ark/-/merge_requests/4133/

So these should show up in regular Fedora kernel builds soon.

> Although the camera is functioning, I am seeing several warnings related to
> the hi556 sensor when I launch qcam. I'm not sure if these are relevant, but
> I wanted to report them:

Thanks. For now these are expected these basically mean that the sensor driver
lacks some info which libcamera expects. But as you can see it can work without
this info.

We do need to fix the sensor drivers to provide the info one of these days,
but there are higher priority things to work on ...

Comment 15 Hans de Goede 2025-10-07 19:48:11 UTC
The patches fixing this have been included in kernel-6.17.1-300.fc43, closing.

Comment 16 Hans de Goede 2025-10-07 19:49:10 UTC
*** Bug 2402329 has been marked as a duplicate of this bug. ***

Comment 17 Fedora Update System 2025-10-20 00:31:36 UTC
FEDORA-2025-9d7d3f572e (kernel-6.17.4-200.fc42 and kernel-headers-6.17.4-200.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-9d7d3f572e

Comment 18 Fedora Update System 2025-10-20 00:31:38 UTC
FEDORA-2025-7d4cac8b3b (kernel-6.17.4-100.fc41 and kernel-headers-6.17.4-100.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-7d4cac8b3b

Comment 19 Fedora Update System 2025-10-21 02:25:30 UTC
FEDORA-2025-9d7d3f572e has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-9d7d3f572e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-9d7d3f572e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 20 Fedora Update System 2025-10-21 02:57:28 UTC
FEDORA-2025-7d4cac8b3b has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-7d4cac8b3b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-7d4cac8b3b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 21 Fedora Update System 2025-10-22 05:23:56 UTC
FEDORA-2025-9d7d3f572e (kernel-6.17.4-200.fc42 and kernel-headers-6.17.4-200.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 22 Fedora Update System 2025-10-23 01:57:16 UTC
FEDORA-2025-7d4cac8b3b (kernel-6.17.4-100.fc41 and kernel-headers-6.17.4-100.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 23 Kieran 2025-11-15 23:10:49 UTC
Hi,

I installed Fedora 43 on my Latitude 7450 and the webcam works OOTB through qcam and snapshot, however it doesn't seem to work through browsers (I have tried using packaged Firefox and Flathub Google Chrome). 

qcam gives me the following log messages, but correctly displays the webcam video:

[0:14:04.158395644] [10733]  INFO Camera camera_manager.cpp:330 libcamera v0.5.2
[0:14:04.182794667] [10746]  WARN CameraSensor camera_sensor_legacy.cpp:354 'hi556 16-0020': Recommended V4L2 control 0x009a0922 not supported
[0:14:04.182819859] [10746]  WARN CameraSensor camera_sensor_legacy.cpp:426 'hi556 16-0020': The sensor kernel driver needs to be fixed
[0:14:04.182825960] [10746]  WARN CameraSensor camera_sensor_legacy.cpp:428 'hi556 16-0020': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
[0:14:04.183140696] [10746]  WARN CameraSensorProperties camera_sensor_properties.cpp:484 No static properties available for 'hi556'
[0:14:04.183148321] [10746]  WARN CameraSensorProperties camera_sensor_properties.cpp:486 Please consider updating the camera sensor properties database
[0:14:04.183154366] [10746]  WARN CameraSensor camera_sensor_legacy.cpp:594 'hi556 16-0020': Failed to retrieve the camera location
[0:14:04.183159733] [10746]  WARN CameraSensor camera_sensor_legacy.cpp:616 'hi556 16-0020': Rotation control not available, default to 0 degrees
[0:14:04.183170209] [10746]  WARN CameraSensor camera_sensor_legacy.cpp:501 'hi556 16-0020': No sensor delays found in static properties. Assuming unverified defaults.
[0:14:04.186795256] [10746]  WARN IPAProxy ipa_proxy.cpp:177 Configuration file 'hi556.yaml' not found for IPA module 'simple', falling back to 'uncalibrated.yaml'
[0:14:04.201330615] [10747]  INFO IPAProxySoftWorker soft_ipa_proxy_worker.cpp:448 Starting worker for IPA module /usr/lib64/libcamera/ipa/ipa_soft_simple.so with IPC fd = 35
[0:14:04.202061927] [10747]  WARN IPASoft soft_simple.cpp:103 IPASoft: Failed to create camera sensor helper for hi556
[0:14:04.202617114] [10746]  INFO Camera camera_manager.cpp:220 Adding camera '\_SB_.PC00.LNK1' for pipeline handler simple
[0:14:04.228147236] [10733]  INFO Camera camera.cpp:1215 configuring streams: (0) 2584x1944-ABGR8888/Unset
[0:14:04.228466822] [10747]  WARN IPASoft soft_simple.cpp:255 IPASoft: Minimum gain is zero, that can't be linear
[0:14:04.228696152] [10747]  INFO IPASoft soft_simple.cpp:269 IPASoft: Exposure 6-2066, gain 100-240 (1)
Zero-copy enabled
[0:14:06.643733965] [10750]  INFO Debayer debayer_cpu.cpp:831 Processed 30 frames in 663008us, 22100 us/frame

However, in Firefox the hi556 sensor appears as an option and light turns on, but the preview is black and the Firefox gUM test page shows nothing, with a 'Success' message and an FPS of 0.

Please advise, let me know if there are some more useful log files I can include.

Comment 24 Kieran 2025-11-15 23:39:20 UTC
I have tried the following kernels, with no change:
6.17.1-300.fc43.x86_64
6.17.7-300.fc43.x86_64

Comment 25 Hans de Goede 2025-11-25 16:27:44 UTC
For people reading along here Kieran has filed a new bug for the camera not working in the browser issue, this is now being discussed in bug 2415297.


Note You need to log in before you can comment on or make changes to this bug.