diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-21 21:51:19 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-21 21:51:19 -0400 |
| commit | 6e80ecdddf4ea6f3cd84e83720f3d852e6624a68 (patch) | |
| tree | 058bb07b5cae1df834bbac82aeafaba0a98f855b | |
| parent | 4a704d6db0ee4a349d5d523813a718e429b4914d (diff) | |
| parent | 33a56086712561b8b9cdc881e0317f4c36861f72 (diff) | |
Merge branch 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
Pull libnvdimm fixes from Dan Williams:
"A crash fix and corresponding regression test enabling for the crash
scenario. The unit test for this crash is available in ndctl-v58.2.
This branch has received a build success notification from the
0day-kbuild robot over 148 configs. The fix is tagged for -stable /
backport to 4.13"
* 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
libnvdimm, namespace: fix btt claim class crash
tools/testing/nvdimm: disable labels for nfit_test.1
| -rw-r--r-- | drivers/nvdimm/namespace_devs.c | 9 | ||||
| -rw-r--r-- | tools/testing/nvdimm/test/nfit.c | 3 |
2 files changed, 9 insertions, 3 deletions
diff --git a/drivers/nvdimm/namespace_devs.c b/drivers/nvdimm/namespace_devs.c index 1427a386a033..3e4d1e7998da 100644 --- a/drivers/nvdimm/namespace_devs.c +++ b/drivers/nvdimm/namespace_devs.c | |||
| @@ -1417,6 +1417,15 @@ static int btt_claim_class(struct device *dev) | |||
| 1417 | struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); | 1417 | struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); |
| 1418 | struct nd_namespace_index *nsindex; | 1418 | struct nd_namespace_index *nsindex; |
| 1419 | 1419 | ||
| 1420 | /* | ||
| 1421 | * If any of the DIMMs do not support labels the only | ||
| 1422 | * possible BTT format is v1. | ||
| 1423 | */ | ||
| 1424 | if (!ndd) { | ||
| 1425 | loop_bitmask = 0; | ||
| 1426 | break; | ||
| 1427 | } | ||
| 1428 | |||
| 1420 | nsindex = to_namespace_index(ndd, ndd->ns_current); | 1429 | nsindex = to_namespace_index(ndd, ndd->ns_current); |
| 1421 | if (nsindex == NULL) | 1430 | if (nsindex == NULL) |
| 1422 | loop_bitmask |= 1; | 1431 | loop_bitmask |= 1; |
diff --git a/tools/testing/nvdimm/test/nfit.c b/tools/testing/nvdimm/test/nfit.c index d20791c3f499..bef419d4266d 100644 --- a/tools/testing/nvdimm/test/nfit.c +++ b/tools/testing/nvdimm/test/nfit.c | |||
| @@ -1527,9 +1527,6 @@ static void nfit_test1_setup(struct nfit_test *t) | |||
| 1527 | set_bit(ND_CMD_ARS_START, &acpi_desc->bus_cmd_force_en); | 1527 | set_bit(ND_CMD_ARS_START, &acpi_desc->bus_cmd_force_en); |
| 1528 | set_bit(ND_CMD_ARS_STATUS, &acpi_desc->bus_cmd_force_en); | 1528 | set_bit(ND_CMD_ARS_STATUS, &acpi_desc->bus_cmd_force_en); |
| 1529 | set_bit(ND_CMD_CLEAR_ERROR, &acpi_desc->bus_cmd_force_en); | 1529 | set_bit(ND_CMD_CLEAR_ERROR, &acpi_desc->bus_cmd_force_en); |
| 1530 | set_bit(ND_CMD_GET_CONFIG_SIZE, &acpi_desc->dimm_cmd_force_en); | ||
| 1531 | set_bit(ND_CMD_GET_CONFIG_DATA, &acpi_desc->dimm_cmd_force_en); | ||
| 1532 | set_bit(ND_CMD_SET_CONFIG_DATA, &acpi_desc->dimm_cmd_force_en); | ||
| 1533 | } | 1530 | } |
| 1534 | 1531 | ||
| 1535 | static int nfit_test_blk_do_io(struct nd_blk_region *ndbr, resource_size_t dpa, | 1532 | static int nfit_test_blk_do_io(struct nd_blk_region *ndbr, resource_size_t dpa, |
