linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Quentin Schulz <quentin.schulz@bootlin.com>
To: Andreas Schwab <schwab@suse.de>
Cc: Andrew Lunn <andrew@lunn.ch>,
	Alexandre Belloni <alexandre.belloni@bootlin.com>,
	f.fainelli@gmail.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, allan.nielsen@microchip.com,
	thomas.petazzoni@bootlin.com, linux-riscv@lists.infradead.org,
	davem@davemloft.net
Subject: Re: [PATCH net-next v3 1/6] net: phy: mscc: migrate to phy_select/restore_page functions
Date: Tue, 20 Nov 2018 14:20:58 +0100	[thread overview]
Message-ID: <20181120132058.l3g37jpmac7ltclt@qschulz> (raw)
Message-ID: <20181120132058.OyhRKRLuW6_AOVI84JclufIwZP2FSJ0nDVWE9tEtCb8@z> (raw)
In-Reply-To: <mvmefbgm0zc.fsf@suse.de>


[-- Attachment #1.1: Type: text/plain, Size: 1649 bytes --]

Hi Andreas,

On Tue, Nov 20, 2018 at 12:39:51PM +0100, Andreas Schwab wrote:
> On Nov 19 2018, Andrew Lunn <andrew@lunn.ch> wrote:
> 
> > I still don't see why that would cause a hang.
> 
> [  996.370000] [<ffffffe0011d7324>] mutex_lock+0x22/0x2a
> [  996.380000] [<ffffffe001039ba0>] mdiobus_read+0x36/0x60
> [  996.380000] [<ffffffe00103b82c>] vsc85xx_config_init+0x4c/0x1e2
> 
> vsc85xx_config_init is calling mdiobus_read while holding the mdio_lock.
> 

Thanks for reporting the bug. However, it could be nice the next time
you report a bug to give as much info as you can, such as the device
you're using. Architecture of your platform (or the board itself if it's
a DT in the Linux kernel), the MAC and the PHY IPs (the Microsemi PHY
driver now supports 6 different PHYs that do not work the same way so I
can't guess the one you're using), they all matter and help to
understand your bug. Also, if you could give a full bootlog of the
kernel and how it's possible to reproduce your issue (.config of your
kernel, on which commit on which branch you built your kernel).
Otherwise, you might not have any answer or considerably slow down the
bug identifying and fixing processes, which is annoying to you,
the users, the developers and the maintainers: a lot of upset people :)

Could you try something please? I'm pretty sure I found an issue (I
don't know if it's fixing your issue or not, but it might be).

Please replace in vsc85xx_default_config() the phy_read and phy_write by
respectively __phy_read and __phy_write (note the __ in front).

Let me know if you need help with this.

Thanks,
Quentin

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]

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

  parent reply	other threads:[~2018-11-20 16:41 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20181008100728.24959-1-quentin.schulz@bootlin.com>
     [not found] ` <20181008100728.24959-2-quentin.schulz@bootlin.com>
2018-11-19 14:57   ` [PATCH net-next v3 1/6] net: phy: mscc: migrate to phy_select/restore_page functions Andreas Schwab
2018-11-19 14:57     ` Andreas Schwab
2018-11-19 15:10     ` Andrew Lunn
2018-11-19 15:10       ` Andrew Lunn
2018-11-19 15:13       ` Andreas Schwab
2018-11-19 15:13         ` Andreas Schwab
2018-11-19 15:28         ` Andrew Lunn
2018-11-19 15:28           ` Andrew Lunn
2018-11-19 15:40           ` Alexandre Belloni
2018-11-19 15:40             ` Alexandre Belloni
2018-11-19 15:50             ` Andreas Schwab
2018-11-19 15:50               ` Andreas Schwab
2018-11-19 16:12               ` Andrew Lunn
2018-11-19 16:12                 ` Andrew Lunn
2018-11-19 16:14                 ` Andreas Schwab
2018-11-19 16:14                   ` Andreas Schwab
2018-11-19 16:25                   ` Andrew Lunn
2018-11-19 16:25                     ` Andrew Lunn
2018-11-19 16:32                     ` Andreas Schwab
2018-11-19 16:32                       ` Andreas Schwab
2018-11-19 16:44                       ` Andrew Lunn
2018-11-19 16:44                         ` Andrew Lunn
2018-11-20 11:39                 ` Andreas Schwab
2018-11-20 11:39                   ` Andreas Schwab
2018-11-20 13:20                   ` Quentin Schulz [this message]
2018-11-20 13:20                     ` Quentin Schulz
2018-11-20 13:48     ` [PATCH] net: phy: mscc: fix locking in vsc85xx_default_config Andreas Schwab
2018-11-20 13:48       ` Andreas Schwab
2018-11-20 13:55       ` Quentin Schulz
2018-11-20 13:55         ` Quentin Schulz
2018-11-20 14:01         ` Andreas Schwab
2018-11-20 14:01           ` Andreas Schwab
2018-11-20 14:17           ` Quentin Schulz
2018-11-20 14:17             ` Quentin Schulz

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=20181120132058.l3g37jpmac7ltclt@qschulz \
    --to=quentin.schulz@bootlin.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=allan.nielsen@microchip.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=f.fainelli@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=netdev@vger.kernel.org \
    --cc=schwab@suse.de \
    --cc=thomas.petazzoni@bootlin.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 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).