Skip to content

Expose known poison in SPA ranges to the block layer

[email protected] linux-acpi linux-fsdevel linux-nvdimm nvdimm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3nfit_test: Enable DSMs for all test NFITstools/testing/nvdimm/test/nfit.c+9 -00 replies
2/3libnvdimm: Add a poison listdrivers/acpi/nfit.c drivers/nvdimm/core.c drivers/nvdimm/nd-core.h +2 more+265 -00 replies
3/3pmem: Use the poison list to expose badblocksdrivers/nvdimm/pmem.c+124 -06 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Expose known poison in SPA ranges to the block layer

From: Vishal Verma <[email protected]>

This series does a few things:
- Retrieve all known poison in the system physical address (SPA) space using ARS (Address Range Scrub) commands to firmware
- Store this poison in a new 'nd_poison' structure
- In pmem, consume the poison list and expose the ranges as bad sectors

This depends on the badblocks series sent out previously[1]

This was tested using nfit_test to add poison at specific address ranges. More testing, specially on NVDIMM-N hardware is much appreciated!

[1]: https://lists.01.org/pipermail/linux-nvdimm/2015-December/003239.html

Vishal Verma (3):
nfit_test: Enable DSMs for all test NFITs
libnvdimm: Add a poison list
pmem: Use the poison list to expose badblocks

 drivers/acpi/nfit.c              | 193 +++++++++++++++++++++++++++++++++++++++
 drivers/nvdimm/core.c            |  63 +++++++++++++
 drivers/nvdimm/nd-core.h         |   1 +
 drivers/nvdimm/nd.h              |   6 ++
 drivers/nvdimm/pmem.c            | 124 +++++++++++++++++++++++++
 include/linux/libnvdimm.h        |   2 +
 tools/testing/nvdimm/test/nfit.c |   9 ++
 7 files changed, 398 insertions(+)
Signature · 1 line
2.5.0