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=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 A35A4C433DB for ; Tue, 9 Feb 2021 20:32:01 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BA97364E0D for ; Tue, 9 Feb 2021 20:32:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BA97364E0D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=avery-design.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:32990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9Zfz-00047r-NA for qemu-devel@archiver.kernel.org; Tue, 09 Feb 2021 15:31:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9ZKe-00059k-QW for qemu-devel@nongnu.org; Tue, 09 Feb 2021 15:09:56 -0500 Received: from static-71-162-116-19.bstnma.fios.verizon.net ([71.162.116.19]:55746 helo=server4.localdomain) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9ZKc-00010I-Ss for qemu-devel@nongnu.org; Tue, 09 Feb 2021 15:09:56 -0500 Received: by server4.localdomain (Postfix, from userid 503) id 7D1E960310050; Tue, 9 Feb 2021 14:59:37 -0500 (EST) From: Chris Browy To: mst@redhat.com, ben.widawsky@intel.com Subject: [RFC PATCH v2 0/2] PCIe DOE for PCIe and CXL 2.0 v2 release Date: Tue, 9 Feb 2021 14:59:20 -0500 Message-Id: <1612900760-7361-1-git-send-email-cbrowy@avery-design.com> X-Mailer: git-send-email 1.8.3.1 Received-SPF: none client-ip=71.162.116.19; envelope-from=chris@server4.localdomain; helo=server4.localdomain X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, KHOP_HELO_FCRDNS=0.399, NO_DNS_FOR_FROM=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: david@redhat.com, qemu-devel@nongnu.org, vishal.l.verma@intel.com, jgroves@micron.com, Chris Browy , armbru@redhat.com, linux-cxl@vger.kernel.org, f4bug@amsat.org, Jonathan.Cameron@huawei.com, imammedo@redhat.com, dan.j.williams@intel.com, ira.weiny@intel.com Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Version 2 patch series for PCIe DOE for PCIe and CXL 2.0 Summary is 1: PCIe DOE support for Discovery and CMA. - MSI-X and polling supported 2: CXL DOE for CDAT and Compliance Mode. - DOE CDAT response returns one CDAT Structure instance based on request EntryHandle value. - One of each CDAT Structure types supported Based on QEMU version: https://gitlab.com/bwidawsk/qemu/-/tree/cxl-2.0v3 References: 1. CXL 2.0 specification https://www.computeexpresslink.org/download-the-specification 2. PCI-SIG ECN: Data Object Exchange (DOE) http://www.pcisig.com 3. Coherent Device Attribute Table CDAT 1.02 https://uefi.org/sites/default/files/resources/Coherent%20Device%20Attribute%20Table_1.02.pdf --- Chris Browy (2): Basic PCIe DOE support Basic CXL DOE for CDAT and Compliance Mode MAINTAINERS | 7 + hw/cxl/cxl-component-utils.c | 132 ++++++++++ hw/mem/cxl_type3.c | 172 +++++++++++++ hw/pci/meson.build | 1 + hw/pci/pcie.c | 2 +- hw/pci/pcie_doe.c | 414 ++++++++++++++++++++++++++++++ include/hw/cxl/cxl_cdat.h | 120 +++++++++ include/hw/cxl/cxl_compl.h | 289 +++++++++++++++++++++ include/hw/cxl/cxl_component.h | 126 +++++++++ include/hw/cxl/cxl_device.h | 3 + include/hw/cxl/cxl_pci.h | 4 + include/hw/pci/pci_ids.h | 2 + include/hw/pci/pcie.h | 1 + include/hw/pci/pcie_doe.h | 166 ++++++++++++ include/hw/pci/pcie_regs.h | 4 + include/standard-headers/linux/pci_regs.h | 3 +- 16 files changed, 1444 insertions(+), 2 deletions(-) create mode 100644 hw/pci/pcie_doe.c create mode 100644 include/hw/cxl/cxl_cdat.h create mode 100644 include/hw/cxl/cxl_compl.h create mode 100644 include/hw/pci/pcie_doe.h -- 1.8.3.1