On Mon, Jan 20, 2020 at 6:08 AM Aneesh Kumar K.V
<[email protected]> wrote:
>
> Namespace start address and size should be multiple of subsection size to 
> avoid
> handling complex partial subsection addition and removal of memory. Even 
> though
> subsection size is arch independent (2M), architectures do impose further
> restrictions w.r.t namespace size/start addr based on direct-mapping  page 
> size.
>
> This patch adds an arch callback for supporting arch specific restrictions 
> w.r.t
> namespace size. This is different from arch_namespace_map_size() in that this
> validates against SUBSECTION_SIZE. Ideally, kernel should use the same 
> restrictions
> during namespace initialization too. But that prevents an existing unaligned
> namespace initialization to fail. The kernel now allows such namespace 
> initialization
> so that an existing installation is not broken.

I think we only need memremap_compat_align() to default to the
subsection size with the option for Power to override it to 16MiB.
_______________________________________________
Linux-nvdimm mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to