Linux CXL
 help / color / mirror / Atom feed
From: Shiju Jose <shiju.jose@huawei.com>
To: Ravi Jonnalagadda <ravis.opensrc@gmail.com>,
	Jonathan Cameron <jonathan.cameron@huawei.com>
Cc: Michael Tsirkin <mst@redhat.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"armbru@redhat.com" <armbru@redhat.com>,
	Linuxarm <linuxarm@huawei.com>,
	"linux-cxl@vger.kernel.org" <linux-cxl@vger.kernel.org>,
	Ravi Shankar <venkataravis@micron.com>
Subject: RE: [PATCH qemu v4 3/5] hw/cxl/events: Updates for rev3.2 general media event record
Date: Thu, 5 Feb 2026 10:58:12 +0000	[thread overview]
Message-ID: <36df3469e1ac47d2a0474329a0f3c47c@huawei.com> (raw)
In-Reply-To: <CALa+Y15jKXUH=9k5aBveN4WN0AK1QW6VHGLHTVVgTF+-2hXvhA@mail.gmail.com>



>-----Original Message-----
>From: Ravi Jonnalagadda <ravis.opensrc@gmail.com>
>Sent: 04 February 2026 21:42
>To: Jonathan Cameron <jonathan.cameron@huawei.com>
>Cc: Michael Tsirkin <mst@redhat.com>; qemu-devel@nongnu.org; Shiju Jose
><shiju.jose@huawei.com>; armbru@redhat.com; Linuxarm
><linuxarm@huawei.com>; linux-cxl@vger.kernel.org; Ravi Shankar
><venkataravis@micron.com>
>Subject: Re: [PATCH qemu v4 3/5] hw/cxl/events: Updates for rev3.2 general
>media event record
>
>On Mon, Jan 19, 2026 at 3:21 AM Jonathan Cameron
><Jonathan.Cameron@huawei.com> wrote:
>>
>> From: Shiju Jose <shiju.jose@huawei.com>
>>
>> CXL spec rev3.2 section 8.2.10.2.1.1 Table 8-57, general media event
>> table has updated with following new fields.
>> 1. Advanced Programmable Corrected Memory Error Threshold Event Flags
>> 2. Corrected Memory Error Count at Event 3. Memory Event Sub-Type 4.
>> Support for component ID in the PLDM format.
>>
>> Add updates for the above spec changes in the CXL general media event
>> reporting and QMP command to inject general media event.
>>
>> In order to have one consistent source of references, update all to
>> references for this command to CXL r3.2.
>>
>> Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
>> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
>> ---
>> v4: Update the spec reference in the related command to 3.2 as well.
>> (Markus)
>> v3: Update all references to 3.2 for consistency.
>> ---
>>  qapi/cxl.json               | 29 +++++++++++++++++++++--------
>>  include/hw/cxl/cxl_events.h |  7 +++++--
>>  hw/mem/cxl_type3.c          | 29 +++++++++++++++++++++++++++++
>>  hw/mem/cxl_type3_stubs.c    |  6 ++++++
>>  4 files changed, 61 insertions(+), 10 deletions(-)
>>
>> diff --git a/qapi/cxl.json b/qapi/cxl.json index
>> 82001c0591d8..4ff66fc6c16c 100644
>> --- a/qapi/cxl.json
>> +++ b/qapi/cxl.json
>>
>>      stw_le_p(&gem.validity_flags, valid_flags);
>>
>> +    if (has_cme_ev_flags) {
>> +        gem.cme_ev_flags = cme_ev_flags;
>> +    } else {
>> +        gem.cme_ev_flags = 0;
>> +    }
>> +
>> +    if (has_cme_count) {
>> +        descriptor |= CXL_GMER_EV_DESC_THRESHOLD_EVENT;
>
>The modification to 'descriptor' here is not written back to gem.descriptor which
>was assigned earlier in this function.
>
>Suggest moving gem.descriptor assignment after this block, similar to how
>valid_flags is handled in this same function.
>
Thanks Ravi.
Will  fix.

>>  void qmp_cxl_inject_dram_event(const char *path, CxlEventLog log,
>> --
>> 2.48.1
>>
>>

Thanks,
Shiju

  reply	other threads:[~2026-02-05 10:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-19 11:15 [PATCH qemu v4 0/5] cxl: r3.2 specification event updates Jonathan Cameron
2026-01-19 11:15 ` [PATCH qemu v4 1/5] qapi: cxl: Refactor CXL event injection for common commands arguments Jonathan Cameron
2026-02-04 21:34   ` Ravi Jonnalagadda
2026-01-19 11:15 ` [PATCH qemu v4 2/5] hw/cxl/events: Update for rev3.2 common event record format Jonathan Cameron
2026-02-04 21:35   ` Ravi Jonnalagadda
2026-01-19 11:15 ` [PATCH qemu v4 3/5] hw/cxl/events: Updates for rev3.2 general media event record Jonathan Cameron
2026-02-04 21:42   ` Ravi Jonnalagadda
2026-02-05 10:58     ` Shiju Jose [this message]
2026-01-19 11:15 ` [PATCH qemu v4 4/5] hw/cxl/events: Updates for rev3.2 DRAM " Jonathan Cameron
2026-02-04 21:44   ` Ravi Jonnalagadda
2026-01-19 11:15 ` [PATCH qemu v4 5/5] hw/cxl/events: Updates for rev3.2 memory module " Jonathan Cameron
2026-02-04 21:46   ` Ravi Jonnalagadda
2026-01-19 12:15 ` [PATCH qemu v4 0/5] cxl: r3.2 specification event updates Markus Armbruster

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=36df3469e1ac47d2a0474329a0f3c47c@huawei.com \
    --to=shiju.jose@huawei.com \
    --cc=armbru@redhat.com \
    --cc=jonathan.cameron@huawei.com \
    --cc=linux-cxl@vger.kernel.org \
    --cc=linuxarm@huawei.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=ravis.opensrc@gmail.com \
    --cc=venkataravis@micron.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox