All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anisa Su <anisa.su887@gmail.com>
To: Davidlohr Bueso <dave@stgolabs.net>
Cc: mst@redhat.com, jic23@kernel.org, junjie.cao@linux.dev,
	qemu-devel@nongnu.org, linux-cxl@vger.kernel.org
Subject: Re: [PATCH 2/4] hw/cxl: Fix CEL command effect bit positions
Date: Wed, 2 Dec 2026 07:44:13 +0900	[thread overview]
Message-ID: <aw9NvUlRNIfs21rM@cxlqual> (raw)
In-Reply-To: <20261130154517.3480390-3-dave@stgolabs.net>

On Mon, Nov 30, 2026 at 07:45:15AM -0800, Davidlohr Bueso wrote:
> The command effects from bit 7 onwards are off by one, and one of them
> is there twice. Per CXL r4.0 Table 8-254 (CEL Entry Structure), bit 7
> is Secondary Mailbox Supported, bit 8 Request Abort Background
> Operation Supported, bit 9 CEL[11:10] Valid, and bits 10 and 11 the
> configuration changes after a Conventional and after a CXL Reset.
> 
> As a result every abortable background command advertised Secondary
> Mailbox Supported instead, so software could not find out that Request
> Abort Background Operation applies to it, and the FM DCD commands set
> the reserved bit 12.
> 
> Fixes: 98cbac128f1c ("hw/cxl: Support aborting background commands")
> Fixes: 1befc7bde30d ("hw/cxl: mailbox-utils: 0x5602 - FMAPI Set DC Region Config")
> Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>

Thanks for fixing.
Reviewed-by: Anisa Su <anisa.su@samsung.com>
> ---
>  include/hw/cxl/cxl_mailbox.h | 11 +++++------
>  1 file changed, 5 insertions(+), 6 deletions(-)
> 
> diff --git a/include/hw/cxl/cxl_mailbox.h b/include/hw/cxl/cxl_mailbox.h
> index a05d7cb5b7d1..752758219792 100644
> --- a/include/hw/cxl/cxl_mailbox.h
> +++ b/include/hw/cxl/cxl_mailbox.h
> @@ -15,11 +15,10 @@
>  #define CXL_MBOX_IMMEDIATE_LOG_CHANGE (1 << 4)
>  #define CXL_MBOX_SECURITY_STATE_CHANGE (1 << 5)
>  #define CXL_MBOX_BACKGROUND_OPERATION (1 << 6)
> -#define CXL_MBOX_BACKGROUND_OPERATION_ABORT (1 << 7)
> -#define CXL_MBOX_SECONDARY_MBOX_SUPPORTED (1 << 8)
> -#define CXL_MBOX_REQUEST_ABORT_BACKGROUND_OP_SUPPORTED (1 << 9)
> -#define CXL_MBOX_CEL_10_TO_11_VALID (1 << 10)
> -#define CXL_MBOX_CONFIG_CHANGE_CONV_RESET (1 << 11)
> -#define CXL_MBOX_CONFIG_CHANGE_CXL_RESET (1 << 12)
> +#define CXL_MBOX_SECONDARY_MBOX_SUPPORTED (1 << 7)
> +#define CXL_MBOX_BACKGROUND_OPERATION_ABORT (1 << 8)
> +#define CXL_MBOX_CEL_10_TO_11_VALID (1 << 9)
> +#define CXL_MBOX_CONFIG_CHANGE_CONV_RESET (1 << 10)
> +#define CXL_MBOX_CONFIG_CHANGE_CXL_RESET (1 << 11)
>  
>  #endif
> -- 
> 2.39.5
> 


  reply	other threads:[~2026-12-01 22:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 15:45 [PATCH -qemu 0/4] hw/cxl: Mailbox fixes Davidlohr Bueso
2026-11-30 15:45 ` [PATCH 1/4] hw/cxl: Use runtime for bg cmd running semantics Davidlohr Bueso
2026-11-30 15:45 ` [PATCH 2/4] hw/cxl: Fix CEL command effect bit positions Davidlohr Bueso
2026-12-01 22:44   ` Anisa Su [this message]
2026-11-30 15:45 ` [PATCH 3/4] hw/cxl: Set CEL[11:10] Valid for the FM DCD commands Davidlohr Bueso
2026-12-01 23:25   ` Anisa Su
2026-11-30 15:45 ` [PATCH 4/4] hw/cxl: Fix out of bounds read of the CEL in Get Log Davidlohr Bueso

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=aw9NvUlRNIfs21rM@cxlqual \
    --to=anisa.su887@gmail.com \
    --cc=dave@stgolabs.net \
    --cc=jic23@kernel.org \
    --cc=junjie.cao@linux.dev \
    --cc=linux-cxl@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.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.