All of lore.kernel.org
 help / color / mirror / Atom feed
* 'bad remote port parent' warnings
@ 2018-11-20 12:10 Fabio Estevam
  2018-11-20 12:15 ` Sakari Ailus
  2018-11-22 16:27 ` Philipp Zabel
  0 siblings, 2 replies; 9+ messages in thread
From: Fabio Estevam @ 2018-11-20 12:10 UTC (permalink / raw)
  To: Sakari Ailus, Steve Longerbeam, Philipp Zabel, Hans Verkuil; +Cc: linux-media

Hi,

On a imx6q-wandboard running linux-next 20181120 there the following warnings:

[    4.327794] video-mux 20e0000.iomuxc-gpr:ipu1_csi0_mux: bad remote
port parent
[    4.336118] video-mux 20e0000.iomuxc-gpr:ipu2_csi1_mux: bad remote
port parent

Is there anything we should do to prevent this from happening?

Thanks,

Fabio Estevam

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: 'bad remote port parent' warnings
  2018-11-20 12:10 'bad remote port parent' warnings Fabio Estevam
@ 2018-11-20 12:15 ` Sakari Ailus
  2018-11-20 12:21   ` Fabio Estevam
  2018-11-22 16:27 ` Philipp Zabel
  1 sibling, 1 reply; 9+ messages in thread
From: Sakari Ailus @ 2018-11-20 12:15 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: Steve Longerbeam, Philipp Zabel, Hans Verkuil, linux-media

On Tue, Nov 20, 2018 at 10:10:57AM -0200, Fabio Estevam wrote:
> Hi,
> 
> On a imx6q-wandboard running linux-next 20181120 there the following warnings:
> 
> [    4.327794] video-mux 20e0000.iomuxc-gpr:ipu1_csi0_mux: bad remote
> port parent
> [    4.336118] video-mux 20e0000.iomuxc-gpr:ipu2_csi1_mux: bad remote
> port parent
> 
> Is there anything we should do to prevent this from happening?

Where's the DT source for the board?

-- 
Sakari Ailus
sakari.ailus@linux.intel.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: 'bad remote port parent' warnings
  2018-11-20 12:15 ` Sakari Ailus
@ 2018-11-20 12:21   ` Fabio Estevam
  0 siblings, 0 replies; 9+ messages in thread
From: Fabio Estevam @ 2018-11-20 12:21 UTC (permalink / raw)
  To: Sakari Ailus; +Cc: Steve Longerbeam, Philipp Zabel, Hans Verkuil, linux-media

Hi Sakari,

On Tue, Nov 20, 2018 at 10:15 AM Sakari Ailus
<sakari.ailus@linux.intel.com> wrote:

> Where's the DT source for the board?

Board dts is arch/arm/boot/dts/imx6qdl-wandboard.dtsi

SoC dtsi is arch/arm/boot/dts/imx6q.dtsi

Also, since 4.20-rc the following errors are seen:

[    3.449564] imx-ipuv3 2400000.ipu: driver could not parse
port@1/endpoint@0 (-22)
[    3.457342] imx-ipuv3-csi: probe of imx-ipuv3-csi.1 failed with error -22
[    3.464498] imx-ipuv3 2800000.ipu: driver could not parse
port@0/endpoint@0 (-22)
[    3.472120] imx-ipuv3-csi: probe of imx-ipuv3-csi.4 failed with error -22

which were not present in 4.19.

Log from 4.19:
https://storage.kernelci.org/stable/linux-4.19.y/v4.19.2/arm/imx_v6_v7_defconfig/lab-baylibre-seattle/boot-imx6q-wandboard.html

Log from 4.20-rc3:
https://storage.kernelci.org/mainline/master/v4.20-rc3/arm/imx_v6_v7_defconfig/lab-baylibre-seattle/boot-imx6q-wandboard.html

Thanks

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: 'bad remote port parent' warnings
  2018-11-20 12:10 'bad remote port parent' warnings Fabio Estevam
  2018-11-20 12:15 ` Sakari Ailus
@ 2018-11-22 16:27 ` Philipp Zabel
  2018-11-22 19:17   ` Fabio Estevam
  1 sibling, 1 reply; 9+ messages in thread
From: Philipp Zabel @ 2018-11-22 16:27 UTC (permalink / raw)
  To: Fabio Estevam, Sakari Ailus, Steve Longerbeam, Hans Verkuil; +Cc: linux-media

On Tue, 2018-11-20 at 10:10 -0200, Fabio Estevam wrote:
> Hi,
> 
> On a imx6q-wandboard running linux-next 20181120 there the following warnings:
> 
> [    4.327794] video-mux 20e0000.iomuxc-gpr:ipu1_csi0_mux: bad remote
> port parent
> [    4.336118] video-mux 20e0000.iomuxc-gpr:ipu2_csi1_mux: bad remote
> port parent
> 
> Is there anything we should do to prevent this from happening?

There are empty endpoint nodes (without remote-endpoint property)
labeled ipu1_csi[01]_mux_from_parallel_sensor in the i.MX6 device trees
for board DT implementers' convenience. See commit 2539f517acbdc ("ARM:
dts: imx6qdl: Add video multiplexers, mipi_csi, and their connections").

We had a discussion about this issue in February when this caused a
probing error: https://patchwork.kernel.org/patch/10234469/

We could demote the warning to a debug message, make the wording a bit
less misleading (there is no bad remote port parent, there is just no
remote endpoint at all), or we could just accept the error message for
old DTBs and mark these empty endpoint nodes with the /omit-if-no-ref/
keyword to let dtc remove them if they are unused.

regards
Philipp

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: 'bad remote port parent' warnings
  2018-11-22 16:27 ` Philipp Zabel
@ 2018-11-22 19:17   ` Fabio Estevam
  2018-11-23 12:35     ` Sakari Ailus
  2018-11-23 22:37     ` Steve Longerbeam
  0 siblings, 2 replies; 9+ messages in thread
From: Fabio Estevam @ 2018-11-22 19:17 UTC (permalink / raw)
  To: Philipp Zabel; +Cc: Sakari Ailus, Steve Longerbeam, Hans Verkuil, linux-media

Hi Philipp,

On Thu, Nov 22, 2018 at 2:27 PM Philipp Zabel <p.zabel@pengutronix.de> wrote:

> There are empty endpoint nodes (without remote-endpoint property)
> labeled ipu1_csi[01]_mux_from_parallel_sensor in the i.MX6 device trees
> for board DT implementers' convenience. See commit 2539f517acbdc ("ARM:
> dts: imx6qdl: Add video multiplexers, mipi_csi, and their connections").
>
> We had a discussion about this issue in February when this caused a
> probing error: https://patchwork.kernel.org/patch/10234469/

Thanks for the clarification.

 We could demote the warning to a debug message, make the wording a bit
> less misleading (there is no bad remote port parent, there is just no
> remote endpoint at all), or we could just accept the error message for

Something like this?

--- a/drivers/media/v4l2-core/v4l2-fwnode.c
+++ b/drivers/media/v4l2-core/v4l2-fwnode.c
@@ -613,7 +613,7 @@ v4l2_async_notifier_fwnode_parse_endpoint(struct
device *dev,
        asd->match.fwnode =
                fwnode_graph_get_remote_port_parent(endpoint);
        if (!asd->match.fwnode) {
-               dev_warn(dev, "bad remote port parent\n");
+               dev_dbg(dev, "no remote endpoint found\n");
                ret = -ENOTCONN;
                goto out_err;
        }

And how should we treat these error probes?

[    3.449564] imx-ipuv3 2400000.ipu: driver could not parse
port@1/endpoint@0 (-22)
[    3.457342] imx-ipuv3-csi: probe of imx-ipuv3-csi.1 failed with error -22
[    3.464498] imx-ipuv3 2800000.ipu: driver could not parse
port@0/endpoint@0 (-22)
[    3.472120] imx-ipuv3-csi: probe of imx-ipuv3-csi.4 failed with error -22

Thanks

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: 'bad remote port parent' warnings
  2018-11-22 19:17   ` Fabio Estevam
@ 2018-11-23 12:35     ` Sakari Ailus
  2018-11-23 12:54       ` Fabio Estevam
  2018-11-23 22:37     ` Steve Longerbeam
  1 sibling, 1 reply; 9+ messages in thread
From: Sakari Ailus @ 2018-11-23 12:35 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: Philipp Zabel, Steve Longerbeam, Hans Verkuil, linux-media

Hi Fabio, Philipp,

On Thu, Nov 22, 2018 at 05:17:44PM -0200, Fabio Estevam wrote:
> Hi Philipp,
> 
> On Thu, Nov 22, 2018 at 2:27 PM Philipp Zabel <p.zabel@pengutronix.de> wrote:
> 
> > There are empty endpoint nodes (without remote-endpoint property)
> > labeled ipu1_csi[01]_mux_from_parallel_sensor in the i.MX6 device trees
> > for board DT implementers' convenience. See commit 2539f517acbdc ("ARM:
> > dts: imx6qdl: Add video multiplexers, mipi_csi, and their connections").
> >
> > We had a discussion about this issue in February when this caused a
> > probing error: https://patchwork.kernel.org/patch/10234469/
> 
> Thanks for the clarification.
> 
>  We could demote the warning to a debug message, make the wording a bit
> > less misleading (there is no bad remote port parent, there is just no
> > remote endpoint at all), or we could just accept the error message for
> 
> Something like this?
> 
> --- a/drivers/media/v4l2-core/v4l2-fwnode.c
> +++ b/drivers/media/v4l2-core/v4l2-fwnode.c
> @@ -613,7 +613,7 @@ v4l2_async_notifier_fwnode_parse_endpoint(struct
> device *dev,
>         asd->match.fwnode =
>                 fwnode_graph_get_remote_port_parent(endpoint);
>         if (!asd->match.fwnode) {
> -               dev_warn(dev, "bad remote port parent\n");
> +               dev_dbg(dev, "no remote endpoint found\n");

Makes sense. This is not necessarily a fatal error. Could you send a patch?

>                 ret = -ENOTCONN;
>                 goto out_err;
>         }
> 
> And how should we treat these error probes?
> 
> [    3.449564] imx-ipuv3 2400000.ipu: driver could not parse
> port@1/endpoint@0 (-22)
> [    3.457342] imx-ipuv3-csi: probe of imx-ipuv3-csi.1 failed with error -22
> [    3.464498] imx-ipuv3 2800000.ipu: driver could not parse
> port@0/endpoint@0 (-22)
> [    3.472120] imx-ipuv3-csi: probe of imx-ipuv3-csi.4 failed with error -22

I'm not sure if this is a real problem, I presume it's just that the device
has nothing connected to it, and so cannot work. Steve probably has a
better understanding of this, I'm just guessing here. :-)

-- 
Regards,

Sakari Ailus
sakari.ailus@linux.intel.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: 'bad remote port parent' warnings
  2018-11-23 12:35     ` Sakari Ailus
@ 2018-11-23 12:54       ` Fabio Estevam
  0 siblings, 0 replies; 9+ messages in thread
From: Fabio Estevam @ 2018-11-23 12:54 UTC (permalink / raw)
  To: Sakari Ailus; +Cc: Philipp Zabel, Steve Longerbeam, Hans Verkuil, linux-media

Hi Sakari,

On Fri, Nov 23, 2018 at 10:35 AM Sakari Ailus
<sakari.ailus@linux.intel.com> wrote:

> Makes sense. This is not necessarily a fatal error. Could you send a patch?

Yes, I have just sent it.

Thanks

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: 'bad remote port parent' warnings
  2018-11-22 19:17   ` Fabio Estevam
  2018-11-23 12:35     ` Sakari Ailus
@ 2018-11-23 22:37     ` Steve Longerbeam
  2018-11-24 15:20       ` Fabio Estevam
  1 sibling, 1 reply; 9+ messages in thread
From: Steve Longerbeam @ 2018-11-23 22:37 UTC (permalink / raw)
  To: Fabio Estevam, Philipp Zabel; +Cc: Sakari Ailus, Hans Verkuil, linux-media

Hi Fabio,

On 11/22/18 11:17 AM, Fabio Estevam wrote:
> Hi Philipp,
>
> On Thu, Nov 22, 2018 at 2:27 PM Philipp Zabel <p.zabel@pengutronix.de> wrote:
>
>> There are empty endpoint nodes (without remote-endpoint property)
>> labeled ipu1_csi[01]_mux_from_parallel_sensor in the i.MX6 device trees
>> for board DT implementers' convenience. See commit 2539f517acbdc ("ARM:
>> dts: imx6qdl: Add video multiplexers, mipi_csi, and their connections").
>>
>> We had a discussion about this issue in February when this caused a
>> probing error: https://patchwork.kernel.org/patch/10234469/
> Thanks for the clarification.
>
>   We could demote the warning to a debug message, make the wording a bit
>> less misleading (there is no bad remote port parent, there is just no
>> remote endpoint at all), or we could just accept the error message for
> Something like this?
>
> --- a/drivers/media/v4l2-core/v4l2-fwnode.c
> +++ b/drivers/media/v4l2-core/v4l2-fwnode.c
> @@ -613,7 +613,7 @@ v4l2_async_notifier_fwnode_parse_endpoint(struct
> device *dev,
>          asd->match.fwnode =
>                  fwnode_graph_get_remote_port_parent(endpoint);
>          if (!asd->match.fwnode) {
> -               dev_warn(dev, "bad remote port parent\n");
> +               dev_dbg(dev, "no remote endpoint found\n");
>                  ret = -ENOTCONN;
>                  goto out_err;
>          }
>
> And how should we treat these error probes?
>
> [    3.449564] imx-ipuv3 2400000.ipu: driver could not parse
> port@1/endpoint@0 (-22)
> [    3.457342] imx-ipuv3-csi: probe of imx-ipuv3-csi.1 failed with error -22
> [    3.464498] imx-ipuv3 2800000.ipu: driver could not parse
> port@0/endpoint@0 (-22)
> [    3.472120] imx-ipuv3-csi: probe of imx-ipuv3-csi.4 failed with error -22

Yes, this is a regression caused by the imx subdev notifier patches. 
I've already sent a patch to the list for this, see

https://www.spinics.net/lists/linux-media/msg141809.html

Steve

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: 'bad remote port parent' warnings
  2018-11-23 22:37     ` Steve Longerbeam
@ 2018-11-24 15:20       ` Fabio Estevam
  0 siblings, 0 replies; 9+ messages in thread
From: Fabio Estevam @ 2018-11-24 15:20 UTC (permalink / raw)
  To: Steve Longerbeam; +Cc: Philipp Zabel, Sakari Ailus, Hans Verkuil, linux-media

Hi Steve,

On Fri, Nov 23, 2018 at 8:37 PM Steve Longerbeam <slongerbeam@gmail.com> wrote:

> Yes, this is a regression caused by the imx subdev notifier patches.
> I've already sent a patch to the list for this, see
>
> https://www.spinics.net/lists/linux-media/msg141809.html

Thanks, this fixes it.

Hopefully it will be applied as a fix for 4.20.

Thanks

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-11-25  2:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-20 12:10 'bad remote port parent' warnings Fabio Estevam
2018-11-20 12:15 ` Sakari Ailus
2018-11-20 12:21   ` Fabio Estevam
2018-11-22 16:27 ` Philipp Zabel
2018-11-22 19:17   ` Fabio Estevam
2018-11-23 12:35     ` Sakari Ailus
2018-11-23 12:54       ` Fabio Estevam
2018-11-23 22:37     ` Steve Longerbeam
2018-11-24 15:20       ` Fabio Estevam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.