Bug 2307279 - ipu6 with hi556 sensor
Summary: ipu6 with hi556 sensor
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 41
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-08-22 13:43 UTC by fattony4
Modified: 2024-08-26 18:55 UTC (History)
15 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-08-26 08:52:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
dmesg right after fresh reboot and starting qcam (108.33 KB, text/plain)
2024-08-22 13:43 UTC, fattony4
no flags Details

Description fattony4 2024-08-22 13:43:45 UTC
Created attachment 2044609 [details]
dmesg right after fresh reboot and starting qcam

1. Please describe the problem:
ipu6 webcam with hi556 sensor does not work. It used to work with these patches: https://copr.fedorainfracloud.org/coprs/jwrdegoede/ipu6-softisp

a) qcam
$ qcam
[0:14:20.923375282] [9500] INFO Camera camera_manager.cpp:313 libcamera v0.3.1
The cached device pixel ratio value was stale on window update. Please file a QTBUG which explains how to reproduce.
It does not show a webcam in the dropdown.

b) gum_test.html (https://mozilla.github.io/webrtc-landing/gum_test.html)
The "image" is white and it says "FPS now: 0.0 , entire capture: 0.0" and "Success!".


2. What is the Version-Release number of the kernel:
Fedora 41
kernel 6.11.0-0.rc3.30.fc41.x86_64
libcamera-0.3.1-2.fc41.src.rpm


3. Did it work previously in Fedora? If so, what kernel version did the issue
No, this is a new feature.


4. dmesg
Dmesg was produced like this:
1) boot
2) open terminal, start qcam
3) sudo dmesg > dmesg.txt

Comment 1 Hans de Goede 2024-08-24 15:15:51 UTC
Thank you.

Looking at the dmesg it seems that the intel-ipu6 kernel module never loads.

I suspect that you also have the rpmfusion packages installed and those create a /etc/modprobe/ipu6-driver-select.conf file blacklisting the opensource modules which ship with the mainline kernel because they conflict with the the out of tree drivers from the rpmfusion packages.

To fix this run "sudo ipu6-driver-select foss" to switch to using the FOSS stack.

Note I'm not seeing the out-of-tree drivers trying to load in dmesg either, but I guess they might need some work to build successfully against a 6.11 kernel.

Comment 2 fattony4 2024-08-24 15:41:26 UTC
This is what I did:

$ cat /etc/modprobe/ipu*
cat: '/etc/modprobe/ipu*': No such file or directory
$ ipu6-driver-select foss
Removed '/etc/systemd/system/multi-user.target.wants/v4l2-relayd.service'.
Reboot your system for the changes to take effect

Then I rebooted and it now works!

Comment 3 Hans de Goede 2024-08-26 08:52:47 UTC
Good to hear that things work again.

Needing to run "ipu6-driver-select foss" is expected when you have the rpmfusion pkgs installed ("ipu6-driver-select" is part of the rpmfusion pkgs). So I believe that this bug is resolved now, closing.

Comment 4 fattony4 2024-08-26 18:55:50 UTC
Fantastic, thanks again!

Btw, this command (ipu6-driver-select) does not seem to be documented anywhere. Maybe you could mention it on the following pages:

https://fedoraproject.org/wiki/Changes/IPU6_Camera_support

https://discussion.fedoraproject.org/t/f41-change-proposal-ipu6-camera-support-self-contained/124329/4


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