From patchwork Wed Mar 10 18:03:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 396772 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp589792jai; Wed, 10 Mar 2021 10:08:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrgsU03HJfSGiUNCz6ybOkOS15h/c2ItNTl5ori/joqrGUAUwXBhh4ylNbJOAfjKUIFUuq X-Received: by 2002:a17:907:d09:: with SMTP id gn9mr4800453ejc.538.1615399709136; Wed, 10 Mar 2021 10:08:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615399709; cv=none; d=google.com; s=arc-20160816; b=N95NAN1xFmFNI6h58gb8n+TgU1/EhvVaU7WjFx8BPydVF/n3xa7CCy5BOW5bDQyTRd Nidflhd3xwsIB7Ak8BVOIiROV3nl47e5LQxb8Yatw0WxtD7ruBiTZm7UshVJZsqMG7hO sKUNT2P4EgxkK/QSIoHYG8gbIa4WFbSt/AvCmDwe7bQNzHxRRLqFBXKcCCzzeGBeOeoS 2SfB78dX6u5HQFD3xh42vTwl+pqnDqqnOQXnd+TSpVnQ00nY6ffYIszCbAAU8jJbXiLY aFCFSpH3KUni1JXIXwEqfPNYLCdjhlt2AEu30W9/OanFOOzfxoYzQX1SJq4Sy6ewzu20 XhNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Yza3+a6At6D1TOErFj44j4ki56S69W+B0gmGloYh+t0=; b=bW1NwdQWbxbdWNAnaZtLdTiPMMw1UYjURUdK+nYpiXuGpd1vwcJkXeYy9a4RPf0HxB bHNASpCBum+c8joFYqFWsjy5z+Jaqgs56AKGWED+/NxqGpmUpryrODumUawgxsZqRU3/ Cjm08K7jjtviljXFbjGqmMVDHMIhs3zdF4Xtx5QQk4QOWb/iWnBRUWeuKwgky936v+7n Q6hD6ply92lz2iUfRRtCStM/e4ZhMth3OKeEiUPvpZDmBd/rRAJBSIAyU53ixLCKO92e gCmmlOCOVIj6V7MVUwixkfwEg+lRBa3jSUj1VwIxEqICMGHSRoy4Dgywh1HmSjIsrCr9 9q9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb25si58409ejb.340.2021.03.10.10.08.28; Wed, 10 Mar 2021 10:08:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232065AbhCJSHz (ORCPT + 4 others); Wed, 10 Mar 2021 13:07:55 -0500 Received: from frasgout.his.huawei.com ([185.176.79.56]:2678 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229851AbhCJSHh (ORCPT ); Wed, 10 Mar 2021 13:07:37 -0500 Received: from fraeml744-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Dwfz0157Rz67qlf; Thu, 11 Mar 2021 02:01:32 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml744-chm.china.huawei.com (10.206.15.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Wed, 10 Mar 2021 19:07:30 +0100 Received: from lhrphicprd00229.huawei.com (10.123.41.22) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2106.2; Wed, 10 Mar 2021 18:07:29 +0000 From: Jonathan Cameron To: , , Ben Widawsky , Bjorn Helgaas CC: Chris Browy , Dan Williams , , , , , Lorenzo Pieralisi , , Fangjian , Jonathan Cameron Subject: [RFC PATCH 0/2] PCI Data Object Exchange support + CXL CDAT Date: Thu, 11 Mar 2021 02:03:04 +0800 Message-ID: <20210310180306.1588376-1-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-Originating-IP: [10.123.41.22] X-ClientProxiedBy: lhreml703-chm.china.huawei.com (10.201.108.52) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Series first introduces generic support for DOE mailboxes as defined in the ECN to the PCI 5.0 specification available from the PCI SIG [0] A user is then introduced in the form of the table access protocol defined in the CXL 2.0 specification [1] used to access the Coherent Device Attribtue Table (CDAT) defined in [2] Various open questions in the individual patches. All testing conducted against QEMU emulation of a CXL type 3 device in conjunction with DOE mailbox patches [3, 4] [0] https://pcisig.com/specifications [1] https://www.computeexpresslink.org/download-the-specification [2] https://uefi.org/node/4093 [3] https://lore.kernel.org/qemu-devel/20210202005948.241655-1-ben.widawsky@intel.com/ [4] https://lore.kernel.org/qemu-devel/1612900760-7361-1-git-send-email-cbrowy@avery-design.com/ Jonathan Cameron (2): PCI/doe: Initial support PCI Data Object Exchange cxl/mem: Add CDAT table reading from DOE drivers/cxl/cdat.h | 79 ++++++++++ drivers/cxl/cxl.h | 13 ++ drivers/cxl/mem.c | 253 +++++++++++++++++++++++++++++- drivers/pci/pcie/Kconfig | 8 + drivers/pci/pcie/Makefile | 1 + drivers/pci/pcie/doe.c | 284 ++++++++++++++++++++++++++++++++++ include/linux/pcie-doe.h | 35 +++++ include/uapi/linux/pci_regs.h | 29 +++- 8 files changed, 700 insertions(+), 2 deletions(-) create mode 100644 drivers/cxl/cdat.h create mode 100644 drivers/pci/pcie/doe.c create mode 100644 include/linux/pcie-doe.h -- 2.19.1