qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/6] CXL: SK hynix Niagara MHSLD Device
@ 2023-09-06  0:15 Gregory Price
  2023-09-06  0:15 ` [PATCH v3 1/6] cxl/mailbox: move mailbox effect definitions to a header Gregory Price
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Gregory Price @ 2023-09-06  0:15 UTC (permalink / raw)
  To: qemu-devel
  Cc: jonathan.cameron, linux-cxl, junhee.ryu, kwangjin.ko,
	Gregory Price

v3:
- 6 patch series, first 5 are pull-aheads that can be merged separately
- cci: added MHD back into main mailbox, but implemented a callback
       pattern.  type-3 devices leave the callback null by default and
       report unsupported if nothing implements it.
- cleanup and formatting

v2:
- 5 patch series, first 4 are pull-aheads that can be merged separately
- cci: rebased on 8-30 branch from jic23, dropped cci patches
- mailbox: dropped MHD commands, integrated into niagara (for now)
- mailbox: refactor CCI defines to avoid redefinition in niagara
- type3: cleanup duplicate typecasting
- type3: expose ct3 functions so inheriting devices may access them
- type3: add optional mhd validation function for memory access
- niagara: refactor to make niagara inherit type3 and override behavior
- niagara: refactor command definitions and types into header to make
           understanding the device a bit easier for users
- style and formatting

This patch set includes an emulation of the SK hynix Niagara MHSLD 
platform with custom CCI commands that allow for isolation of memory
blocks between attached hosts.

This device allows hosts to request memory blocks directly from the
device, rather than requiring full the DCD command set.  As a matter
of simplicity, this is beneficial to for testing and applications of
dynamic memory pooling on top of the 1.1 and 2.0 specification.

Note that these CCI commands are not servicable without a proper
driver or the kernel allowing raw CXL commands to be passed through
the mailbox driver, so users should enable
`CONFIG_CXL_MEM_RAW_COMMANDS=y` on the kernel of their QEMU instance
if they wish to test it.

Signed-off-by: Gregory Price <gregory.price@memverge.com>


Gregory Price (6):
  cxl/mailbox: move mailbox effect definitions to a header
  cxl/type3: Cleanup multiple CXL_TYPE3() calls in read/write functions
  cxl/type3: Expose ct3 functions so that inheriters can call them
  cxl/type3: add an optional mhd validation function for memory accesses
  cxl/mailbox,type3: Implement MHD get info command callback
  cxl/vendor: SK hynix Niagara Multi-Headed SLD Device

 hw/cxl/Kconfig                          |   4 +
 hw/cxl/cxl-mailbox-utils.c              |  51 ++-
 hw/cxl/meson.build                      |   2 +
 hw/cxl/vendor/meson.build               |   1 +
 hw/cxl/vendor/skhynix/.gitignore        |   1 +
 hw/cxl/vendor/skhynix/init_niagara.c    |  99 +++++
 hw/cxl/vendor/skhynix/meson.build       |   1 +
 hw/cxl/vendor/skhynix/skhynix_niagara.c | 514 ++++++++++++++++++++++++
 hw/cxl/vendor/skhynix/skhynix_niagara.h | 161 ++++++++
 hw/mem/cxl_type3.c                      |  32 +-
 include/hw/cxl/cxl_device.h             |  13 +
 include/hw/cxl/cxl_mailbox.h            |  18 +
 12 files changed, 873 insertions(+), 24 deletions(-)
 create mode 100644 hw/cxl/vendor/meson.build
 create mode 100644 hw/cxl/vendor/skhynix/.gitignore
 create mode 100644 hw/cxl/vendor/skhynix/init_niagara.c
 create mode 100644 hw/cxl/vendor/skhynix/meson.build
 create mode 100644 hw/cxl/vendor/skhynix/skhynix_niagara.c
 create mode 100644 hw/cxl/vendor/skhynix/skhynix_niagara.h
 create mode 100644 include/hw/cxl/cxl_mailbox.h

-- 
2.39.1



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-09-12 13:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-06  0:15 [PATCH v3 0/6] CXL: SK hynix Niagara MHSLD Device Gregory Price
2023-09-06  0:15 ` [PATCH v3 1/6] cxl/mailbox: move mailbox effect definitions to a header Gregory Price
2023-09-12 12:12   ` Jonathan Cameron via
2023-09-06  0:15 ` [PATCH v3 2/6] cxl/type3: Cleanup multiple CXL_TYPE3() calls in read/write functions Gregory Price
2023-09-12 12:13   ` Jonathan Cameron via
2023-09-12 13:35     ` Jonathan Cameron via
2023-09-06  0:15 ` [PATCH v3 3/6] cxl/type3: Expose ct3 functions so that inheriters can call them Gregory Price
2023-09-06  0:15 ` [PATCH v3 4/6] cxl/type3: add an optional mhd validation function for memory accesses Gregory Price
2023-09-06  0:15 ` [PATCH v3 5/6] cxl/mailbox, type3: Implement MHD get info command callback Gregory Price
2023-09-06  0:15 ` [PATCH v3 6/6] cxl/vendor: SK hynix Niagara Multi-Headed SLD Device Gregory Price

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).