[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190325065453.GC12016@zn.tnic>
Date: Mon, 25 Mar 2019 07:54:54 +0100
From: Borislav Petkov <bp@...en8.de>
To: Paul Walmsley <paul.walmsley@...ive.com>
Cc: Yash Shah <yash.shah@...ive.com>, linux-riscv@...ts.infradead.org,
linux-edac@...r.kernel.org, palmer@...ive.com,
linux-kernel@...r.kernel.org, robh+dt@...nel.org,
mark.rutland@....com, aou@...s.berkeley.edu, mchehab@...nel.org,
devicetree@...r.kernel.org
Subject: Re: [PATCH 2/2] sifive: edac: Add EDAC driver for Sifive l2 Cache
Controller
On Sun, Mar 24, 2019 at 05:16:17PM -0700, Paul Walmsley wrote:
> Looking at the Synopsys,
Look again at synopsys_edac.
> Highbank,
Yes, that one and octeon.
> PowerPC 4xx, and
also a single ppc4xx_edac driver.
> TI EDAC drivers,
There's TI drivers, plural? I see only ti_edac.c. Also, per-vendor.
> all of those are clearly for IP block error management, rather than
> platform error management. Has the upstream guidance changed since
> those drivers were merged?
There are others which are per-platform and work just fine this way:
xgene_edac, altera_edac, layerscape_edac, qcom_edac, synopsys_edac...
The problem with per IP block is that if those compilation units would
need to share info or communicate, then that is impossible nowadays and
you'd need to build something on your own.
Also, the EDAC core supports only one driver.
> The core issue for us is that we don't have a generalized "ECC management"
> IP block. And I would just as soon not fake one in the DT data, since the
> general DT guidance is that the data in DT is meant to describe the actual
> hardware.
Look at how the others I mentioned above do it.
> Would it make more sense to put this driver outside of drivers/edac?
If you're not going to need any EDAC facilities - which are not a lot,
btw :) - you can do whatever you prefer.
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
Powered by blists - more mailing lists