(submitting change to fesco) |
mNo edit summary |
||
Line 1: | Line 1: | ||
= IPU6 camera support = | = IPU6 camera support = | ||
== Summary == | == Summary == | ||
Line 11: | Line 10: | ||
== Current status == | == Current status == | ||
[[Category: | [[Category:ChangeAcceptedF41]] | ||
[[Category:SelfContainedChange]] | [[Category:SelfContainedChange]] | ||
* Targeted release: [https://docs.fedoraproject.org/en-US/releases/f41/ Fedora Linux 41] | * Targeted release: [https://docs.fedoraproject.org/en-US/releases/f41/ Fedora Linux 41] |
Revision as of 11:59, 29 July 2024
IPU6 camera support
Summary
Integrate support into Fedora for Intel IPU6 attached MIPI cameras using the IPU6 CSI-receiver (isys) driver which has landed in kernel 6.10 together with libcamwera's 0.3 software ISP support and Firefox' recent support for using cameras through pipewire.
Owner
- Name: Hans de Goede
- Email: hdegoede@redhat.com
Current status
- Targeted release: Fedora Linux 41
- Last updated: 2024-07-29
- Announced
- Discussion thread
- FESCo issue: #3243
- Tracker bug: <will be assigned by the Wrangler>
- Release notes tracker: <will be assigned by the Wrangler>
Detailed Description
Many new laptops models have a camera-sensor which is directly attached to the laptops CPU/SoC over a MIPI CSI2 databus instead of using a USB webcam module talking the standard USB UVC protocol.
These cameras require a lot of work on the software side to go from the raw Bayer data received over the CSI2 bus to an usable image. This includes both controlling things like exposure and gain settings on the sensor as well as a lot of processing of the raw data, such as debayering and whitebalancing. Adding support for these complex cameras is tricky because:
- Applications can no longer directly use /dev/video now
- Supporting ISPs (if supported in the kernel) requires ISP model specific knowledge in userspace
- Vendor's 3A algorithms for auto-exposure/gain, auto-whitebalance and auto-focus are secret and need to have open-source counterparts written and tuned
- Instead of having a single UVC driver this requires CSI-receiver + ISP + sensor drivers in the kernel
- Different IPU6 laptop models use different sensors, hw-enablement needs to be done on a laptop by laptop basis
- Good image quality requires per sensor/laptop model tuning
Parts of these challenges are solved by libcamera. For now the aim is a simple stack with good enough image quality for video-conferencing. The plan is to have a stack consisting of:
- Mainline kernel sensor driver (currently supported: ov2740, ov01a10, hi556)
- Mainline kernel IPU6 CSI receiver driver
- libcamera simplepipeline-handler using software ISP for debayering + 3A
- pipewire with pipewire libcamera plugin
- pipewire support in Firefox (see Jan Grulich's blog)
Feedback
No feedback yet.
Benefit to Fedora
Currently IPU6 cameras do not work OOTB in Fedora, with the new libcamera software ISP stack these should work OOTB on laptops with supported camera sensors.
Scope
- Proposal owners:
- The IPU6 CSI receiver has landed in 6.10 and some bugfixes coming to 6.11 have been added as downstream patches
- libcamera needs a couple of small downstream-patches to enable the simple pipeline for the IPU6
- pipewire libcamera plugin needs to be made part of the default Workstation patch-set
- Other developers: N/A (not a System Wide Change)
- Release engineering: N/A (not a System Wide Change)
- Policies and guidelines: N/A (not needed for this Change)
- Trademark approval: N/A (not needed for this Change)
- Alignment with the Fedora Strategy: Yes (better hw-support should help getting more users)
Upgrade/compatibility impact
The pipewire-plugin-libcamera needs to be automatically added on Fedora workstation updates to ensure things work. Otherwise there is no upgrade impact.
How To Test
Test plan will be filled in as soon as all necessary bits have landed in rawhide.
User Experience
IPU6 cameras on laptops with supported camera sensors should work OOTB after this change, with the caveat that the image quality may be less then ideal. The hope is that image quality will improve over time as the software ISP and its 3A algorithms get improved. With that said it is unrealistic to expect the image quality to become as good as the proprietary stack which has extensive image quality tuning done on a per laptop basis.
Dependencies
IPU6 support not only depends on kernel and libcamera support taken care of by the proposal owner, but also on pipewire camera support and on Firefox pipewire camera support.
Contingency Plan
ATM IPU6 cameras do not work at all. So unless the new kernel driver actually causes regressions outside of the camera functionality no contingency plan is necessary.
Documentation
N/A (not a System Wide Change)
Release Notes
Fedora 41 has added support for IPU6 cameras on laptops using ov2740, ov01a10 and hi556 sensors. This support requires using applications which support accessing cameras through pipewire such as Firefox.