From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D3CF13375C3 for ; Wed, 14 Jan 2026 18:33:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768415634; cv=none; b=elvHk/6IHgnEb3dxd+Yt3BvUT9b2gaBSqXlSBPvSfH2KIVGqBaCfK9tvQTd68qdF24JQ0gGnWWnt67OFqVE2wSqsf12sNZal92VNlX+RcnYor5N0LMZa3NWLYf3P1EdlL3xTwJegMeeoguY64BGzQDIoVtqcjilx2m/Jhb70W98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768415634; c=relaxed/simple; bh=BetuEWsYUuH/1rXSpE3v2Fs0P2rSJYGpA5JI6Znx0yI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=N5yqGeMp6speZ4ezBBc59HFFV5OFX2QMp/S52QCUfuZhS2TuUMPyzh0xRP+2Dj27IYxEwV80afAhEr321+PbiASBvLWUacjs+UtgMSdzlmUXW/yiuXhLJUjIQY5VY6hw2FoO8HTpP/FIjSi+KTnljY7HANWt/fiYAqrRE8rbFRA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Xw2O/Qx6; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Xw2O/Qx6" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1768415627; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TtLuvrn6a4KY4sJu9DGVXcHRxVa+NW6NOmxvH2VUWW4=; b=Xw2O/Qx63Oa9yC8avoK589DTpGLSnTXtYjTRh58FMrf9Z4Puzrq5fim6f41vTykVyE9EEH oFf+Oi2EnMIjICxqqRS+V66dSpb/sTxdxrCU3Y+WNH0JSDvAb40HaMi2nIsWLxxPmvG8QZ SItRLzlI8crAVGm+doW9GNwe/FMOYjw= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-330-LZnIsgYVP5yVJbCMgZapOg-1; Wed, 14 Jan 2026 13:33:45 -0500 X-MC-Unique: LZnIsgYVP5yVJbCMgZapOg-1 X-Mimecast-MFC-AGG-ID: LZnIsgYVP5yVJbCMgZapOg_1768415624 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4B895195609D; Wed, 14 Jan 2026 18:33:44 +0000 (UTC) Received: from blackfin.pond.sub.org (unknown [10.45.242.32]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id DFF2A30002DC; Wed, 14 Jan 2026 18:33:43 +0000 (UTC) Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id 81A3721E692D; Wed, 14 Jan 2026 19:33:41 +0100 (CET) From: Markus Armbruster To: Jonathan Cameron Cc: Michael Tsirkin , , , , , , Ravi Shankar Subject: Re: [PATCH qemu v3 5/5] hw/cxl/events: Updates for rev3.2 memory module event record In-Reply-To: <20260114142713.617806-6-Jonathan.Cameron@huawei.com> (Jonathan Cameron's message of "Wed, 14 Jan 2026 14:27:13 +0000") References: <20260114142713.617806-1-Jonathan.Cameron@huawei.com> <20260114142713.617806-6-Jonathan.Cameron@huawei.com> Date: Wed, 14 Jan 2026 19:33:41 +0100 Message-ID: <87o6mwyrga.fsf@pond.sub.org> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-cxl@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Jonathan Cameron writes: > From: Shiju Jose > > CXL spec rev3.2 section 8.2.10.2.1.3 Table 8-50, memory module > event record has updated with following new fields. > 1. Validity Flags > 2. Component Identifier > 3. Device Event Sub-Type > > Add updates for the above spec changes in the CXL memory module > event reporting and QMP command to inject memory module event. > > Updated all references for this command to the CXL r3.2 > specification. > > Signed-off-by: Shiju Jose > Signed-off-by: Jonathan Cameron > > --- > V3: Update spec references for whole command (Markus) > --- > qapi/cxl.json | 26 ++++++++++++++++++-------- > include/hw/cxl/cxl_events.h | 7 +++++-- > hw/mem/cxl_type3.c | 20 ++++++++++++++++++++ > hw/mem/cxl_type3_stubs.c | 4 ++++ > 4 files changed, 47 insertions(+), 10 deletions(-) > > diff --git a/qapi/cxl.json b/qapi/cxl.json > index 630c37d64eed..fc2ff2e080b4 100644 > --- a/qapi/cxl.json > +++ b/qapi/cxl.json > @@ -214,20 +214,20 @@ > ## > # @CXLMemModuleEvent: > # > -# Event record for a Memory Module Event (CXL r3.0 8.2.9.2.1.3). > +# Event record for a Memory Module Event (CXL r3.2 8.2.10.2.1.3). > # > -# @type: Device Event Type. See CXL r3.0 Table 8-45 Memory Module > +# @type: Device Event Type. See CXL r3.2 Table 8-59 Memory Module > # Event Record for bit definitions for bit definiions. > # > -# @health-status: Overall health summary bitmap. See CXL r3.0 Table > -# 8-100 Get Health Info Output Payload, Health Status for bit > +# @health-status: Overall health summary bitmap. See CXL r3.2 Table > +# 8-148 Get Health Info Output Payload, Health Status for bit > # definitions. > # > -# @media-status: Overall media health summary. See CXL r3.0 Table > -# 8-100 Get Health Info Output Payload, Media Status for bit > +# @media-status: Overall media health summary. See CXL r3.2 Table > +# 8-148 Get Health Info Output Payload, Media Status for bit > # definitions. > # > -# @additional-status: See CXL r3.0 Table 8-100 Get Health Info Output > +# @additional-status: See CXL r3.2 Table 8-148 Get Health Info Output > # Payload, Additional Status for subfield definitions. > # > # @life-used: Percentage (0-100) of factory expected life span. > @@ -243,6 +243,14 @@ > # @corrected-persistent-error-count: Total number of correctable > # errors in persistent memory > # > +# @component-id: Device specific component identifier for the event. > +# May describe a field replaceable sub-component of the device. > +# > +# @is-comp-id-pldm: This flag specifies whether the device-specific > +# component identifier format follows PLDM. > +# > +# @sub-type: Device event sub-type. > +# > # Since: 8.1 > ## > { 'struct': 'CXLMemModuleEvent', > @@ -252,7 +260,9 @@ > 'life-used': 'uint8', 'temperature' : 'int16', > 'dirty-shutdown-count': 'uint32', > 'corrected-volatile-error-count': 'uint32', > - 'corrected-persistent-error-count': 'uint32' > + 'corrected-persistent-error-count': 'uint32', > + '*component-id': 'str', '*is-comp-id-pldm':'bool', > + 'sub-type':'uint8' > }} > > ## # @cxl-inject-memory-module-event: # # Inject an event record for a Memory Module Event (CXL r3.0 # 8.2.9.2.1.3). This event includes a copy of the Device Health info Should we update this reference as well? # at the time of the event. # # Since: 8.1 ## { 'command': 'cxl-inject-memory-module-event', 'data': 'CXLMemModuleEvent' } [...]