IPU6 subsystem broken in 6.19-rc1 due to d7cdbbc93c5 ("software node: allow referencing firmware nodes")
Subsystems (4)
(Also posted here: https://github.com/intel/ipu6-drivers/issues/405 )
I run Linus' master (currently as of ea1013c153927) as my daily driver (mostly to find bugs like this). When the merges for the 6.19 series started to trickle in, I'd noticed my camera stopped working:
``` [Mon Dec 15 21:49:29 2025] [ T151] intel-ipu6 0000:00:05.0: Found supported sensor OVTI01A0:00 [Mon Dec 15 21:49:29 2025] [ T151] intel-ipu6 0000:00:05.0: Connected 1 cameras [Mon Dec 15 21:49:29 2025] [ T151] intel-ipu6 0000:00:05.0: IPU6-v3[465d] hardware version 5 [Mon Dec 15 21:49:29 2025] [ T1553] ivsc_csi intel_vsc-92335fcf-3203-4472-af93-7b4453ac29da: can't obtain sink endpoint [Mon Dec 15 21:49:29 2025] [ T1553] ivsc_csi intel_vsc-92335fcf-3203-4472-af93-7b4453ac29da: probe with driver ivsc_csi failed with error -22 ```
After bisecting, I'd tracked down the failure to the commit in the title, and at this patchset:
```
@@ -633,7 +650,10 @@ software_node_graph_get_remote_endpoint(const struct fwnode_handle *fwnode)
ref = prop->pointer;
- return software_node_get(software_node_fwnode(ref[0].node));
<---- old line works
+ if (!ref->swnode)
+ return NULL; <--- no "swnode" after this commit, so it fails here
+
+ return software_node_get(software_node_fwnode(ref->swnode));
```... and here's the code in .../drivers/media/pci/intel/ivsc/mei_csi.c where it fails:
static int mei_csi_parse_firmware(struct mei_csi *csi)
{
struct v4l2_fwnode_endpoint v4l2_ep = {
.bus_type = V4L2_MBUS_CSI2_DPHY,
};
struct device *dev = &csi->cldev->dev;
struct v4l2_async_connection *asd;
struct fwnode_handle *sink_ep, *source_ep;
int ret;
sink_ep = fwnode_graph_get_endpoint_by_id(dev_fwnode(dev), 0,
0, 0);
if (!sink_ep) {
dev_err(dev, "can't obtain sink endpoint\n");
return -EINVAL;
}I looked at the fwnode/software node code, and the definition and use of that UUID in the ivsc_csi/intel_vsc code and attempted to try a fix, but I'm not at all familiar with the _node API and figured I should just file an issue rather than go down the rabbit hole I have little time for (at least RN).
It looks like I'll need to add a "swnode" (as the "fwnode" is gone?) but not sure how to do that (my first attempts failed).
If you need any further information, LMK.
-K
Signature · 1 line
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA
(Fixed Sakari's E-mail address and resending new to avoid reply-quote formatting issues)
(Also posted here: https://github.com/intel/ipu6-drivers/issues/405 )
I run Linus' master (currently as of ea1013c153927) as my daily driver (mostly to find bugs like this). When the merges for the 6.19 series started to trickle in, I'd noticed my camera stopped working:
``` [Mon Dec 15 21:49:29 2025] [ T151] intel-ipu6 0000:00:05.0: Found supported sensor OVTI01A0:00 [Mon Dec 15 21:49:29 2025] [ T151] intel-ipu6 0000:00:05.0: Connected 1 cameras [Mon Dec 15 21:49:29 2025] [ T151] intel-ipu6 0000:00:05.0: IPU6-v3[465d] hardware version 5 [Mon Dec 15 21:49:29 2025] [ T1553] ivsc_csi intel_vsc-92335fcf-3203-4472-af93-7b4453ac29da: can't obtain sink endpoint [Mon Dec 15 21:49:29 2025] [ T1553] ivsc_csi intel_vsc-92335fcf-3203-4472-af93-7b4453ac29da: probe with driver ivsc_csi failed with error -22 ```
After bisecting, I'd tracked down the failure to the commit in the title, and at this patchset:
```
@@ -633,7 +650,10 @@ software_node_graph_get_remote_endpoint(const struct fwnode_handle *fwnode)
ref = prop->pointer;
- return software_node_get(software_node_fwnode(ref[0].node)); <---- old line works
+ if (!ref->swnode)
+ return NULL; <--- no "swnode" after this commit, so it fails here
+
+ return software_node_get(software_node_fwnode(ref->swnode));
```... and here's the code in .../drivers/media/pci/intel/ivsc/mei_csi.c where it fails:
static int mei_csi_parse_firmware(struct mei_csi *csi)
{
struct v4l2_fwnode_endpoint v4l2_ep = {
.bus_type = V4L2_MBUS_CSI2_DPHY,
};
struct device *dev = &csi->cldev->dev;
struct v4l2_async_connection *asd;
struct fwnode_handle *sink_ep, *source_ep;
int ret;
sink_ep = fwnode_graph_get_endpoint_by_id(dev_fwnode(dev), 0,
0, 0);
if (!sink_ep) {
dev_err(dev, "can't obtain sink endpoint\n");
return -EINVAL;
}I looked at the fwnode/software node code, and the definition and use of that UUID in the ivsc_csi/intel_vsc code and attempted to try a fix, but I'm not at all familiar with the _node API and figured I should just file an issue rather than go down the rabbit hole I have little time for (at least RN).
It looks like I'll need to add a "swnode" (as the "fwnode" is gone?) but not sure how to do that (my first attempts failed).
If you need any further information, LMK.
-K
Signature · 1 line
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA
Sakari Ailus
reviewerPATCH 1/1 software node: Also support referencing non-constant software nodes
Fwnode references are be implemented differently if referenced node is a software node. _Generic() is used to differentiate between the two cases but only const software nodes were present in the selection. Also add non-const software nodes.
---
Hi Kenneth,
Many thanks for reporting the issue and bisecting the offending patch! Could you confirm whether this fixes the issue (it does for me)?
- Sakari
include/linux/property.h | 1 + 1 file changed, 1 insertion(+)
include/linux/property.h +1 -0
@@ -371,6 +371,7 @@ struct software_node_ref_args { (const struct software_node_ref_args ) { \ .swnode = _Generic(_ref_, \const struct software_node *: _ref_, \ +struct software_node *: _ref_, \ default: NULL), \ .fwnode = _Generic(_ref_, \ struct fwnode_handle *: _ref_, \
Signature · 1 line
2.47.3
Re: [PATCH 1/1] software node: Also support referencing non-constant software nodes
Hi Sakari,
Thank you for the patch.
Quoted 5 lines · Sakari Ailus
Fwnode references are be implemented differently if referenced node is a software node.
_Generic()is used to differentiate between the two cases but only const software nodes were present in the selection. Also add non-const software nodes.
it works for me.
Quoted 4 lines
Reported-by Kenneth Crudup <[email protected]>Fixes d7cdbbc93c56 ("software node: allow referencing firmware nodes")Signed-off-by Sakari Ailus <[email protected]>
Re: [PATCH 1/1] software node: Also support referencing non-constant software nodes
Hi,
Quoted 11 lines · Mehdi Djait
Hi Sakari,
Thank you for the patch.
Quoted 5 lines · Sakari Ailus
Fwnode references are be implemented differently if referenced node is a software node.
_Generic()is used to differentiate between the two cases but only const software nodes were present in the selection. Also add non-const software nodes.
Quoted 4 lines
it works for me.
Reviewed-by Mehdi Djait <[email protected]>
Sakari, thank you for fixing this.
Since this fixes a 6.19 regression: Can someone please submit a pull-request with "[GIT FIXES for v6.19]" pull-request to Hans + Mauro with this patch?
Regards,
Hans
Danilo Krummrich
maintainerRe: [PATCH 1/1] software node: Also support referencing non-constant software nodes
Quoted 3 lines · johannes.goede
Since this fixes a 6.19 regression: Can someone please submit a pull-request with "[GIT FIXES for v6.19]" pull-request to Hans + Mauro with this patch?
This code is maintained throught the driver-core tree and fixes for the current release cycle ending up in this tree will be sent to Linus directly for the next appropriate -rc.
Is there any specific reason for this request?
Re: [PATCH 1/1] software node: Also support referencing non-constant software nodes
Hi Danilo,
Quoted 10 lines · Danilo Krummrich
Quoted 3 lines · johannes.goede
Since this fixes a 6.19 regression: Can someone please submit a pull-request with "[GIT FIXES for v6.19]" pull-request to Hans + Mauro with this patch?
This code is maintained throught the driver-core tree and fixes for the current release cycle ending up in this tree will be sent to Linus directly for the next appropriate -rc.
Is there any specific reason for this request?
No reason other then me not paying attention and since this fixes an issue related to IPU6 cameras I typed the above on auto-pilot, my bad.
You're completely right this should go upstream through driver core and my request makes no sense, sorry.
Regards,
Hans
Danilo Krummrich
maintainerRe: [PATCH 1/1] software node: Also support referencing non-constant software nodes
Quoted 6 lines · johannes.goede
No reason other then me not paying attention and since this fixes an issue related to IPU6 cameras I typed the above on auto-pilot, my bad.
You're completely right this should go upstream through driver core and my request makes no sense, sorry.
No worries, could have been there is a specific reason. :)
Re: [PATCH 1/1] software node: Also support referencing non-constant software nodes
In reply to Sakari AilusApparently last to the party :) but:
-K
Quoted 32 lines · Sakari Ailus
Fwnode references are be implemented differently if referenced node is a software node.
_Generic()is used to differentiate between the two cases but only const software nodes were present in the selection. Also add non-const software nodes.Reported-by Kenneth Crudup <[email protected]>Fixes d7cdbbc93c56 ("software node: allow referencing firmware nodes")Signed-off-by Sakari Ailus <[email protected]>---
Hi Kenneth,Many thanks for reporting the issue and bisecting the offending patch! Could you confirm whether this fixes the issue (it does for me)?
- Sakari
include/linux/property.h | 1 + 1 file changed, 1 insertion(+)include/linux/property.h +1
-0@@ -371,6 +371,7 @@ struct software_node_ref_args { (const struct software_node_ref_args ) { \ .swnode = _Generic(_ref_, \const struct software_node *: _ref_, \ +struct software_node *: _ref_, \ default: NULL), \ .fwnode = _Generic(_ref_, \ struct fwnode_handle *: _ref_, \
Signature · 1 line
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA
Re: [PATCH 1/1] software node: Also support referencing non-constant software nodes
In reply to Sakari AilusQuoted 9 lines · Sakari Ailus
Fwnode references are be implemented differently if referenced node is a software node.
_Generic()is used to differentiate between the two cases but only const software nodes were present in the selection. Also add non-const software nodes.Reported-by Kenneth Crudup <[email protected]>Fixes d7cdbbc93c56 ("software node: allow referencing firmware nodes")Signed-off-by Sakari Ailus <[email protected]>
Applied to driver-core-linus, thanks!