From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: Davidlohr Bueso <dave@stgolabs.net>
Cc: <dan.j.williams@intel.com>, <fan.ni@samsung.com>,
<a.manzanares@samsung.com>, <linux-cxl@vger.kernel.org>
Subject: Re: [PATCH 1/2] hw/cxl: Update comments for Get Log
Date: Fri, 4 Aug 2023 14:29:54 +0100 [thread overview]
Message-ID: <20230804142954.00003b8a@Huawei.com> (raw)
In-Reply-To: <20230728165705.5889-2-dave@stgolabs.net>
On Fri, 28 Jul 2023 09:57:04 -0700
Davidlohr Bueso <dave@stgolabs.net> wrote:
> The current notes regarding some of the literature in the spec
> no longer applies, update from 2.0 to 3.0.
>
> Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
Hi Davidlohr,
Thanks for tidying this bit up.
We aren't doing great on consistency of how we list the version numbers
in the QEMU code, but I'd like to definitely make it easier to tell
what is revision and what is section.
So I've tweak your changes here to the format
/* CXL r3.0 section xxxxxx: Section title */
and put it on top of my tree (I'll push out once I've finished queuing anything
else that is ready up on top.
Thanks,
Jonathan
> ---
> hw/cxl/cxl-mailbox-utils.c | 10 ++--------
> 1 file changed, 2 insertions(+), 8 deletions(-)
>
> diff --git a/hw/cxl/cxl-mailbox-utils.c b/hw/cxl/cxl-mailbox-utils.c
> index 2819914e8d09..5152a83c6fdd 100644
> --- a/hw/cxl/cxl-mailbox-utils.c
> +++ b/hw/cxl/cxl-mailbox-utils.c
> @@ -608,7 +608,7 @@ static const QemuUUID cel_uuid = {
> 0x96, 0xb1, 0x62, 0x3b, 0x3f, 0x17)
> };
>
> -/* 8.2.9.4.1 */
> +/* CXL 3.0 8.2.9.5.1 */
> static CXLRetCode cmd_logs_get_supported(const struct cxl_cmd *cmd,
> uint8_t *payload_in,
> size_t len_in,
> @@ -634,7 +634,7 @@ static CXLRetCode cmd_logs_get_supported(const struct cxl_cmd *cmd,
> return CXL_MBOX_SUCCESS;
> }
>
> -/* 8.2.9.4.2 */
> +/* CXL 3.0 8.2.9.5.2 */
> static CXLRetCode cmd_logs_get_log(const struct cxl_cmd *cmd,
> uint8_t *payload_in,
> size_t len_in,
> @@ -651,12 +651,6 @@ static CXLRetCode cmd_logs_get_log(const struct cxl_cmd *cmd,
> get_log = (void *)payload_in;
>
> /*
> - * 8.2.9.4.2
> - * The device shall return Invalid Parameter if the Offset or Length
> - * fields attempt to access beyond the size of the log as reported by Get
> - * Supported Logs.
> - *
> - * XXX: Spec is wrong, "Invalid Parameter" isn't a thing.
> * XXX: Spec doesn't address incorrect UUID incorrectness.
> *
> * The CEL buffer is large enough to fit all commands in the emulation, so
next prev parent reply other threads:[~2023-08-04 13:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-28 16:57 [qemu PATCH 0/2] cxl: Handle GSL Sub-List Davidlohr Bueso
2023-07-28 16:57 ` [PATCH 1/2] hw/cxl: Update comments for Get Log Davidlohr Bueso
2023-08-04 13:29 ` Jonathan Cameron [this message]
2023-07-28 16:57 ` [PATCH 2/2] hw/cxl: Add the Get Supported Logs Sub-List cmd Davidlohr Bueso
2023-08-04 13:55 ` Jonathan Cameron
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=20230804142954.00003b8a@Huawei.com \
--to=jonathan.cameron@huawei.com \
--cc=a.manzanares@samsung.com \
--cc=dan.j.williams@intel.com \
--cc=dave@stgolabs.net \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox