[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <96f53bdd-13e4-4e4b-ab8e-3470782df3b2@lunn.ch>
Date: Thu, 5 Jun 2025 16:04:53 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Jakub Kicinski <kuba@...nel.org>
Cc: Geert Uytterhoeven <geert@...ux-m68k.org>,
Xin Tian <tianx@...silicon.com>, netdev@...r.kernel.org,
leon@...nel.org, andrew+netdev@...n.ch, pabeni@...hat.com,
edumazet@...gle.com, davem@...emloft.net,
jeff.johnson@....qualcomm.com, przemyslaw.kitszel@...el.com,
weihg@...silicon.com, wanry@...silicon.com, jacky@...silicon.com,
horms@...nel.org, parthiban.veerasooran@...rochip.com,
masahiroy@...nel.org, kalesh-anakkur.purayil@...adcom.com,
geert+renesas@...der.be
Subject: Re: [PATCH net-next v11 14/14] xsc: add ndo_get_stats64
On Thu, Jun 05, 2025 at 06:56:15AM -0700, Jakub Kicinski wrote:
> On Thu, 5 Jun 2025 15:39:54 +0200 Geert Uytterhoeven wrote:
> > On Thu, 5 Jun 2025 at 15:29, Jakub Kicinski <kuba@...nel.org> wrote:
> > > On Thu, 5 Jun 2025 15:25:21 +0800 Xin Tian wrote:
> > > > Regarding u64_stats_sync.h helpers:
> > > > Since our driver exclusively runs on 64-bit platforms (ARM64 or x86_64)
> > > > where u64 accesses are atomic, is it still necessary to use these helpers?
> > >
> > > alright.
> >
> > [PATCH 1/14] indeed has:
> >
> > depends on PCI
> > depends on ARM64 || X86_64 || COMPILE_TEST
> >
> > However, if this device is available on a PCIe expansion card, it
> > could be plugged into any system with a PCIe expansion slot?
>
> I've been trying to fight this fight but people keep pushing back :(
> Barely any new PCIe driver comes up without depending on X86_64 and/or
> ARM64. Maybe we should write down in the docs that it's okay to depend
> on 64b but not okay to depend on specific arches?
I agree. I expect in a few years time we will start seeing patches to
drivers like this adding RISCV, because RISCV has made it into data
center CPUs, where this sort of card makes sense. Its the fact it is
64bit which counts here, not ARM or X86_64.
Andrew
Powered by blists - more mailing lists