[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMuHMdUk8G0MdoCA9ZyKDJNRC0pbcR0CpfLzpe347OBALADt0g@mail.gmail.com>
Date: Thu, 5 Jun 2025 20:49:30 +0200
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Andrew Lunn <andrew@...n.ch>
Cc: Jakub Kicinski <kuba@...nel.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, 5 Jun 2025 at 16:05, Andrew Lunn <andrew@...n.ch> wrote:
> 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.
And perhaps little-endian? ;-)
I am delighted to see people are working on big-endian RISC-V, which
gives people some incentive to keep caring about driver portability...
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Powered by blists - more mailing lists