]> git.baikalelectronics.ru Git - kernel.git/commit
tools/testing/nvdimm: fix allocation range for mock flush hint tables
authorDan Williams <dan.j.williams@intel.com>
Mon, 19 Sep 2016 20:49:48 +0000 (13:49 -0700)
committerDan Williams <dan.j.williams@intel.com>
Mon, 19 Sep 2016 20:49:48 +0000 (13:49 -0700)
commite4523cf87e9614e5fcdc575f502051eb97bbffad
tree079c4f3a0d87cada5ff0aea0429cacb7a0c40632
parent68bf9683b46c139c08221f1cde3f9b1a7edf9ddb
tools/testing/nvdimm: fix allocation range for mock flush hint tables

Commit 68bf9683b46c "nvdimm: fix PHYS_PFN/PFN_PHYS mixup" identified
that we were passing an invalid address to devm_nvdimm_ioremap(). With
that fixed it exposed a bug in the memory reservation size for flush
hint tables.  Since we map a full page we need to mock a full page of
memory to back the flush hint table entries.

Cc: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
tools/testing/nvdimm/test/nfit.c