netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Heiner Kallweit <hkallweit1@gmail.com>,
	Andrew Lunn <andrew@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Florian Fainelli <f.fainelli@gmail.com>,
	netdev <netdev@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux ARM <linux-arm-kernel@lists.infradead.org>,
	Stefan Agner <stefan@agner.ch>,
	Linux-Renesas <linux-renesas-soc@vger.kernel.org>
Subject: Re: [BUG bisect] Missing Micrel driver on VF50 (net: phy: check return code when requesting PHY driver module)
Date: Tue, 22 Jan 2019 15:22:29 +0100	[thread overview]
Message-ID: <CAJKOXPcm3sMrAS8Yag-6YVUF7f=wGjst991WSVWeRMg2zk3FvA@mail.gmail.com> (raw)
In-Reply-To: <CAMuHMdUz6J2cG-NCYPTRyS=1QZHGBWUFZPqj4ShEdioQLqu9qw@mail.gmail.com>

On Tue, 22 Jan 2019 at 14:52, Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>
> Hi Heiner,
>
> On Fri, Jan 18, 2019 at 9:58 PM Heiner Kallweit <hkallweit1@gmail.com> wrote:
> > On 18.01.2019 09:48, Krzysztof Kozlowski wrote:
> > > On Fri, 18 Jan 2019 at 09:39, Krzysztof Kozlowski <krzk@kernel.org> wrote:
> > >> On today's next (next-20190118) my Colibri VF50 board fails to boot up
> > >> from network (DHCP, NFSv4 root). Looks like missing network adapter.
> > >> Expected:
> > >> [ 3.041773] Micrel KSZ8041 400d1000.ethernet-1:00: attached PHY driver
> > >> [Micrel KSZ8041] (mii_bus:phy_addr=400d1000.ethernet-1:00, irq=POLL)
> > >>
> > >> Result:
> > >> [ 15.614964] Root-NFS: no NFS server address
> > >> [ 15.619353] VFS: Unable to mount root fs via NFS, trying floppy.
> > >> [ 15.626762] VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
> > >> [ 15.634252] Please append a correct "root=" boot option; here are the
> > >> available partitions:
> > >> [ 15.642791] 0100 16384 ram0
> > >> [ 15.642804] (driver?)
> > >> [ 15.649076] Kernel panic - not syncing: VFS: Unable to mount root fs
> > >> on unknown-block(2,0)
> > >> [ 15.657423] ---[ end Kernel panic - not syncing: VFS: Unable to mount
> > >> root fs on unknown-block(2,0) ]---
> > >>
> > >> Bisect pointed to:
> > >>     net: phy: check return code when requesting PHY driver module
> > >
> > > I see now in the logs:
> > > [ 2.436822] mdio_bus 400d1000.ethernet-1:00: error -2 loading PHY
> > > driver module for ID 0x00221513
> > > which is kind of misleading. There is no initramfs so there is no
> > > usermod library at this point. It is not needed. This seems to break
> > > all DHCP/NFS root boots without initrd/initramfs.
> > >
> > Thanks for the report. Could you please provide your kernel config
> > and the syslog of a boot before or w/o the patch in question?
> >
> > If you boot via nfs then I'd expect that the PHY driver is built-in and
> > not a module. Therefore it's not fully clear to me yet why
> > request_module() returns -ENOENT.
>
> I'm seeing the same booting nfsroot on several Renesas boards.
> E.g. on r8a7791/koelsch:
>
>     mdio_bus ee700000.ethernet-ffffffff:01: error -2 loading PHY
> driver module for ID 0x00221537
>     sh-eth ee700000.ethernet: MDIO init failed: -2
>

Hi Geert,

There is a follow up patch:
https://www.spinics.net/lists/netdev/msg545573.html

Best regards,
Krzysztof

      reply	other threads:[~2019-01-22 14:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-18  8:39 [BUG bisect] Missing Micrel driver on VF50 (net: phy: check return code when requesting PHY driver module) Krzysztof Kozlowski
2019-01-18  8:48 ` Krzysztof Kozlowski
2019-01-18 20:58   ` Heiner Kallweit
2019-01-18 21:30     ` Heiner Kallweit
2019-01-19  9:51       ` Krzysztof Kozlowski
2019-01-22 13:51     ` Geert Uytterhoeven
2019-01-22 14:22       ` Krzysztof Kozlowski [this message]

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='CAJKOXPcm3sMrAS8Yag-6YVUF7f=wGjst991WSVWeRMg2zk3FvA@mail.gmail.com' \
    --to=krzk@kernel.org \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=f.fainelli@gmail.com \
    --cc=geert@linux-m68k.org \
    --cc=hkallweit1@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=stefan@agner.ch \
    /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 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).