Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1377179 > unrolled thread

[PATCH 4.2.y-ckt 46/70] libnvdimm: fix smart data retrieval

Started byKamal Mostafa <kamal@canonical.com>
First post2016-04-12 23:00 +0200
Last post2016-04-12 23:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 4.2.y-ckt 46/70] libnvdimm: fix smart data retrieval Kamal Mostafa <kamal@canonical.com> - 2016-04-12 23:00 +0200

#1377179 — [PATCH 4.2.y-ckt 46/70] libnvdimm: fix smart data retrieval

FromKamal Mostafa <kamal@canonical.com>
Date2016-04-12 23:00 +0200
Subject[PATCH 4.2.y-ckt 46/70] libnvdimm: fix smart data retrieval
Message-ID<rndzH-5be-7@gated-at.bofh.it>
4.2.8-ckt8 -stable review patch.  If anyone has any objections, please let me know.

---8<------------------------------------------------------------

From: Dan Williams <dan.j.williams@intel.com>

commit 211291126698c8f047617565b2e2e7f822f86354 upstream.

It appears that smart data retrieval has been broken the since the
initial implementation.  Fix the payload size to be 128-bytes per the
specification.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
---
 drivers/nvdimm/bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nvdimm/bus.c b/drivers/nvdimm/bus.c
index 496b9b6..5f47356 100644
--- a/drivers/nvdimm/bus.c
+++ b/drivers/nvdimm/bus.c
@@ -335,7 +335,7 @@ static const struct nd_cmd_desc __nd_cmd_dimm_descs[] = {
 	[ND_CMD_IMPLEMENTED] = { },
 	[ND_CMD_SMART] = {
 		.out_num = 2,
-		.out_sizes = { 4, 8, },
+		.out_sizes = { 4, 128, },
 	},
 	[ND_CMD_SMART_THRESHOLD] = {
 		.out_num = 2,
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web