From: Anisa Su
Per the spec, FMAPI commands (0x51-0x59) must be bound with
MCTP_MT_CXL_FMAPI. Fix the conditions ensuring this in i2c_mctp_cxl.c
and dev-mctp.c
Move the opcode enum from cxl-mailbox-utils.c to cxl_mailbox.h to
allow i2c_mctp_cxl.c and dev-mctp.c to use the enum instead of
hardcod
From: Anisa Su
The FMAPI DCD Management patchset
(https://lore.kernel.org/linux-cxl/20250626222743.1766404-1-anisa.su...@gmail.com/T/#t)
is based on upstream, which does not include the i2c MCTP hack or the new MCTP
USB support carried in Jonathan's tree.
The commands are accessible upstream th
From: Anisa Su
Add a lock on the bitmap of each CXLDCRegion in preparation for the next
patch which implements FMAPI Set DC Region Configuration. This command
can modify the block size, which means the region's bitmap must be updated
accordingly.
The lock becomes necessary when commands that add
From: Anisa Su
FM DCD Management command 0x5603 implemented per CXL r3.2 Spec Section 7.6.7.6.4
Very similar to previously implemented command 0x4801.
Reviewed-by: Fan Ni
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 76 ++
1 file changed, 76 ins
From: Anisa Su
FM DCD Management command 0x5602 implemented per CXL r3.2 Spec Section 7.6.7.6.3
Reviewed-by: Fan Ni
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 86
hw/mem/cxl_type3.c | 6 +--
include/hw/cxl/cxl_device.h | 3 ++
From: Anisa Su
FM DCD Management command 0x5605 implemented per CXL r3.2 Spec Section 7.6.7.6.6
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 79 ++
1 file changed, 79 insertions(+)
diff --git a/hw/cxl/cxl-mailbox-utils.c b/hw/cxl/cxl-mailbox-uti
From: Anisa Su
FM DCD Management command 0x5600 implemented per CXL 3.2 Spec Section 7.6.7.6.1.
Reviewed-by: Fan Ni
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 59 +
hw/mem/cxl_type3.c | 4 +++
include/hw/cxl/cxl_device.h | 1 +
3 f
From: Anisa Su
Move definition/enum to cxl_events.h for shared use in next patch
Reviewed-by: Fan Ni
Signed-off-by: Anisa Su
---
hw/mem/cxl_type3.c | 15 ---
include/hw/cxl/cxl_events.h | 15 +++
2 files changed, 15 insertions(+), 15 deletions(-)
diff --git a
From: Anisa Su
Prepatory patch for following FMAPI Add/Release Patches. Refactors part
of qmp_cxl_process_dynamic_capacity_prescriptive() into a helper
function to create DC Event Records and insert in the event log.
Moves definition for CXL_NUM_EXTENTS_SUPPORTED to cxl.h so it can be
accessed b
From: Anisa Su
FM DCD Management command 0x5604 implemented per CXL r3.2 Spec Section 7.6.7.6.5
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 106
hw/mem/cxl_type3.c | 8 +--
include/hw/cxl/cxl_device.h | 4 ++
3 files changed, 114
From: Anisa Su
This patchset adds support for 6 FM API DCD Management commands (0x5600-0x5605)
according to the CXL r3.2 Spec.
The code was tested with libcxlmi, which runs in the QEMU VM and sends 56xxh
commands to the device (QEMU-emulated) through MCTP messages over USB.
Test Configuration:
From: Anisa Su
Add booleans to DC Region struct to represent dsmas flags (defined in CDAT) in
preparation for the next command, which returns the flags in the next mailbox
command 0x5601.
Reviewed-by: Fan Ni
Signed-off-by: Anisa Su
---
hw/mem/cxl_type3.c | 8 +++-
include/hw/cxl
From: Anisa Su
FM DCD Management command 0x5601 implemented per CXL r3.2 Spec Section 7.6.7.6.2
Reviewed-by: Fan Ni
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 103 +
1 file changed, 103 insertions(+)
diff --git a/hw/cxl/cxl-mailbox-utils.c b/
From: Anisa Su
FM DCD Management command 0x5604 implemented per CXL r3.2 Spec Section 7.6.7.6.5
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 152
hw/mem/cxl_type3.c | 8 +-
include/hw/cxl/cxl_device.h | 4 +
3 files changed, 160 in
From: Anisa Su
Move definition/enum to cxl_events.h for shared use in next patch
Reviewed-by: Fan Ni
Signed-off-by: Anisa Su
---
hw/mem/cxl_type3.c | 15 ---
include/hw/cxl/cxl_events.h | 15 +++
2 files changed, 15 insertions(+), 15 deletions(-)
diff --git a
From: Anisa Su
FM DCD Managment command 0x5605 implemented per CXL r3.2 Spec Section 7.6.7.6.6
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 62 ++
1 file changed, 62 insertions(+)
diff --git a/hw/cxl/cxl-mailbox-utils.c b/hw/cxl/cxl-mailbox-util
From: Anisa Su
Add a lock on the bitmap of each CXLDCRegion in preparation for the next
patch which implements FMAPI Set DC Region Configuration. This command
can modify the block size, which means the region's bitmap must be updated
accordingly.
The lock becomes necessary when commands that add
From: Anisa Su
FM DCD Management command 0x5602 implemented per CXL r3.2 Spec Section 7.6.7.6.3
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 86
hw/mem/cxl_type3.c | 6 +--
include/hw/cxl/cxl_device.h | 3 ++
include/hw/cxl/cxl_ma
From: Anisa Su
This patchset adds support for 6 FM API DCD Management commands (0x5600-0x5605)
according to the CXL r3.2 Spec.
The code was tested with libcxlmi, which runs in the QEMU VM and sends 56xxh
commands to the device (QEMU emulated) through MCTP messages over I2C
bus. To perform end-to
From: Anisa Su
FM DCD Management command 0x5603 implemented per CXL r3.2 Spec Section 7.6.7.6.4
Very similar to previously implemented command 0x4801.
Reviewed-by: Fan Ni
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 76 ++
1 file changed, 76 ins
From: Anisa Su
FM DCD Management command 0x5601 implemented per CXL r3.2 Spec Section 7.6.7.6.2
Reviewed-by: Fan Ni
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 103 +
1 file changed, 103 insertions(+)
diff --git a/hw/cxl/cxl-mailbox-utils.c b/
From: Anisa Su
Add booleans to DC Region struct to represent dsmas flags (defined in CDAT) in
preparation for the next command, which returns the flags in the next mailbox
command 0x5601.
Reviewed-by: Fan Ni
Signed-off-by: Anisa Su
---
hw/mem/cxl_type3.c | 8 +++-
include/hw/cxl
From: Anisa Su
FM DCD Management command 0x5600 implemented per CXL 3.2 Spec Section 7.6.7.6.1.
Reviewed-by: Fan Ni
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 59 +
hw/mem/cxl_type3.c | 4 +++
include/hw/cxl/cxl_device.h | 1 +
3 f
From: Anisa Su
Add booleans to DC Region struct to represent dsmas flags (defined in CDAT)
in preparation for the next command, which returns the flags in the
response.
Signed-off-by: Anisa Su
---
hw/mem/cxl_type3.c | 8 +++-
include/hw/cxl/cxl_device.h | 15 +++
2 fi
From: Anisa Su
Add a lock on the bitmap of each CXLDCRegion in preparation for the next
patch which implements FMAPI Set DC Region Configuration. This command
can modify the block size, which means the region's bitmap must be updated
accordingly.
The lock becomes necessary when commands that add
From: Anisa Su
FM DCD Management command 0x5602 implemented per CXL r3.2 Spec Section 7.6.7.6.3
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 97
hw/mem/cxl_type3.c | 2 +-
include/hw/cxl/cxl_device.h | 3 ++
include/hw/cxl/cxl_mai
From: Anisa Su
FM DCD Management command 0x5604 implemented per CXL r3.2 Spec Section 7.6.7.6.5
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 195 +++
hw/mem/cxl_type3.c | 8 +-
include/hw/cxl/cxl_device.h | 4 +
include/hw/cxl/cxl_op
From: Anisa Su
FM DCD Management command 0x5603 implemented per CXL r3.2 Spec Section 7.6.7.6.4
Very similar to previously implemented command 0x4801.
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 75
include/hw/cxl/cxl_opcodes.h | 1 +
2 file
From: Anisa Su
FM DCD Management command 0x5601 implemented per CXL r3.2 Spec Section 7.6.7.6.2
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 102 +++
include/hw/cxl/cxl_opcodes.h | 1 +
2 files changed, 103 insertions(+)
diff --git a/hw/cxl/cxl-
From: Anisa Su
This patchset adds support for 6 FM API DCD Management commands (0x5600-0x5605)
according to the CXL r3.2 Spec. It is based on the following branch:
https://gitlab.com/jic23/qemu/-/tree/cxl-2025-02-20.
The code was tested with libcxlmi, which runs in the QEMU VM and sends 56xxh
co
From: Anisa Su
FM DCD Managment command 0x5605 implemented per CXL r3.2 Spec Section 7.6.7.6.6
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 56
include/hw/cxl/cxl_opcodes.h | 1 +
2 files changed, 57 insertions(+)
diff --git a/hw/cxl/cxl-mai
From: Anisa Su
Move definition/enum to cxl_events.h for shared use in next patch
Signed-off-by: Anisa Su
---
hw/mem/cxl_type3.c | 15 ---
include/hw/cxl/cxl_events.h | 15 +++
2 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/hw/mem/cxl_type3.c b
From: Anisa Su
FM DCD Management command 0x5600 implemented per CXL 3.2 Spec Section 7.6.7.6.1.
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 56
hw/cxl/i2c_mctp_cxl.c| 6 ++--
hw/mem/cxl_type3.c | 4 +++
include/hw/cxl/cxl_
From: Anisa Su
In preparation for the next patch, move opcodes enum to new cxl_opcodes.h file
for visibility from mailbox-utils.c and i2c_mctp_cxl.c, which checks that
certain command sets are bound with the correct MCTP binding.
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 68 ++
From: Anisa Su
FM DCD Management command 0x5603 implemented per CXL r3.2 Spec Section 7.6.7.6.4
Very similar to previously implemented command 0x4801.
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 84 ++
1 file changed, 84 insertions(+)
diff --gi
From: Anisa Su
Add dsmas_flags field to DC Region struct in preparation for next
command, which returns the dsmas flags in the response.
Signed-off-by: Anisa Su
---
hw/mem/cxl_type3.c | 2 ++
include/hw/cxl/cxl_device.h | 1 +
2 files changed, 3 insertions(+)
diff --git a/hw/mem/cxl_
From: Anisa Su
FM DCD Management command 0x5602 implemented per CXL r3.2 Spec Section 7.6.7.6.3
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 100 +++
hw/mem/cxl_type3.c | 2 +-
include/hw/cxl/cxl_device.h | 3 ++
include/hw/cxl/cxl_m
From: Anisa Su
FM DCD Management command 0x5604 implemented per CXL r3.2 Spec Section 7.6.7.6.5
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 173
hw/mem/cxl_type3.c | 8 +-
include/hw/cxl/cxl_device.h | 4 +
3 files changed, 181 in
From: Anisa Su
FM DCD Managment command 0x5605 implemented per CXL r3.2 Spec Section 7.6.7.6.6
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 94 ++
1 file changed, 94 insertions(+)
diff --git a/hw/cxl/cxl-mailbox-utils.c b/hw/cxl/cxl-mailbox-util
From: Anisa Su
This patchset adds support for 6 FM API DCD Management commands (0x5600-0x5605)
according to the CXL r3.2 Spec. It is based on the following branch:
https://gitlab.com/jic23/qemu/-/tree/cxl-2025-02-20.
The code was tested with libcxlmi, which runs in the QEMU VM and sends 56xxh
co
From: Anisa Su
FM DCD Management command 0x5601 implemented per CXL r3.2 Spec Section 7.6.7.6.2
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 97 ++
1 file changed, 97 insertions(+)
diff --git a/hw/cxl/cxl-mailbox-utils.c b/hw/cxl/cxl-mailbox-uti
From: Anisa Su
Add supported_blk_size field to CXLDCRegion struct in preparation for
next patch. It is needed by command 0x5600 Get DC Region Config.
Signed-off-by: Anisa Su
---
hw/mem/cxl_type3.c | 3 +++
include/hw/cxl/cxl_device.h | 1 +
2 files changed, 4 insertions(+)
diff --git
From: Anisa Su
move definition for dynamic_capacity_uuid and enum for DC event types to
cxl_events.h from cxl_type3.c for shared use in next patch
Signed-off-by: Anisa Su
---
hw/mem/cxl_type3.c | 15 ---
include/hw/cxl/cxl_events.h | 15 +++
2 files changed, 15
From: Anisa Su
FM DCD Management command 0x5600 implemented per CXL 3.2 Spec Section 7.6.7.6.1
Signed-off-by: Anisa Su
---
hw/cxl/cxl-mailbox-utils.c | 67 ++
hw/cxl/i2c_mctp_cxl.c | 6 +++-
2 files changed, 72 insertions(+), 1 deletion(-)
diff --git
44 matches
Mail list logo