linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
  • [parent not found: <20230207014207.1678715-4-saravanak@google.com>]
  • * Re: [PATCH v3 00/12] fw_devlink improvements
           [not found] <20230207014207.1678715-1-saravanak@google.com>
           [not found] ` <20230207014207.1678715-13-saravanak@google.com>
           [not found] ` <20230207014207.1678715-4-saravanak@google.com>
    @ 2023-02-07  9:23 ` Luca Weiss
           [not found] ` <20230207014207.1678715-5-saravanak@google.com>
                       ` (7 subsequent siblings)
      10 siblings, 0 replies; 28+ messages in thread
    From: Luca Weiss @ 2023-02-07  9:23 UTC (permalink / raw)
      To: Saravana Kannan, Greg Kroah-Hartman, Rafael J. Wysocki,
    	Sudeep Holla, Cristian Marussi, Linus Walleij,
    	Bartosz Golaszewski, Thomas Gleixner, Marc Zyngier, Shawn Guo,
    	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
    	NXP Linux Team, Miquel Raynal, Richard Weinberger,
    	Vignesh Raghavendra, Rob Herring, Frank Rowand,
    	Geert Uytterhoeven, Magnus Damm, Andy Shevchenko, Daniel Scally,
    	Heikki Krogerus, Sakari Ailus, Len Brown, Rafał Miłecki
      Cc: Abel Vesa, Alexander Stein, Tony Lindgren, Geert Uytterhoeven,
    	John Stultz, Doug Anderson, Guenter Roeck, Dmitry Baryshkov,
    	Maxim Kiselev, Maxim Kochetkov, Colin Foster, Martin Kepplinger,
    	Jean-Philippe Brucker, Vladimir Oltean, kernel-team, linux-kernel,
    	linux-arm-kernel, linux-gpio, linux-mtd, devicetree,
    	linux-renesas-soc, linux-acpi
    
    On Tue Feb 7, 2023 at 2:41 AM CET, Saravana Kannan wrote:
    > Naresh, Tony, Abel, Geert, Dmitry, Maxim(s), Miquel, Luca, Doug, Martin,
    > Jean-Philippe,
    >
    > Can I get your Tested-by's for this v3 series please?
    
    Hi Saravana,
    
    Seems to be alright on the same platform where it broke previously.
    
    Tested-by: Luca Weiss <luca.weiss@fairphone.com> # qcom/sm7225-fairphone-fp4
    
    Regards
    Luca
    
    >
    > Vladimir,
    >
    > Ccing you because DSA's and fw_devlink have known/existing problems
    > (still in my TODOs to fix). But I want to make sure this series doesn't
    > cause additional problems for DSA.
    >
    > All,
    >
    > This patch series improves fw_devlink in the following ways:
    >
    > 1. It no longer cares about a fwnode having a "compatible" property. It
    >    figures this out more dynamically. The only expectation is that
    >    fwnodes that are converted to devices actually get probed by a driver
    >    for the dependencies to be enforced correctly.
    >
    > 2. Finer grained dependency tracking. fw_devlink will now create device
    >    links from the consumer to the actual resource's device (if it has one,
    >    Eg: gpio_device) instead of the parent supplier device. This improves
    >    things like async suspend/resume ordering, potentially remove the need
    >    for frameworks to create device links, more parallelized async probing,
    >    and better sync_state() tracking.
    >
    > 3. Handle hardware/software quirks where a child firmware node gets
    >    populated as a device before its parent firmware node AND actually
    >    supplies a non-optional resource to the parent firmware node's
    >    device.
    >
    > 4. Way more robust at cycle handling (see patch for the insane cases).
    >
    > 5. Stops depending on OF_POPULATED to figure out some corner cases.
    >
    > 6. Simplifies the work that needs to be done by the firmware specific
    >    code.
    >
    > The v3 series has gone through my usual testing on my end and looks good
    > to me.
    >
    > Thanks,
    > Saravana
    >
    > [1] - https://lore.kernel.org/lkml/20220810060040.321697-1-saravanak@google.com/
    > [2] - https://lore.kernel.org/lkml/CAGETcx-JUV1nj8wBJrTPfyvM7=Mre5j_vkVmZojeiumUGG6QZQ@mail.gmail.com/
    >
    > v1 -> v2:
    > - Fixed Patch 1 to handle a corner case discussed in [2].
    > - New patch 10 to handle "fsl,imx8mq-gpc" being initialized by 2 drivers.
    > - New patch 11 to add fw_devlink support for SCMI devices.
    >
    > v2 -> v3:
    > - Addressed most of Andy's comments in v2
    > - Added Colin and Sudeep's Tested-by for the series (except the imx and
    >   renesas patches)
    > - Added Sudeep's Acked-by for the scmi patch.
    > - Added Geert's Reviewed-by for the renesas patch.
    > - Fixed gpiolib crash reported by Naresh.
    > - Patch 6: Fix __fwnode_links_move_consumers() to preserve fwnode link flags.
    > - New Patch 12 to fix nvmem-cells issue reported by Maxim(s)/Miquel.
    > - Deleted some stale function doc in Patch 8
    >
    > Cc: Abel Vesa <abel.vesa@linaro.org>
    > Cc: Alexander Stein <alexander.stein@ew.tq-group.com>
    > Cc: Tony Lindgren <tony@atomide.com>
    > Cc: Sudeep Holla <sudeep.holla@arm.com>
    > Cc: Geert Uytterhoeven <geert@linux-m68k.org>
    > Cc: John Stultz <jstultz@google.com>
    > Cc: Doug Anderson <dianders@chromium.org>
    > Cc: Guenter Roeck <linux@roeck-us.net>
    > Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
    > Cc: Maxim Kiselev <bigunclemax@gmail.com>
    > Cc: Maxim Kochetkov <fido_max@inbox.ru>
    > Cc: Miquel Raynal <miquel.raynal@bootlin.com>
    > Cc: Luca Weiss <luca.weiss@fairphone.com>
    > Cc: Colin Foster <colin.foster@in-advantage.com>
    > Cc: Martin Kepplinger <martin.kepplinger@puri.sm>
    > Cc: Jean-Philippe Brucker <jpb@kernel.org>
    > Cc: Vladimir Oltean <vladimir.oltean@nxp.com>
    >
    > Saravana Kannan (12):
    >   driver core: fw_devlink: Don't purge child fwnode's consumer links
    >   driver core: fw_devlink: Improve check for fwnode with no
    >     device/driver
    >   soc: renesas: Move away from using OF_POPULATED for fw_devlink
    >   gpiolib: Clear the gpio_device's fwnode initialized flag before adding
    >   driver core: fw_devlink: Add DL_FLAG_CYCLE support to device links
    >   driver core: fw_devlink: Allow marking a fwnode link as being part of
    >     a cycle
    >   driver core: fw_devlink: Consolidate device link flag computation
    >   driver core: fw_devlink: Make cycle detection more robust
    >   of: property: Simplify of_link_to_phandle()
    >   irqchip/irq-imx-gpcv2: Mark fwnode device as not initialized
    >   firmware: arm_scmi: Set fwnode for the scmi_device
    >   mtd: mtdpart: Don't create platform device that'll never probe
    >
    >  drivers/base/core.c             | 449 +++++++++++++++++++++-----------
    >  drivers/firmware/arm_scmi/bus.c |   3 +-
    >  drivers/gpio/gpiolib.c          |   7 +
    >  drivers/irqchip/irq-imx-gpcv2.c |   1 +
    >  drivers/mtd/mtdpart.c           |  10 +
    >  drivers/of/property.c           |  84 +-----
    >  drivers/soc/imx/gpcv2.c         |   2 +-
    >  drivers/soc/renesas/rcar-sysc.c |   2 +-
    >  include/linux/device.h          |   1 +
    >  include/linux/fwnode.h          |  12 +-
    >  10 files changed, 344 insertions(+), 227 deletions(-)
    >
    > -- 
    > 2.39.1.519.gcb327c4b5f-goog
    
    
    _______________________________________________
    linux-arm-kernel mailing list
    linux-arm-kernel@lists.infradead.org
    http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
    
    ^ permalink raw reply	[flat|nested] 28+ messages in thread
  • [parent not found: <20230207014207.1678715-5-saravanak@google.com>]
  • * Re: [PATCH v3 00/12] fw_devlink improvements
           [not found] <20230207014207.1678715-1-saravanak@google.com>
                       ` (3 preceding siblings ...)
           [not found] ` <20230207014207.1678715-5-saravanak@google.com>
    @ 2023-02-07 15:27 ` Doug Anderson
      2023-02-07 18:15   ` Saravana Kannan
           [not found] ` <20230207014207.1678715-10-saravanak@google.com>
                       ` (5 subsequent siblings)
      10 siblings, 1 reply; 28+ messages in thread
    From: Doug Anderson @ 2023-02-07 15:27 UTC (permalink / raw)
      To: Saravana Kannan
      Cc: Greg Kroah-Hartman, Rafael J. Wysocki, Sudeep Holla,
    	Cristian Marussi, Linus Walleij, Bartosz Golaszewski,
    	Thomas Gleixner, Marc Zyngier, Shawn Guo, Sascha Hauer,
    	Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
    	Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
    	Rob Herring, Frank Rowand, Geert Uytterhoeven, Magnus Damm,
    	Andy Shevchenko, Daniel Scally, Heikki Krogerus, Sakari Ailus,
    	Len Brown, Rafał Miłecki, Abel Vesa, Alexander Stein,
    	Tony Lindgren, Geert Uytterhoeven, John Stultz, Guenter Roeck,
    	Dmitry Baryshkov, Maxim Kiselev, Maxim Kochetkov, Luca Weiss,
    	Colin Foster, Martin Kepplinger, Jean-Philippe Brucker,
    	Vladimir Oltean, kernel-team, linux-kernel, linux-arm-kernel,
    	linux-gpio, linux-mtd, devicetree, linux-renesas-soc, linux-acpi
    
    Hi,
    
    On Mon, Feb 6, 2023 at 5:42 PM Saravana Kannan <saravanak@google.com> wrote:
    >
    > Naresh, Tony, Abel, Geert, Dmitry, Maxim(s), Miquel, Luca, Doug, Martin,
    > Jean-Philippe,
    >
    > Can I get your Tested-by's for this v3 series please?
    >
    > Vladimir,
    >
    > Ccing you because DSA's and fw_devlink have known/existing problems
    > (still in my TODOs to fix). But I want to make sure this series doesn't
    > cause additional problems for DSA.
    >
    > All,
    >
    > This patch series improves fw_devlink in the following ways:
    >
    > 1. It no longer cares about a fwnode having a "compatible" property. It
    >    figures this out more dynamically. The only expectation is that
    >    fwnodes that are converted to devices actually get probed by a driver
    >    for the dependencies to be enforced correctly.
    >
    > 2. Finer grained dependency tracking. fw_devlink will now create device
    >    links from the consumer to the actual resource's device (if it has one,
    >    Eg: gpio_device) instead of the parent supplier device. This improves
    >    things like async suspend/resume ordering, potentially remove the need
    >    for frameworks to create device links, more parallelized async probing,
    >    and better sync_state() tracking.
    >
    > 3. Handle hardware/software quirks where a child firmware node gets
    >    populated as a device before its parent firmware node AND actually
    >    supplies a non-optional resource to the parent firmware node's
    >    device.
    >
    > 4. Way more robust at cycle handling (see patch for the insane cases).
    >
    > 5. Stops depending on OF_POPULATED to figure out some corner cases.
    >
    > 6. Simplifies the work that needs to be done by the firmware specific
    >    code.
    >
    > The v3 series has gone through my usual testing on my end and looks good
    > to me.
    >
    > Thanks,
    > Saravana
    >
    > [1] - https://lore.kernel.org/lkml/20220810060040.321697-1-saravanak@google.com/
    > [2] - https://lore.kernel.org/lkml/CAGETcx-JUV1nj8wBJrTPfyvM7=Mre5j_vkVmZojeiumUGG6QZQ@mail.gmail.com/
    >
    > v1 -> v2:
    > - Fixed Patch 1 to handle a corner case discussed in [2].
    > - New patch 10 to handle "fsl,imx8mq-gpc" being initialized by 2 drivers.
    > - New patch 11 to add fw_devlink support for SCMI devices.
    >
    > v2 -> v3:
    > - Addressed most of Andy's comments in v2
    > - Added Colin and Sudeep's Tested-by for the series (except the imx and
    >   renesas patches)
    > - Added Sudeep's Acked-by for the scmi patch.
    > - Added Geert's Reviewed-by for the renesas patch.
    > - Fixed gpiolib crash reported by Naresh.
    > - Patch 6: Fix __fwnode_links_move_consumers() to preserve fwnode link flags.
    > - New Patch 12 to fix nvmem-cells issue reported by Maxim(s)/Miquel.
    > - Deleted some stale function doc in Patch 8
    >
    > Cc: Abel Vesa <abel.vesa@linaro.org>
    > Cc: Alexander Stein <alexander.stein@ew.tq-group.com>
    > Cc: Tony Lindgren <tony@atomide.com>
    > Cc: Sudeep Holla <sudeep.holla@arm.com>
    > Cc: Geert Uytterhoeven <geert@linux-m68k.org>
    > Cc: John Stultz <jstultz@google.com>
    > Cc: Doug Anderson <dianders@chromium.org>
    > Cc: Guenter Roeck <linux@roeck-us.net>
    > Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
    > Cc: Maxim Kiselev <bigunclemax@gmail.com>
    > Cc: Maxim Kochetkov <fido_max@inbox.ru>
    > Cc: Miquel Raynal <miquel.raynal@bootlin.com>
    > Cc: Luca Weiss <luca.weiss@fairphone.com>
    > Cc: Colin Foster <colin.foster@in-advantage.com>
    > Cc: Martin Kepplinger <martin.kepplinger@puri.sm>
    > Cc: Jean-Philippe Brucker <jpb@kernel.org>
    > Cc: Vladimir Oltean <vladimir.oltean@nxp.com>
    >
    > Saravana Kannan (12):
    >   driver core: fw_devlink: Don't purge child fwnode's consumer links
    >   driver core: fw_devlink: Improve check for fwnode with no
    >     device/driver
    >   soc: renesas: Move away from using OF_POPULATED for fw_devlink
    >   gpiolib: Clear the gpio_device's fwnode initialized flag before adding
    >   driver core: fw_devlink: Add DL_FLAG_CYCLE support to device links
    >   driver core: fw_devlink: Allow marking a fwnode link as being part of
    >     a cycle
    >   driver core: fw_devlink: Consolidate device link flag computation
    >   driver core: fw_devlink: Make cycle detection more robust
    >   of: property: Simplify of_link_to_phandle()
    >   irqchip/irq-imx-gpcv2: Mark fwnode device as not initialized
    >   firmware: arm_scmi: Set fwnode for the scmi_device
    >   mtd: mtdpart: Don't create platform device that'll never probe
    
    I tested the whole series together on several devices. I tried to test
    on a wide variety since previous versions had broken due to all the
    dependency cycles in the display and some of these devices used
    different components in their display pipeline. I didn't do massive
    testing but did confirm that basic devices came up, including display.
    
    Devices tested with your v3 applied atop v6.2-rc7-11-g05ecb680708a:
    
    * sc7180-trogdor-lazor (with ps8640 bridge), which had failed to bring
    up the display on v2.
    
    * sc7180-trogdor-lazor (with sn65dsi86 bridge)
    
    * sc7180-trogdor-pazquel (with sn65dsi86 bridge)
    
    * sc7180-trogdor-homestar (with ps8640 bridge)
    
    * sc7180-trogdor-wormdingler
    
    * sc7280-herobrine-villager
    
    Tested-by: Douglas Anderson <dianders@chromium.org>
    
    _______________________________________________
    linux-arm-kernel mailing list
    linux-arm-kernel@lists.infradead.org
    http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
    
    ^ permalink raw reply	[flat|nested] 28+ messages in thread
  • [parent not found: <20230207014207.1678715-10-saravanak@google.com>]
  • * Re: [PATCH v3 00/12] fw_devlink improvements
           [not found] <20230207014207.1678715-1-saravanak@google.com>
                       ` (5 preceding siblings ...)
           [not found] ` <20230207014207.1678715-10-saravanak@google.com>
    @ 2023-02-07 21:35 ` Geert Uytterhoeven
      2023-02-07 23:12   ` Saravana Kannan
      2023-02-10 10:13 ` Vladimir Oltean
                       ` (3 subsequent siblings)
      10 siblings, 1 reply; 28+ messages in thread
    From: Geert Uytterhoeven @ 2023-02-07 21:35 UTC (permalink / raw)
      To: Saravana Kannan
      Cc: Greg Kroah-Hartman, Rafael J. Wysocki, Sudeep Holla,
    	Cristian Marussi, Linus Walleij, Bartosz Golaszewski,
    	Thomas Gleixner, Marc Zyngier, Shawn Guo, Sascha Hauer,
    	Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
    	Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
    	Rob Herring, Frank Rowand, Geert Uytterhoeven, Magnus Damm,
    	Andy Shevchenko, Daniel Scally, Heikki Krogerus, Sakari Ailus,
    	Len Brown, Rafał Miłecki, Abel Vesa, Alexander Stein,
    	Tony Lindgren, John Stultz, Doug Anderson, Guenter Roeck,
    	Dmitry Baryshkov, Maxim Kiselev, Maxim Kochetkov, Luca Weiss,
    	Colin Foster, Martin Kepplinger, Jean-Philippe Brucker,
    	Vladimir Oltean, kernel-team, linux-kernel, linux-arm-kernel,
    	linux-gpio, linux-mtd, devicetree, linux-renesas-soc, linux-acpi
    
    Hi Saravana,
    
    On Tue, Feb 7, 2023 at 2:42 AM Saravana Kannan <saravanak@google.com> wrote:
    > Naresh, Tony, Abel, Geert, Dmitry, Maxim(s), Miquel, Luca, Doug, Martin,
    > Jean-Philippe,
    >
    > Can I get your Tested-by's for this v3 series please?
    
    I have tested this on a variety of Renesas arm32/arm64 platforms,
    and on several RISC-V platforms.
    Apart from the regression related to dynamic overlays caused by
    "[PATCH v3 09/12] of: property: Simplify of_link_to_phandle()"
    (which you may decide to ignore for now ;-)
    Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
    
    Gr{oetje,eeting}s,
    
                            Geert
    
    --
    Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
    
    In personal conversations with technical people, I call myself a hacker. But
    when I'm talking to journalists I just say "programmer" or something like that.
                                    -- Linus Torvalds
    
    _______________________________________________
    linux-arm-kernel mailing list
    linux-arm-kernel@lists.infradead.org
    http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
    
    ^ permalink raw reply	[flat|nested] 28+ messages in thread
  • * Re: [PATCH v3 00/12] fw_devlink improvements
           [not found] <20230207014207.1678715-1-saravanak@google.com>
                       ` (6 preceding siblings ...)
      2023-02-07 21:35 ` [PATCH v3 00/12] fw_devlink improvements Geert Uytterhoeven
    @ 2023-02-10 10:13 ` Vladimir Oltean
      2023-02-10 19:27   ` Saravana Kannan
      2023-02-15  7:39 ` Tony Lindgren
                       ` (2 subsequent siblings)
      10 siblings, 1 reply; 28+ messages in thread
    From: Vladimir Oltean @ 2023-02-10 10:13 UTC (permalink / raw)
      To: Saravana Kannan
      Cc: Greg Kroah-Hartman, Rafael J. Wysocki, Sudeep Holla,
    	Cristian Marussi, Linus Walleij, Bartosz Golaszewski,
    	Thomas Gleixner, Marc Zyngier, Shawn Guo, Sascha Hauer,
    	Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
    	Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
    	Rob Herring, Frank Rowand, Geert Uytterhoeven, Magnus Damm,
    	Andy Shevchenko, Daniel Scally, Heikki Krogerus, Sakari Ailus,
    	Len Brown, Rafał Miłecki, Abel Vesa, Alexander Stein,
    	Tony Lindgren, Geert Uytterhoeven, John Stultz, Doug Anderson,
    	Guenter Roeck, Dmitry Baryshkov, Maxim Kiselev, Maxim Kochetkov,
    	Luca Weiss, Colin Foster, Martin Kepplinger,
    	Jean-Philippe Brucker, kernel-team, linux-kernel,
    	linux-arm-kernel, linux-gpio, linux-mtd, devicetree,
    	linux-renesas-soc, linux-acpi
    
    Hi Saravana,
    
    On Mon, Feb 06, 2023 at 05:41:52PM -0800, Saravana Kannan wrote:
    > Vladimir,
    > 
    > Ccing you because DSA's and fw_devlink have known/existing problems
    > (still in my TODOs to fix). But I want to make sure this series doesn't
    > cause additional problems for DSA.
    > 
    > All,
    > 
    > This patch series improves fw_devlink in the following ways:
    > 
    > 1. It no longer cares about a fwnode having a "compatible" property. It
    >    figures this out more dynamically. The only expectation is that
    >    fwnodes that are converted to devices actually get probed by a driver
    >    for the dependencies to be enforced correctly.
    > 
    > 2. Finer grained dependency tracking. fw_devlink will now create device
    >    links from the consumer to the actual resource's device (if it has one,
    >    Eg: gpio_device) instead of the parent supplier device. This improves
    >    things like async suspend/resume ordering, potentially remove the need
    >    for frameworks to create device links, more parallelized async probing,
    >    and better sync_state() tracking.
    > 
    > 3. Handle hardware/software quirks where a child firmware node gets
    >    populated as a device before its parent firmware node AND actually
    >    supplies a non-optional resource to the parent firmware node's
    >    device.
    > 
    > 4. Way more robust at cycle handling (see patch for the insane cases).
    > 
    > 5. Stops depending on OF_POPULATED to figure out some corner cases.
    > 
    > 6. Simplifies the work that needs to be done by the firmware specific
    >    code.
    > 
    > The v3 series has gone through my usual testing on my end and looks good
    > to me.
    
    Booted on an NXP LS1028A (arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts)
    and a Turris MOX (arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts)
    with no observed regressions. Is there something specific you would like
    me to test?
    
    _______________________________________________
    linux-arm-kernel mailing list
    linux-arm-kernel@lists.infradead.org
    http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
    
    ^ permalink raw reply	[flat|nested] 28+ messages in thread
  • * Re: [PATCH v3 00/12] fw_devlink improvements
           [not found] <20230207014207.1678715-1-saravanak@google.com>
                       ` (7 preceding siblings ...)
      2023-02-10 10:13 ` Vladimir Oltean
    @ 2023-02-15  7:39 ` Tony Lindgren
      2023-02-15 12:34 ` Jean-Philippe Brucker
      2023-02-16  3:12 ` Dmitry Baryshkov
      10 siblings, 0 replies; 28+ messages in thread
    From: Tony Lindgren @ 2023-02-15  7:39 UTC (permalink / raw)
      To: Saravana Kannan
      Cc: Greg Kroah-Hartman, Rafael J. Wysocki, Sudeep Holla,
    	Cristian Marussi, Linus Walleij, Bartosz Golaszewski,
    	Thomas Gleixner, Marc Zyngier, Shawn Guo, Sascha Hauer,
    	Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
    	Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
    	Rob Herring, Frank Rowand, Geert Uytterhoeven, Magnus Damm,
    	Andy Shevchenko, Daniel Scally, Heikki Krogerus, Sakari Ailus,
    	Len Brown, Rafał Miłecki, Abel Vesa, Alexander Stein,
    	Geert Uytterhoeven, John Stultz, Doug Anderson, Guenter Roeck,
    	Dmitry Baryshkov, Maxim Kiselev, Maxim Kochetkov, Luca Weiss,
    	Colin Foster, Martin Kepplinger, Jean-Philippe Brucker,
    	Vladimir Oltean, kernel-team, linux-kernel, linux-arm-kernel,
    	linux-gpio, linux-mtd, devicetree, linux-renesas-soc, linux-acpi
    
    Hi,
    
    * Saravana Kannan <saravanak@google.com> [230207 01:42]:
    > Naresh, Tony, Abel, Geert, Dmitry, Maxim(s), Miquel, Luca, Doug, Martin,
    > Jean-Philippe,
    > 
    > Can I get your Tested-by's for this v3 series please?
    
    Just FYI, the patches in next-20230215 behave for me.
    
    Regards,
    
    Tony
    
    _______________________________________________
    linux-arm-kernel mailing list
    linux-arm-kernel@lists.infradead.org
    http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
    
    ^ permalink raw reply	[flat|nested] 28+ messages in thread
  • * Re: [PATCH v3 00/12] fw_devlink improvements
           [not found] <20230207014207.1678715-1-saravanak@google.com>
                       ` (8 preceding siblings ...)
      2023-02-15  7:39 ` Tony Lindgren
    @ 2023-02-15 12:34 ` Jean-Philippe Brucker
      2023-02-16  3:12 ` Dmitry Baryshkov
      10 siblings, 0 replies; 28+ messages in thread
    From: Jean-Philippe Brucker @ 2023-02-15 12:34 UTC (permalink / raw)
      To: Saravana Kannan
      Cc: Greg Kroah-Hartman, Rafael J. Wysocki, Sudeep Holla,
    	Cristian Marussi, Linus Walleij, Bartosz Golaszewski,
    	Thomas Gleixner, Marc Zyngier, Shawn Guo, Sascha Hauer,
    	Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
    	Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
    	Rob Herring, Frank Rowand, Geert Uytterhoeven, Magnus Damm,
    	Andy Shevchenko, Daniel Scally, Heikki Krogerus, Sakari Ailus,
    	Len Brown, Rafał Miłecki, Abel Vesa, Alexander Stein,
    	Tony Lindgren, Geert Uytterhoeven, John Stultz, Doug Anderson,
    	Guenter Roeck, Dmitry Baryshkov, Maxim Kiselev, Maxim Kochetkov,
    	Luca Weiss, Colin Foster, Martin Kepplinger, Vladimir Oltean,
    	kernel-team, linux-kernel, linux-arm-kernel, linux-gpio,
    	linux-mtd, devicetree, linux-renesas-soc, linux-acpi
    
    Hi Saravana,
    
    On Mon, Feb 06, 2023 at 05:41:52PM -0800, Saravana Kannan wrote:
    > Naresh, Tony, Abel, Geert, Dmitry, Maxim(s), Miquel, Luca, Doug, Martin,
    > Jean-Philippe,
    > 
    > Can I get your Tested-by's for this v3 series please?
    
    Sorry for the delay (I misconfigured my inbox). I tested virtio-iommu with
    these changes, no regression:
    
    Tested-by: Jean-Philippe Brucker <jpb@kernel.org>
    
    
    Removing driver_deferred_probe_check_state() by reverting [1] breaks
    loading virtio-iommu as a module, as the dependency between PCI devices
    and PCI IOMMU is ignored, and the device probed too early [2]. I'll try to
    figure out how to make that work.
    
    Thanks,
    Jean
    
    [1] https://lore.kernel.org/lkml/20220819221616.2107893-5-saravanak@google.com/
    [2] https://lore.kernel.org/lkml/Yv+dpeIPvde7oDHi@myrica/
    
    _______________________________________________
    linux-arm-kernel mailing list
    linux-arm-kernel@lists.infradead.org
    http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
    
    ^ permalink raw reply	[flat|nested] 28+ messages in thread
  • * Re: [PATCH v3 00/12] fw_devlink improvements
           [not found] <20230207014207.1678715-1-saravanak@google.com>
                       ` (9 preceding siblings ...)
      2023-02-15 12:34 ` Jean-Philippe Brucker
    @ 2023-02-16  3:12 ` Dmitry Baryshkov
      2023-02-25  6:24   ` Saravana Kannan
      10 siblings, 1 reply; 28+ messages in thread
    From: Dmitry Baryshkov @ 2023-02-16  3:12 UTC (permalink / raw)
      To: Saravana Kannan, Greg Kroah-Hartman, Rafael J. Wysocki,
    	Sudeep Holla, Cristian Marussi, Linus Walleij,
    	Bartosz Golaszewski, Thomas Gleixner, Marc Zyngier, Shawn Guo,
    	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
    	NXP Linux Team, Miquel Raynal, Richard Weinberger,
    	Vignesh Raghavendra, Rob Herring, Frank Rowand,
    	Geert Uytterhoeven, Magnus Damm, Andy Shevchenko, Daniel Scally,
    	Heikki Krogerus, Sakari Ailus, Len Brown, Rafał Miłecki
      Cc: Abel Vesa, Alexander Stein, Tony Lindgren, Geert Uytterhoeven,
    	John Stultz, Doug Anderson, Guenter Roeck, Maxim Kiselev,
    	Maxim Kochetkov, Luca Weiss, Colin Foster, Martin Kepplinger,
    	Jean-Philippe Brucker, Vladimir Oltean, kernel-team, linux-kernel,
    	linux-arm-kernel, linux-gpio, linux-mtd, devicetree,
    	linux-renesas-soc, linux-acpi
    
    On 07/02/2023 03:41, Saravana Kannan wrote:
    > Naresh, Tony, Abel, Geert, Dmitry, Maxim(s), Miquel, Luca, Doug, Martin,
    > Jean-Philippe,
    >
    > Can I get your Tested-by's for this v3 series please?
    >
    > Vladimir,
    >
    > Ccing you because DSA's and fw_devlink have known/existing problems
    > (still in my TODOs to fix). But I want to make sure this series doesn't
    > cause additional problems for DSA.
    >
    > All,
    >
    > This patch series improves fw_devlink in the following ways:
    >
    > 1. It no longer cares about a fwnode having a "compatible" property. It
    >     figures this out more dynamically. The only expectation is that
    >     fwnodes that are converted to devices actually get probed by a driver
    >     for the dependencies to be enforced correctly.
    >
    > 2. Finer grained dependency tracking. fw_devlink will now create device
    >     links from the consumer to the actual resource's device (if it has one,
    >     Eg: gpio_device) instead of the parent supplier device. This improves
    >     things like async suspend/resume ordering, potentially remove the need
    >     for frameworks to create device links, more parallelized async probing,
    >     and better sync_state() tracking.
    >
    > 3. Handle hardware/software quirks where a child firmware node gets
    >     populated as a device before its parent firmware node AND actually
    >     supplies a non-optional resource to the parent firmware node's
    >     device.
    >
    > 4. Way more robust at cycle handling (see patch for the insane cases).
    >
    > 5. Stops depending on OF_POPULATED to figure out some corner cases.
    >
    > 6. Simplifies the work that needs to be done by the firmware specific
    >     code.
    >
    > The v3 series has gone through my usual testing on my end and looks good
    > to me.
    
    Saravana,
    
    Please excuse me, I was completely overwhelmed with my regular work and
    had no time to properly test the series, while doing just the light
    test would defeat the purpose of testing.
    
    Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> # Qualcomm RB3
    
    Thanks a lot for going through all the troubles and hunting all the issues!
    
    Just a note: on an RB3 device (arm64 qcom/sdm845-db845c.dtsi) extended
    with the patch at [3] I got the following messages in dmesg:
    
    [    1.051325] platform ae00000.mdss: Failed to create device link
    with ae00000.mdss
    [    1.059368] platform ae00000.mdss: Failed to create device link
    with ae00000.mdss
    [    1.067174] platform ae00000.mdss: Failed to create device link
    with ae00000.mdss
    [    1.088322] platform c440000.spmi: Failed to create device link
    with c440000.spmi
    [    1.096019] platform c440000.spmi: Failed to create device link
    with c440000.spmi
    [    1.103707] platform c440000.spmi: Failed to create device link
    with c440000.spmi
    [    1.111400] platform c440000.spmi: Failed to create device link
    with c440000.spmi
    [    1.119141] platform c440000.spmi: Failed to create device link
    with c440000.spmi
    [    1.126825] platform c440000.spmi: Failed to create device link
    with c440000.spmi
    [    2.024763] qcom-lab-ibb-regulator c440000.spmi:pmic@3:labibb:
    Failed to create device link with c440000.spmi
    [    2.035026] qcom-lab-ibb-regulator c440000.spmi:pmic@3:labibb:
    Failed to create device link with c440000.spmi
    
    They look to be harmless, but it might be good to filter some of them
    out? Especially the ones which tell about creating a device link
    pointing back to the same device.
    
    [3] https://lore.kernel.org/linux-arm-msm/20230118082048.2198715-1-dmitry.baryshkov@linaro.org/
    
    >
    > Thanks,
    > Saravana
    >
    > [1] - https://lore.kernel.org/lkml/20220810060040.321697-1-saravanak@google.com/
    > [2] - https://lore.kernel.org/lkml/CAGETcx-JUV1nj8wBJrTPfyvM7=Mre5j_vkVmZojeiumUGG6QZQ@mail.gmail.com/
    >
    > v1 -> v2:
    > - Fixed Patch 1 to handle a corner case discussed in [2].
    > - New patch 10 to handle "fsl,imx8mq-gpc" being initialized by 2 drivers.
    > - New patch 11 to add fw_devlink support for SCMI devices.
    >
    > v2 -> v3:
    > - Addressed most of Andy's comments in v2
    > - Added Colin and Sudeep's Tested-by for the series (except the imx and
    >    renesas patches)
    > - Added Sudeep's Acked-by for the scmi patch.
    > - Added Geert's Reviewed-by for the renesas patch.
    > - Fixed gpiolib crash reported by Naresh.
    > - Patch 6: Fix __fwnode_links_move_consumers() to preserve fwnode link flags.
    > - New Patch 12 to fix nvmem-cells issue reported by Maxim(s)/Miquel.
    > - Deleted some stale function doc in Patch 8
    >
    > Cc: Abel Vesa <abel.vesa@linaro.org>
    > Cc: Alexander Stein <alexander.stein@ew.tq-group.com>
    > Cc: Tony Lindgren <tony@atomide.com>
    > Cc: Sudeep Holla <sudeep.holla@arm.com>
    > Cc: Geert Uytterhoeven <geert@linux-m68k.org>
    > Cc: John Stultz <jstultz@google.com>
    > Cc: Doug Anderson <dianders@chromium.org>
    > Cc: Guenter Roeck <linux@roeck-us.net>
    > Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
    > Cc: Maxim Kiselev <bigunclemax@gmail.com>
    > Cc: Maxim Kochetkov <fido_max@inbox.ru>
    > Cc: Miquel Raynal <miquel.raynal@bootlin.com>
    > Cc: Luca Weiss <luca.weiss@fairphone.com>
    > Cc: Colin Foster <colin.foster@in-advantage.com>
    > Cc: Martin Kepplinger <martin.kepplinger@puri.sm>
    > Cc: Jean-Philippe Brucker <jpb@kernel.org>
    > Cc: Vladimir Oltean <vladimir.oltean@nxp.com>
    >
    > Saravana Kannan (12):
    >    driver core: fw_devlink: Don't purge child fwnode's consumer links
    >    driver core: fw_devlink: Improve check for fwnode with no
    >      device/driver
    >    soc: renesas: Move away from using OF_POPULATED for fw_devlink
    >    gpiolib: Clear the gpio_device's fwnode initialized flag before adding
    >    driver core: fw_devlink: Add DL_FLAG_CYCLE support to device links
    >    driver core: fw_devlink: Allow marking a fwnode link as being part of
    >      a cycle
    >    driver core: fw_devlink: Consolidate device link flag computation
    >    driver core: fw_devlink: Make cycle detection more robust
    >    of: property: Simplify of_link_to_phandle()
    >    irqchip/irq-imx-gpcv2: Mark fwnode device as not initialized
    >    firmware: arm_scmi: Set fwnode for the scmi_device
    >    mtd: mtdpart: Don't create platform device that'll never probe
    >
    >   drivers/base/core.c             | 449 +++++++++++++++++++++-----------
    >   drivers/firmware/arm_scmi/bus.c |   3 +-
    >   drivers/gpio/gpiolib.c          |   7 +
    >   drivers/irqchip/irq-imx-gpcv2.c |   1 +
    >   drivers/mtd/mtdpart.c           |  10 +
    >   drivers/of/property.c           |  84 +-----
    >   drivers/soc/imx/gpcv2.c         |   2 +-
    >   drivers/soc/renesas/rcar-sysc.c |   2 +-
    >   include/linux/device.h          |   1 +
    >   include/linux/fwnode.h          |  12 +-
    >   10 files changed, 344 insertions(+), 227 deletions(-)
    >
    
    --
    With best wishes
    
    Dmitry
    
    _______________________________________________
    linux-arm-kernel mailing list
    linux-arm-kernel@lists.infradead.org
    http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
    
    ^ permalink raw reply	[flat|nested] 28+ messages in thread

  • end of thread, other threads:[~2023-02-25  6:26 UTC | newest]
    
    Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20230207014207.1678715-1-saravanak@google.com>
         [not found] ` <20230207014207.1678715-13-saravanak@google.com>
    2023-02-07  7:51   ` [PATCH v3 12/12] mtd: mtdpart: Don't create platform device that'll never probe Maxim Kiselev
         [not found] ` <20230207014207.1678715-4-saravanak@google.com>
    2023-02-07  7:56   ` [PATCH v3 03/12] soc: renesas: Move away from using OF_POPULATED for fw_devlink Geert Uytterhoeven
    2023-02-07  9:23 ` [PATCH v3 00/12] fw_devlink improvements Luca Weiss
         [not found] ` <20230207014207.1678715-5-saravanak@google.com>
    2023-02-07 10:20   ` [PATCH v3 04/12] gpiolib: Clear the gpio_device's fwnode initialized flag before adding Andy Shevchenko
    2023-02-07 10:28     ` Andy Shevchenko
    2023-02-07 15:27 ` [PATCH v3 00/12] fw_devlink improvements Doug Anderson
    2023-02-07 18:15   ` Saravana Kannan
         [not found] ` <20230207014207.1678715-10-saravanak@google.com>
    2023-02-07 20:57   ` [PATCH v3 09/12] of: property: Simplify of_link_to_phandle() Geert Uytterhoeven
    2023-02-08  2:08     ` Saravana Kannan
    2023-02-08  7:30       ` Geert Uytterhoeven
    2023-02-08  7:31       ` Saravana Kannan
    2023-02-08  7:56         ` Geert Uytterhoeven
    2023-02-08  8:35           ` Saravana Kannan
    2023-02-13 13:10             ` Geert Uytterhoeven
    2023-02-08 13:37         ` Andy Shevchenko
    2023-02-13 13:04       ` Geert Uytterhoeven
    2023-02-08  7:33     ` Greg Kroah-Hartman
    2023-02-08  7:50       ` Geert Uytterhoeven
    2023-02-07 21:35 ` [PATCH v3 00/12] fw_devlink improvements Geert Uytterhoeven
    2023-02-07 23:12   ` Saravana Kannan
    2023-02-10 10:13 ` Vladimir Oltean
    2023-02-10 19:27   ` Saravana Kannan
    2023-02-10 21:08     ` Vladimir Oltean
    2023-02-10 21:32       ` Saravana Kannan
    2023-02-15  7:39 ` Tony Lindgren
    2023-02-15 12:34 ` Jean-Philippe Brucker
    2023-02-16  3:12 ` Dmitry Baryshkov
    2023-02-25  6:24   ` Saravana Kannan
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).