[GIT PULL] libnvdimm fixes for v5.11-rc7

From: Dan Williams
Date: Sun Feb 07 2021 - 12:38:11 EST


Hi Linus, please pull from:

git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
tags/libnvdimm-fixes-5.11-rc7

...to receive a fix for a crash scenario that has been present since
the initial merge, a minor regression in sysfs attribute visibility,
and a fix for some flexible array warnings. The bulk of this pull is
an update to the libnvdimm unit test infrastructure to test non-ACPI
platforms. Given there is zero regression risk for test updates, and
the tests enable validation of bits headed towards the next merge
window, I saw no reason to hold the new tests back. Santosh originally
submitted this before the v5.11 window opened.

This has all appeared in -next with no reported issues.

---

The following changes since commit 7c53f6b671f4aba70ff15e1b05148b10d58c2837:

Linux 5.11-rc3 (2021-01-10 14:34:50 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
tags/libnvdimm-fixes-5.11-rc7

for you to fetch changes up to 7018c897c2f243d4b5f1b94bc6b4831a7eab80fb:

libnvdimm/dimm: Avoid race between probe and available_slots_show()
(2021-02-01 16:20:40 -0800)

----------------------------------------------------------------
libnvdimm for 5.11-rc7
- Fix a crash when sysfs accesses race 'dimm' driver probe/remove.

- Fix a regression in 'resource' attribute visibility necessary for
mapping badblocks and other physical address interrogations.

- Fix some flexible array warnings

- Expand the unit test infrastructure for non-ACPI platforms

----------------------------------------------------------------
Dan Williams (3):
ACPI: NFIT: Fix flexible_array.cocci warnings
libnvdimm/namespace: Fix visibility of namespace resource attribute
libnvdimm/dimm: Avoid race between probe and available_slots_show()

Jianpeng Ma (1):
libnvdimm/pmem: Remove unused header

Santosh Sivaraj (7):
testing/nvdimm: Add test module for non-nfit platforms
ndtest: Add compatability string to treat it as PAPR family
ndtest: Add dimms to the two buses
ndtest: Add dimm attributes
ndtest: Add regions and mappings to the test buses
ndtest: Add nvdimm control functions
ndtest: Add papr health related flags

drivers/acpi/nfit/core.c | 75 +--
drivers/nvdimm/dimm_devs.c | 18 +-
drivers/nvdimm/namespace_devs.c | 10 +-
drivers/nvdimm/pmem.c | 1 -
tools/testing/nvdimm/config_check.c | 3 +-
tools/testing/nvdimm/test/Kbuild | 6 +-
tools/testing/nvdimm/test/ndtest.c | 1129 +++++++++++++++++++++++++++++++++++
tools/testing/nvdimm/test/ndtest.h | 109 ++++
8 files changed, 1293 insertions(+), 58 deletions(-)
create mode 100644 tools/testing/nvdimm/test/ndtest.c
create mode 100644 tools/testing/nvdimm/test/ndtest.h