Skip to contentSkip to conversation

IPU6 subsystem broken in 6.19-rc1 due to d7cdbbc93c5 ("software node: allow referencing firmware nodes")

PATCH Applied Kenneth Crudup 5 participants 10 messages Dec 19, 2025 – Dec 22, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

(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
#1 lore raw

(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
reviewer
#2 lore raw

PATCH 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.

Fixes d7cdbbc93c56 ("software node: allow referencing firmware 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
index 272bfbdea7bf..e30ef23a9af3 100644
@@ -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
Tested-by Reviewed-by on v1 1/1
#3 lore raw

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
Fixes d7cdbbc93c56 ("software node: allow referencing firmware nodes")
#4 lore raw

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.

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

maintainer
#5 lore raw

Re: [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?

#6 lore raw

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

maintainer
#7 lore raw

Re: [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. :)

author Tested-by on v1 1/1
#8 lore raw

Re: [PATCH 1/1] software node: Also support referencing non-constant software nodes

In reply to Sakari Ailus

Apparently 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.

Fixes d7cdbbc93c56 ("software node: allow referencing firmware 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
index 272bfbdea7bf..e30ef23a9af3 100644
@@ -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
maintainer Applied
#9 lore raw

Re: [PATCH 1/1] software node: Also support referencing non-constant software nodes

In reply to Sakari Ailus
Quoted 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.

Fixes d7cdbbc93c56 ("software node: allow referencing firmware nodes")

Applied to driver-core-linus, thanks!