intel / intel/ipu6-drivers

IMX471 driver not working on ThinkPad X9

Open
#346 36 comments 11 reactions 0 assignees View on GitHub
Dominant language
C
Stars
251
Forks
75
PR merge metrics
No merged PRs in 30d

Description

Thanks for your work on the IMX471 driver @sujimmy!

I'm trying to get the webcam on a ThinkPad X9 to work which has a IMX471 sensor and needs IPU7 drivers.

I have installed the IMX471 driver via dkms and built a custom kernel (6.14.5) with `ipu-bridge.c` [patched](https://github.com/intel/ipu6-drivers/blob/master/patch/v6.11/0008-Subject-PATCH-media-ipu-bridge-Support-imx471-sensor.patch) to support it.

The driver seems to fail at the [identity check](https://github.com/intel/ipu6-drivers/blob/master/drivers/media/i2c/imx471.c#L903):
```
[ 4.264917] imx471 i2c-SONY471A:00: failed to find sensor: -5
[ 4.266282] imx471 i2c-SONY471A:00: probe with driver imx471 failed with error -5
```

I also have the IPU7 stack installed which seems to be working correctly with the sensor:
IPU7 logs

```
[ 4.213617] intel_ipu7: loading out-of-tree module taints kernel.
[ 4.213621] intel_ipu7: module verification failed: signature and/or required key missing - tainting kernel
[ 4.229767] intel-ipu7 intel-ipu7: enabling device (0000 -> 0002)
[ 4.229776] intel-ipu7 intel-ipu7: Device 0x645d (rev: 0x4)
[ 4.229778] intel-ipu7 intel-ipu7: IPU7 PCI BAR0 base 204e000000 BAR2 base 205133f000
[ 4.229818] intel-ipu7 intel-ipu7: IPU7 PCI BAR0 mapped at 000000003f858538
[ 4.233187] intel-ipu7 intel-ipu7: IPU7 SKU 0 in secure mode mask 0xff
[ 4.245878] intel-ipu7 intel-ipu7: firmware cpd file: intel/ipu/ipu7_fw.bin
[ 4.248201] intel-ipu7 intel-ipu7: FW binary0 info:
[ 4.248203] intel-ipu7 intel-ipu7: Name: psys
[ 4.248204] intel-ipu7 intel-ipu7: Version: 1.1.9.240627135220
[ 4.248204] intel-ipu7 intel-ipu7: Timestamp: build_id:331942702
[ 4.248205] intel-ipu7 intel-ipu7: Commit: commit_id:d84f5c35
[ 4.248206] intel-ipu7 intel-ipu7: FW binary1 info:
[ 4.248206] intel-ipu7 intel-ipu7: Name: isys
[ 4.248207] intel-ipu7 intel-ipu7: Version: 1.1.9.240627135318
[ 4.248207] intel-ipu7 intel-ipu7: Timestamp: build_id:3823931988
[ 4.248207] intel-ipu7 intel-ipu7: Commit: commit_id:d84f5c35
[ 4.251824] intel-ipu7 intel-ipu7: Found supported sensor SONY471A:00
[ 4.251830] intel-ipu7 intel-ipu7: Connected 1 cameras
[ 4.255644] intel-ipu7 intel-ipu7: Sending BOOT_LOAD to CSE
[ 4.321740] intel-ipu7 intel-ipu7: Sending AUTHENTICATE_RUN to CSE
[ 4.350622] intel-ipu7 intel-ipu7: CSE authenticate_run done
[ 4.418603] intel_ipu7_psys.psys intel_ipu7.psys.40: IPU psys probe done.
```


What may be the issue here? Please let me know if I can provide more context.

System Info

```
OS: Fedora Linux 42 (Adams) x86_64
Host: 21Q6001WGE (ThinkPad X9-15 Gen 1)
Kernel: Linux 6.14.5-imx471
WM: Sway 1.10.1 (Wayland)
CPU: Intel(R) Core(TM) Ultra 7 258V (8) @ 4.80 GHz
GPU: Intel Arc Graphics 130V / 140V @ 1.95 GHz [Integrated]
```


Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.