media: ipu-bridge: Add DMI quirk for CVS-sensor dependency
PATCH 1/1 media: ipu-bridge: Add DMI quirk for CVS-sensor dependency
A supplier-consumer dependency should exist between the CVS and sensor. However, this dependency is missing on Dell Pro Max 16 Premium laptop.
To initialize these devices correctly for this laptop, add DMI match table to ignore broken dependency.
--- drivers/media/pci/intel/ipu-bridge.c | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-)
drivers/media/pci/intel/ipu-bridge.c +23 -2
@@ -121,6 +121,18 @@ static const struct dmi_system_id upside_down_sensor_dmi_ids[] = { {}/* Terminating entry */ }; +/* DMI matches for systems where sensor-CVS dependency is missing. */ +static const struct dmi_system_id missing_dependency_dmi_ids[] = { + { + .matches = { +DMI_EXACT_MATCH (DMI_SYS_VENDOR ,"Dell Inc." ), +DMI_EXACT_MATCH (DMI_PRODUCT_NAME ,"Dell Pro Max 16 Premium MA16250" ), + }, + .driver_data ="OVTI08F4" , + }, + {}/* Terminating entry */ +}; +static const struct ipu_property_names prop_names = { .clock_frequency ="clock-frequency" , .rotation ="rotation" ,
@@ -163,13 +175,22 @@ static struct acpi_device *ipu_bridge_get_ivsc_acpi_dev(struct acpi_device *adevstruct acpi_device *consumer, *ivsc_adev;acpi_handle handle =acpi_device_handle (ACPI_PTR (adev)); -for_each_acpi_dev_match (ivsc_adev, acpi_id->id,NULL ,-1 ) +for_each_acpi_dev_match (ivsc_adev, acpi_id->id,NULL ,-1 ) { +const struct dmi_system_id *dmi_id; + + dmi_id =dmi_first_match (missing_dependency_dmi_ids); +if (dmi_id && +acpi_dev_hid_match (adev, dmi_id->driver_data)) +return ivsc_adev; +/* camera sensor depends on IVSC in DSDT if exist */ -for_each_acpi_consumer_dev (ivsc_adev, consumer) +for_each_acpi_consumer_dev (ivsc_adev, consumer) {if (ACPI_PTR (consumer->handle) == handle) {acpi_dev_put (consumer);return ivsc_adev; } + } + } }return NULL ;
Signature · 1 line
2.52.0
Hi Antti,
Quoted 7 lines · Antti Laakso
A supplier-consumer dependency should exist between the CVS and sensor. However, this dependency is missing on Dell Pro Max 16 Premium laptop.
To initialize these devices correctly for this laptop, add DMI match table to ignore broken dependency.
Signed-off-by Antti Laakso <[email protected]>
Are you sure the dependency is really missing ?
ATM the kernel has the CVS ACPI-hwid (HID) listed in drivers/acpi/scan.c: acpi_ignore_dep_ids[] :
static const char * const acpi_ignore_dep_ids[] = {
...
"INTC10DE", /* Intel CVS LNL */
"INTC10E0", /* Intel CVS ARL */
...
};because there is no upstream driver for it and cameras do work OOTB on a whole bunch of laptop models (Lenovo Arrow Lake / Lunar LAke ThinkPads) work fine without the CVS driver.
It does seem that only the Dell models actually need the driver, also see: https://bugzilla.redhat.com/show_bug.cgi?id=2413656
Please try removing the 2 lines I mentioned above, it is likely that will fix things. Note those can only be removed though after the CVS driver from: https://github.com/intel/vision-drivers
has actually been upstreamed.
Maybe you can help with upstreaming the driver ?
Regards,
Hans
p.s.
About the upstreaming of:
https://github.com/intel/vision-drivers.git
Note there is both a regular driver as well as integrated update support into that driver. Which is something which might just as well be done from userspace. For upstreaming my advice would be to start with stripping out the upstream support, which I think will also be what Richard will prefer (+Cc Richard).
Even if we do somehow need some kernel support for updating we don't need that just to get the cameras working and getting things upstream without it will be much easier and will allow us to redesign the update support (preferably punting it to userspace) before upstreaming that part.
After removing the update support I do not believe that there will be a whole lot code left in the driver. Just some code to put the MITM vision chip in pass-through mode.
Upstreaming the remaining code / minimal driver should be relatively easy.
Note this will also require testing on Lenovo laptops which seem to have the ACPI node describing the CVS chip but not the actual CVS chip causing i2c transfers to it to fail, so the driver will need to recognize this case and still mark the dependency as resolved instead of error-ing out otherwise the camera support on these Lenovo laptops will regress.
Quoted 52 lines
--- drivers/media/pci/intel/ipu-bridge.c | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-)drivers/media/pci/intel/ipu-bridge.c +23
-2@@ -121,6 +121,18 @@ static const struct dmi_system_id upside_down_sensor_dmi_ids[] = { {}/* Terminating entry */ }; +/* DMI matches for systems where sensor-CVS dependency is missing. */ +static const struct dmi_system_id missing_dependency_dmi_ids[] = { + { + .matches = { +DMI_EXACT_MATCH (DMI_SYS_VENDOR ,"Dell Inc." ), +DMI_EXACT_MATCH (DMI_PRODUCT_NAME ,"Dell Pro Max 16 Premium MA16250" ), + }, + .driver_data ="OVTI08F4" , + }, + {}/* Terminating entry */ +}; +static const struct ipu_property_names prop_names = { .clock_frequency ="clock-frequency" , .rotation ="rotation" ,@@ -163,13 +175,22 @@ static struct acpi_device *ipu_bridge_get_ivsc_acpi_dev(struct acpi_device *adevstruct acpi_device *consumer, *ivsc_adev;acpi_handle handle =acpi_device_handle (ACPI_PTR (adev)); -for_each_acpi_dev_match (ivsc_adev, acpi_id->id,NULL ,-1 ) +for_each_acpi_dev_match (ivsc_adev, acpi_id->id,NULL ,-1 ) { +const struct dmi_system_id *dmi_id; + + dmi_id =dmi_first_match (missing_dependency_dmi_ids); +if (dmi_id && +acpi_dev_hid_match (adev, dmi_id->driver_data)) +return ivsc_adev; +/* camera sensor depends on IVSC in DSDT if exist */ -for_each_acpi_consumer_dev (ivsc_adev, consumer) +for_each_acpi_consumer_dev (ivsc_adev, consumer) {if (ACPI_PTR (consumer->handle) == handle) {acpi_dev_put (consumer);return ivsc_adev; } + } + } }return NULL ;
Hello Hans,
Quoted 16 lines · On Tue, Feb 10, 2026 at 10:45:54AM +0100, [email protected] wrote:
Hi Antti,
Quoted 7 lines · Antti Laakso
A supplier-consumer dependency should exist between the CVS and sensor. However, this dependency is missing on Dell Pro Max 16 Premium laptop.
To initialize these devices correctly for this laptop, add DMI match table to ignore broken dependency.
Signed-off-by Antti Laakso <[email protected]>Are you sure the dependency is really missing ?
ATM the kernel has the CVS ACPI-hwid (HID) listed in
drivers/acpi/scan.c: acpi_ignore_dep_ids[] :
Quoted 6 lines
static const char * const acpi_ignore_dep_ids[] = {
...
"INTC10DE", /* Intel CVS LNL */
"INTC10E0", /* Intel CVS ARL */
...
};Oh, I missed this list, thanks for pointing it out. Removing CVS IDs from the list fixed the issue.
Quoted 109 lines
because there is no upstream driver for it and cameras do work OOTB on a whole bunch of laptop models (Lenovo Arrow Lake / Lunar LAke ThinkPads) work fine without the CVS driver.
It does seem that only the Dell models actually need the driver, also see: https://bugzilla.redhat.com/show_bug.cgi?id=2413656
Please try removing the 2 lines I mentioned above, it is likely that will fix things. Note those can only be removed though after the CVS driver from: https://github.com/intel/vision-drivers
has actually been upstreamed.Maybe you can help with upstreaming the driver ?
Regards,
Hans
p.s.
About the upstreaming of:
https://github.com/intel/vision-drivers.git
Note there is both a regular driver as well as integrated update support into that driver. Which is something which might just as well be done from userspace. For upstreaming my advice would be to start with stripping out the upstream support, which I think will also be what Richard will prefer (+Cc Richard).
Even if we do somehow need some kernel support for updating we don't need that just to get the cameras working and getting things upstream without it will be much easier and will allow us to redesign the update support (preferably punting it to userspace) before upstreaming that part.
After removing the update support I do not believe that there will be a whole lot code left in the driver. Just some code to put the MITM vision chip in pass-through mode.
Upstreaming the remaining code / minimal driver should be relatively easy.
Note this will also require testing on Lenovo laptops which seem to have the ACPI node describing the CVS chip but not the actual CVS chip causing i2c transfers to it to fail, so the driver will need to recognize this case and still mark the dependency as resolved instead of error-ing out otherwise the camera support on these Lenovo laptops will regress.
Quoted 52 lines
--- drivers/media/pci/intel/ipu-bridge.c | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-)drivers/media/pci/intel/ipu-bridge.c +23
-2@@ -121,6 +121,18 @@ static const struct dmi_system_id upside_down_sensor_dmi_ids[] = { {}/* Terminating entry */ }; +/* DMI matches for systems where sensor-CVS dependency is missing. */ +static const struct dmi_system_id missing_dependency_dmi_ids[] = { + { + .matches = { +DMI_EXACT_MATCH (DMI_SYS_VENDOR ,"Dell Inc." ), +DMI_EXACT_MATCH (DMI_PRODUCT_NAME ,"Dell Pro Max 16 Premium MA16250" ), + }, + .driver_data ="OVTI08F4" , + }, + {}/* Terminating entry */ +}; +static const struct ipu_property_names prop_names = { .clock_frequency ="clock-frequency" , .rotation ="rotation" ,@@ -163,13 +175,22 @@ static struct acpi_device *ipu_bridge_get_ivsc_acpi_dev(struct acpi_device *adevstruct acpi_device *consumer, *ivsc_adev;acpi_handle handle =acpi_device_handle (ACPI_PTR (adev)); -for_each_acpi_dev_match (ivsc_adev, acpi_id->id,NULL ,-1 ) +for_each_acpi_dev_match (ivsc_adev, acpi_id->id,NULL ,-1 ) { +const struct dmi_system_id *dmi_id; + + dmi_id =dmi_first_match (missing_dependency_dmi_ids); +if (dmi_id && +acpi_dev_hid_match (adev, dmi_id->driver_data)) +return ivsc_adev; +/* camera sensor depends on IVSC in DSDT if exist */ -for_each_acpi_consumer_dev (ivsc_adev, consumer) +for_each_acpi_consumer_dev (ivsc_adev, consumer) {if (ACPI_PTR (consumer->handle) == handle) {acpi_dev_put (consumer);return ivsc_adev; } + } + } }return NULL ;
For what it's worth, I have the CVS driver (from intel/vision-drivers) working on another affected Dell model:
Dell XPS 13 9350 (Core Ultra 200V, Lunar Lake)
OV02C10 (OVTI02C1:00) + INTC10DE CVS chip
Fedora 42, kernel 6.18.8
The upstream driver needs one fix to probe on this hardware:SET_HOST_IDENTIFIER returns -EIO (via USBIO I2C bridge, protocol 1.0, no magic number) and the driver treats it as fatal. Making that non-fatal lets the GPIO handshake complete and the sensor powers up. Filed with patches at https://github.com/intel/vision-drivers/issues/32
I'm currently working around the probe ordering with a udev rule that re-binds ov02c10 after CVS probes. Removing INTC10DE from acpi_ignore_dep_ids[] (as Hans suggested) would be the proper fix.
The camera works at 1920x1080@30fps via libcamera 0.7.0 Simple pipeline handler + GPU-accelerated SoftISP through PipeWire.
Hans's suggested path (upstream the CVS driver, remove INTC10DE from the ignore list) would fix this for both Dell models.
Hi,
Quoted 7 lines · On 15-Feb-26 17:41, [email protected] wrote:
For what it's worth, I have the CVS driver (from intel/vision-drivers) working on another affected Dell model:
Dell XPS 13 9350 (Core Ultra 200V, Lunar Lake)
OV02C10 (OVTI02C1:00) + INTC10DE CVS chip
Fedora 42, kernel 6.18.8
Quoted 8 lines
The upstream driver needs one fix to probe on this hardware:
SET_HOST_IDENTIFIERreturns-EIO(via USBIO I2C bridge, protocol 1.0, no magic number) and the driver treats it as fatal. Making that non-fatal lets the GPIO handshake complete and the sensor powers up. Filed with patches at https://github.com/intel/vision-drivers/issues/32I'm currently working around the probe ordering with a udev rule that re-binds ov02c10 after CVS probes.
Interesting, as a workaround Fedora has a kmod package with the out of tree driver in there for now. It would be good to add that udev rule to the kmod package, can you share your udev rule?
Regards,
Hans
Quoted 4 lines · On 18-Feb-26 17:03,[email protected] wrote:
Interesting, as a workaround Fedora has a kmod package with the out of tree driver in there for now. It would be good to add that udev rule to the kmod package, can you share your udev rule?
Sure, here it is:
ACTION=="bind", SUBSYSTEM=="i2c", DRIVER=="Intel CVS driver", \
RUN+="/bin/sh -c 'echo i2c-OVTI02C1:00 > /sys/bus/i2c/drivers/ov02c10/bind 2>/dev/null || true'"It triggers on the CVS driver binding to INTC10DE:00 and re-binds the ov02c10 driver, which probed too early (before CVS had acquired the sensor) and failed with -EREMOTEIO.
A couple of notes that may be useful for the kmod package:
1. The upstream intel_cvs driver fails to probe on this hardware (Dell XPS 13 9350, LNL, protocol 1.0) because SET_HOST_IDENTIFIER returns -EIO and is treated as fatal. The GPIO handshake works fine without it. I filed this with a patch at:
https://github.com/intel/vision-drivers/issues/32
2. Without a way to release the sensor after probe, the camera LED stays on permanently. I added a sensor_owner sysfs attribute (also in the above issue) that lets userspace acquire/release on demand, plus a 10-second auto-release after boot. The kmod package may want to include this as well, or at least the auto-release so the LED doesn't stay lit indefinitely.
regards,
Ole