Re: [PATCH v3 3/5] memremap: Add support for read-only memory mappings

2019-10-04 Thread Brian Starkey
Hi, On Thu, Oct 03, 2019 at 01:05:53PM -0700, Evan Green wrote: > On Thu, Oct 3, 2019 at 11:56 AM Stephen Boyd wrote: > > > > Quoting Evan Green (2019-09-18 12:37:34) > > > On Tue, Sep 10, 2019 at 9:09 AM Stephen Boyd wrote: > > > > > > > > @@ -53,6 +60,9 @@ static void *try_ram_remap(resource_s

Re: [PATCH v3 3/5] memremap: Add support for read-only memory mappings

2019-10-03 Thread Evan Green
On Thu, Oct 3, 2019 at 11:56 AM Stephen Boyd wrote: > > Quoting Evan Green (2019-09-18 12:37:34) > > On Tue, Sep 10, 2019 at 9:09 AM Stephen Boyd wrote: > > > > > > @@ -53,6 +60,9 @@ static void *try_ram_remap(resource_size_t offset, > > > size_t size, > > > * mapping types will be attempted i

Re: [PATCH v3 3/5] memremap: Add support for read-only memory mappings

2019-10-03 Thread Stephen Boyd
Quoting Evan Green (2019-09-18 12:37:34) > On Tue, Sep 10, 2019 at 9:09 AM Stephen Boyd wrote: > > > > @@ -53,6 +60,9 @@ static void *try_ram_remap(resource_size_t offset, size_t > > size, > > * mapping types will be attempted in the order listed below until one of > > * them succeeds. > >

Re: [PATCH v3 3/5] memremap: Add support for read-only memory mappings

2019-09-18 Thread Evan Green
On Tue, Sep 10, 2019 at 9:09 AM Stephen Boyd wrote: > > Sometimes we have memories that are supposed to be read-only, but when > we map these regions the best we can do is map them as write-back with > MEMREMAP_WB. Introduce a read-only memory mapping (MEMREMAP_RO) that > allows us to map reserved

[PATCH v3 3/5] memremap: Add support for read-only memory mappings

2019-09-10 Thread Stephen Boyd
Sometimes we have memories that are supposed to be read-only, but when we map these regions the best we can do is map them as write-back with MEMREMAP_WB. Introduce a read-only memory mapping (MEMREMAP_RO) that allows us to map reserved memory regions as read-only. This way, we're less likely to se