]> www.infradead.org Git - users/jedix/linux-maple.git/commit
libnvdimm, pfn: add 'align' attribute, default to HPAGE_SIZE
authorDan Williams <dan.j.williams@intel.com>
Thu, 10 Dec 2015 22:45:23 +0000 (14:45 -0800)
committerDan Duval <dan.duval@oracle.com>
Wed, 7 Dec 2016 17:25:29 +0000 (12:25 -0500)
commit06875dc0b695e8d712b01128ecfa8eebe76eeaf9
treee29e09dc28f73ddc6d12415186ad37c740b6cc0a
parent4be17b7f205b05ce980536fd28583876a69fc313
libnvdimm, pfn: add 'align' attribute, default to HPAGE_SIZE

Orabug: 22913653

When setting aside capacity for struct page it must be aligned to the
largest mapping size that is to be made available via DAX.  Make the
alignment configurable to enable support for 1GiB page-size mappings.

The offset for PFN_MODE_RAM may now be larger than SZ_8K, so fixup the
offset check in nvdimm_namespace_attach_pfn().

Reported-by: Toshi Kani <toshi.kani@hpe.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit 315c562536c42aa4da9b6c5a2135dd6715a5e0b5)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/nvdimm/nd.h
drivers/nvdimm/pfn_devs.c
drivers/nvdimm/pmem.c