omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

IPU7 camera: ov08x40 never gets a /dev/v4l-subdev node on Dell Pro Precision 7 16 (phantom OVTI08F4:01 blocks ISYS notifier)

Open zakkoo opened this issue 1 month ago • 2 comments

System details

  • Omarchy 4.0.4-1, linux-omarchy 7.2.5-3, intel-ipu7-camera 1.0.6-2, v4l2-relayd 0.2.0-2.2
  • Dell Pro Precision 7 16 PW716260 (SKU 0DB4), BIOS 1.5.0 (07/2026), Panther Lake, IPU7 PCI 8086:b05d
  • Camera: OV08X40 behind Intel CVS (INTC10E1) over the USB-IO i2c bridge

What's wrong?

The built-in camera never works on this laptop, on every boot, with the Linux 7.2 CVS stack from omarchy-pkgs#418. Teams and browsers see /dev/video50 ("Hardware ISP Camera") but get no frames.

Symptom

  • ov08x40 is bound to i2c-OVTI08F4:00 and shows up in the media graph (ov08x40 21-0036 -> Intel CVS -> Intel IPU7 CSI2 2), but it has no /dev/v4l-subdev* node. Only five nodes exist (4x CSI2 + Intel CVS).
  • v4l2-relayd@ipu7 logs:
    CamHAL[ERR] MediaControl: readlink sysName /sys/dev/char/0:0 failed ret -1.
    CamHAL[ERR] PlatformData: Failed to find DevName for cameraId: 0, get video node: ov08x40 21-0036, devname: /dev/v4l-subdev1
    CamHAL[ERR] V4l2_device_cc: Open: Failed to stat device node  No such file or directory
    CamHAL[ERR] V4l2_video_node_cc: Start: Device node /dev/video16 IOCTL VIDIOC_STREAMON error: Broken pipe
    
  • The ISYS line bind Intel CVS nlanes is 2 port is 2 appears, but All sensor registration completed. never does.
  • Load order makes no difference. Rebinding ov08x40, reloading intel_ipu7_isys after the sensor is bound, and a reboot all end in the same state.

Root cause

This board's ACPI tables declare two sensor entries:

/sys/bus/acpi/devices/OVTI08F4:00 status=15 path=\_SB_.LNK1 physical_node=.../usbio.usbio-i2c.1/i2c-21/i2c-OVTI08F4:00
/sys/bus/acpi/devices/OVTI08F4:01 status=15 path=\_SB_.LNK2 physical_node=(none)

OVTI08F4:01 reports _STA present+enabled but never gets an i2c client (no physical node, no probe). The in-tree ipu-bridge only checks status.enabled, so it still logs Found supported sensor OVTI08F4:01 and the ISYS async notifier waits for it forever. On other machines with the same placeholder (e.g. #12347, Galaxy Book6) OVTI08F4:01 has status=0, so the bridge skips it and the notifier completes. Dell's firmware is the odd one out here.

Why that breaks the node: ipu7-isys.c calls v4l2_device_register_subdev_nodes() in two places, isys_notifier_bound() and isys_notifier_complete(). With CVS in the graph the sensor is a sub-notifier child of CVS. v4l2-async runs bound(CVS) first and only then registers the sub-notifier's subdevs, so the sensor is added to the v4l2_device after the bound-time node pass. The complete-time pass never runs because of OVTI08F4:01. Result: entity in the graph, no device node, every boot.

Fix that works here

One extra call in the CVS driver's sensor-bound callback (drivers/media/i2c/cvs/v4l2.c, cvs_csi_notify_bound), after the pad link is created:

return v4l2_device_register_subdev_nodes(sd->v4l2_dev);

Full patch against the 1.0.6 intel-cvs DKMS source (identical to the in-tree 7.2 driver):

--- a/v4l2.c
+++ b/v4l2.c
@@ -13,6 +13,7 @@
 #include <media/v4l2-async.h>
 #include <media/v4l2-common.h>
 #include <media/v4l2-ctrls.h>
+#include <media/v4l2-device.h>
 #include <media/v4l2-event.h>
 #include <media/v4l2-fwnode.h>
 #include <media/v4l2-mc.h>
@@ -402,6 +403,7 @@
 {
 	struct icvs *ctx = notifier_to_csi(notifier);
 	int pad;
+	int ret;
 
 	pad = media_entity_get_fwnode_pad(&sd->entity, asc->match.fwnode,
 					  MEDIA_PAD_FL_SOURCE);
@@ -410,9 +412,16 @@
 
 	ctx->remote = &sd->entity.pads[pad];
 
-	return media_create_pad_link(&sd->entity, pad, &ctx->subdev.entity,
-				     ICVS_CSI_PAD_SINK, MEDIA_LNK_FL_ENABLED |
-				     MEDIA_LNK_FL_IMMUTABLE);
+	ret = media_create_pad_link(&sd->entity, pad, &ctx->subdev.entity,
+				    ICVS_CSI_PAD_SINK, MEDIA_LNK_FL_ENABLED |
+				    MEDIA_LNK_FL_IMMUTABLE);
+	if (ret)
+		return ret;
+
+	/* The sensor binds after ISYS already ran its node registration, and
+	 * ISYS never reaches .complete while a sensor ACPI entry (OVTI08F4:01)
+	 * has no i2c device. Register the sensor's /dev/v4l-subdev here. */
+	return v4l2_device_register_subdev_nodes(sd->v4l2_dev);
 }
 
 /**

Applied with dkms build --force intel-cvs/1.0.6 && dkms install --force intel-cvs/1.0.6, reload: six subdev nodes, ov08x40 has its node, Teams gets video. Survives reboot.

An alternative is to make ipu-bridge skip ACPI sensor entries that have no i2c client (acpi_dev_ready_for_enumeration() or no physical node), which would also let .complete run as designed. The CVS one-liner is the smaller change and does not depend on firmware quality.

Packaging notes

  • 1.0.6-3 drops the intel-cvs DKMS module and relies on the in-tree copy in linux-omarchy. The in-tree code has the same cvs_csi_notify_bound, so the bug stays after that upgrade. Since linux-omarchy already carries a CVS patch (wake-IRQ), this fix could ride along there.
  • Unrelated but on the same board: the packaged videoflip method=rotate-180 is wrong here, the sensor is mounted upright. camera-videosrc-init only drops the rotation on Lunar Lake. A DMI check for this Dell model (or keying on camera_sensor_rotation) would be needed.

Happy to test a build.

zakkoo avatar Oct 16 '26 08:10 zakkoo

Split the upside-down picture out into #15621, since it is a separate packaging problem (rotation keyed on chipset instead of the sensor's camera_sensor_rotation). This issue is only about the missing sensor node.

zakkoo avatar Oct 16 '26 08:10 zakkoo

Thanks for the detailed diagnosis. The fix you describe is already packaged, and the camera package you're on is the reason you never got it.

What I checked, in the omarchy-pkgs sources:

  • The kernel carries your fix. linux-omarchy 7.2.8-2 added 0548-media-cvs-sensor-node-in-bound-callback.patch, which makes cvs_csi_notify_bound() in drivers/media/i2c/cvs/v4l2.c call v4l2_device_register_subdev_nodes(sd->v4l2_dev) after creating the pad link. It is the same change as your patch, minus the comment. The current linux-omarchy (7.2.8-10) still applies it. Your report is from 7.2.5-3, which came before it.
  • intel-ipu7-camera 1.0.6-2 hides it. That release built its own intel_cvs DKMS module from unpatched v7.2.5 source and installed it to /updates on 7.2+ kernels (dkms-intel-cvs.conf), so it loads instead of the kernel's patched module. 1.0.6-3 removes that module, and the dkms hook takes it off on upgrade, as you noted. From then on the kernel's patched intel_cvs is the one that loads.

So the missing /dev/v4l-subdev node should be gone with linux-omarchy ≥ 7.2.8-2 and intel-ipu7-camera ≥ 1.0.6-3, without your local DKMS build. Two caveats. The fix registers the node from CVS's bound callback, so the phantom OVTI08F4:01 still keeps the ISYS notifier from ever reaching .complete, and you will still not see All sensor registration completed. Making ipu-bridge skip ACPI sensors with no i2c client, the alternative you mention, would deal with that cause itself, and that is for the maintainer to decide. Also, I could not reproduce this, because it needs this laptop's ACPI tables and a CVS camera. Everything above comes from reading the packaging, not from running it.

Could you confirm on your machine? After omarchy-update:

pacman -Q linux-omarchy intel-ipu7-camera
modinfo -n intel_cvs          # should be under /usr/lib/modules/<kernel>/kernel/, not /updates
ls /dev/v4l-subdev*           # six nodes, one for ov08x40

If you force-installed your patched intel-cvs/1.0.6 DKMS build, dkms status will show whether it is still there. dkms remove intel-cvs/1.0.6 --all clears it, so you are testing the packaged fix. Whether the camera streams in a browser or Teams is the result that matters.

The upside-down picture is tracked separately in #15621. #15831 is the same missing-node mechanism on IPU6/IVSC, triggered by an HM1092 entry, and this CVS patch does not cover that path.

I reviewed this together with Codex Medium and muse-spark-1.3-contributor (thinking high) as second opinions. Both agreed with this conclusion, though their independence from my reasoning is not guaranteed. They added the point about the 1.0.6-2 DKMS module hiding the kernel patch, which I then checked against the package history. Waiting on your confirmation.

omarchybot avatar Oct 23 '26 00:10 omarchybot