mbox series

[GIT,PULL] Compute Express Link (CXL) for 6.3

Message ID 63f5a4e2277b1_c94229453@dwillia2-mobl3.amr.corp.intel.com.notmuch
State New
Headers show
Series [GIT,PULL] Compute Express Link (CXL) for 6.3 | expand

Pull-request

git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl tags/cxl-for-6.3

Message

Dan Williams Feb. 22, 2023, 5:15 a.m. UTC
Hi Linus, please pull from:

  git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl tags/cxl-for-6.3

...to receive the CXL update for v6.3.

To date Linux has been dependent on platform-firmware to map CXL RAM
regions and handle events / errors from devices. With this update Linux
can now parse / update the CXL memory layout, and report events / errors
from devices. This is a precursor for the CXL subsystem to handle the
end-to-end "RAS" flow for CXL memory. I.e. the flow that for
DDR-attached-DRAM is handled by the EDAC driver where it maps system
physical address events to a field-replaceable-unit (FRU / endpoint
device). In general, CXL has the potential to standardize what has
historically been a pile of memory-controller-specific error handling
logic.

Another change of note is the default policy for handling RAM-backed
device-dax instances. Previously the default access mode was "device",
mmap(2) a device special file to access memory. The new default is
"kmem" where the address range is assigned to the core-mm via
add_memory_driver_managed(). This saves typical users from wondering why
their platform memory is not visible via free(1) and stuck behind a
device-file. At the same time it allows expert users to deploy policy
to, for example, get dedicated access to high performance memory, or
hide low performance memory from general purpose kernel allocations.
This affects not only CXL, but also systems with high-bandwidth-memory
that platform-firmware tags with the EFI_MEMORY_SP (special purpose)
designation.

All of these topics have had exposure in linux-next. Where you see
multiple merges of the same topic branch it is for follow-on fixes and
updates discovered after the branch was cut for -next. Each merge has a
commit log. A few tags came in after the branch was cut as well:

    f57aec443c24 cxl/pmem: Fix nvdimm registration races
    Tested-by: Dave Jiang <dave.jiang@intel.com>
    Reviewed-by: Dave Jiang <dave.jiang@intel.com>
    
    e686c32590f4 dax/kmem: Fix leak of memory-hotplug resources
    Reviewed-by: Alistair Popple <apopple@nvidia.com>

After the fixups from Arnd, there have not been any other problem
reports from -next exposure.

---

The following changes since commit 711442e29f16f0d39dd0e2460c9baacfccb9d5a7:

  cxl/region: Fix passthrough-decoder detection (2023-02-07 11:04:30 -0800)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl tags/cxl-for-6.3

for you to fetch changes up to e686c32590f40bffc45f105c04c836ffad3e531a:

  dax/kmem: Fix leak of memory-hotplug resources (2023-02-17 14:58:01 -0800)

----------------------------------------------------------------
cxl for v6.3

- CXL RAM region enumeration: instantiate 'struct cxl_region' objects
  for platform firmware created memory regions

- CXL RAM region provisioning: complement the existing PMEM region
  creation support with RAM region support

- "Soft Reservation" policy change: Online (memory hot-add)
  soft-reserved memory (EFI_MEMORY_SP) by default, but still allow for
  setting aside such memory for dedicated access via device-dax.

- CXL Events and Interrupts: Takeover CXL event handling from
  platform-firmware (ACPI calls this CXL Memory Error Reporting) and
  export CXL Events via Linux Trace Events.

- Convey CXL _OSC results to drivers: Similar to PCI, let the CXL
  subsystem interrogate the result of CXL _OSC negotiation.

- Emulate CXL DVSEC Range Registers as "decoders": Allow for
  first-generation devices that pre-date the definition of the CXL HDM
  Decoder Capability to translate the CXL DVSEC Range Registers into
  'struct cxl_decoder' objects.

- Set timestamp: Per spec, set the device timestamp in case of hotplug,
  or if platform-firwmare failed to set it.

- General fixups: linux-next build issues, non-urgent fixes for
  pre-production hardware, unit test fixes, spelling and debug message
  improvements.

----------------------------------------------------------------
Alison Schofield (2):
      tools/testing/cxl: Remove cxl_test module math loading message
      cxl/mem: Add kdoc param for event log driver state

Arnd Bergmann (3):
      cxl: avoid returning uninitialized error code
      dax: cxl: add CXL_REGION dependency
      dax/hmem: build hmem device support as module if possible

Dan Williams (35):
      cxl/pci: Move tracepoint definitions to drivers/cxl/core/
      tools/testing/cxl: Prevent cxl_test from confusing production modules
      cxl/region: Clarify when a cxld->commit() callback is mandatory
      cxl/port: Link the 'parent_dport' in portX/ and endpointX/ sysfs
      cxl/pci: Fix irq oneshot expectations
      Merge branch 'for-6.3/cxl' into cxl/next
      Merge branch 'for-6.3/cxl-events' into cxl/next
      cxl/memdev: Fix endpoint port removal
      cxl/Documentation: Update references to attributes added in v6.0
      cxl/region: Add a mode attribute for regions
      cxl/region: Support empty uuids for non-pmem regions
      cxl/region: Validate region mode vs decoder mode
      cxl/region: Add volatile region creation support
      cxl/region: Refactor attach_target() for autodiscovery
      cxl/region: Cleanup target list on attach error
      cxl/region: Move region-position validation to a helper
      kernel/range: Uplevel the cxl subsystem's range_contains() helper
      cxl/region: Enable CONFIG_CXL_REGION to be toggled
      cxl/port: Split endpoint and switch port probe
      cxl/region: Add region autodiscovery
      tools/testing/cxl: Define a fixed volatile configuration to parse
      dax/hmem: Move HMAT and Soft reservation probe initcall level
      dax/hmem: Drop unnecessary dax_hmem_remove()
      dax/hmem: Convey the dax range via memregion_info()
      dax/hmem: Move hmem device registration to dax_hmem.ko
      dax: Assign RAM regions to memory-hotplug by default
      cxl/dax: Create dax devices for CXL RAM regions
      Merge branch 'for-6.3/cxl' into cxl/next
      Merge branch 'for-6.3/cxl-ram-region' into cxl/next
      cxl/pmem: Fix nvdimm registration races
      Merge branch 'for-6.3/cxl-ram-region' into cxl/next
      Merge branch 'for-6.3/cxl' into cxl/next
      Merge branch 'for-6.3/cxl-rr-emu' into cxl/next
      Merge branch 'for-6.3/cxl-events' into cxl/next
      dax/kmem: Fix leak of memory-hotplug resources

Dave Jiang (9):
      cxl: remove unnecessary calling of pci_enable_pcie_error_reporting()
      cxl: add RAS status unmasking for CXL
      cxl/pci: Break out range register decoding from cxl_hdm_decode_init()
      cxl/port: Export cxl_dvsec_rr_decode() to cxl_port
      cxl/pci: Refactor cxl_hdm_decode_init()
      cxl/hdm: Emulate HDM decoder from DVSEC range registers
      cxl/hdm: Create emulated cxl_hdm for devices that do not have HDM decoders
      cxl/hdm: Add emulation when HDM decoders are not committed
      cxl/pci: Remove locked check for dvsec_range_allowed()

Davidlohr Bueso (3):
      cxl/region: Only warn about cpu_cache_invalidate_memregion() once
      cxl/mem: Wire up event interrupts
      cxl/mem: Correct full ID range allocation

Ira Weiny (15):
      PCI/CXL: Export native CXL error reporting control
      cxl/mem: Read, trace, and clear events on driver load
      cxl/mem: Trace General Media Event Record
      cxl/mem: Trace DRAM Event Record
      cxl/mem: Trace Memory Module Event Record
      cxl/test: Add generic mock events
      cxl/test: Add specific events
      cxl/test: Simulate event log overflow
      cxl/mem: Remove unused CXL_CMD_FLAG_NONE define
      cxl/uapi: Add warning on CXL command enum
      cxl/uapi: Tag commands from cxl_query_cmd()
      cxl/mem: Fix UAPI command comment
      cxl/trace: Standardize device information output
      cxl/trace: Add host output to trace points
      cxl/trace: Add serial number to trace points

Jonathan Cameron (2):
      cxl/mbox: Add missing parameter to docs.
      cxl/pci: Set the device timestamp

Luis Chamberlain (1):
      tools/testing/cxl: require 64-bit

Randy Dunlap (1):
      cxl: fix spelling mistakes

Robert Richter (3):
      cxl/pci: Show opcode in debug messages when sending a command
      cxl/mbox: Add debug messages for enabled mailbox commands
      cxl/mbox: Fix Payload Length check for Get Log command

 Documentation/ABI/testing/sysfs-bus-cxl |  79 ++-
 MAINTAINERS                             |   1 +
 drivers/Makefile                        |   2 +-
 drivers/acpi/numa/hmat.c                |   4 +-
 drivers/acpi/pci_root.c                 |   3 +
 drivers/cxl/Kconfig                     |  14 +-
 drivers/cxl/acpi.c                      |   5 +-
 drivers/cxl/core/Makefile               |   3 +
 drivers/cxl/core/core.h                 |   7 +-
 drivers/cxl/core/hdm.c                  | 144 +++++-
 drivers/cxl/core/mbox.c                 | 263 +++++++++-
 drivers/cxl/core/memdev.c               |   3 +-
 drivers/cxl/core/pci.c                  | 316 ++++++++----
 drivers/cxl/core/port.c                 | 123 +++--
 drivers/cxl/core/region.c               | 878 +++++++++++++++++++++++++++++---
 drivers/cxl/core/trace.c                |   5 +
 drivers/cxl/core/trace.h                | 606 ++++++++++++++++++++++
 drivers/cxl/cxl.h                       |  96 +++-
 drivers/cxl/cxlmem.h                    | 186 ++++++-
 drivers/cxl/cxlpci.h                    |  12 +-
 drivers/cxl/pci.c                       | 425 +++++++++++-----
 drivers/cxl/pmem.c                      |   1 +
 drivers/cxl/port.c                      | 119 +++--
 drivers/dax/Kconfig                     |  17 +-
 drivers/dax/Makefile                    |   2 +
 drivers/dax/bus.c                       |  55 +-
 drivers/dax/bus.h                       |  12 +-
 drivers/dax/cxl.c                       |  53 ++
 drivers/dax/device.c                    |   3 +-
 drivers/dax/hmem/Makefile               |   3 +-
 drivers/dax/hmem/device.c               | 102 ++--
 drivers/dax/hmem/hmem.c                 | 148 +++++-
 drivers/dax/kmem.c                      |   5 +-
 drivers/nvdimm/bus.c                    |  19 +-
 drivers/nvdimm/dimm_devs.c              |   5 +-
 drivers/nvdimm/nd-core.h                |   1 +
 drivers/pci/probe.c                     |   1 +
 include/linux/dax.h                     |   7 +-
 include/linux/libnvdimm.h               |   3 +
 include/linux/memregion.h               |   2 +
 include/linux/pci.h                     |   1 +
 include/linux/range.h                   |   5 +
 include/trace/events/cxl.h              | 112 ----
 include/uapi/linux/cxl_mem.h            |  30 +-
 include/uapi/linux/pci_regs.h           |   1 +
 kernel/resource.c                       |  14 -
 lib/stackinit_kunit.c                   |   6 +-
 tools/testing/cxl/Kbuild                |   9 +
 tools/testing/cxl/config_check.c        |   1 +
 tools/testing/cxl/cxl_acpi_test.c       |   6 +
 tools/testing/cxl/cxl_core_test.c       |   6 +
 tools/testing/cxl/cxl_mem_test.c        |   6 +
 tools/testing/cxl/cxl_pmem_test.c       |   6 +
 tools/testing/cxl/cxl_port_test.c       |   6 +
 tools/testing/cxl/test/Kbuild           |   2 +-
 tools/testing/cxl/test/cxl.c            | 165 +++++-
 tools/testing/cxl/test/mem.c            | 352 +++++++++++++
 tools/testing/cxl/test/mock.c           |  36 +-
 tools/testing/cxl/test/mock.h           |   6 +-
 tools/testing/cxl/watermark.h           |  25 +
 60 files changed, 3788 insertions(+), 740 deletions(-)
 create mode 100644 drivers/cxl/core/trace.c
 create mode 100644 drivers/cxl/core/trace.h
 create mode 100644 drivers/dax/cxl.c
 delete mode 100644 include/trace/events/cxl.h
 create mode 100644 tools/testing/cxl/cxl_acpi_test.c
 create mode 100644 tools/testing/cxl/cxl_core_test.c
 create mode 100644 tools/testing/cxl/cxl_mem_test.c
 create mode 100644 tools/testing/cxl/cxl_pmem_test.c
 create mode 100644 tools/testing/cxl/cxl_port_test.c
 create mode 100644 tools/testing/cxl/watermark.h

Comments

pr-tracker-bot@kernel.org Feb. 25, 2023, 5:33 p.m. UTC | #1
The pull request you sent on Tue, 21 Feb 2023 21:15:14 -0800:

> git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl tags/cxl-for-6.3

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/7c3dc440b1f5c75f45e24430f913e561dc82a419

Thank you!