netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Fainelli <f.fainelli@gmail.com>
To: Jonas Gorski <jonas.gorski@gmail.com>, netdev@vger.kernel.org
Cc: Andrew Lunn <andrew@lunn.ch>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>,
	"David S. Miller" <davem@davemloft.net>
Subject: Re: [PATCH] net: phy: bcm63xx: fix OOPS due to missing driver name
Date: Mon, 2 Mar 2020 13:08:23 -0800	[thread overview]
Message-ID: <744c7757-1e11-b042-b144-430a2a6eb9d1@gmail.com> (raw)
In-Reply-To: <20200302194657.14356-1-jonas.gorski@gmail.com>

On 3/2/20 11:46 AM, Jonas Gorski wrote:
> 719655a14971 ("net: phy: Replace phy driver features u32 with link_mode
> bitmap") was a bit over-eager and also removed the second phy driver's
> name, resulting in a nasty OOPS on registration:
> 
> [    1.319854] CPU 0 Unable to handle kernel paging request at virtual address 00000000, epc == 804dd50c, ra == 804dd4f0
> [    1.330859] Oops[#1]:
> [    1.333138] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.22 #0
> [    1.339217] $ 0   : 00000000 00000001 87ca7f00 805c1874
> [    1.344590] $ 4   : 00000000 00000047 00585000 8701f800
> [    1.349965] $ 8   : 8701f800 804f4a5c 00000003 64726976
> [    1.355341] $12   : 00000001 00000000 00000000 00000114
> [    1.360718] $16   : 87ca7f80 00000000 00000000 80639fe4
> [    1.366093] $20   : 00000002 00000000 806441d0 80b90000
> [    1.371470] $24   : 00000000 00000000
> [    1.376847] $28   : 87c1e000 87c1fda0 80b90000 804dd4f0
> [    1.382224] Hi    : d1c8f8da
> [    1.385180] Lo    : 5518a480
> [    1.388182] epc   : 804dd50c kset_find_obj+0x3c/0x114
> [    1.393345] ra    : 804dd4f0 kset_find_obj+0x20/0x114
> [    1.398530] Status: 10008703 KERNEL EXL IE
> [    1.402833] Cause : 00800008 (ExcCode 02)
> [    1.406952] BadVA : 00000000
> [    1.409913] PrId  : 0002a075 (Broadcom BMIPS4350)
> [    1.414745] Modules linked in:
> [    1.417895] Process swapper/0 (pid: 1, threadinfo=(ptrval), task=(ptrval), tls=00000000)
> [    1.426214] Stack : 87cec000 80630000 80639370 80640658 80640000 80049af4 80639fe4 8063a0d8
> [    1.434816]         8063a0d8 802ef078 00000002 00000000 806441d0 80b90000 8063a0d8 802ef114
> [    1.443417]         87cea0de 87c1fde0 00000000 804de488 87cea000 8063a0d8 8063a0d8 80334e48
> [    1.452018]         80640000 8063984c 80639bf4 00000000 8065de48 00000001 8063a0d8 80334ed0
> [    1.460620]         806441d0 80b90000 80b90000 802ef164 8065dd70 80620000 80b90000 8065de58
> [    1.469222]         ...
> [    1.471734] Call Trace:
> [    1.474255] [<804dd50c>] kset_find_obj+0x3c/0x114
> [    1.479141] [<802ef078>] driver_find+0x1c/0x44
> [    1.483665] [<802ef114>] driver_register+0x74/0x148
> [    1.488719] [<80334e48>] phy_driver_register+0x9c/0xd0
> [    1.493968] [<80334ed0>] phy_drivers_register+0x54/0xe8
> [    1.499345] [<8001061c>] do_one_initcall+0x7c/0x1f4
> [    1.504374] [<80644ed8>] kernel_init_freeable+0x1d4/0x2b4
> [    1.509940] [<804f4e24>] kernel_init+0x10/0xf8
> [    1.514502] [<80018e68>] ret_from_kernel_thread+0x14/0x1c
> [    1.520040] Code: 1060000c  02202025  90650000 <90810000> 24630001  14250004  24840001  14a0fffb  90650000
> [    1.530061]
> [    1.531698] ---[ end trace d52f1717cd29bdc8 ]---
> 
> Fix it by readding the name.
> 
> Fixes: 719655a14971 ("net: phy: Replace phy driver features u32 with link_mode bitmap")
> Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>

Acked-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian

  reply	other threads:[~2020-03-02 21:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-02 19:46 [PATCH] net: phy: bcm63xx: fix OOPS due to missing driver name Jonas Gorski
2020-03-02 21:08 ` Florian Fainelli [this message]
2020-03-04  1:38 ` David Miller

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=744c7757-1e11-b042-b144-430a2a6eb9d1@gmail.com \
    --to=f.fainelli@gmail.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=hkallweit1@gmail.com \
    --cc=jonas.gorski@gmail.com \
    --cc=linux@armlinux.org.uk \
    --cc=netdev@vger.kernel.org \
    /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).