From patchwork Mon Feb 1 15:26:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 374276 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1398107jah; Mon, 1 Feb 2021 07:33:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxjcUgW/KS1M4MQEEOMB5rN8mNkfHJXgXCQmuKwlfGjp+M6aTEP0HGJPje5NlH4gYoTFbq X-Received: by 2002:a25:cc4c:: with SMTP id l73mr30094032ybf.395.1612193608949; Mon, 01 Feb 2021 07:33:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612193608; cv=none; d=google.com; s=arc-20160816; b=PlZV+/w4uOGG65867pH/yU43w+dbS5jUgdalfwLTipOuF9cU0oPh3fpfAyOCSEdoJF oyQDF1t1sLqbo5xGmj7jSb65hFFv+/1i0WTTlDaC2MsXUGZlxluiTd3ppkvAtq0ZO3BE D4Iw3XENf+Sx1q5Lk4iAJVKNb9rlsWoVMubJfHUkUVdOAhPyd1LV8OivLUpJlGGRJfz+ EuJnyEM7InmRxU+emVffExAG3zYxCnQ5jY297E/AxIMCnVPRePwj7OMuUjnXwIjTmyG7 pZMt+WW2NFw1BUa9QuTdvAeG8ldfhVCFq2ORtLm1wod1Kzo2hbsvEyPinjGsWOXVnDAk md1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from; bh=kgAbev0W55lEa/oPzAeBArocs38N6Dg6u/999AWyRNg=; b=T1JxxO1/hUTK04Twk3KDnB1hxpRaXwQFdsDKcDe8J9xU/ZXVX1sA/AOoR5+kjYaDJJ jUr0Y3CvrZbttliA2EhiU/cI3xgNnugv3HyQZxWYsr6YKlktmzD7hN/T92hPFJk8XSNX qoW0WQhHhFV/P3drxtOIkXY0/fw6VdrUvyN5tNa3H3WVAnWUwWirAkHB/8vHfNI9RC2c OF7z+VLRJURM+C0/bgxNuMXB/mhHSrbhZ+VuUjhLBV0CR65VT4kxtWFt8nJn1PsRg/X8 AvHyQ5PI5rVErXNolzoszgQnF7INj0Buu6hlh4h9S4eO3sBoU93fz9JqGJvxROh2ZHVU loBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 128si19832005ybw.176.2021.02.01.07.33.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Feb 2021 07:33:28 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1]:38668 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6bCi-0002g0-Ez for patch@linaro.org; Mon, 01 Feb 2021 10:33:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6bAA-00081a-DI for qemu-devel@nongnu.org; Mon, 01 Feb 2021 10:30:50 -0500 Received: from frasgout.his.huawei.com ([185.176.79.56]:2087) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6bA4-0007uf-VY for qemu-devel@nongnu.org; Mon, 01 Feb 2021 10:30:49 -0500 Received: from fraeml705-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4DTsDx4w6Bz67jpB; Mon, 1 Feb 2021 23:24:33 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml705-chm.china.huawei.com (10.206.15.54) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2106.2; Mon, 1 Feb 2021 16:30:41 +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_GCM_SHA256) id 15.1.2106.2; Mon, 1 Feb 2021 15:30:40 +0000 From: Jonathan Cameron To: Subject: [RFC PATCH 0/3] hw/arm/virt: CXL enablement including gpex-acpi Date: Mon, 1 Feb 2021 23:26:52 +0800 Message-ID: <20210201152655.31027-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: lhreml751-chm.china.huawei.com (10.201.108.201) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected Received-SPF: pass client-ip=185.176.79.56; envelope-from=jonathan.cameron@huawei.com; helo=frasgout.his.huawei.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: Peter Maydell , Thomas Huth , Ben Widawsky , "Michael S . Tsirkin" , Jonathan Cameron , Vishal Verma , f.fangjian@huawei.com, Chris Browy , f4bug@amsat.org, linuxarm@openeuler.org, jcm@redhat.com, Prashant V Agarwal , Igor Mammedov , Dan Williams , Richard Henderson , alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Very basic initial enablement of CXL on arm virt with relevant ACPI table construction. Includes changes in gpex-acpi to ensure correct DSDT for any pci_expand_bridge/pxb-cxl bridges. Note not looking to do the primary root bridge yet. Based on Ben's tree cxl-2.0v3 at https://gitlab.com/bwidawsk/qemu To actually get the memory appropriately exposed to the OS a few additional changes are needed as discussed in thread https://lore.kernel.org/qemu-devel/20210128174009.00007536@Huawei.com/ I will rebase this on future versions of Ben's series as needed. Jonathan Cameron (3): hw/pci-host/gpex-acpi: Add support for dsdt construction for pxb-cxl hw/arm/virt: Basic CXL enablement on pci_expander_bridge instances pxb-cxl hw/cxl/cxl-device-utils: Allow incorrect read lengths hw/arm/Kconfig | 1 + hw/arm/virt-acpi-build.c | 27 +++++++++++++++++++++++++++ hw/arm/virt.c | 3 ++- hw/cxl/cxl-device-utils.c | 4 ++-- hw/pci-host/gpex-acpi.c | 22 +++++++++++++++++++--- 5 files changed, 51 insertions(+), 6 deletions(-) -- 2.19.1