cxl: Additional RAS features support.
cover cxl: Additional RAS features support.
These two features have been used in testing the related EDAC RAS
features drivers in Linux which are now upstream. Only minor tweaks
from the second part of:
https://lore.kernel.org/qemu-devel/[email protected]/
[PATCH v6 0/8] hw/cxl: Update CXL events to rev3.2 and add maintenance support for memory repair features
I've split that series up as the two parts were only slightly connected. However there is some churn if this is applied without the other part of Shiju's posted series. That was sent a few minutes ago as:
https://lore.kernel.org/qemu-devel/[email protected]/
Based on: [PATCH qemu for 10.2 0/5] cxl: r3.2 specification events updates. Based on: [email protected]
Davidlohr Bueso (1):
hw/cxl: Add support for Maintenance command and Post Package Repair
(PPR)
Shiju Jose (2):
hw/cxl/cxl-mailbox-utils: Move declaration of scrub and ECS feature
attributes in cmd_features_set_feature()
hw/cxl: Add emulation for memory sparing control feature
include/hw/cxl/cxl_device.h | 145 +++++++++ include/hw/cxl/cxl_events.h | 47 +++ hw/cxl/cxl-mailbox-utils.c | 566 +++++++++++++++++++++++++++++++++++- hw/mem/cxl_type3.c | 169 +++++++++++ 4 files changed, 915 insertions(+), 12 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/3 hw/cxl/cxl-mailbox-utils: Move declaration of scrub and ECS feature attributes in cmd_features_set_feature()
From: Shiju Jose <[email protected]>
Move the declaration of scrub and ECS feature attributes in cmd_features_set_feature() to the local scope where they are used.
--- hw/cxl/cxl-mailbox-utils.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-)
hw/cxl/cxl-mailbox-utils.c +7 -10
@@ -1351,10 +1351,6 @@ static CXLRetCode cmd_features_set_feature(const struct cxl_cmd *cmd, CXLCCI *cci) {CXLSetFeatureInHeader *hdr = (void *)payload_in; -CXLMemPatrolScrubWriteAttrs *ps_write_attrs; -CXLMemPatrolScrubSetFeature *ps_set_feature; -CXLMemECSWriteAttrs *ecs_write_attrs; -CXLMemECSSetFeature *ecs_set_feature;CXLSetFeatureInfo *set_feat_info;uint16_t bytes_to_copy =0 ;uint8_t data_transfer_flag;
@@ -1396,13 +1392,14 @@ static CXLRetCode cmd_features_set_feature(const struct cxl_cmd *cmd, }if (qemu_uuid_is_equal (&hdr->uuid, &patrol_scrub_uuid)) { +CXLMemPatrolScrubSetFeature *ps_set_feature = (void *)payload_in; +CXLMemPatrolScrubWriteAttrs *ps_write_attrs = + &ps_set_feature->feat_data; +if (hdr->version !=CXL_MEMDEV_PS_SET_FEATURE_VERSION ) {return CXL_MBOX_UNSUPPORTED ; } - ps_set_feature = (void *)payload_in; - ps_write_attrs = &ps_set_feature->feat_data; -if ((uint32_t )hdr->offset + bytes_to_copy >sizeof (ct3d->patrol_scrub_wr_attrs)) {return CXL_MBOX_INVALID_PAYLOAD_LENGTH ;
@@ -1423,13 +1420,13 @@ static CXLRetCode cmd_features_set_feature(const struct cxl_cmd *cmd, } }else if (qemu_uuid_is_equal (&hdr->uuid, &ecs_uuid)) { +CXLMemECSSetFeature *ecs_set_feature = (void *)payload_in; +CXLMemECSWriteAttrs *ecs_write_attrs = ecs_set_feature->feat_data; +if (hdr->version !=CXL_ECS_SET_FEATURE_VERSION ) {return CXL_MBOX_UNSUPPORTED ; } - ecs_set_feature = (void *)payload_in; - ecs_write_attrs = ecs_set_feature->feat_data; -if ((uint32_t )hdr->offset + bytes_to_copy >sizeof (ct3d->ecs_wr_attrs)) {return CXL_MBOX_INVALID_PAYLOAD_LENGTH ;
Signature · 1 line
2.48.1
PATCH 2/3 hw/cxl: Add support for Maintenance command and Post Package Repair (PPR)
In reply to Jonathan CameronFrom: Davidlohr Bueso <[email protected]>
This adds initial support for the Maintenance command, specifically the soft and hard PPR operations on a dpa. The implementation allows to be executed at runtime, therefore semantically, data is retained and CXL.mem requests are correctly processed.
Keep track of the requests upon a general media or DRAM event.
Post Package Repair (PPR) maintenance operations may be supported by CXL devices that implement CXL.mem protocol. A PPR maintenance operation requests the CXL device to perform a repair operation on its media. For example, a CXL device with DRAM components that support PPR features may implement PPR Maintenance operations. DRAM components may support two types of PPR, hard PPR (hPPR), for a permanent row repair, and Soft PPR (sPPR), for a temporary row repair. Soft PPR is much faster than hPPR, but the repair is lost with a power cycle.
CXL spec 3.2 section 8.2.10.7.1.2 describes the device's sPPR (soft PPR) maintenance operation and section 8.2.10.7.1.3 describes the device's hPPR (hard PPR) maintenance operation feature.
CXL spec 3.2 section 8.2.10.7.2.1 describes the sPPR feature discovery and configuration.
CXL spec 3.2 section 8.2.10.7.2.2 describes the hPPR feature discovery and configuration.
CXL spec 3.2 section 8.2.10.2.1.4 Table 8-60 describes the Memory Sparing Event Record.
--- include/hw/cxl/cxl_device.h | 112 +++++++++++++++++ include/hw/cxl/cxl_events.h | 42 +++++++ hw/cxl/cxl-mailbox-utils.c | 240 +++++++++++++++++++++++++++++++++++- hw/mem/cxl_type3.c | 125 +++++++++++++++++++ 4 files changed, 517 insertions(+), 2 deletions(-)
include/hw/cxl/cxl_device.h +112 -0
@@ -430,6 +430,12 @@ static inline bool cxl_dev_media_disabled(CXLDeviceState *cxl_dstate)uint64_t dev_status_reg = cxl_dstate->mbox_reg_state64[R_CXL_MEM_DEV_STS ];return FIELD_EX64 (dev_status_reg,CXL_MEM_DEV_STS ,MEDIA_STATUS ) ==0x3 ; } + +static inline bool maintenance_running (CXLCCI *cci) +{ +return cci->bg.runtime && cci->bg.opcode ==0x0600 ; +} +static inline bool scan_media_running (CXLCCI *cci) {return !!cci->bg.runtime && cci->bg.opcode ==0x4304 ;
@@ -443,6 +449,23 @@ typedef struct CXLError { typedef QTAILQ_HEAD(, CXLError) CXLErrorList; +typedef struct CXLMaintenance { +uint64_t dpa; +uint16_t validity_flags; +uint8_t channel; +uint8_t rank; +uint32_t nibble_mask; +uint8_t bank_group; +uint8_t bank; +uint32_t row; +uint16_t column; +uint8_t component_id[CXL_EVENT_GEN_MED_COMP_ID_SIZE ]; +uint8_t sub_channel; +QLIST_ENTRY (CXLMaintenance) node; +}CXLMaintenance ; + +typedef QLIST_HEAD(, CXLMaintenance) CXLMaintenanceList; + typedef struct CXLPoison { uint64_t start, length; uint8_t type;
@@ -455,6 +478,87 @@ typedef struct CXLPoison { typedef QLIST_HEAD(, CXLPoison) CXLPoisonList;#define CXL_POISON_LIST_LIMIT 256 +/* CXL memory maintenance operation */ +/* +* CXL r3.2 section 8.2.10.7.2, Table 8-125: Mainteance Operation: +* Classes, Subclasses, and Feature UUIDs +*/ +#define CXL_MEMDEV_MAINT_CLASS_NO_OP 0x0 +#define CXL_MEMDEV_MAINT_CLASS_PPR 0x1 +#define CXL_MEMDEV_MAINT_CLASS_SPARING 0x2 +#define CXL_MEMDEV_MAINT_CLASS_DEV_BUILT_IN_TEST 0x3 + +#define CXL_MEMDEV_MAINT_SUBCLASS_SPPR 0x0 +#define CXL_MEMDEV_MAINT_SUBCLASS_HPPR 0x1 + +#define CXL_MEMDEV_MAINT_SUBCLASS_CACHELINE_SPARING 0x0 +#define CXL_MEMDEV_MAINT_SUBCLASS_ROW_SPARING 0x1 +#define CXL_MEMDEV_MAINT_SUBCLASS_BANK_SPARING 0x2 +#define CXL_MEMDEV_MAINT_SUBCLASS_RANK_SPARING 0x3 + +/* CXL memory Post Package Repair control attributes */ +/* +* CXL r3.2 section 8.2.10.7.2.1, Table 8-128 and 8-129: +* sPPR Feature Readable/Writable Attributes +*/ +typedef struct CXLMemSoftPPRReadAttrs { +uint8_t max_maint_latency; +uint16_t op_caps; +uint16_t op_mode; +uint8_t maint_op_class; +uint8_t maint_op_subclass; +uint8_t rsvd[9 ]; +uint8_t sppr_flags; +uint16_t restriction_flags; +uint8_t sppr_op_mode; +} QEMU_PACKED CXLMemSoftPPRReadAttrs; + +typedef struct CXLMemSoftPPRWriteAttrs { +uint16_t op_mode; +uint8_t sppr_op_mode; +} QEMU_PACKED CXLMemSoftPPRWriteAttrs; + +#define CXL_MEMDEV_SPPR_GET_FEATURE_VERSION 0x03 +#define CXL_MEMDEV_SPPR_SET_FEATURE_VERSION 0x03 +#define CXL_MEMDEV_SPPR_DPA_SUPPORT_FLAG BIT(0) +#define CXL_MEMDEV_SPPR_NIBBLE_SUPPORT_FLAG BIT(1) +#define CXL_MEMDEV_SPPR_MEM_SPARING_EV_REC_CAP_FLAG BIT(2) +#define CXL_MEMDEV_SPPR_DEV_INITIATED_AT_BOOT_CAP_FLAG BIT(3) + +#define CXL_MEMDEV_SPPR_OP_MODE_MEM_SPARING_EV_REC_EN BIT(0) +#define CXL_MEMDEV_SPPR_OP_MODE_DEV_INITIATED_AT_BOOT BIT(1) + +/* +* CXL r3.2 section 8.2.10.7.2.2, Table 8-131 and 8-132: +* hPPR Feature Readable/Writable Attributes +*/ +typedef struct CXLMemHardPPRReadAttrs { +uint8_t max_maint_latency; +uint16_t op_caps; +uint16_t op_mode; +uint8_t maint_op_class; +uint8_t maint_op_subclass; +uint8_t rsvd[9 ]; +uint8_t hppr_flags; +uint16_t restriction_flags; +uint8_t hppr_op_mode; +} QEMU_PACKED CXLMemHardPPRReadAttrs; + +typedef struct CXLMemHardPPRWriteAttrs { +uint16_t op_mode; +uint8_t hppr_op_mode; +} QEMU_PACKED CXLMemHardPPRWriteAttrs; + +#define CXL_MEMDEV_HPPR_GET_FEATURE_VERSION 0x03 +#define CXL_MEMDEV_HPPR_SET_FEATURE_VERSION 0x03 +#define CXL_MEMDEV_HPPR_DPA_SUPPORT_FLAG BIT(0) +#define CXL_MEMDEV_HPPR_NIBBLE_SUPPORT_FLAG BIT(1) +#define CXL_MEMDEV_HPPR_MEM_SPARING_EV_REC_CAP_FLAG BIT(2) +#define CXL_MEMDEV_HPPR_DEV_INITIATED_AT_BOOT_CAP_FLAG BIT(3) + +#define CXL_MEMDEV_HPPR_OP_MODE_MEM_SPARING_EV_REC_EN BIT(0) +#define CXL_MEMDEV_HPPR_OP_MODE_DEV_INITIATED_AT_BOOT BIT(1) +/* CXL memory device patrol scrub control attributes */ typedef struct CXLMemPatrolScrubReadAttrs { uint8_t scrub_cycle_cap;
@@ -605,6 +709,9 @@ struct CXLType3Dev {/* Error injection */ CXLErrorList error_list; +/* Keep track of maintenance requests */ +CXLMaintenanceList maint_list; +/* Poison Injection - cache */ CXLPoisonList poison_list;unsigned int poison_list_cnt;
@@ -617,6 +724,11 @@ struct CXLType3Dev {CXLSetFeatureInfo set_feat_info; +/* PPR control attributes */ +CXLMemSoftPPRReadAttrs soft_ppr_attrs; +CXLMemSoftPPRWriteAttrs soft_ppr_wr_attrs; +CXLMemHardPPRReadAttrs hard_ppr_attrs; +CXLMemHardPPRWriteAttrs hard_ppr_wr_attrs;/* Patrol scrub control attributes */ CXLMemPatrolScrubReadAttrs patrol_scrub_attrs;CXLMemPatrolScrubWriteAttrs patrol_scrub_wr_attrs;
include/hw/cxl/cxl_events.h +42 -0
46 lines not on this page · raw message
hw/cxl/cxl-mailbox-utils.c +238 -2
300 lines not on this page · raw message
hw/mem/cxl_type3.c +125 -0
161 lines not on this page · raw message
Signature · 1 line
2.48.1
PATCH 3/3 hw/cxl: Add emulation for memory sparing control feature
In reply to Jonathan CameronFrom: Shiju Jose <[email protected]>
Memory sparing is defined as a repair function that replaces a portion of memory with a portion of functional memory at that same DPA. The subclasses for this operation vary in terms of the scope of the sparing being performed. The Cacheline sparing subclass refers to a sparing action that can replace a full cacheline. Row sparing is provided as an alternative to PPR sparing functions and its scope is that of a single DDR row. Bank sparing allows an entire bank to be replaced. Rank sparing is defined as an operation in which an entire DDR rank is replaced.
Memory sparing maintenance operations may be supported by CXL devices that implement CXL.mem protocol. A sparing maintenance operation requests the CXL device to perform a repair operation on its media.
For example, a CXL device with DRAM components that support memory sparing features may implement sparing Maintenance operations.
The host may issue a query command by setting Query Resources flag in the Input Payload (CXL Spec 3.2 Table 8-120) to determine availability of sparing resources for a given address. In response to a query request, the device shall report the resource availability by producing the Memory Sparing Event Record (CXL Spec 3.2 Table 8-60) in which the Channel, Rank, Nibble Mask, Bank Group, Bank, Row, Column, Sub-Channel fields are a copy of the values specified in the request.
During the execution of a sparing maintenance operation, a CXL memory device:
- May or may not retain data
- May or may not be able to process CXL.mem requests correctly. These CXL memory device capabilities are specified by restriction flags in the memory sparing feature readable attributes.
When a CXL device identifies error on a memory component, the device may inform the host about the need for a memory sparing maintenance operation by using DRAM event record, where the 'maintenance needed' flag may set. The event record contains some of the DPA, Channel, Rank, Nibble Mask, Bank Group, Bank, Row, Column, Sub-Channel fields that should be repaired. The userspace tool requests for maintenance operation if the 'maintenance needed' flag set in the CXL DRAM error record.
CXL spec 3.2 section 8.2.10.7.2.3 describes the memory sparing feature discovery and configuration.
CXL spec 3.2 section 8.2.10.7.1.4 describes the device's memory sparing maintenance operation feature.
Add emulation for CXL memory device memory sparing control feature and memory sparing maintenance operation command.
--- include/hw/cxl/cxl_device.h | 33 ++++ include/hw/cxl/cxl_events.h | 5 + hw/cxl/cxl-mailbox-utils.c | 317 +++++++++++++++++++++++++++++++++++- hw/mem/cxl_type3.c | 44 +++++ 4 files changed, 395 insertions(+), 4 deletions(-)
include/hw/cxl/cxl_device.h +33 -0
@@ -608,6 +608,30 @@ typedef struct CXLMemECSWriteAttrs {CXLMemECSFRUWriteAttrs fru_attrs[CXL_ECS_NUM_MEDIA_FRUS ]; }QEMU_PACKED CXLMemECSWriteAttrs; +/* +* CXL r3.2 section 8.2.10.7.2.3, Table 8-134 and 8-135: +* Memory Sparing Feature Readable/Writable Attributes +*/ +typedef struct CXLMemSparingReadAttrs { +uint8_t max_maint_latency; +uint16_t op_caps; +uint16_t op_mode; +uint8_t maint_op_class; +uint8_t maint_op_subclass; +uint8_t rsvd[10 ]; +uint16_t restriction_flags; +} QEMU_PACKED CXLMemSparingReadAttrs; + +typedef struct CXLMemSparingWriteAttrs { +uint16_t op_mode; +} QEMU_PACKED CXLMemSparingWriteAttrs; + +#define CXL_MEMDEV_SPARING_GET_FEATURE_VERSION 0x01 +#define CXL_MEMDEV_SPARING_SET_FEATURE_VERSION 0x01 +#define CXL_MEMDEV_SPARING_SAFE_IN_USE_FLAG BIT(0) +#define CXL_MEMDEV_HARD_SPARING_SUPPORT_FLAG BIT(1) +#define CXL_MEMDEV_SOFT_SPARING_SUPPORT_FLAG BIT(2) +#define DCD_MAX_NUM_REGION 8 typedef struct CXLDCExtentRaw {
@@ -735,6 +759,15 @@ struct CXLType3Dev {/* ECS control attributes */ CXLMemECSReadAttrs ecs_attrs;CXLMemECSWriteAttrs ecs_wr_attrs; +/* Memory Sparing control attributes */ +CXLMemSparingReadAttrs cacheline_sparing_attrs; +CXLMemSparingWriteAttrs cacheline_sparing_wr_attrs; +CXLMemSparingReadAttrs row_sparing_attrs; +CXLMemSparingWriteAttrs row_sparing_wr_attrs; +CXLMemSparingReadAttrs bank_sparing_attrs; +CXLMemSparingWriteAttrs bank_sparing_wr_attrs; +CXLMemSparingReadAttrs rank_sparing_attrs; +CXLMemSparingWriteAttrs rank_sparing_wr_attrs;struct dynamic_capacity {HostMemoryBackend *host_dc;
include/hw/cxl/cxl_events.h +5 -0
@@ -223,6 +223,11 @@ typedef enum CXLDCEventType {* CXL r3.2 section Table 8-60: Memory Sparing Event Record * All fields little endian. */ + +#define CXL_MSER_FLAGS_QUERY_RESOURCES BIT(0) +#define CXL_MSER_FLAGS_HARD_SPARING BIT(1) +#define CXL_MSER_FLAGS_DEV_INITIATED BIT(2) +#define CXL_MSER_VALID_CHANNEL BIT(0)#define CXL_MSER_VALID_RANK BIT(1)#define CXL_MSER_VALID_NIB_MASK BIT(2)
hw/cxl/cxl-mailbox-utils.c +313 -4
392 lines not on this page · raw message
hw/mem/cxl_type3.c +44 -0
50 lines not on this page · raw message
Signature · 1 line
2.48.1
Quoted 11 lines · On Wed, 17 Sep 2025 15:33:27 +0100 Jonathan Cameron via…
These two features have been used in testing the related EDAC RAS
features drivers in Linux which are now upstream. Only minor tweaks
from the second part of:
https://lore.kernel.org/qemu-devel/[email protected]/
[PATCH v6 0/8] hw/cxl: Update CXL events to rev3.2 and add maintenance support for memory repair featuresI've split that series up as the two parts were only slightly connected. However there is some churn if this is applied without the other part of Shiju's posted series. That was sent a few minutes ago as:
https://lore.kernel.org/qemu-devel/[email protected]/
Quoted 7 lines
Based on: [PATCH qemu for 10.2 0/5] cxl: r3.2 specification events updates. Based on: [email protected]
Davidlohr Bueso (1):
hw/cxl: Add support for Maintenance command and Post Package Repair(PPR)
Hi Michael,
I see you have queued some stuff up on your gitlab tree. Just wanted to make sure these are on the radar for possible inclusion. No huge rush, but I'll queue some more series up on top of these shortly.
Thanks
Jonathan
Quoted 11 lines
Shiju Jose (2):
hw/cxl/cxl-mailbox-utils: Move declaration of scrub and ECS feature
attributes incmd_features_set_feature()
hw/cxl: Add emulation for memory sparing control featureinclude/hw/cxl/cxl_device.h | 145 +++++++++ include/hw/cxl/cxl_events.h | 47 +++ hw/cxl/cxl-mailbox-utils.c | 566 +++++++++++++++++++++++++++++++++++- hw/mem/cxl_type3.c | 169 +++++++++++ 4 files changed, 915 insertions(+), 12 deletions(-)
Quoted 23 lines · Jonathan Cameron
Quoted 11 lines · On Wed, 17 Sep 2025 15:33:27 +0100 Jonathan Cameron via…
These two features have been used in testing the related EDAC RAS
features drivers in Linux which are now upstream. Only minor tweaks
from the second part of:
https://lore.kernel.org/qemu-devel/[email protected]/
[PATCH v6 0/8] hw/cxl: Update CXL events to rev3.2 and add maintenance support for memory repair featuresI've split that series up as the two parts were only slightly connected. However there is some churn if this is applied without the other part of Shiju's posted series. That was sent a few minutes ago as:
https://lore.kernel.org/qemu-devel/[email protected]/Quoted 7 lines
Based on: [PATCH qemu for 10.2 0/5] cxl: r3.2 specification events updates. Based on: [email protected]
Davidlohr Bueso (1):
hw/cxl: Add support for Maintenance command and Post Package Repair(PPR)Hi Michael,
Quoted 8 lines
I see you have queued some stuff up on your gitlab tree. Just wanted to make sure these are on the radar for possible inclusion. No huge rush, but I'll queue some more series up on top of these shortly.
Thanks
Jonathan
thanks for the reminder, will queue.
Quoted 11 lines
Quoted 11 lines
Shiju Jose (2):
hw/cxl/cxl-mailbox-utils: Move declaration of scrub and ECS feature
attributes incmd_features_set_feature()
hw/cxl: Add emulation for memory sparing control featureinclude/hw/cxl/cxl_device.h | 145 +++++++++ include/hw/cxl/cxl_events.h | 47 +++ hw/cxl/cxl-mailbox-utils.c | 566 +++++++++++++++++++++++++++++++++++- hw/mem/cxl_type3.c | 169 +++++++++++ 4 files changed, 915 insertions(+), 12 deletions(-)
Quoted 29 lines · On Mon, 6 Oct 2025 06:26:53 -0400 "Michael S. Tsirkin" <[email protected]> wrote:
Quoted 28 lines · Jonathan Cameron
Quoted 11 lines · On Wed, 17 Sep 2025 15:33:27 +0100 Jonathan Cameron via…
These two features have been used in testing the related EDAC RAS
features drivers in Linux which are now upstream. Only minor tweaks
from the second part of:
https://lore.kernel.org/qemu-devel/[email protected]/
[PATCH v6 0/8] hw/cxl: Update CXL events to rev3.2 and add maintenance support for memory repair featuresI've split that series up as the two parts were only slightly connected. However there is some churn if this is applied without the other part of Shiju's posted series. That was sent a few minutes ago as:
https://lore.kernel.org/qemu-devel/[email protected]/Quoted 7 lines
Based on: [PATCH qemu for 10.2 0/5] cxl: r3.2 specification events updates. Based on: [email protected]
Davidlohr Bueso (1):
hw/cxl: Add support for Maintenance command and Post Package Repair(PPR)Hi Michael,
I see you have queued some stuff up on your gitlab tree. Just wanted to make sure these are on the radar for possible inclusion. No huge rush, but I'll queue some more series up on top of these shortly.
Quoted 5 lines
Quoted 3 lines
Thanks
Jonathan
thanks for the reminder, will queue.
Hi Michael,
Looks like you didn't do another pull request for 10.2. If these can go upstream fairly early in 11.0 that would be very helpful as we have quite a few CXL series that I think are (nearly) ready.
I resent the events series but that was mainly because I'd forgotten you'd replied to this one and so might already have both queued. Sorry about that if you have them both already.
Jonathan
Quoted 14 lines
Quoted 12 lines
Quoted 12 lines
Shiju Jose (2):
hw/cxl/cxl-mailbox-utils: Move declaration of scrub and ECS feature
attributes incmd_features_set_feature()
hw/cxl: Add emulation for memory sparing control featureinclude/hw/cxl/cxl_device.h | 145 +++++++++ include/hw/cxl/cxl_events.h | 47 +++ hw/cxl/cxl-mailbox-utils.c | 566 +++++++++++++++++++++++++++++++++++- hw/mem/cxl_type3.c | 169 +++++++++++ 4 files changed, 915 insertions(+), 12 deletions(-)
Quoted 39 lines · On Fri, 2 Jan 2026 15:28:34 +0000 Jonathan Cameron via <[email protected]>…
Quoted 29 lines · On Mon, 6 Oct 2025 06:26:53 -0400 "Michael S. Tsirkin" <[email protected]> wrote:
Quoted 28 lines · Jonathan Cameron
Quoted 11 lines · On Wed, 17 Sep 2025 15:33:27 +0100 Jonathan Cameron via…
These two features have been used in testing the related EDAC RAS
features drivers in Linux which are now upstream. Only minor tweaks
from the second part of:
https://lore.kernel.org/qemu-devel/[email protected]/
[PATCH v6 0/8] hw/cxl: Update CXL events to rev3.2 and add maintenance support for memory repair featuresI've split that series up as the two parts were only slightly connected. However there is some churn if this is applied without the other part of Shiju's posted series. That was sent a few minutes ago as:
https://lore.kernel.org/qemu-devel/[email protected]/Quoted 7 lines
Based on: [PATCH qemu for 10.2 0/5] cxl: r3.2 specification events updates. Based on: [email protected]
Davidlohr Bueso (1):
hw/cxl: Add support for Maintenance command and Post Package Repair(PPR)Hi Michael,
I see you have queued some stuff up on your gitlab tree. Just wanted to make sure these are on the radar for possible inclusion. No huge rush, but I'll queue some more series up on top of these shortly.
Quoted 5 lines
Quoted 3 lines
Thanks
Jonathan
thanks for the reminder, will queue.
Hi Michael,
Quoted 7 lines
Looks like you didn't do another pull request for 10.2. If these can go upstream fairly early in 11.0 that would be very helpful as we have quite a few CXL series that I think are (nearly) ready.
I resent the events series but that was mainly because I'd forgotten you'd replied to this one and so might already have both queued. Sorry about that if you have them both already.
This is the second series that is (I think) ready for merge. Applies cleanly on mainline +
[PATCH qemu v4 0/5] cxl: r3.2 specification event updates. [email protected]
Quoted 19 lines
Jonathan
Quoted 14 lines
Quoted 12 lines
Quoted 12 lines
Shiju Jose (2):
hw/cxl/cxl-mailbox-utils: Move declaration of scrub and ECS feature
attributes incmd_features_set_feature()
hw/cxl: Add emulation for memory sparing control featureinclude/hw/cxl/cxl_device.h | 145 +++++++++ include/hw/cxl/cxl_events.h | 47 +++ hw/cxl/cxl-mailbox-utils.c | 566 +++++++++++++++++++++++++++++++++++- hw/mem/cxl_type3.c | 169 +++++++++++ 4 files changed, 915 insertions(+), 12 deletions(-)
Quoted 46 lines · Jonathan Cameron
Quoted 43 lines · On Fri, 2 Jan 2026 15:28:34 +0000 Jonathan Cameron via <[email protected]>…
Quoted 29 lines · On Mon, 6 Oct 2025 06:26:53 -0400 "Michael S. Tsirkin" <[email protected]> wrote:
Quoted 28 lines · Jonathan Cameron
Quoted 11 lines · On Wed, 17 Sep 2025 15:33:27 +0100 Jonathan Cameron via…
These two features have been used in testing the related EDAC RAS
features drivers in Linux which are now upstream. Only minor tweaks
from the second part of:
https://lore.kernel.org/qemu-devel/[email protected]/
[PATCH v6 0/8] hw/cxl: Update CXL events to rev3.2 and add maintenance support for memory repair featuresI've split that series up as the two parts were only slightly connected. However there is some churn if this is applied without the other part of Shiju's posted series. That was sent a few minutes ago as:
https://lore.kernel.org/qemu-devel/[email protected]/Quoted 7 lines
Based on: [PATCH qemu for 10.2 0/5] cxl: r3.2 specification events updates. Based on: [email protected]
Davidlohr Bueso (1):
hw/cxl: Add support for Maintenance command and Post Package Repair(PPR)Hi Michael,
I see you have queued some stuff up on your gitlab tree. Just wanted to make sure these are on the radar for possible inclusion. No huge rush, but I'll queue some more series up on top of these shortly.
Quoted 5 lines
Quoted 3 lines
Thanks
Jonathan
thanks for the reminder, will queue.
Hi Michael,
Looks like you didn't do another pull request for 10.2. If these can go upstream fairly early in 11.0 that would be very helpful as we have quite a few CXL series that I think are (nearly) ready.
Quoted 8 lines
Quoted 3 lines
I resent the events series but that was mainly because I'd forgotten you'd replied to this one and so might already have both queued. Sorry about that if you have them both already.
This is the second series that is (I think) ready for merge. Applies cleanly on mainline +
[PATCH qemu v4 0/5] cxl: r3.2 specification event updates. [email protected]
question is if there will be v5 of that one, now there are review comments?
Quoted 19 lines
Quoted 19 lines
Jonathan
Quoted 14 lines
Quoted 12 lines
Quoted 12 lines
Shiju Jose (2):
hw/cxl/cxl-mailbox-utils: Move declaration of scrub and ECS feature
attributes incmd_features_set_feature()
hw/cxl: Add emulation for memory sparing control featureinclude/hw/cxl/cxl_device.h | 145 +++++++++ include/hw/cxl/cxl_events.h | 47 +++ hw/cxl/cxl-mailbox-utils.c | 566 +++++++++++++++++++++++++++++++++++- hw/mem/cxl_type3.c | 169 +++++++++++ 4 files changed, 915 insertions(+), 12 deletions(-)
Quoted 51 lines · On Thu, 5 Feb 2026 03:16:15 -0500 "Michael S. Tsirkin" <[email protected]> wrote:
Quoted 50 lines · Jonathan Cameron
Quoted 46 lines · On Fri, 2 Jan 2026 15:28:34 +0000 Jonathan Cameron via <[email protected]>…
Quoted 29 lines · On Mon, 6 Oct 2025 06:26:53 -0400 "Michael S. Tsirkin" <[email protected]> wrote:
Quoted 28 lines · Jonathan Cameron
Quoted 11 lines · On Wed, 17 Sep 2025 15:33:27 +0100 Jonathan Cameron via…
These two features have been used in testing the related EDAC RAS
features drivers in Linux which are now upstream. Only minor tweaks
from the second part of:
https://lore.kernel.org/qemu-devel/[email protected]/
[PATCH v6 0/8] hw/cxl: Update CXL events to rev3.2 and add maintenance support for memory repair featuresI've split that series up as the two parts were only slightly connected. However there is some churn if this is applied without the other part of Shiju's posted series. That was sent a few minutes ago as:
https://lore.kernel.org/qemu-devel/[email protected]/Quoted 7 lines
Based on: [PATCH qemu for 10.2 0/5] cxl: r3.2 specification events updates. Based on: [email protected]
Davidlohr Bueso (1):
hw/cxl: Add support for Maintenance command and Post Package Repair(PPR)Hi Michael,
I see you have queued some stuff up on your gitlab tree. Just wanted to make sure these are on the radar for possible inclusion. No huge rush, but I'll queue some more series up on top of these shortly.
Quoted 5 lines
Quoted 3 lines
Thanks
Jonathan
thanks for the reminder, will queue.
Hi Michael,
Looks like you didn't do another pull request for 10.2. If these can go upstream fairly early in 11.0 that would be very helpful as we have quite a few CXL series that I think are (nearly) ready.
I resent the events series but that was mainly because I'd forgotten you'd replied to this one and so might already have both queued. Sorry about that if you have them both already.
Quoted 8 lines
Quoted 4 lines
This is the second series that is (I think) ready for merge. Applies cleanly on mainline +
[PATCH qemu v4 0/5] cxl: r3.2 specification event updates. [email protected]question is if there will be v5 of that one, now there are review comments?
Posted. This applies cleanly on top of that (it only involved moving 2 lines within functions that aren't touched by anything else we have pending.
So now, based on:
[PATCH qemu v5 0/5] cxl: r3.2 specification event updates.
https://lore.kernel.org/qemu-devel/[email protected]/
Quoted 21 lines
Quoted 19 lines
Quoted 19 lines
Jonathan
Quoted 14 lines
Quoted 12 lines
Quoted 12 lines
Shiju Jose (2):
hw/cxl/cxl-mailbox-utils: Move declaration of scrub and ECS feature
attributes incmd_features_set_feature()
hw/cxl: Add emulation for memory sparing control featureinclude/hw/cxl/cxl_device.h | 145 +++++++++ include/hw/cxl/cxl_events.h | 47 +++ hw/cxl/cxl-mailbox-utils.c | 566 +++++++++++++++++++++++++++++++++++- hw/mem/cxl_type3.c | 169 +++++++++++ 4 files changed, 915 insertions(+), 12 deletions(-)