From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: peng guo <engguopeng@buaa.edu.cn>
Cc: <fan.ni@samsung.com>, <linux-cxl@vger.kernel.org>
Subject: Re: [PATCH v2] hw/cxl: fix physical address field in get scan media results output
Date: Fri, 23 Aug 2024 16:03:35 +0100 [thread overview]
Message-ID: <20240823160335.000068ea@Huawei.com> (raw)
In-Reply-To: <20240819154206.16456-1-engguopeng@buaa.edu.cn>
On Mon, 19 Aug 2024 23:42:06 +0800
peng guo <engguopeng@buaa.edu.cn> wrote:
> When using the mailbox command get scan media results, the scan media
> restart physical address field in the ouput palyload is not 64-byte
> aligned.
>
> This patch removed the error source of the restart physical address.
>
> The Scan Media Restart Physical Address is the location from which the
> host should restart the Scan Media operation. [5:0] bits are reserved.
> Refer to CXL spec r3.1 Table 8-146
>
> Fixes: 89b5cfcc31e6 ("hw/cxl: Add get scan media results cmd support")
> Signed-off-by: peng guo <engguopeng@buaa.edu.cn>
For qemu patches, definitely need to include the qemu-devel list.
For this please also +CC Michael Tsirkin <mst@redhat.com>
I guess this is a cut and paste issue from the poison code.
Send a v3 with
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
but include a link tag to
Link: https://lore.kernel.org/linux-cxl/20240819154206.16456-1-engguopeng@buaa.edu.cn/
So MST + qemu list readers can find this thread.
Thanks,
Jonathan
> ---
> v1 -> v2: Add module name to title
>
> hw/cxl/cxl-mailbox-utils.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/cxl/cxl-mailbox-utils.c b/hw/cxl/cxl-mailbox-utils.c
> index 3ebbd32e1028..9258e48f95ee 100644
> --- a/hw/cxl/cxl-mailbox-utils.c
> +++ b/hw/cxl/cxl-mailbox-utils.c
> @@ -2076,7 +2076,7 @@ static CXLRetCode cmd_media_get_scan_media_results(const struct cxl_cmd *cmd,
>
> start = ROUND_DOWN(ent->start, 64ull);
> stop = ROUND_DOWN(ent->start, 64ull) + ent->length;
> - stq_le_p(&out->records[i].addr, start | (ent->type & 0x7));
> + stq_le_p(&out->records[i].addr, start);
> stl_le_p(&out->records[i].length, (stop - start) / CXL_CACHE_LINE_SIZE);
> i++;
>
prev parent reply other threads:[~2024-08-23 15:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-19 15:42 [PATCH v2] hw/cxl: fix physical address field in get scan media results output peng guo
2024-08-23 15:03 ` Jonathan Cameron [this message]
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=20240823160335.000068ea@Huawei.com \
--to=jonathan.cameron@huawei.com \
--cc=engguopeng@buaa.edu.cn \
--cc=fan.ni@samsung.com \
--cc=linux-cxl@vger.kernel.org \
/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.