REGRESSION: ipu3-imgu: commit a66191c590b3b58eaff05d2277971f854772bd5b breaks camera functionality on Surface Go 2
Hello,
I am reporting a regression in the IPU3-IMGU driver introduced in the 6.19 kernel cycle.
Regression Description:
Following the upgrade from kernel 6.18 to 6.19 on Fedora Linux, the IPU3 camera on my [Device Model, e.g., Surface Go 2] has stopped functioning. While the modules (ipu3_cio2, ipu3_imgu) load, user-space tools like libcamera can no longer initialize the device.
Suspected Commit:
"media: ipu3-imgu: Drop struct imgu_device v4l2_file_ops field"
Commit: a66191c590b3b58eaff05d2277971f854772bd5b
Impact:
This change seems to have removed a field that libcamera or the V4L2 sub-device internal routing relies upon for this specific hardware. Reverting to the 6.18 kernel restores full functionality.
System Information:
Distribution: Fedora 43
Kernel version: 6.19.x (Broken) / 6.18.x (Working)
I can provide dmesg logs if required. Please let me know if you need a full media-ctl topology output from the working vs. non-working kernels.
Best regards,
Michael Anthony
Hi Michael,
Quoting Michael Anthony (2026-03-22 15:40:37)
Quoted 4 lines
Hello,
I am reporting a regression in the IPU3-IMGU driver introduced in the 6.19 kernel cycle.
Quoted 8 lines
Regression Description:
Following the upgrade from kernel 6.18 to 6.19 on Fedora Linux, the IPU3 camera on my [Device Model, e.g., Surface Go 2] has stopped functioning. While the modules (ipu3_cio2,ipu3_imgu) load, user-space tools like libcamera can no longer initialize the device.Suspected Commit:
"media: ipu3-imgu: Drop structimgu_devicev4l2_file_opsfield"
Commit:a66191c590b3b58eaff05d2277971f854772bd5b
I tried following this link - but it's apparently not the commit you expect. Can you identify which commit you actually bisected to please?
--
Kieran
Quoted 15 lines
Impact:
This change seems to have removed a field that libcamera or the V4L2 sub-device internal routing relies upon for this specific hardware. Reverting to the 6.18 kernel restores full functionality.System Information:
Distribution: Fedora 43
Kernel version: 6.19.x (Broken) / 6.18.x (Working)
I can provide dmesg logs if required. Please let me know if you need a full media-ctl topology output from the working vs. non-working kernels.
Best regards,
Michael Anthony
Hi Kieran
Sorry about that. The commit that I suspect caused this regression is:-
5d505becf75a9696937815ab147e1f2d81165ad8
media: ipu3-imgu: Drop struct imgu_device v4l2_file_ops field
I am new to this so am not absolutely sure that this is the culprit, but it seems to be the only relevant change between 6.18 (working) and 6.19 (not working).
NB: I'm not sure if this is relevant but on kernel 6.17 both front and back cameras produced an image after booting, but on kernel 6.18 only the front camera produced an image and the back camera just showed a green screen until I entered systemctl --user restart pipewire in a terminal. After this the camera produced a image. After upgrading to kernel 6.19 in fedora, neither camera is detected.
If you need any more information, please let me know.
Michael
________________________________________
From: Kieran Bingham <[email protected]>
Sent: Monday, March 23, 2026 09:55
To: [email protected] <[email protected]>; Michael Anthony <[email protected]>
Cc: [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: REGRESSION: ipu3-imgu: commit a66191c590b3b58eaff05d2277971f854772bd5b breaks camera functionality on Surface Go 2
Hi Michael,
Quoting Michael Anthony (2026-03-22 15:40:37)
Quoted 14 lines
Hello,
I am reporting a regression in the IPU3-IMGU driver introduced in the 6.19 kernel cycle.
Regression Description:
Following the upgrade from kernel 6.18 to 6.19 on Fedora Linux, the IPU3 camera on my [Device Model, e.g., Surface Go 2] has stopped functioning. While the modules (
ipu3_cio2,ipu3_imgu) load, user-space tools like libcamera can no longer initialize the device.
Quoted 9 lines
Suspected Commit:
"media: ipu3-imgu: Drop struct
imgu_devicev4l2_file_opsfield"Commit:
a66191c590b3b58eaff05d2277971f854772bd5b
I tried following this link - but it's apparently not the commit you
expect. Can you identify which commit you actually bisected to please?
--
Kieran
Quoted 29 lines
Impact:
This change seems to have removed a field that libcamera or the V4L2 sub-device internal routing relies upon for this specific hardware. Reverting to the 6.18 kernel restores full functionality.
System Information:
Distribution: Fedora 43
Kernel version: 6.19.x (Broken) / 6.18.x (Working)
I can provide dmesg logs if required. Please let me know if you need a full media-ctl topology output from the working vs. non-working kernels.
Best regards,
Michael Anthony
Hi Michael
Quoting Michael Anthony (2026-03-23 10:38:22)
Quoted 4 lines
Hi Kieran
Sorry about that. The commit that I suspect caused this regression is:-
Quoted 8 lines
5d505becf75a9696937815ab147e1f2d81165ad8media: ipu3-imgu: Drop struct
imgu_devicev4l2_file_opsfieldI am new to this so am not absolutely sure that this is the culprit, but it seems to be the only relevant change between 6.18 (working) and 6.19 (not working).
If that's the only change and it compiles, then it's not that I'm afraid.
That change declares it removes an unused variable, and the compiler should fail if it was actually used.
Quoted 2 lines
NB: I'm not sure if this is relevant but on kernel 6.17 both front and back cameras produced an image after booting, but on kernel 6.18 only the front camera produced an image and the back camera just showed a green screen until I entered systemctl --user restart pipewire in a terminal. After this the camera produced a image. After upgrading to kernel 6.19 in fedora, neither camera is detected.
You may need to bisect the kernels more preciesly building your own kernels to use 'git-bisect'.
As you're on a surface, are you using the linux-surface kernels? They might have out of tree patches which you've now dropped.
Also - yes, please add a full dmesg and media graphs.
We should try to identify what the actual fault is before we jump through random kernel configurations.
If the kernels are provided by Fedora - there might be a way to report to Fedora too.
- https://docs.fedoraproject.org/en-US/quick-docs/bugzilla-file-a-bug/
suggests
- https://bugzilla.redhat.com/
--
Kieran
Quoted 90 lines
If you need any more information, please let me know.
Michael
________________________________________
From: Kieran Bingham <[email protected]>
Sent: Monday, March 23, 2026 09:55
To: [email protected] <[email protected]>; Michael Anthony <[email protected]>
Cc: [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: REGRESSION: ipu3-imgu: commita66191c590b3b58eaff05d2277971f854772bd5bbreaks camera functionality on Surface Go 2Hi Michael,
Quoting Michael Anthony (2026-03-22 15:40:37)
Quoted 14 lines
Hello,
I am reporting a regression in the IPU3-IMGU driver introduced in the 6.19 kernel cycle.
Regression Description:
Following the upgrade from kernel 6.18 to 6.19 on Fedora Linux, the IPU3 camera on my [Device Model, e.g., Surface Go 2] has stopped functioning. While the modules (
ipu3_cio2,ipu3_imgu) load, user-space tools like libcamera can no longer initialize the device.Quoted 9 lines
Suspected Commit:
"media: ipu3-imgu: Drop struct
imgu_devicev4l2_file_opsfield"Commit:
a66191c590b3b58eaff05d2277971f854772bd5bI tried following this link - but it's apparently not the commit you
expect. Can you identify which commit you actually bisected to please?
--
Kieran
Quoted 29 lines
Impact:
This change seems to have removed a field that libcamera or the V4L2 sub-device internal routing relies upon for this specific hardware. Reverting to the 6.18 kernel restores full functionality.
System Information:
Distribution: Fedora 43
Kernel version: 6.19.x (Broken) / 6.18.x (Working)
I can provide dmesg logs if required. Please let me know if you need a full media-ctl topology output from the working vs. non-working kernels.
Best regards,
Michael Anthony
Hi Kieran,
Thanks for taking the time to look at this and reply to me. Unfortunately, the next steps are beyond my understanding so I will have to leave it there. In case anyone else makes a similar report in the future, I have listed my observations/steps so far below in the hope that they can be of some use. I have also created a bug report with Fedora.
Since Fedora 40, I have found that the stock fedora and linux-surface kernels have provided the same funcionality on Surface Go 1 and 2.
The stock fedora and linux-surface kernels 6.17 both provide access to both front and rear cameras following boot.
The stock fedora and linux-surface kernels 6.18 both provide access to the front camera and the rear camera starts working if I restart pipewire.
The stock fedora kernel 6.19 shows 'no cameras found'. I have not been able to test a linux-surface 6.19 kernel as on their GitHub site, recent attempts to build a 6.19 kernel for Debian, Fedora and Arch have all failed to build. The camera patches on the linux-surface github do not appear to have changed since 2021, which is what led me to believe the change that caused the break must be in the upsteam kernel.
Sorry to have wasted your time, but hopefully these observations may be of some help with any future reports.
Michael
________________________________________
From: Kieran Bingham <[email protected]>
Sent: Monday, March 23, 2026 11:14
To: [email protected] <[email protected]>; Michael Anthony <[email protected]>
Cc: [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: REGRESSION: ipu3-imgu: commit a66191c590b3b58eaff05d2277971f854772bd5b breaks camera functionality on Surface Go 2
Hi Michael
Quoting Michael Anthony (2026-03-23 10:38:22)
Quoted 16 lines
Hi Kieran
Sorry about that. The commit that I suspect caused this regression is:-
5d505becf75a9696937815ab147e1f2d81165ad8media: ipu3-imgu: Drop struct
imgu_devicev4l2_file_opsfield
Quoted 7 lines
I am new to this so am not absolutely sure that this is the culprit, but it seems to be the only relevant change between 6.18 (working) and 6.19 (not working).
If that's the only change and it compiles, then it's not that I'm
afraid.
That change declares it removes an unused variable, and the compiler
should fail if it was actually used.
Quoted 3 lines
NB: I'm not sure if this is relevant but on kernel 6.17 both front and back cameras produced an image after booting, but on kernel 6.18 only the front camera produced an image and the back camera just showed a green screen until I entered systemctl --user restart pipewire in a terminal. After this the camera produced a image. After upgrading to kernel 6.19 in fedora, neither camera is detected.
You may need to bisect the kernels more preciesly building your own
kernels to use 'git-bisect'.
As you're on a surface, are you using the linux-surface kernels? They
might have out of tree patches which you've now dropped.
Also - yes, please add a full dmesg and media graphs.
We should try to identify what the actual fault is before we jump
through random kernel configurations.
If the kernels are provided by Fedora - there might be a way to report
to Fedora too.
- https://docs.fedoraproject.org/en-US/quick-docs/bugzilla-file-a-bug/
suggests
- https://bugzilla.redhat.com/
--
Kieran
Quoted 179 lines
If you need any more information, please let me know.
Michael
________________________________________
From: Kieran Bingham <[email protected]>
Sent: Monday, March 23, 2026 09:55
To: [email protected] <[email protected]>; Michael Anthony <[email protected]>
Subject: Re: REGRESSION: ipu3-imgu: commit
a66191c590b3b58eaff05d2277971f854772bd5bbreaks camera functionality on Surface Go 2Hi Michael,
Quoting Michael Anthony (2026-03-22 15:40:37)
Quoted 36 lines
Hello,
I am reporting a regression in the IPU3-IMGU driver introduced in the 6.19 kernel cycle.
Regression Description:
Following the upgrade from kernel 6.18 to 6.19 on Fedora Linux, the IPU3 camera on my [Device Model, e.g., Surface Go 2] has stopped functioning. While the modules (
ipu3_cio2,ipu3_imgu) load, user-space tools like libcamera can no longer initialize the device.Suspected Commit:
"media: ipu3-imgu: Drop struct
imgu_devicev4l2_file_opsfield"Quoted 9 lines
Commit:
a66191c590b3b58eaff05d2277971f854772bd5bI tried following this link - but it's apparently not the commit you
expect. Can you identify which commit you actually bisected to please?
--
Kieran
Quoted 57 lines
Impact:
This change seems to have removed a field that libcamera or the V4L2 sub-device internal routing relies upon for this specific hardware. Reverting to the 6.18 kernel restores full functionality.
System Information:
Distribution: Fedora 43
Kernel version: 6.19.x (Broken) / 6.18.x (Working)
I can provide dmesg logs if required. Please let me know if you need a full media-ctl topology output from the working vs. non-working kernels.
Best regards,
Michael Anthony
Sakari Ailus
maintainerPATCH 1/1 media: dw9719: Add back the I²C device id table
The I²C device id table is necessary as the device may be, besides through system firmware, also instantiated in the IPU bridge so matching takes place using the I²C device id table. Add back the table, with ids for all supported devices.
---
Hi Michael,
Could you confirm whether this fixes your issue?
- Sakari
drivers/media/i2c/dw9719.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
drivers/media/i2c/dw9719.c +10 -0
@@ -439,6 +439,15 @@ static void dw9719_remove(struct i2c_client *client)pm_runtime_set_suspended (&client->dev); } +static const struct i2c_device_id dw9719_id_table[] = { + { .name ="dw9718s" , .driver_data = (kernel_ulong_t )DW9718S }, + { .name ="dw9719" , .driver_data = (kernel_ulong_t )DW9719 }, + { .name ="dw9761" , .driver_data = (kernel_ulong_t )DW9761 }, + { .name ="dw9800k" , .driver_data = (kernel_ulong_t )DW9800K }, + { } +}; +MODULE_DEVICE_TABLE (i2c, dw9719_id_table); +static const struct of_device_id dw9719_of_table[] = { { .compatible ="dongwoon,dw9718s" , .data = (const void *)DW9718S }, { .compatible ="dongwoon,dw9719" , .data = (const void *)DW9719 },
@@ -459,6 +468,7 @@ static struct i2c_driver dw9719_i2c_driver = { }, .probe = dw9719_probe, .remove = dw9719_remove, + .id_table = dw9719_id_table, };module_i2c_driver (dw9719_i2c_driver);
Signature · 1 line
2.47.3
Re: [PATCH 1/1] media: dw9719: Add back the I²C device id table
Hi Sakari,
Thanks for replying to me. I am new to linux and not sure how to test whether this fixes the issue.
My report was based on this being the only relevant change that I could identify between the working Fedora Kernel 6.18 series and the Fedore Kernel 6.19 series that stopped working by searching through the history on the kernel.org website.
I have reported the bug to Fedora as suggested .
https://bugzilla.redhat.com/show_bug.cgi?id=2447694
If I can provide any information from my current working or not-working kernels, please let me know.
Michael
________________________________________
From: Sakari Ailus <[email protected]>
Sent: Thursday, March 26, 2026 17:49
To: [email protected] <[email protected]>
Cc: Michael Anthony <[email protected]>; Kieran Bingham <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: [PATCH 1/1] media: dw9719: Add back the I²C device id table
The I²C device id table is necessary as the device may be, besides through
system firmware, also instantiated in the IPU bridge so matching takes
place using the I²C device id table. Add back the table, with ids for all
supported devices.
---
Hi Michael,
Could you confirm whether this fixes your issue?
- Sakari
drivers/media/i2c/dw9719.c | 10 ++++++++++
1 file changed, 10 insertions(+)
drivers/media/i2c/dw9719.c +0 -0
index 59558335989e..3b7ba88fd67c 100644
--- a/drivers/media/i2c/dw9719.c
+++ b/drivers/media/i2c/dw9719.c
@@ -439,6 +439,15 @@ static void dw9719_remove(struct i2c_client *client)
pm_runtime_set_suspended(&client->dev);
}
+static const struct i2c_device_id dw9719_id_table[] = {
+ { .name = "dw9718s", .driver_data = (kernel_ulong_t)DW9718S },
+ { .name = "dw9719", .driver_data = (kernel_ulong_t)DW9719 },
+ { .name = "dw9761", .driver_data = (kernel_ulong_t)DW9761 },
+ { .name = "dw9800k", .driver_data = (kernel_ulong_t)DW9800K },
+ { }
+};
+MODULE_DEVICE_TABLE(i2c, dw9719_id_table);
+
static const struct of_device_id dw9719_of_table[] = {
{ .compatible = "dongwoon,dw9718s", .data = (const void *)DW9718S },
{ .compatible = "dongwoon,dw9719", .data = (const void *)DW9719 },@@ -459,6 +468,7 @@ static struct i2c_driver dw9719_i2c_driver = {
},
.probe = dw9719_probe,
.remove = dw9719_remove,+ .id_table = dw9719_id_table,
};
module_i2c_driver(dw9719_i2c_driver);
--
2.47.3
Re: [PATCH 1/1] media: dw9719: Add back the I²C device id table
Hi Michael,
Quoted 11 lines · Michael Anthony
Hi Sakari,
Thanks for replying to me. I am new to linux and not sure how to test whether this fixes the issue.
My report was based on this being the only relevant change that I could identify between the working Fedora Kernel 6.18 series and the Fedore Kernel 6.19 series that stopped working by searching through the history on the kernel.org website.
I have reported the bug to Fedora as suggested .
https://bugzilla.redhat.com/show_bug.cgi?id=2447694
If I can provide any information from my current working or not-working kernels, please let me know.
As I also mentioned in a comment on that bugzilla:
Thank you for reporting this.
I've started a Fedora 6.19.10-200.bz2447694.fc43 test kernel build with the dw9719 patch you got from Sakari applied to it:
https://koji.fedoraproject.org/koji/taskinfo?taskID=143771571
Note this is still building atm, it should be done in a couple of hours.
See here for instructions to install a (test) kernel build directly from koji (Fedora's buildsystem):
https://fedorapeople.org/~jwrdegoede/kernel-test-instructions.txt
Please give this kernel a test and let Sakari know if the suggested fix works, then Sakari can take the fix upstream.
Regards,
Hans
Re: [PATCH 1/1] media: dw9719: Add back the I²C device id table
Hi Hans
I have installed and tested the patched kernel following your instructions and can confirm that this has resolved the issue. Both front and back cameras on Surface Go 2 are available again and produce an image.
Thanks for all your help.
Michael
________________________________________
From: [email protected] <[email protected]>
Sent: 28 March 2026 12:16
To: Michael Anthony <[email protected]>; Sakari Ailus <[email protected]>; [email protected] <[email protected]>
Cc: Kieran Bingham <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [PATCH 1/1] media: dw9719: Add back the I²C device id table
Hi Michael,
Quoted 11 lines · Michael Anthony
Hi Sakari,
Thanks for replying to me. I am new to linux and not sure how to test whether this fixes the issue.
My report was based on this being the only relevant change that I could identify between the working Fedora Kernel 6.18 series and the Fedore Kernel 6.19 series that stopped working by searching through the history on the kernel.org website.
I have reported the bug to Fedora as suggested .
https://bugzilla.redhat.com/show_bug.cgi?id=2447694
If I can provide any information from my current working or not-working kernels, please let me know.
As I also mentioned in a comment on that bugzilla:
Thank you for reporting this.
I've started a Fedora 6.19.10-200.bz2447694.fc43 test kernel build with the dw9719 patch you got from Sakari applied to it:
https://koji.fedoraproject.org/koji/taskinfo?taskID=143771571
Note this is still building atm, it should be done in a couple of hours.
See here for instructions to install a (test) kernel build directly from koji (Fedora's buildsystem):
https://fedorapeople.org/~jwrdegoede/kernel-test-instructions.txt
Please give this kernel a test and let Sakari know if the suggested fix works, then Sakari can take the fix upstream.
Regards,
Hans