Re: [PULL 00/14] Xtensa updates for 4.19

From: Max Filippov
Date: Thu Aug 23 2018 - 14:31:08 EST


On Thu, Aug 23, 2018 at 8:21 AM, Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
>> xtensa: platform-specific handling of coherent memory
>
> How is this supposed to be used? For the nommu version there only
> are __weak stubs, but no actual implementation.

The idea is that nommu xtensa platforms that have two views of the
physical memory may map one of them as cached and the other as
uncached. They will provide implementations for these four functions.

A platform with single view of the physical memory but with CPU that
has region translation still may create two views of the memory.

Both situations are platform-specific as we don't have fixed address
space layout for nommu systems.

I had an example here, but the addresses in this example are incorrect
as I misread the spec, so I didn't add it to the PR:
https://github.com/jcmvbkbc/linux-xtensa/commit/21ec04090f59647e69fb775ae9d447fcc778701e

--
Thanks.
-- Max