Re: [PATCH v2 1/4] RISC-V: Fix ioremap_cache() and ioremap_wc() for systems with Svpbmt

From: Palmer Dabbelt
Date: Thu Oct 06 2022 - 23:50:28 EST

On Wed, 28 Sep 2022 05:14:30 PDT (-0700), Christoph Hellwig wrote:
On Thu, Sep 22, 2022 at 09:35:56AM -0700, Palmer Dabbelt wrote:
Sorry I missed this, I thought it was just part of the rest of this patch
set. That said, I'm not actually sure this is a critical fix: sure it's a
performance problem, and if some driver is expecting ioremap_cache() to go
fast then possibly a pretty big one, but the only Svpmbt hardware that

More importantly nothing should be using ioremap_cache at all. It is
an API that has long been deprecated in favor of memremap.

There's a few uses of it, I just send along a patch to make it arch-specific and make the users depend on it. That should let us stop adding this to ports just to get the drivers building.