Re: [PATCH] cxl/core/mbox: get next_persistent_bytes by next_persistent_cap

From: Huaisheng Ye
Date: Wed Dec 06 2023 - 21:30:14 EST




On 2023-12-06 05:48, Ira Weiny wrote:
Huaisheng Ye wrote:
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@xxxxxxxxx>
Do we have a fixes tag for this? Was there a bug associated with this
find?

Ira

Hi Ira,

This bug could be found in cxl-next branch.
It looks like just cxl-pci would calculate next_persistent_bytes during
probe. Afterwards, it will no longer be accessed by current cxl drivers.

For v78 ndctl, cxl_cmd_partition_get_next_persistent_size is calculated from
next_persistent, which is correct.

May I have your Reviewed-by?

Huaisheng