All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
To: Dave Jiang <dave.jiang@intel.com>
Cc: <linux-cxl@vger.kernel.org>, <dan.j.williams@intel.com>,
	<vishal.l.verma@intel.com>, <ira.weiny@intel.com>,
	<alison.schofield@intel.com>
Subject: Re: [PATCH v5 3/6] tools/testing/cxl: Add interleave check support to mock cxl port device
Date: Tue, 30 Aug 2022 16:16:44 +0100	[thread overview]
Message-ID: <20220830161644.000047a0@huawei.com> (raw)
In-Reply-To: <166144367188.745916.2815396662040037518.stgit@djiang5-desk3.ch.intel.com>

On Thu, 25 Aug 2022 09:07:51 -0700
Dave Jiang <dave.jiang@intel.com> wrote:

> Attach the cxl mock hdm to the port device to allow cxl_interleave_capable()
> to check the interleave configuration. Set the interleave_mask as well
> to support the new verification code.
> 
> Reviewed-by: Dan Williams <dan.j.williams@intel.com>
> Signed-off-by: Dave Jiang <dave.jiang@intel.com>

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

> ---
>  tools/testing/cxl/test/cxl.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tools/testing/cxl/test/cxl.c b/tools/testing/cxl/test/cxl.c
> index 4b361ed63333..85000d1b5812 100644
> --- a/tools/testing/cxl/test/cxl.c
> +++ b/tools/testing/cxl/test/cxl.c
> @@ -398,6 +398,8 @@ static struct cxl_hdm *mock_cxl_setup_hdm(struct cxl_port *port)
>  		return ERR_PTR(-ENOMEM);
>  
>  	cxlhdm->port = port;
> +	cxlhdm->interleave_mask = GENMASK(14, 8);
> +	cxlhdm->interleave_cap = CXL_HDM_INTERLEAVE_CAP_BASELINE;
>  	dev_set_drvdata(&port->dev, cxlhdm);
>  	return cxlhdm;
>  }
> 
> 


  reply	other threads:[~2022-08-30 15:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-25 16:07 [PATCH v5 0/6] Add sanity check for interleave setup Dave Jiang
2022-08-25 16:07 ` [PATCH v5 1/6] cxl: Add check for result of interleave ways plus granularity combo Dave Jiang
2022-08-30 15:17   ` Jonathan Cameron
2022-08-25 16:07 ` [PATCH v5 2/6] cxl: Add CXL spec v3.0 interleave support Dave Jiang
2022-08-25 16:07 ` [PATCH v5 3/6] tools/testing/cxl: Add interleave check support to mock cxl port device Dave Jiang
2022-08-30 15:16   ` Jonathan Cameron [this message]
2022-08-25 16:07 ` [PATCH v5 4/6] cxl: change cxl_port_attribute_groups naming to avoid confusion Dave Jiang
2022-08-25 16:08 ` [PATCH v5 5/6] cxl: export interleave address mask as port sysfs attribute Dave Jiang
2022-08-25 16:08 ` [PATCH v5 6/6] cxl: export intereleave capability " Dave Jiang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220830161644.000047a0@huawei.com \
    --to=jonathan.cameron@huawei.com \
    --cc=alison.schofield@intel.com \
    --cc=dan.j.williams@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=ira.weiny@intel.com \
    --cc=linux-cxl@vger.kernel.org \
    --cc=vishal.l.verma@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.