From: Vivian Wang <wangruikang@iscas.ac.cn>
To: Marek Szyprowski <m.szyprowski@samsung.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
Jakub Kicinski <kuba@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Yixun Lan <dlan@gentoo.org>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>,
Philipp Zabel <p.zabel@pengutronix.de>,
Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>
Cc: Vivian Wang <uwu@dram.page>,
Vadim Fedorenko <vadim.fedorenko@linux.dev>,
Junhui Liu <junhui.liu@pigmoral.tech>,
Simon Horman <horms@kernel.org>,
Maxime Chevallier <maxime.chevallier@bootlin.com>,
netdev@vger.kernel.org, devicetree@vger.kernel.org,
linux-riscv@lists.infradead.org, spacemit@lists.linux.dev,
linux-kernel@vger.kernel.org,
Conor Dooley <conor.dooley@microchip.com>,
Troy Mitchell <troy.mitchell@linux.spacemit.com>,
Hendrik Hamerlinck <hendrik.hamerlinck@hammernet.be>,
Andrew Lunn <andrew@lunn.ch>
Subject: Re: [PATCH net-next v12 0/5] Add Ethernet MAC support for SpacemiT K1
Date: Fri, 19 Sep 2025 16:53:40 +0800 [thread overview]
Message-ID: <c3f2bc47-b7d3-4054-ae09-3265470c2306@iscas.ac.cn> (raw)
In-Reply-To: <a52c0cf5-0444-41aa-b061-a0a1d72b02fe@samsung.com>
Hi Marek,
Thanks for the testing.
On 9/19/25 16:27, Marek Szyprowski wrote:
> Hi All,
>
> On 14.09.2025 06:23, Vivian Wang wrote:
>> SpacemiT K1 has two gigabit Ethernet MACs with RGMII and RMII support.
>> Add devicetree bindings, driver, and DTS for it.
>>
>> Tested primarily on BananaPi BPI-F3. Basic TX/RX functionality also
>> tested on Milk-V Jupiter.
>>
>> I would like to note that even though some bit field names superficially
>> resemble that of DesignWare MAC, all other differences point to it in
>> fact being a custom design.
>>
>> Based on SpacemiT drivers [1]. These patches are also available at:
>>
>> https://github.com/dramforever/linux/tree/k1/ethernet/v12
>>
>> [1]: https://github.com/spacemit-com/linux-k1x
> This driver recently landed in linux-next as commit bfec6d7f2001 ("net:
> spacemit: Add K1 Ethernet MAC"). In my tests I found that it
> triggers lock dep warnings related to stats_lock acquisition. In the
> current code it is being acquired with spin_lock(). For tests I've
> changed that to spin_lock_irqsave() and the warnings went away, but I'm
> not sure that this is the proper fix. I've also checked the driver
> history and 'irqsave' locking was used in pre-v7 version, but it was
> removed later on Jakub's request and described a bit misleading as
> "Removed scoped_guard usage".
Oops, I had assumed that irqsave was unnecessary and missed that the
statistics functions are called with softirq enabled during
register_netdev. The ones called at probe time should be changed to
_irqsave or some other variant.
I'll take a look at the details myself and send a fix.
Thanks,
Vivian "dramforever" Wang
prev parent reply other threads:[~2025-09-19 8:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-14 4:23 Vivian Wang
2025-09-14 4:23 ` [PATCH net-next v12 1/5] dt-bindings: net: Add " Vivian Wang
2025-09-14 4:23 ` [PATCH net-next v12 2/5] net: spacemit: Add K1 Ethernet MAC Vivian Wang
2025-09-14 4:23 ` [PATCH net-next v12 3/5] riscv: dts: spacemit: Add Ethernet support for K1 Vivian Wang
2025-09-14 4:23 ` [PATCH net-next v12 4/5] riscv: dts: spacemit: Add Ethernet support for BPI-F3 Vivian Wang
2025-09-14 4:31 ` Vivian Wang
2025-09-14 14:26 ` Andrew Lunn
2025-09-14 4:23 ` [PATCH net-next v12 5/5] riscv: dts: spacemit: Add Ethernet support for Jupiter Vivian Wang
2025-09-14 10:30 ` [PATCH net-next v12 0/5] Add Ethernet MAC support for SpacemiT K1 Yixun Lan
2025-09-16 11:20 ` patchwork-bot+netdevbpf
2025-09-16 12:20 ` Yixun Lan
[not found] ` <CGME20250919082706eucas1p1fa29f9e90e1afdf3894b5effd734cf3f@eucas1p1.samsung.com>
2025-09-19 8:27 ` Marek Szyprowski
2025-09-19 8:53 ` Vivian Wang [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=c3f2bc47-b7d3-4054-ae09-3265470c2306@iscas.ac.cn \
--to=wangruikang@iscas.ac.cn \
--cc=alex@ghiti.fr \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=aou@eecs.berkeley.edu \
--cc=conor+dt@kernel.org \
--cc=conor.dooley@microchip.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=dlan@gentoo.org \
--cc=edumazet@google.com \
--cc=hendrik.hamerlinck@hammernet.be \
--cc=horms@kernel.org \
--cc=junhui.liu@pigmoral.tech \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=m.szyprowski@samsung.com \
--cc=maxime.chevallier@bootlin.com \
--cc=netdev@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=pabeni@redhat.com \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=robh@kernel.org \
--cc=spacemit@lists.linux.dev \
--cc=troy.mitchell@linux.spacemit.com \
--cc=uwu@dram.page \
--cc=vadim.fedorenko@linux.dev \
/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
all inboxes | Powered by JetHome®