Skip to content

Fix Intel IPU7 camera on Linux 7.2 by adopting the CVS V4L2 bridge - #418

Merged
spencerbull merged 3 commits into
masterfrom
fix/ipu7-camera-linux-7.2-cvs
Sep 13, 2026
Merged

spencerbull merged 3 commits into
masterfrom
fix/ipu7-camera-linux-7.2-cvs

Conversation

@spencerbull

@spencerbull spencerbull commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

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-relayd never produces frames, and /dev/media0 has no ov08x40 entity.

Linux 7.2 changed how the Intel CVS controller (ACPI INTC10E1) appears to the IPU:

  • ipu-bridge commit c6b1b34b5090 now places the CVS device between the sensor and the IPU CSI2 receiver, the same way it handles IVSC.
  • A new in-tree driver, drivers/media/i2c/cvs, provides the matching Intel CVS V4L2 bridge sub-device and hands off CSI-2 link ownership at stream time.

Our package's out-of-tree vision-drivers intel_cvs has 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 by MEDIA_HIDE_ANCILLARY_SUBDRV in Arch-derived configs, so olddefconfig drops it.

Change (intel-ipu7-camera 1.0.6-1)

  • New DKMS module intel-cvs for 7.2+ kernels: the unmodified in-tree driver fetched from the stable v7.2.5 tag with sha256 pins, a small Makefile, and a dkms.conf gated by a kernel-version regex the pacman dkms hook understands.
  • vision-drivers gated to pre-7.2 kernels, so users on linux-ptl 7.1.8 keep a working camera if they receive this package before the new kernel, and 7.2 kernels stop getting the wrong driver.
  • HAL patch from upstream ipu7-camera-hal commit f167239: MediaControl routes the sensor link through the Intel CVS entity and finds the sensor's I2C bus through it. Kernels without the entity are unaffected.
  • Sensor config patch adding Intel CVS pad 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

  • makepkg build succeeds. The CVS routing code is compiled into the ipu75xa HAL plugin and the pad formats are in the shipped JSON.
  • The packaged intel-cvs tree compiles against the 7.2.3, 7.2.4, and 7.2.5 headers.
  • Installed on a Dell XPS 14 (DA14260). DKMS built intel-cvs/1.0.6 for all four 7.2 kernels and vision-drivers/1.0.6 only for 7.1.8, as intended.
  • On linux-ptl 7.1.8 with this package, the HAL enumerates the camera and v4l2-relayd runs. Regression check for the legacy path.
  • On 7.2.5 the end-to-end check still needs a fresh boot into the new package. Unloading the old vision-drivers module on a running system resets the CVS, which is the USB-IO bridge hosting the sensor's I2C bus. The bus re-enumerates, and 7.2's i2c_unregister_device clears the bridge graph from the ACPI nodes, which ipu_bridge_init will not rebuild until reboot. A normal package upgrade does not unload the module, so this only affects live testing.

Follow-ups

  • Reboot into a 7.2 kernel and run the media-graph and capture check. Expected: an Intel CVS entity linked between ov08x40 and Intel IPU7 CSI2 0, HAL enumerates the sensor, frames flow on /dev/video50.
  • One suspend/resume cycle on 7.2 to confirm the CVS USB device persists across suspend.
  • linux-ptl needs no change for this. If we ever want the in-tree module instead of the DKMS copy, it needs a Kconfig placement patch, not just a config line.

Related issues

Why this route rather than the legacy_cvs ipu-bridge patch from #10948

Contributors on #10948 verified a DKMS-rebuilt ipu-bridge with an opt-in legacy_cvs parameter 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.

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.
@spencerbull

Copy link
Copy Markdown
Contributor Author

7.2 end-to-end verification

Tested on the Dell XPS 14 (DA14260) after a fresh boot into linux-ptl 7.2.3.arch1-1, built from this repo's bin/build --package linux-ptl on the omabot Proxmox worker, with intel-ipu7-camera 1.0.6-1 from this branch installed.

DKMS for 7.2.3-arch1-1-ptl

intel-cvs/1.0.6, 7.2.3-arch1-1-ptl, x86_64: installed
ipu7-drivers/1.0.6, 7.2.3-arch1-1-ptl, x86_64: installed (Original modules exist)
v4l2loopback/0.15.4, 7.2.3-arch1-1-ptl, x86_64: installed

vision-drivers was skipped for this kernel, as intended. modinfo intel_cvs resolves to the new module with the "CSI/V4L2 support for Intel Vision Sensing Controller" description.

Kernel log

pci 0000:00:05.0: Connected 1 cameras
intel_cvs i2c-INTC10E1:00: Quirks: 0x7a (VID:0x06cb PID:0x0701)
intel_ipu7_isys.isys intel_ipu7.isys.40: bind Intel CVS nlanes is 2 port is 0
intel_ipu7_isys.isys intel_ipu7.isys.40: All sensor registration completed.

No deferred probes for INTC10E1 or OVTI08F4.

Media graph (media-ctl -p -d /dev/media0)

- entity 248: ov08x40 17-0036 (1 pad, 1 link)
        -> "Intel CVS":0 [ENABLED,IMMUTABLE]
- entity 233: Intel CVS (2 pads, 2 links)
        -> "Intel IPU7 CSI2 0":0 [ENABLED,IMMUTABLE]
- entity 129: Intel IPU7 CSI2 0 (9 pads, 9 links)
        <- "Intel CVS":1 [ENABLED,IMMUTABLE]

Userspace

  • gst-inspect-1.0 icamerasrc enumerates the sensor (device-name property present, no "No sensors available").
  • camera-init.service and [email protected] active, no errors logged.
  • ffmpeg capture from /dev/video50 after warm-up produces a correct, properly rotated image (average luma ~135). The very first loopback frame is black, which is the usual ISP warm-up.
  • webcamtests.com in the browser shows live video.

Also checked: pre-7.2 path

On linux-ptl 7.1.8 with this same package, DKMS built vision-drivers/1.0.6 and skipped intel-cvs, and the HAL enumerated the camera. No regression for users who get this package before the 7.2 kernel.

Not yet exercised: a suspend/resume cycle on 7.2.

Note for anyone testing live: don't modprobe -r the old vision-drivers intel_cvs on a running 7.2 system. Its remove path resets the CVS, which is the USB-IO bridge hosting the sensor's I2C bus; the bus re-enumerates and 7.2's i2c_unregister_device clears the ipu-bridge graph from the ACPI nodes, which is only rebuilt at boot. A normal package upgrade does not unload the module.

@spencerbull

Copy link
Copy Markdown
Contributor Author

Cross-references, now also in the PR body:

@spencerbull

Copy link
Copy Markdown
Contributor Author

Suspend/resume verification on 7.2 (closes the open item above)

Kernel 7.2.3-arch1-1-ptl, intel-ipu7-camera 1.0.6-1, Dell XPS 14 DA14260. Two cycles, s2idle:

  1. rtcwake -m mem -s 45 (kernel-direct suspend, no systemd hooks).
  2. systemctl suspend with an RTC alarm (the real path: systemd sleep hooks run).

Kernel stack survived both cycles unchanged

  • The CVS controller's USB device (usb 3-3, Synaptics SVP7500, the USB-IO bridge hosting the sensor's I2C bus) kept device number 2 across both cycles: no re-enumeration, so the ipu-bridge graph was never torn down.
  • Media graph identical before and after: ov08x40 17-0036 → Intel CVS → Intel IPU7 CSI2 0, six /dev/v4l-subdev* nodes, both i2c clients still bound to ov08x40 / intel_cvs.
  • On resume the in-tree CVS driver re-initialises (intel_cvs i2c-INTC10E1:00: Quirks: 0x7a) and the IPU re-authenticates (IPU7 in secure mode). No errors from ipu7, isys, psys, cvs or ov08x40.
  • CSI-2 ownership handoff is visible in runtime PM: /sys/bus/i2c/devices/i2c-INTC10E1:00/power/runtime_status reads suspended when idle (CVS owns the link) and the sensor streams on demand, i.e. the host reclaims it at stream start.

Userspace after the systemd cycle

  • The package's sleep hook did its job: v4l2-relayd@ipu7 stopped before sleep, camera-init restarted and relayd started again on resume.
  • Frames after resume: average luma ~137 (real scene). After the rtcwake cycle, which bypasses the hooks, relayd needed a manual restart, as expected and as the hook exists for.

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 /dev/video50 with output-only caps until relayd was restarted. With exclusive_caps=1 and v4l2loopback only signalling client usage on STREAMON, readers cannot recover that state themselves. Three targeted repro attempts (2 s session, 5 s session, two back-to-back sessions) all recovered correctly, with the "reset output on idle" patch visibly re-arming the writer. This is v4l2-relayd/v4l2loopback behaviour, untouched by this PR; noting it so it isn't mistaken for a CVS regression if someone hits it.

@spencerbull

Copy link
Copy Markdown
Contributor Author

Reviewed 5501e168f734c00c89632a0802b1125faf7412fa against 19ef4b560ffd6f26df67665400394278065cf437: no actionable defects found; no changes pushed.

On a disposable Omabot worker, bin/build --package v4l2-relayd intel-ipu7-camera --mirror edge --arch x86_64 built both packages successfully. The explicit prerequisite was needed because the fresh review checkout has no published-package database. All four repository self-test suites and all six build-isolation scenarios passed; both GitHub CI jobs are also green at this head.

Real pacman/DKMS transactions inside the worker upgraded the published 1.0.5-2 package to this artifact. Linux 7.2.4-arch1-2 built and installed intel-cvs/1.0.6; Linux 6.18.51-1-lts retained vision-drivers/1.0.6. Old registrations were retired, both wrong-kernel builds returned DKMS exclusion status 77, and removal cleared the camera DKMS registrations, source trees and sleep hook. pacman -Qkk reported 840 files, zero altered. The HAL's shared-library dependencies resolved, and the packaged CVS sources match the pinned kernel.org sources byte for byte.

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 5501e168f734c00c89632a0802b1125faf7412fa.

🤖 Generated by GPT-6 in Codex / T3 Code. Reviewed by GPT-6 Astra xhigh.

@spencerbull

Copy link
Copy Markdown
Contributor Author

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
@spencerbull

spencerbull commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor Author

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 intel-cvs DKMS module requests its "wake" line with devm_gpiod_get(). On the DA14260 that pin (\_SB.GPI1 20) is the shared GpioIo the four CS35L57 amplifiers read their speaker ID from, so with the module loaded every amp probe fails:

cs35l56 sdw:0:2:01fa:3557:01:2: error -EBUSY: Failed to get spk-id-gpios
cs35l56 sdw:0:2:01fa:3557:01:2: probe with driver cs35l56 failed with error -16

and no sound card is created. /sys/kernel/debug/gpio shows the line held as wake ... IRQ ACTIVE LOW. The legacy vision-drivers module mapped that IRQ with acpi_dev_gpio_irq_get_by() without claiming the pin, which is why 7.1 kernels were fine. The stock Arch kernel never builds the in-tree CVS driver, so the regression only exists with this package installed.

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 intel-cvs-core.c in prepare(), and bumps pkgrel to 2. Verified in the built package that core.c now uses acpi_dev_gpio_irq_get_by() and the devm_gpiod_get(dev, "wake", ...) call is gone.

Refs: thesofproject/sof#11152, https://bugzilla.redhat.com/show_bug.cgi?id=2529031

@spencerbull

Copy link
Copy Markdown
Contributor Author

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 sof-soundwire card is back, all four CS35L57 amps load their cs35l57-b2-dsp1-misc-10280db9-spkid0-* tuning (fw v4.5.9), no -EBUSY, and intel_cvs (DKMS) still binds with the camera probing. The Speaker sink is present in PipeWire.

@nathankramm

nathankramm commented Sep 13, 2026 •

Copy link
Copy Markdown

Fourth DA14260 on this regression — milep's omacom/omarchy#10948, labjt, and your own test
machine being the others. Pinned to linux-ptl 7.1.8 because of it.

One clean swap each way with identical userspace — intel-ipu7-camera 1.0.5-2 (from edge;
stable still serves 1.0.5-1), jsoncpp 1.9.8-1, same DKMS modules built and loaded on both
kernels — reproduces the graph difference: 5 v4l-subdevs vs 0, media-ctl 312 vs 284 lines,
ov08x40 entity present and linked [ENABLED,IMMUTABLE] into CSI2 0 vs absent with CSI2 0 down
to 8 links, and gst-inspect icamerasrc going from zero CamHAL[ERR] — excluding the two
CameraShm permission notes a non-root inspector always gets while root's relayd owns the
shm — to 4 × MediaControl readlink failures plus "No sensors available". strings on
ipu-bridge.ko shows INTC10DE/E0/E1 added in 7.2.3, matching the source diff disy-mk posted
on omacom/omarchy#10948.

Happy to put this PR on a fourth machine now that 21c0630 carries the CS35L57 GPIO fix. I'd
be coming off the pin to do it, so it won't be instant, but I can report subdev count, media
graph, and a frame-level verified capture.

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

@spencerbull
spencerbull merged commit c879925 into master Sep 13, 2026
2 checks passed
@spencerbull
spencerbull deleted the fix/ipu7-camera-linux-7.2-cvs branch September 13, 2026 17:36
@studylamp

Copy link
Copy Markdown

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

  • Dell XPS 14 DA14260, BIOS 1.10.1, Core Ultra X7 358H, OV08X40 / OVTI08F4, CVS INTC10E1
  • Omarchy 4.0.3-1 stable, linux-ptl 7.2.3.arch1-1 (the stock linux 7.2.3.arch1-3 is also installed)
  • jsoncpp 1.9.8-1, v4l2-relayd 0.2.0-2.2, v4l2loopback-dkms 0.15.4-2

Before

On intel-ipu7-camera 1.0.5-1 the camera showed the same two failures as #10948:

  • ipu75xa.so → libjsoncpp.so.26 => not found
  • With a compatibility .so.26 supplied, the notifier stayed pending on INTC10E1-0/port@1/endpoint@0, with no sensor entity and no /dev/v4l-subdev*

Upgrade

Installed the signed edge artifact over 1.0.5-1 with pacman -U. The signature is from Omarchy <[email protected]>, and the sha256 matches the edge db. I removed my local jsoncpp compatibility workaround in the same step, then rebooted.

The pacman DKMS hooks did the right thing for both installed 7.2 kernels:

intel-cvs/1.0.6, 7.2.3-arch1-1-ptl, x86_64: installed
intel-cvs/1.0.6, 7.2.3-arch1-3, x86_64: installed
ipu7-drivers/1.0.6, 7.2.3-arch1-1-ptl, x86_64: installed (Original modules exist)
ipu7-drivers/1.0.6, 7.2.3-arch1-3, x86_64: installed (Original modules exist)

vision-drivers was not built for either 7.2 kernel. modinfo -F description intel_cvs now reports CSI/V4L2 support for Intel Vision Sensing Controller, and ipu75xa.so links libjsoncpp.so.27.

After the reboot (linux-ptl 7.2.3)

Kernel log:

intel_cvs i2c-INTC10E1:00: Quirks: 0x7a (VID:0x06cb PID:0x0701)
intel_ipu7_isys.isys intel_ipu7.isys.40: bind Intel CVS nlanes is 2 port is 0
intel_ipu7_isys.isys intel_ipu7.isys.40: All sensor registration completed.

Media graph (non-capture entities), matching the expected ov08x40 → Intel CVS → Intel IPU7 CSI2 0 chain:

- entity 129: Intel IPU7 CSI2 0 (9 pads, 9 links, 0 routes)
- entity 139: Intel IPU7 CSI2 1 (9 pads, 8 links, 0 routes)
- entity 149: Intel IPU7 CSI2 2 (9 pads, 8 links, 0 routes)
- entity 159: Intel IPU7 CSI2 3 (9 pads, 8 links, 0 routes)
- entity 233: Intel CVS (2 pads, 2 links, 0 routes)
- entity 248: ov08x40 17-0036 (1 pad, 1 link, 0 routes)

Six nodes, /dev/v4l-subdev0–5, are present, and v4l2-relayd@ipu7 is active. The HAL enumerates the sensor:

CameraParserInvoker: parseSensors: I will Load config file: sensors/ov08x40-uf.json
CameraSensorsParser: resolveCsiPortAndI2CBus: I2CBus:17-0036 <=> CSI Port:0
CameraParserInvoker: parseSensors, sensors/ov08x40-uf.json loaded!

Capture:

  • gst-launch-1.0 v4l2src device=/dev/video50 io-mode=mmap num-buffers=90 ! video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1 ! fakesink sync=false completed all 90 buffers and exited 0.
  • A frame taken from a second 60-buffer run had real image content, not a placeholder: luma min 0 / mean 85.5 / max 255, U mean 127.2, V mean 131.8. The orientation is correct, so the rotate-180 in the relay config is still right.
  • A live preview with ffplay -f v4l2 /dev/video50 works.

Not tested yet

  • Suspend/resume on 7.2 (the second follow-up item)
  • Browser / WebRTC
  • Booting the stock linux 7.2.3-arch1-3 kernel (intel-cvs built for it, but I didn't boot it)

Reported with the help of Claude Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Regression] linux-ptl 7.2.3: IPU7 / OV08X40 sensor missing from media graph on Dell XPS 14 DA14260

3 participants