Repository navigation
Fix Intel IPU7 camera on Linux 7.2 by adopting the CVS V4L2 bridge - #418
Conversation
Linux 7.2 changed how the Intel CVS controller (ACPI INTC10E1 on Panther Lake) appears to the IPU. ipu-bridge now places it between the sensor and the IPU CSI2 receiver, like IVSC, and the new in-tree drivers/media/i2c/cvs driver provides the matching "Intel CVS" V4L2 bridge sub-device. Our out-of-tree vision-drivers intel_cvs has no sub-device and displaces the in-tree module of the same name, so on 7.2 the sensor never joins the media graph and the HAL reports "No sensors available". Both linux-ptl 7.2.3 and linux-omarchy 7.2.5 fail this way. Ship the in-tree 7.2 CVS driver verbatim as DKMS module intel-cvs for 7.2+ kernels. Arch-derived kernel configs cannot enable CONFIG_VIDEO_INTEL_CVS themselves: it sits under a menu hidden by MEDIA_HIDE_ANCILLARY_SUBDRV, so olddefconfig drops it. Keep vision-drivers for kernels before 7.2. Both dkms.conf files carry a BUILD_EXCLUSIVE_KERNEL regex that the pacman dkms hook honours. Teach the camera HAL about the bridge with upstream ipu7-camera-hal commit f167239 (MediaControl routes the sensor link through "Intel CVS" and finds the I2C bus through it) and add "Intel CVS" pad formats to the ipu75xa ov08x40 config so link validation passes. Links stay sensor to CSI2 in the config and are rewritten at runtime, so the same files work on 7.1.
7.2 end-to-end verificationTested on the Dell XPS 14 (DA14260) after a fresh boot into DKMS for vision-drivers was skipped for this kernel, as intended. Kernel log No deferred probes for INTC10E1 or OVTI08F4. Media graph ( Userspace
Also checked: pre-7.2 path On Not yet exercised: a suspend/resume cycle on 7.2. Note for anyone testing live: don't |
|
Cross-references, now also in the PR body:
|
Suspend/resume verification on 7.2 (closes the open item above)Kernel
Kernel stack survived both cycles unchanged
Userspace after the systemd cycle
This addresses the concern carried over from omacom/omarchy#10624 for the 7.2 stack: the sensor bind is not lost across suspend here. One unrelated observation, not reproducible Once during testing, after several rapid back-to-back short client sessions, relayd's loopback writer stopped, leaving |
|
Reviewed On a disposable Omabot worker, Real pacman/DKMS transactions inside the worker upgraded the published GPT-6 Astra in Codex at xhigh also found no actionable defects. I checked its source claims against Intel's HAL patch, the CVS driver's immutable sensor link and the installed Arch DKMS hook. Its agreement is corroboration; filesystem isolation of the second reviewer is not enforced. The VM has no Panther Lake camera. Cold-boot capture, browser video and suspend/resume were not reproduced by this review; the hardware evidence is the author's reports already on this PR. The transaction tests used containers, so their successful initramfs generation does not establish a boot or service-start result. This overlaps #382's coordinated kernel/HAL transition and #415's rollback alternative; #367's Lunar Lake support remains separate. The maintainer should choose the transition before combining those changes. READY TO MERGE — PR #418 at 🤖 Generated by GPT-6 in Codex / T3 Code. Reviewed by GPT-6 Astra xhigh. |
|
Verification on XPS 14, 16 PTL in progress |
…ID GPIO The in-tree 7.2 CVS driver we ship as the intel-cvs DKMS module requests its "wake" line with devm_gpiod_get(). On the Dell XPS 14 DA14260 that pin (\_SB.GPI1 20) is the shared GpioIo the four CS35L57 amplifiers read their speaker ID from, so with this package installed every cs35l56 probe fails with "error -EBUSY: Failed to get spk-id-gpios" and the machine has no sound card. Carry Junjie Cao's upstream fix, "media: i2c: cvs: Get the wake IRQ without claiming the GPIO" (Cc: stable, Fixes: 8e2b43d2c10b), applied to the downloaded intel-cvs-core.c in prepare(). makepkg symlinks plain downloads into srcdir and patch refuses symlinks, so the file is copied first. Drop the patch once the stable tag we fetch from contains the fix. Link: thesofproject/sof#11152 Link: https://bugzilla.redhat.com/show_bug.cgi?id=2529031
|
Heads-up for anyone testing this on an XPS 14 DA14260: the previous revision of this PR broke the internal speakers. The in-tree CVS driver shipped here as the and no sound card is created. 21c0630 carries the upstream fix, Junjie Cao's "media: i2c: cvs: Get the wake IRQ without claiming the GPIO" (Cc: stable, not yet merged: https://patchwork.linuxtv.org/project/linux-media/patch/[email protected]/), applied to the downloaded Refs: thesofproject/sof#11152, https://bugzilla.redhat.com/show_bug.cgi?id=2529031 |
|
Reboot test done on the XPS 14 DA14260 with 1.0.6-2 from 21c0630 plus linux-ptl 7.2.4-arch1-1-ptl: the |
|
Fourth DA14260 on this regression — milep's omacom/omarchy#10948, labjt, and your own test One clean swap each way with identical userspace — intel-ipu7-camera 1.0.5-2 (from edge; Happy to put this PR on a fourth machine now that 21c0630 carries the CS35L57 GPIO fix. I'd Longer writeup of the measurement method and the instrument traps that cost me a day — ffplay showing black on a measurably live stream, single-frame grabs being invalid by construction on this stack, and the loopback wedging into an output-only state under reader churn: https://gist.github.com/nathankramm/70f5c06e027d07bcd84df539e81f5e04 |
|
Confirmed working on Linux 7.2 after a fresh boot: Dell XPS 14 DA14260, linux-ptl 7.2.3, intel-ipu7-camera 1.0.6-1 from edge. This covers the first follow-up item (media graph and capture check on a 7.2 kernel after rebooting). System
BeforeOn
UpgradeInstalled the signed edge artifact over 1.0.5-1 with The pacman DKMS hooks did the right thing for both installed 7.2 kernels:
After the reboot (linux-ptl 7.2.3)Kernel log: Media graph (non-capture entities), matching the expected Six nodes, Capture:
Not tested yet
Reported with the help of Claude Code. |
Problem
The Panther Lake camera is dead on every Linux 7.2 kernel we have: linux-ptl 7.2.3 and linux-omarchy 7.2.5 fail identically. The HAL logs
No sensors available,v4l2-relaydnever produces frames, and/dev/media0has noov08x40entity.Linux 7.2 changed how the Intel CVS controller (ACPI
INTC10E1) appears to the IPU:drivers/media/i2c/cvs, provides the matchingIntel CVSV4L2 bridge sub-device and hands off CSI-2 link ownership at stream time.Our package's out-of-tree vision-drivers
intel_cvshas no V4L2 sub-device and, having the same module name, displaces the in-tree module through DKMS. The IPU waits for a bridge that never appears, so the sensor never joins the graph.Kernel config is not the fix. linux-omarchy 7.2.5 already has
CONFIG_VIDEO_INTEL_CVS=m. linux-ptl cannot enable it: the option lives under the "Miscellaneous helper chips" menu, hidden byMEDIA_HIDE_ANCILLARY_SUBDRVin Arch-derived configs, soolddefconfigdrops it.Change (intel-ipu7-camera 1.0.6-1)
intel-cvsfor 7.2+ kernels: the unmodified in-tree driver fetched from the stable v7.2.5 tag with sha256 pins, a small Makefile, and adkms.confgated by a kernel-version regex the pacman dkms hook understands.Intel CVSentity and finds the sensor's I2C bus through it. Kernels without the entity are unaffected.Intel CVSpad formats to the ipu75xa ov08x40 JSON, mirroring upstream's ipu8 change. Links stay sensor to CSI2 in the file and are rewritten at runtime, so one config serves 7.1 and 7.2.Testing
makepkgbuild succeeds. The CVS routing code is compiled into the ipu75xa HAL plugin and the pad formats are in the shipped JSON.intel-cvstree compiles against the 7.2.3, 7.2.4, and 7.2.5 headers.intel-cvs/1.0.6for all four 7.2 kernels andvision-drivers/1.0.6only for 7.1.8, as intended.i2c_unregister_deviceclears the bridge graph from the ACPI nodes, whichipu_bridge_initwill not rebuild until reboot. A normal package upgrade does not unload the module, so this only affects live testing.Follow-ups
Intel CVSentity linked betweenov08x40andIntel IPU7 CSI2 0, HAL enumerates the sensor, frames flow on/dev/video50.Related issues
INTC10E1-0/port@1/endpoint@0). The reporters there reached the same root cause: 7.2's ipu-bridge added the CVS IDs toivsc_acpi_ids[], and the same-named DKMSintel_cvsdisplaces any in-tree module.acpi_honor_dep_idsgate from kernel Bugzilla 221988 also blocks sensor enumeration.Why this route rather than the
legacy_cvsipu-bridge patch from #10948Contributors on #10948 verified a DKMS-rebuilt
ipu-bridgewith an opt-inlegacy_cvsparameter that skips the CVS IDs and keeps the old misc driver. It works, but it patches an in-tree kernel module to undo upstream's direction. This PR instead adopts what upstream and Intel's HAL moved to: the in-tree 7.2 CVS V4L2 bridge driver plus ipu7-camera-hal commit f167239. The only kernel code we carry is an unmodified copy of that driver, needed because Arch-derived configs cannot enable it.