Re: [PATCH RFC v2 17/18] tools/testing/cxl: Add DC Regions to mock mem data

From: Ira Weiny
Date: Wed Sep 06 2023 - 17:18:37 EST


Jonathan Cameron wrote:
> On Mon, 28 Aug 2023 22:21:08 -0700
> Ira Weiny <ira.weiny@xxxxxxxxx> wrote:
>
> > To test DC regions the mock memory devices will need to store
> > information about the regions and manage fake extent data.
> >
> > Define mock_dc_region information within the mock memory data. Add
> > sysfs entries on the mock device to inject and delete extents.
> >
> > The inject format is <start>:<length>:<tag>
> > The delete format is <start>
> >
> > Add DC mailbox commands to the CEL and implement those commands.
> >
> > Signed-off-by: Ira Weiny <ira.weiny@xxxxxxxxx>
>
> Looks fine to me. Totally trivial comment inline.
>
> FWIW
> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>
>
>
> > +
> > static int mock_gsl(struct cxl_mbox_cmd *cmd)
> > {
> > if (cmd->size_out < sizeof(mock_gsl_payload))
> > @@ -1315,6 +1429,148 @@ static int mock_activate_fw(struct cxl_mockmem_data *mdata,
> > return -EINVAL;
> > }
> >
>
> Bit inconsistent on whether there are one or two blank lines between functions.

I missed this one in my internal review. There should be no
inconsistency... always 1 unless I messed up! :-D

Thanks,
Ira