From patchwork Mon Feb 6 17:28:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 13130412 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A28FFC636D3 for ; Mon, 6 Feb 2023 17:28:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230255AbjBFR2i (ORCPT ); Mon, 6 Feb 2023 12:28:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230244AbjBFR20 (ORCPT ); Mon, 6 Feb 2023 12:28:26 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A36A893F8 for ; Mon, 6 Feb 2023 09:28:13 -0800 (PST) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4P9Y8s1XdYz6J9yC; Tue, 7 Feb 2023 01:26:53 +0800 (CST) Received: from SecurePC-101-06.china.huawei.com (10.122.247.231) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Mon, 6 Feb 2023 17:28:11 +0000 From: Jonathan Cameron To: , Michael Tsirkin CC: Ben Widawsky , , , Ira Weiny , Gregory Price , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH v4 00/10] hw/cxl: CXL emulation cleanups and minor fixes for upstream Date: Mon, 6 Feb 2023 17:28:06 +0000 Message-ID: <20230206172816.8201-1-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-Originating-IP: [10.122.247.231] X-ClientProxiedBy: lhrpeml100004.china.huawei.com (7.191.162.219) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-cxl@vger.kernel.org Since V3: - Rebased on upstream today. - Refreshed DSDT.cxl due to changes upstream. - Picked up tags from Gregory. A small collection of misc fixes and tidying up pulled out from various series. I've pulled this to the top of my queue of CXL related work as they stand fine on their own and it will reduce the noise in the larger patch sets if these go upstream first. Gregory's patches were posted as part of his work on adding volatile support. https://lore.kernel.org/linux-cxl/20221006233702.18532-1-gregory.price@memverge.com/ https://lore.kernel.org/linux-cxl/20221128150157.97724-2-gregory.price@memverge.com/ I might propose this for upstream inclusion this cycle, but testing is currently limited by lack of suitable kernel support. Ira's patches were part of his event injection series. https://lore.kernel.org/linux-cxl/20221221-ira-cxl-events-2022-11-17-v2-0-2ce2ecc06219@intel.com/ Intent is to propose for upstream the rest of that series shortly after some minor changes from earlier review. My five patches have not previously been posted before this series. Baseline: 6661b8c7fe "Merge tag 'pull-ppc-20230205' of https://gitlab.com/danielhb/qemu into staging" Gregory Price (2): hw/cxl: set cxl-type3 device type to PCI_CLASS_MEMORY_CXL hw/cxl: Add CXL_CAPACITY_MULTIPLIER definition Ira Weiny (3): qemu/bswap: Add const_le64() qemu/uuid: Add UUID static initializer hw/cxl/mailbox: Use new UUID network order define for cel_uuid Jonathan Cameron (5): hw/mem/cxl_type3: Improve error handling in realize() hw/pci-bridge/cxl_downstream: Fix type naming mismatch tests/acpi: Allow update of q35/DSDT.cxl hw/i386/acpi: Drop duplicate _UID entry for CXL root bridge tests: acpi: Update q35/DSDT.cxl for removed duplicate UID hw/cxl/cxl-device-utils.c | 2 +- hw/cxl/cxl-mailbox-utils.c | 28 +++++++++++++++------------- hw/i386/acpi-build.c | 1 - hw/mem/cxl_type3.c | 15 +++++++++++---- hw/pci-bridge/cxl_downstream.c | 2 +- include/hw/cxl/cxl_device.h | 2 +- include/qemu/bswap.h | 12 +++++++++++- include/qemu/uuid.h | 12 ++++++++++++ tests/data/acpi/q35/DSDT.cxl | Bin 9578 -> 9564 bytes 9 files changed, 52 insertions(+), 22 deletions(-)