All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Zyngier <maz@kernel.org>
To: Saravana Kannan <saravanak@google.com>
Cc: Kevin Hilman <khilman@baylibre.com>,
	Lee Jones <lee.jones@linaro.org>,
	Neil Armstrong <narmstrong@baylibre.com>,
	Jerome Brunet <jbrunet@baylibre.com>,
	linux-amlogic@lists.infradead.org,
	linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
	open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/2] irqchip: irq-meson-gpio: make it possible to build as a module
Date: Wed, 04 Aug 2021 09:50:08 +0100	[thread overview]
Message-ID: <87sfzpwq4f.wl-maz@kernel.org> (raw)
In-Reply-To: <CAGETcx9OukoWM_qprMse9aXdzCE=GFUgFEkfhhNjg44YYsOQLw@mail.gmail.com>

On Wed, 04 Aug 2021 02:36:45 +0100,
Saravana Kannan <saravanak@google.com> wrote:

Hi Saravana,

Thanks for looking into this.

[...]

> > Saravana, could you please have a look from a fw_devlink perspective?
> 
> Sigh... I spent several hours looking at this and wrote up an analysis
> and then realized I might be looking at the wrong DT files.
> 
> Marc, can you point me to the board file in upstream that corresponds
> to the platform in which you see this issue? I'm not asking for [1],
> but the actual final .dts (not .dtsi) file that corresponds to the
> platform/board/system.

The platform I can reproduce this on is described in
arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts. It is an
intricate maze of inclusion, node merge and other DT subtleties. I
suggest you look at the decompiled version to get a view of the
result.

> Based on your error messages, it's failing for mdio@0 which
> corresponds to ext_mdio. But none of the board dts files in upstream
> have a compatible property for "ext_mdio". Which means fw_devlink
> _should_ propagate the gpio_intc IRQ dependency all the way up to
> eth_phy.
> 
> Also, in the failing case, can you run:
> ls -ld supplier:*
> 
> in the /sys/devices/....<something>/ folder that corresponds to the
> "eth_phy: mdio-multiplexer@4c000" DT node and tell me what it shows?

Here you go:

root@tiger-roach:~# find /sys/devices/ -name 'supplier*'|grep -i mdio | xargs ls -ld
lrwxrwxrwx 1 root root 0 Aug  4 09:47 /sys/devices/platform/soc/ff600000.bus/ff64c000.mdio-multiplexer/supplier:platform:ff63c000.system-controller:clock-controller -> ../../../../virtual/devlink/platform:ff63c000.system-controller:clock-controller--platform:ff64c000.mdio-multiplexer
lrwxrwxrwx 1 root root 0 Aug  4 09:47 /sys/devices/virtual/devlink/platform:ff63c000.system-controller:clock-controller--platform:ff64c000.mdio-multiplexer/supplier -> ../../../platform/soc/ff600000.bus/ff63c000.bus/ff63c000.system-controller/ff63c000.system-controller:clock-controller

Thanks,

	M.

-- 
Without deviation from the norm, progress is not possible.

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

WARNING: multiple messages have this Message-ID (diff)
From: Marc Zyngier <maz@kernel.org>
To: Saravana Kannan <saravanak@google.com>
Cc: Kevin Hilman <khilman@baylibre.com>,
	Lee Jones <lee.jones@linaro.org>,
	Neil Armstrong <narmstrong@baylibre.com>,
	Jerome Brunet <jbrunet@baylibre.com>,
	linux-amlogic@lists.infradead.org,
	linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
	open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/2] irqchip: irq-meson-gpio: make it possible to build as a module
Date: Wed, 04 Aug 2021 09:50:08 +0100	[thread overview]
Message-ID: <87sfzpwq4f.wl-maz@kernel.org> (raw)
In-Reply-To: <CAGETcx9OukoWM_qprMse9aXdzCE=GFUgFEkfhhNjg44YYsOQLw@mail.gmail.com>

On Wed, 04 Aug 2021 02:36:45 +0100,
Saravana Kannan <saravanak@google.com> wrote:

Hi Saravana,

Thanks for looking into this.

[...]

> > Saravana, could you please have a look from a fw_devlink perspective?
> 
> Sigh... I spent several hours looking at this and wrote up an analysis
> and then realized I might be looking at the wrong DT files.
> 
> Marc, can you point me to the board file in upstream that corresponds
> to the platform in which you see this issue? I'm not asking for [1],
> but the actual final .dts (not .dtsi) file that corresponds to the
> platform/board/system.

The platform I can reproduce this on is described in
arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts. It is an
intricate maze of inclusion, node merge and other DT subtleties. I
suggest you look at the decompiled version to get a view of the
result.

> Based on your error messages, it's failing for mdio@0 which
> corresponds to ext_mdio. But none of the board dts files in upstream
> have a compatible property for "ext_mdio". Which means fw_devlink
> _should_ propagate the gpio_intc IRQ dependency all the way up to
> eth_phy.
> 
> Also, in the failing case, can you run:
> ls -ld supplier:*
> 
> in the /sys/devices/....<something>/ folder that corresponds to the
> "eth_phy: mdio-multiplexer@4c000" DT node and tell me what it shows?

Here you go:

root@tiger-roach:~# find /sys/devices/ -name 'supplier*'|grep -i mdio | xargs ls -ld
lrwxrwxrwx 1 root root 0 Aug  4 09:47 /sys/devices/platform/soc/ff600000.bus/ff64c000.mdio-multiplexer/supplier:platform:ff63c000.system-controller:clock-controller -> ../../../../virtual/devlink/platform:ff63c000.system-controller:clock-controller--platform:ff64c000.mdio-multiplexer
lrwxrwxrwx 1 root root 0 Aug  4 09:47 /sys/devices/virtual/devlink/platform:ff63c000.system-controller:clock-controller--platform:ff64c000.mdio-multiplexer/supplier -> ../../../platform/soc/ff600000.bus/ff63c000.bus/ff63c000.system-controller/ff63c000.system-controller:clock-controller

Thanks,

	M.

-- 
Without deviation from the norm, progress is not possible.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: Marc Zyngier <maz@kernel.org>
To: Saravana Kannan <saravanak@google.com>
Cc: Kevin Hilman <khilman@baylibre.com>,
	Lee Jones <lee.jones@linaro.org>,
	Neil Armstrong <narmstrong@baylibre.com>,
	Jerome Brunet <jbrunet@baylibre.com>,
	linux-amlogic@lists.infradead.org,
	linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
	open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/2] irqchip: irq-meson-gpio: make it possible to build as a module
Date: Wed, 04 Aug 2021 09:50:08 +0100	[thread overview]
Message-ID: <87sfzpwq4f.wl-maz@kernel.org> (raw)
In-Reply-To: <CAGETcx9OukoWM_qprMse9aXdzCE=GFUgFEkfhhNjg44YYsOQLw@mail.gmail.com>

On Wed, 04 Aug 2021 02:36:45 +0100,
Saravana Kannan <saravanak@google.com> wrote:

Hi Saravana,

Thanks for looking into this.

[...]

> > Saravana, could you please have a look from a fw_devlink perspective?
> 
> Sigh... I spent several hours looking at this and wrote up an analysis
> and then realized I might be looking at the wrong DT files.
> 
> Marc, can you point me to the board file in upstream that corresponds
> to the platform in which you see this issue? I'm not asking for [1],
> but the actual final .dts (not .dtsi) file that corresponds to the
> platform/board/system.

The platform I can reproduce this on is described in
arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts. It is an
intricate maze of inclusion, node merge and other DT subtleties. I
suggest you look at the decompiled version to get a view of the
result.

> Based on your error messages, it's failing for mdio@0 which
> corresponds to ext_mdio. But none of the board dts files in upstream
> have a compatible property for "ext_mdio". Which means fw_devlink
> _should_ propagate the gpio_intc IRQ dependency all the way up to
> eth_phy.
> 
> Also, in the failing case, can you run:
> ls -ld supplier:*
> 
> in the /sys/devices/....<something>/ folder that corresponds to the
> "eth_phy: mdio-multiplexer@4c000" DT node and tell me what it shows?

Here you go:

root@tiger-roach:~# find /sys/devices/ -name 'supplier*'|grep -i mdio | xargs ls -ld
lrwxrwxrwx 1 root root 0 Aug  4 09:47 /sys/devices/platform/soc/ff600000.bus/ff64c000.mdio-multiplexer/supplier:platform:ff63c000.system-controller:clock-controller -> ../../../../virtual/devlink/platform:ff63c000.system-controller:clock-controller--platform:ff64c000.mdio-multiplexer
lrwxrwxrwx 1 root root 0 Aug  4 09:47 /sys/devices/virtual/devlink/platform:ff63c000.system-controller:clock-controller--platform:ff64c000.mdio-multiplexer/supplier -> ../../../platform/soc/ff600000.bus/ff63c000.bus/ff63c000.system-controller/ff63c000.system-controller:clock-controller

Thanks,

	M.

-- 
Without deviation from the norm, progress is not possible.

  reply	other threads:[~2021-08-04  8:50 UTC|newest]

Thread overview: 126+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-20  7:25 [PATCH 0/2] irq-meson-gpio: make it possible to build as a module Neil Armstrong
2020-10-20  7:25 ` Neil Armstrong
2020-10-20  7:25 ` Neil Armstrong
2020-10-20  7:25 ` [PATCH 1/2] irqchip: " Neil Armstrong
2020-10-20  7:25   ` Neil Armstrong
2020-10-20  7:25   ` Neil Armstrong
2020-10-20 18:23   ` Kevin Hilman
2020-10-20 18:23     ` Kevin Hilman
2020-10-20 18:23     ` Kevin Hilman
     [not found]     ` <CAF2Aj3g6c8FEZb3e1by6sd8LpKLaeN5hsKrrQkZUvh8hosiW9A@mail.gmail.com>
2021-05-24 10:11       ` Marc Zyngier
2021-05-24 10:11         ` Marc Zyngier
2021-05-24 10:11         ` Marc Zyngier
2021-05-25 16:17         ` Kevin Hilman
2021-05-25 16:17           ` Kevin Hilman
2021-05-25 16:17           ` Kevin Hilman
2021-05-25 16:30           ` Lee Jones
2021-05-25 16:30             ` Lee Jones
2021-05-25 16:30             ` Lee Jones
2021-06-14 22:30         ` Kevin Hilman
2021-06-14 22:30           ` Kevin Hilman
2021-06-14 22:30           ` Kevin Hilman
2021-07-13  9:05           ` Lee Jones
2021-07-13  9:05             ` Lee Jones
2021-07-13  9:05             ` Lee Jones
2021-08-03  9:44           ` Marc Zyngier
2021-08-03  9:44             ` Marc Zyngier
2021-08-03  9:44             ` Marc Zyngier
2021-08-03  9:51             ` Marc Zyngier
2021-08-03  9:51               ` Marc Zyngier
2021-08-03  9:51               ` Marc Zyngier
2021-08-04  2:11               ` Saravana Kannan
2021-08-04  2:11                 ` Saravana Kannan
2021-08-04  2:11                 ` Saravana Kannan
2021-08-03  9:51             ` Neil Armstrong
2021-08-03  9:51               ` Neil Armstrong
2021-08-03  9:51               ` Neil Armstrong
2021-08-04  1:36             ` Saravana Kannan
2021-08-04  1:36               ` Saravana Kannan
2021-08-04  1:36               ` Saravana Kannan
2021-08-04  8:50               ` Marc Zyngier [this message]
2021-08-04  8:50                 ` Marc Zyngier
2021-08-04  8:50                 ` Marc Zyngier
2021-08-04 18:20                 ` Saravana Kannan
2021-08-04 18:20                   ` Saravana Kannan
2021-08-04 18:20                   ` Saravana Kannan
2021-08-04 21:47                   ` Saravana Kannan
2021-08-04 21:47                     ` Saravana Kannan
2021-08-04 21:47                     ` Saravana Kannan
2021-08-05  6:31                     ` Neil Armstrong
2021-08-05  6:31                       ` Neil Armstrong
2021-08-05  6:31                       ` Neil Armstrong
2021-08-06 23:55                       ` Saravana Kannan
2021-08-06 23:55                         ` Saravana Kannan
2021-08-06 23:55                         ` Saravana Kannan
2021-08-05  7:57                     ` Lee Jones
2021-08-05  7:57                       ` Lee Jones
2021-08-05  7:57                       ` Lee Jones
2021-08-16 12:47                       ` Lee Jones
2021-08-16 12:47                         ` Lee Jones
2021-08-16 12:47                         ` Lee Jones
2021-08-16 20:27                         ` Saravana Kannan
2021-08-16 20:27                           ` Saravana Kannan
2021-08-16 20:27                           ` Saravana Kannan
2021-08-16 20:46                           ` Andrew Lunn
2021-08-16 20:46                             ` Andrew Lunn
2021-08-16 20:46                             ` Andrew Lunn
2021-08-16 21:02                             ` Saravana Kannan
2021-08-16 21:02                               ` Saravana Kannan
2021-08-16 21:02                               ` Saravana Kannan
2021-08-16 21:18                               ` Andrew Lunn
2021-08-16 21:18                                 ` Andrew Lunn
2021-08-16 21:18                                 ` Andrew Lunn
2021-08-17  7:24                           ` Lee Jones
2021-08-17  7:24                             ` Lee Jones
2021-08-17  7:24                             ` Lee Jones
2021-08-17 18:12                             ` Saravana Kannan
2021-08-17 18:12                               ` Saravana Kannan
2021-08-17 18:12                               ` Saravana Kannan
2021-08-18 11:19                               ` Marc Zyngier
2021-08-18 11:19                                 ` Marc Zyngier
2021-08-18 11:19                                 ` Marc Zyngier
2021-09-02  9:28                                 ` Neil Armstrong
2021-09-02  9:28                                   ` Neil Armstrong
2021-09-02  9:28                                   ` Neil Armstrong
2020-10-20  7:25 ` [PATCH 2/2] arm64: meson: remove MESON_IRQ_GPIO selection Neil Armstrong
2020-10-20  7:25   ` Neil Armstrong
2020-10-20  7:25   ` Neil Armstrong
2020-10-20 23:18   ` Kevin Hilman
2020-10-20 23:18     ` Kevin Hilman
2020-10-20 23:18     ` Kevin Hilman
2020-10-25 11:51 ` [PATCH 0/2] irq-meson-gpio: make it possible to build as a module Marc Zyngier
2020-10-25 11:51   ` Marc Zyngier
2020-10-25 11:51   ` Marc Zyngier
2020-10-26 16:18   ` Kevin Hilman
2020-10-26 16:18     ` Kevin Hilman
2020-10-26 16:18     ` Kevin Hilman
2020-10-26 17:00     ` Marc Zyngier
2020-10-26 17:00       ` Marc Zyngier
2020-10-26 17:00       ` Marc Zyngier
2020-10-26 17:28       ` Kevin Hilman
2020-10-26 17:28         ` Kevin Hilman
2020-10-26 17:28         ` Kevin Hilman
2020-10-26 17:33         ` Kevin Hilman
2020-10-26 17:33           ` Kevin Hilman
2020-10-26 17:33           ` Kevin Hilman
2020-10-26 18:30         ` Marc Zyngier
2020-10-26 18:30           ` Marc Zyngier
2020-10-26 18:30           ` Marc Zyngier
2020-10-26 23:45       ` Kevin Hilman
2020-10-26 23:45         ` Kevin Hilman
2020-10-26 23:45         ` Kevin Hilman
  -- strict thread matches above, loose matches on Subject: below --
2021-09-02 13:49 Neil Armstrong
2021-09-02 13:49 ` [PATCH 1/2] irqchip: " Neil Armstrong
2021-09-02 13:49   ` Neil Armstrong
2021-09-02 13:49   ` Neil Armstrong
2021-09-02 17:00   ` Saravana Kannan
2021-09-02 17:00     ` Saravana Kannan
2021-09-02 17:00     ` Saravana Kannan
2021-09-28 10:45     ` Lee Jones
2021-09-28 10:45       ` Lee Jones
2021-09-28 10:45       ` Lee Jones
2021-09-02 20:01   ` kernel test robot
2021-09-02 22:10   ` kernel test robot
2021-09-02 22:10     ` kernel test robot
2021-09-28 23:27   ` Kevin Hilman
2021-09-28 23:27     ` Kevin Hilman
2021-09-28 23:27     ` Kevin Hilman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sfzpwq4f.wl-maz@kernel.org \
    --to=maz@kernel.org \
    --cc=jbrunet@baylibre.com \
    --cc=khilman@baylibre.com \
    --cc=lee.jones@linaro.org \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=narmstrong@baylibre.com \
    --cc=saravanak@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.