Linux CXL
 help / color / mirror / Atom feed
* [PATCH] cxl/core/mbox: get next_persistent_bytes by next_persistent_cap
@ 2023-12-01 16:40 Huaisheng Ye
  2023-12-05 21:48 ` Ira Weiny
  0 siblings, 1 reply; 4+ messages in thread
From: Huaisheng Ye @ 2023-12-01 16:40 UTC (permalink / raw)
  To: dan.j.williams, ira.weiny; +Cc: linux-cxl, linux-kernel, Huaisheng Ye

According to CXL 2.0 8.2.9.5.2.1 table 176, the next Persistent
Bytes should be calculated by next Persistent Capacity.

Signed-off-by: Huaisheng Ye <huaisheng.ye@intel.com>
---
 drivers/cxl/core/mbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cxl/core/mbox.c b/drivers/cxl/core/mbox.c
index 36270dcfb42e..7b8ec73ca37f 100644
--- a/drivers/cxl/core/mbox.c
+++ b/drivers/cxl/core/mbox.c
@@ -1069,7 +1069,7 @@ static int cxl_mem_get_partition_info(struct cxl_memdev_state *mds)
 	mds->next_volatile_bytes =
 		le64_to_cpu(pi.next_volatile_cap) * CXL_CAPACITY_MULTIPLIER;
 	mds->next_persistent_bytes =
-		le64_to_cpu(pi.next_volatile_cap) * CXL_CAPACITY_MULTIPLIER;
+		le64_to_cpu(pi.next_persistent_cap) * CXL_CAPACITY_MULTIPLIER;
 
 	return 0;
 }
-- 
2.39.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-12-07  4:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-01 16:40 [PATCH] cxl/core/mbox: get next_persistent_bytes by next_persistent_cap Huaisheng Ye
2023-12-05 21:48 ` Ira Weiny
2023-12-07  2:29   ` Huaisheng Ye
2023-12-07  4:51     ` Ira Weiny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox