Re: [PATCH v5 1/1] cxl/pmem: debug invalid serial number data

From: Alison Schofield
Date: Wed Feb 19 2025 - 14:56:06 EST


On Wed, Feb 19, 2025 at 12:00:29PM +0800, Yuquan Wang wrote:
> In a nvdimm interleave-set each device with an invalid or zero
> serial number may cause pmem region initialization to fail, but in
> cxl case such device could still set cookies of nd_interleave_set
> and create a nvdimm pmem region.
>
> This adds the validation of serial number in cxl pmem region creation.
> The event of no serial number would cause to fail to set the cookie
> and pmem region.
>
> For cxl-test to work properly, always +1 on mock device's serial
> number.
>
> Signed-off-by: Yuquan Wang <wangyuquan1236@xxxxxxxxxxxxxx>

Re-applying my tag-

Reviewed-by: Alison Schofield <alison.schofield@xxxxxxxxx>

snip
>