Re: [PATCH 6/6] dt-bindings: interrupt-controller: RISC-V PLIC documentation
From: Rob Herring
Date: Wed Aug 01 2018 - 14:26:46 EST
On Wed, Aug 1, 2018 at 1:12 AM Christoph Hellwig <hch@xxxxxx> wrote:
> On Tue, Jul 31, 2018 at 04:46:30PM -0600, Rob Herring wrote:
> > Perhaps this should be 'sifive,plic0'
> Excepet for the fact this the old name has already been in shipping
> hardware and release of qemu and other emulators it should.
Not really my problem that they didn't follow the process and upstream
their binding first. But this alone is just a string identifier, so I
don't really care that much. If things are really a mess, then the
next implementations will have to have better compatible strings. More
likely, I'll just see folks trying to add various properties to deal
with all the differences.
You could always define a better compatible and leave 'riscv,plic0' as
a fallback to avoid breaking things.
> > Normally this would have an SoC specific compatible too. Sometimes we
> > can get away without, but it doesn't seem like the PLIC is very tightly
> > specified nor has common implementations.
> It is a giant f***cking mess to be honest. Adding a highlevel spec
> to the ISA but not a register layout is completely idotic, but if you
> look at the current riscv-sw list this decision is still defended by
> SiFive / the RISC-V foundation. The whole stale of the RISC-V platform
> Ecosystem is rather pathetic unfortunately, and people don't seem to
> be willing to learn from past good practice nor mistakes in ARM land.
Interrupt controllers are where the differentiation is. ;)