[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 51/60] hw/cxl: Update RAS Capability Definitions for version 3.
From: |
Michael S. Tsirkin |
Subject: |
[PULL 51/60] hw/cxl: Update RAS Capability Definitions for version 3. |
Date: |
Wed, 14 Feb 2024 06:15:55 -0500 |
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Part of bringing all of CXL emulation inline with CXL r3.1.
No functional changes.
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20240126121636.24611-4-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
include/hw/cxl/cxl_component.h | 5 ++++-
hw/cxl/cxl-component-utils.c | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/include/hw/cxl/cxl_component.h b/include/hw/cxl/cxl_component.h
index 2c7631bd1e..b5da72b789 100644
--- a/include/hw/cxl/cxl_component.h
+++ b/include/hw/cxl/cxl_component.h
@@ -60,8 +60,9 @@ CXLx_CAPABILITY_HEADER(SNOOP, 0x14)
* implements. Some of these are specific to certain types of components, but
* this implementation leaves enough space regardless.
*/
-/* 8.2.5.9 - CXL RAS Capability Structure */
+/* CXL r3.1 Section 8.2.4.17: CXL RAS Capability Structure */
+#define CXL_RAS_CAPABILITY_VERSION 3
/* Give ample space for caps before this */
#define CXL_RAS_REGISTERS_OFFSET 0x80
#define CXL_RAS_REGISTERS_SIZE 0x58
@@ -95,6 +96,8 @@ REG32(CXL_RAS_COR_ERR_STATUS, CXL_RAS_REGISTERS_OFFSET + 0xc)
REG32(CXL_RAS_COR_ERR_MASK, CXL_RAS_REGISTERS_OFFSET + 0x10)
REG32(CXL_RAS_ERR_CAP_CTRL, CXL_RAS_REGISTERS_OFFSET + 0x14)
FIELD(CXL_RAS_ERR_CAP_CTRL, FIRST_ERROR_POINTER, 0, 6)
+ FIELD(CXL_RAS_ERR_CAP_CTRL, MULTIPLE_HEADER_RECORDING_CAP, 9, 1)
+ FIELD(CXL_RAS_ERR_POISON_ENABLED, POISON_ENABLED, 13, 1)
REG32(CXL_RAS_ERR_HEADER0, CXL_RAS_REGISTERS_OFFSET + 0x18)
#define CXL_RAS_ERR_HEADER_NUM 32
/* Offset 0x18 - 0x58 reserved for RAS logs */
diff --git a/hw/cxl/cxl-component-utils.c b/hw/cxl/cxl-component-utils.c
index a55cf5a036..848bfa20f1 100644
--- a/hw/cxl/cxl-component-utils.c
+++ b/hw/cxl/cxl-component-utils.c
@@ -325,7 +325,7 @@ void cxl_component_register_init_common(uint32_t *reg_state,
CXL_##reg##_REGISTERS_OFFSET); \
} while (0)
- init_cap_reg(RAS, 2, 2);
+ init_cap_reg(RAS, 2, CXL_RAS_CAPABILITY_VERSION);
ras_init_common(reg_state, write_msk);
init_cap_reg(LINK, 4, 2);
--
MST
- [PULL 38/60] hw/mem/cxl_type3: Drop handling of failure of g_malloc0() and g_malloc(), (continued)
- [PULL 38/60] hw/mem/cxl_type3: Drop handling of failure of g_malloc0() and g_malloc(), Michael S. Tsirkin, 2024/02/14
- [PULL 43/60] hw/cxl: Pass CXLComponentState to cache_mem_ops, Michael S. Tsirkin, 2024/02/14
- [PULL 44/60] hw/cxl: Pass NULL for a NULL MemoryRegionOps, Michael S. Tsirkin, 2024/02/14
- [PULL 45/60] hw/mem/cxl_type3: Fix potential divide by zero reported by coverity, Michael S. Tsirkin, 2024/02/14
- [PULL 48/60] tests/acpi: Update DSDT.cxl to reflect change _STA return value., Michael S. Tsirkin, 2024/02/14
- [PULL 50/60] hw/cxl: Update link register definitions., Michael S. Tsirkin, 2024/02/14
- [PULL 54/60] virtio-gpu: Correct virgl_renderer_resource_get_info() error check, Michael S. Tsirkin, 2024/02/14
- [PULL 53/60] hw/cxl: Standardize all references on CXL r3.1 and minor updates, Michael S. Tsirkin, 2024/02/14
- [PULL 55/60] hw/smbios: Fix OEM strings table option validation, Michael S. Tsirkin, 2024/02/14
- [PULL 56/60] hw/smbios: Fix port connector option validation, Michael S. Tsirkin, 2024/02/14
- [PULL 51/60] hw/cxl: Update RAS Capability Definitions for version 3.,
Michael S. Tsirkin <=
- [PULL 49/60] hw/cxl: Update HDM Decoder capability to version 3, Michael S. Tsirkin, 2024/02/14
- [PULL 52/60] hw/cxl: Update mailbox status registers., Michael S. Tsirkin, 2024/02/14
- [PULL 58/60] virtio-gpu.c: add resource_destroy class method, Michael S. Tsirkin, 2024/02/14
- [PULL 57/60] hw/display/virtio-gpu.c: use reset_bh class method, Michael S. Tsirkin, 2024/02/14
- [PULL 59/60] virtio-gpu-rutabaga.c: override resource_destroy method, Michael S. Tsirkin, 2024/02/14
- [PULL 60/60] MAINTAINERS: Switch to my Enfabrica email, Michael S. Tsirkin, 2024/02/14
- Re: [PULL 00/60] virtio,pc,pci: features, cleanups, fixes, Michael S. Tsirkin, 2024/02/14
- [PULL 22/60] hw/block/fdc-isa: Move portio_list from FDCtrl to FDCtrlISABus, Michael S. Tsirkin, 2024/02/14
- Re: [PULL 00/60] virtio,pc,pci: features, cleanups, fixes, Michael Tokarev, 2024/02/15