From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,INCLUDES_PULL_REQUEST, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1D60C07E97 for ; Sat, 3 Jul 2021 15:08:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C1A2461928 for ; Sat, 3 Jul 2021 15:08:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229787AbhGCPLO (ORCPT ); Sat, 3 Jul 2021 11:11:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229700AbhGCPLN (ORCPT ); Sat, 3 Jul 2021 11:11:13 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9681C061765 for ; Sat, 3 Jul 2021 08:08:39 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id a2so13002872pgi.6 for ; Sat, 03 Jul 2021 08:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=AQbbf2RGKiyGMgVgSD04t3IAjg5pazcXA5ZylcTtDAs=; b=lZlsYYdVrFJhStYN9NB1Ujjd09m4N3akhoTQPZXEqZZabLevXrE/q9cEbf8aPgY2so lwCQsNyX0MyFbq9LmEZZ6trNOm72MBNPc6nyYxzw7CE6Y2TN7xRAWdpgFD6J0Faxbetr QuXgzdP222zRH5sezXz3WN5yuYgh6ENNXc4WlHq7u3fwUoDj0osHwwMmUSC0kRV5jmm7 V75LPVlcZD5aHngJnUNwhlLgE1SMpAR2l2vvXh7zR8Ew75gOA4vaShhfaRPht9XMGDrI eAHdtSHnbNq1trv0+UaSKUBQY0mCDt1P4XNl1DgzZDzQyt2xJLp7iB3LminZj8/hLWgi 5Zeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=AQbbf2RGKiyGMgVgSD04t3IAjg5pazcXA5ZylcTtDAs=; b=EQpsL9zfOaWq5QORQVlGZ6cAB91E/PDMiGBwlhV2SZh6hzi8MBpnoJryXVeCn0i32b J54IcZRV9bFzlHBd5DDceEy2JF/SotRKAZGdTjlB9usv+H3BieHt/VzdZ4B5j5Djg/Bl ogDYVlsBN+6em3ozuliM0XWWPnQmrayQc/AlC9iUqO804JwDV/SYbEpkVBT7pxeA6JOv tFcyip10B8yPLscdIeSopECerEx/UXxLumyUKfqW8hEkgjSnJv4E39B5kthHktWAy+dC BYeeWSPRmDzQqE4T5t++pqVNYjUT4nQjyYkA6WUALFi35aYlO8L38IUcUC1D7k1mIR7k zpCw== X-Gm-Message-State: AOAM53379YlEjWwODgGai3/ZjJTWORV9KUVmR36w+MKZ6N+ro8YOEwiV Nk5/RC6dXEAA0MB2IoBWpDyiMi+NSeMTYagorfL6Sw== X-Google-Smtp-Source: ABdhPJwQze6TSTvDkgVEt9LlRIIJk9HNWrAOVf4x2epaG1/v9U+n4k6Glvi+ELRuBd3xk1p1GrxNqxTB2D2pxVXFkGs= X-Received: by 2002:a63:195b:: with SMTP id 27mr5686983pgz.450.1625324919360; Sat, 03 Jul 2021 08:08:39 -0700 (PDT) MIME-Version: 1.0 From: Dan Williams Date: Sat, 3 Jul 2021 08:08:28 -0700 Message-ID: Subject: [GIT PULL] Compute Express Link (CXL) update for v5.14 To: Linus Torvalds Cc: linux-cxl@vger.kernel.org, Linux NVDIMM , Linux PCI , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-cxl@vger.kernel.org Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl tags/cxl-for-5.14 ...to receive the CXL update for v5.14. This subsystem is still in the build-out phase as the bulk of the update is improvements to enumeration and fleshing out the device model. In terms of new features, more mailbox commands have been added to the allowed-list in support of persistent memory provisioning support targeting v5.15. The critical update from an enumeration perspective is support for the CXL Fixed Memory Window Structure that indicates to Linux which system physical address ranges decode to the CXL Host Bridges in the system. This allows the driver to detect which address ranges have been mapped by firmware and what address ranges are available for future hotplug. So, again, mostly skeleton this round, with more meat targeting v5.15. The bulk of this has been in -next with no reported issues. The top 3 commits were promoted from the cxl 'pending' to 'next' branch recently and -next has not had a chance to pick those up yet, but the kbuild robot has chewed on that pending branch for a couple weeks. Please pull, thanks. --- The following changes since commit 4a2c1dcfaf59be4b357400d893c3f5daff6cab6c: ACPICA: Add the CFMWS structure definition to the CEDT table (2021-06-07 14:04:43 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl tags/cxl-for-5.14 for you to fetch changes up to 4ad6181e4b216ed0cb52f45d3c6d2c70c8ae9243: cxl/pci: Rename CXL REGLOC ID (2021-06-17 17:37:18 -0700) ---------------------------------------------------------------- cxl for 5.14 - Add support for the CXL Fixed Memory Window Structure, a recent extension of the ACPI CEDT (CXL Early Discovery Table) - Add infrastructure for component registers - Add HDM (Host-managed device memory) decoder definitions - Define a device model for an HDM decoder tree - Bridge CXL persistent memory capabilities to an NVDIMM bus / device-model - Switch to fine grained mapping of CXL MMIO registers to allow different drivers / system software to own individual register blocks - Enable media provisioning commands, and publish the label storage area size in sysfs - Miscellaneous cleanups and fixes ---------------------------------------------------------------- Alison Schofield (2): cxl/acpi: Add the Host Bridge base address to CXL port objects cxl/acpi: Use the ACPI CFMWS to create static decoder objects Ben Widawsky (11): cxl: Rename mem to pci cxl/mem: Demarcate vendor specific capability IDs cxl/mem: Use dev instead of pdev->dev cxl/mem: Split creation from mapping in probe cxl/mem: Move register locator logic into reg setup cxl/mem: Get rid of @cxlm.base cxl/pci: Add HDM decoder capabilities cxl/hdm: Fix decoder count calculation cxl/component_regs: Fix offset cxl/pci: Add media provisioning required commands cxl/pci: Rename CXL REGLOC ID Dan Williams (17): cxl/mem: Move some definitions to mem.h cxl/mem: Introduce 'struct cxl_regs' for "composable" CXL devices cxl/core: Rename bus.c to core.c cxl/core: Refactor CXL register lookup for bridge reuse cxl/docs: Fix "Title underline too short" warning cxl/pci: Fixup devm_cxl_iomap_block() to take a 'struct device *' Merge branch 'rafael/acpica/cfmws' into for-5.14/cxl cxl/acpi: Introduce the root of a cxl_port topology cxl/Kconfig: Default drivers to CONFIG_CXL_BUS cxl/acpi: Add downstream port data to cxl_port instances cxl/acpi: Enumerate host bridge root ports cxl/acpi: Introduce cxl_decoder objects cxl/core: Add cxl-bus driver infrastructure cxl/pmem: Add initial infrastructure for pmem support libnvdimm: Export nvdimm shutdown helper, nvdimm_delete() libnvdimm: Drop unused device power management support cxl/pmem: Register 'pmem' / cxl_nvdimm devices Ira Weiny (4): cxl/pci: Introduce cxl_decode_register_block() cxl/pci: Reserve all device regions at once cxl/pci: Map registers based on capabilities cxl/pci: Reserve individual register block regions Vishal Verma (1): cxl/pci.c: Add a 'label_storage_size' attribute to the memdev Documentation/ABI/testing/sysfs-bus-cxl | 103 +++ Documentation/driver-api/cxl/memory-devices.rst | 20 +- drivers/cxl/Kconfig | 43 +- drivers/cxl/Makefile | 12 +- drivers/cxl/acpi.c | 434 +++++++++ drivers/cxl/bus.c | 29 - drivers/cxl/core.c | 1067 +++++++++++++++++++++++ drivers/cxl/cxl.h | 332 +++++-- drivers/cxl/mem.h | 81 ++ drivers/cxl/{mem.c => pci.c} | 439 ++++++---- drivers/cxl/pci.h | 2 +- drivers/cxl/pmem.c | 230 +++++ drivers/nvdimm/bus.c | 64 +- drivers/nvdimm/dimm_devs.c | 18 + include/linux/libnvdimm.h | 1 + include/uapi/linux/cxl_mem.h | 12 + 16 files changed, 2596 insertions(+), 291 deletions(-) create mode 100644 drivers/cxl/acpi.c delete mode 100644 drivers/cxl/bus.c create mode 100644 drivers/cxl/core.c create mode 100644 drivers/cxl/mem.h rename drivers/cxl/{mem.c => pci.c} (86%) create mode 100644 drivers/cxl/pmem.c