From patchwork Thu Mar 17 00:27:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Verma, Vishal L" X-Patchwork-Id: 12783357 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 EB916C433F5 for ; Thu, 17 Mar 2022 00:27:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245352AbiCQA2X (ORCPT ); Wed, 16 Mar 2022 20:28:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbiCQA2X (ORCPT ); Wed, 16 Mar 2022 20:28:23 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CBC51C930; Wed, 16 Mar 2022 17:27:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647476827; x=1679012827; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Lic9ChaQZXkEd9xgaha9i8E77wzSUJy2HT8oCui14Lk=; b=UVgytTo4C4hyx91dn/msVxcTXChVef0MuI4CCwPsI/8jbAgavSPFr5rY vDpZ0cq6E6P6+gNl+OeuAOPpNN1jy0DZ/F7O6u1bFgUwH0QVWh/l5Nswk kQrTCw3HPEXYBZQRTFwYiLDPj5TrsvcUmdtKsiHeN7Ks89zBAEsFjZOsg DtRyAP99M+OO1lcd31mBCTDP197gnUi/t48pHlvR85YtCoh4kX6op+t+c HlIbgkPBftMFCkrW/7eV3LRJgaD0DLFFNbQ4Ifo1iA5YeRq0TtBAJzvjx 5PW/hmP/v/zY31IciLsekY9PS/gfws+JZ5qHNJDpTfaAgi4SiJhhNIuH/ g==; X-IronPort-AV: E=McAfee;i="6200,9189,10288"; a="256699162" X-IronPort-AV: E=Sophos;i="5.90,187,1643702400"; d="scan'208";a="256699162" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2022 17:27:07 -0700 X-IronPort-AV: E=Sophos;i="5.90,187,1643702400"; d="scan'208";a="646860796" Received: from mjbitsoi-mobl2.amr.corp.intel.com (HELO vverma7-desk1.intel.com) ([10.212.15.66]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2022 17:27:06 -0700 From: Vishal Verma To: Cc: , Jonathan Cameron , Dan Williams , "Rafael J. Wysocki" , Robert Moore , Bjorn Helgaas , Vishal Verma Subject: [RFC PATCH 0/2] acpi: add support for CXL _OSC Date: Wed, 16 Mar 2022 18:27:02 -0600 Message-Id: <20220317002704.1835870-1-vishal.l.verma@intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1117; h=from:subject; bh=Lic9ChaQZXkEd9xgaha9i8E77wzSUJy2HT8oCui14Lk=; b=owGbwMvMwCXGf25diOft7jLG02pJDElGDRESUpml/m0CBWrrNizl8eS9fMr4iP6rEp7ABEW74nf1 7vkdpSwMYlwMsmKKLH/3fGQ8Jrc9HyjpCDOHlQlkCAMXpwBMJMSIkWH1IX3VXZYzAsS2WAg6BsaXFk +f2BXS4e7aUyC+8kKp+k6GvwKhTw1ub5fSjvp4Y/30hvZpF9vPmmzT/MTC/Prgh8M237kB X-Developer-Key: i=vishal.l.verma@intel.com; a=openpgp; fpr=F8682BE134C67A12332A2ED07AFA61BEA3B84DFF Precedence: bulk List-ID: X-Mailing-List: linux-cxl@vger.kernel.org Add support for using the CXL definition of _OSC where applicable, and negotiating CXL specific support and control bits. Patch 1 adds the new CXL _OSC UUID, and uses it instead of the PCI UUID when a root port is CXL enabled. It provides a fallback method for CXL-1.1 devices that may not implement the CXL-2.0 _OSC. Patch 2 performs negotiation for the CXL specific _OSC support and control bits. I've tested these against a custom qemu[1], which adds the CXL _OSC (in addition to other CXL support). Specifically, _OSC support is added here[2]. [1]: https://gitlab.com/jic23/qemu/-/tree/cxl-v7-draft-2-for-test [2]: https://gitlab.com/jic23/qemu/-/commit/31c85054b84645dfbd9e9bb14aa35286141c14cf Dan Williams (1): PCI/ACPI: Use CXL _OSC instead of PCIe _OSC Vishal Verma (1): acpi/pci_root: negotiate CXL _OSC include/linux/acpi.h | 11 +++ include/acpi/acpi_bus.h | 7 +- drivers/acpi/pci_root.c | 201 ++++++++++++++++++++++++++++++++++------ 3 files changed, 187 insertions(+), 32 deletions(-) base-commit: 74be98774dfbc5b8b795db726bd772e735d2edd4