[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <7fcafe92-35d9-4a83-b00d-7816fdb43139@app.fastmail.com>
Date: Wed, 30 Nov 2022 22:49:31 +0100
From: "Arnd Bergmann" <arnd@...db.de>
To: "Palmer Dabbelt" <palmer@...belt.com>,
"Conor Dooley" <conor@...nel.org>, "Will Deacon" <will@...nel.org>,
"Marc Zyngier" <maz@...nel.org>
Cc: ajones@...tanamicro.com,
Heiko Stübner <heiko@...ech.de>,
"Samuel Holland" <samuel@...lland.org>,
"Chen-Yu Tsai" <wens@...e.org>,
"Jernej Skrabec" <jernej.skrabec@...il.com>,
linux-sunxi@...ts.linux.dev, linux-riscv@...ts.infradead.org,
devicetree@...r.kernel.org, krzysztof.kozlowski+dt@...aro.org,
"Rob Herring" <robh+dt@...nel.org>,
"Jisheng Zhang" <jszhang@...nel.org>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
"Andre Przywara" <andre.przywara@....com>,
"Albert Ou" <aou@...s.berkeley.edu>,
"Anup Patel" <apatel@...tanamicro.com>,
"Atish Patra" <atishp@...osinc.com>, christianshewitt@...il.com,
"Conor.Dooley" <conor.dooley@...rochip.com>,
guoren <guoren@...nel.org>, heinrich.schuchardt@...onical.com,
"Linus Walleij" <linus.walleij@...aro.org>,
"Paul Walmsley" <paul.walmsley@...ive.com>, stano.jakubek@...il.com
Subject: Re: [PATCH v2 12/12] riscv: defconfig: Enable the Allwinner D1 platform and
drivers
On Wed, Nov 30, 2022, at 21:24, Palmer Dabbelt wrote:
> On Mon, 28 Nov 2022 22:54:18 PST (-0800), Conor Dooley wrote:
>>
>> idk, defconfig to me is not about you or I, it's about A Developer that gets an SBC or a devkit and their experience.
>> Or alternatively, someone's CI ;)
>> I'd like to put everything in, but I recall that being shot down, that's all.
>
> The whole "who is defconfig for" discussion always ends up kind of
> vague, but IIUC it's generally aimed at kernel hackers as opposed to end
> users -- so it's not meant to be a disto config, that's why we have
> things like the debug options turned on. I tend to think of it as a "if
> a patch submitter is going to test only one config, then what do I want
> in it?" and let that determine what goes in defconfig.
>
> IMO having defconfig contain the drivers necessary to boot every common
> dev board as =y, and having =m for anything else on those boards also
> seem reasonable. That will make the transition from vendor/distro
> kernels to upstream a bit smoother, which is always good. I guess
> there's some slight build time and image size issues, but aside from
> some very small systems that shouldn't be too bad for kernel developers
> -- and if we really end up with another popular system with 6MiB of RAM
> we can just stick another tiny defconfig in there for it.
>
> I actually don't use modules when doing kernel development because I
> find it easier to track things when they're packed into a single binary,
> but I don't think it's necessary to steer everyone that way.
>
> Adding some of the Arm folks here, in case they have thoughts. The best
> bet is probably to try and do something similar, though my worry is that
> the answer is something like "target standard platforms" and we don't
> have any.
I think this is handled very inconsistently across architectures. On
32-bit arm, we used to have a board specific defconfig for each machine,
but of course that never scaled to the number of supported machines.
The important defconfig files we have these days are the arm64
one, and on arm32 we have the ones that are mutually incompatible,
in particular one for armv7 and one for armv5, each enabling as
many machines as possible, plus usually one per SoC vendor that
is more specialized.
If you want to formalize it a bit more than this, I would recommend
having more fragments, e.g. one for typical debugging options,
one for things that are needed to boot both Fedora and Debian
userland, etc.
Arnd
Powered by blists - more mailing lists