From patchwork Thu Nov 24 18:35:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Williams X-Patchwork-Id: 13055282 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 CBB37C43219 for ; Thu, 24 Nov 2022 18:35:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229597AbiKXSfr (ORCPT ); Thu, 24 Nov 2022 13:35:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbiKXSfp (ORCPT ); Thu, 24 Nov 2022 13:35:45 -0500 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 670B110FEDF for ; Thu, 24 Nov 2022 10:35:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669314945; x=1700850945; h=subject:from:to:cc:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=X1/XHDLEN2wAEd5II7KklSEkt1ZQ2Q0yc/NqKEg0eyA=; b=AH1l3Tk7cICSgSZJlJotX/K9ydMO7iITHqE4vDDE+9gxh27fUZ+7xzEm K9KoSxK4foEqRuwze7RrtymKXzHEiwDODa6j+V4Hhfv6SZL/B8vWOateO IlmPi1E2KQqHtHRq/4NwFZu1qM8F8pHdeG/6D+Gdliangpq4Xvk6g7hE0 wTN927ZHlK//aRScgx3TQpMhCBM6b0B+dpCqIPfScgT+yEGfa/djqrhWs seGfquXD18y6uc6+RN5aCCif52t3L4ITlCys3BMjfyAbVSdZ+KwLe5dNO mKpx80X0OTHhpGauN/+OAmsAzofCHJe5TPAvogPx5UHIDlCNmlSzw9XjX g==; X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="400642150" X-IronPort-AV: E=Sophos;i="5.96,190,1665471600"; d="scan'208";a="400642150" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2022 10:35:45 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="636358365" X-IronPort-AV: E=Sophos;i="5.96,190,1665471600"; d="scan'208";a="636358365" Received: from aglevin-mobl3.amr.corp.intel.com (HELO dwillia2-xfh.jf.intel.com) ([10.209.65.252]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2022 10:35:43 -0800 Subject: [PATCH v4 12/12] cxl/acpi: Set ACPI's CXL _OSC to indicate CXL1.1 support From: Dan Williams To: linux-cxl@vger.kernel.org Cc: Terry Bowman , Robert Richter , "Rafael J. Wysocki" , rrichter@amd.com, terry.bowman@amd.com, bhelgaas@google.com, dave.jiang@intel.com, nvdimm@lists.linux.dev Date: Thu, 24 Nov 2022 10:35:43 -0800 Message-ID: <166931494367.2104015.9411254827419714457.stgit@dwillia2-xfh.jf.intel.com> In-Reply-To: <166931487492.2104015.15204324083515120776.stgit@dwillia2-xfh.jf.intel.com> References: <166931487492.2104015.15204324083515120776.stgit@dwillia2-xfh.jf.intel.com> User-Agent: StGit/0.18-3-g996c MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-cxl@vger.kernel.org From: Terry Bowman ACPI includes a CXL _OSC for the OS to communicate what it knows of CXL device topologies. To date Linux has added support for CXL 2.0 (VH) port topologies, hotplug, and error handling. Now that the driver also know how to enumerate CXL 1.1 (RCH) port topologies, indicate that capability via CXL _OSC. See CXL3.0 Table 9-26 'Interpretation of CXL _OSC Support Field' Signed-off-by: Terry Bowman Signed-off-by: Robert Richter Acked-by: Rafael J. Wysocki [djbw: wordsmith changelog] Signed-off-by: Dan Williams Signed-off-by: Terry Bowman Signed-off-by: Robert Richter --- drivers/acpi/pci_root.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c index 4e3db20e9cbb..b3c202d2a433 100644 --- a/drivers/acpi/pci_root.c +++ b/drivers/acpi/pci_root.c @@ -493,6 +493,7 @@ static u32 calculate_cxl_support(void) u32 support; support = OSC_CXL_2_0_PORT_DEV_REG_ACCESS_SUPPORT; + support |= OSC_CXL_1_1_PORT_REG_ACCESS_SUPPORT; if (pci_aer_available()) support |= OSC_CXL_PROTOCOL_ERR_REPORTING_SUPPORT; if (IS_ENABLED(CONFIG_HOTPLUG_PCI_PCIE))