Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp447829rwb; Wed, 9 Nov 2022 04:48:15 -0800 (PST) X-Google-Smtp-Source: AMsMyM7V8Hzm/n1SAiZNcLYVQmHOMLBfDTpPvSCTZ9YUfOGwm9qPvErEYpD25rtoviAyI0Zoy86g X-Received: by 2002:a17:907:a05c:b0:7ad:f563:815d with SMTP id gz28-20020a170907a05c00b007adf563815dmr39022569ejc.371.1667998095584; Wed, 09 Nov 2022 04:48:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667998095; cv=none; d=google.com; s=arc-20160816; b=JsHNUwj2QbrmhWywDu1dU60hR1CNVpQAe6YyYS25wLWc7V3YLymtf9kroNMAyZl2zf pZjcX+gL15blWZc+1O0HW/7GziOXpv3Wtt3SsfUi9/b2+n/0GYJf73fpd2tZwK/oH2KN qMJRG8/BMNEKyYLVi7O1a1aQLo0QxHFjkxtE+qg/SL6PMLgypzJdFRvP/VhkZ+lC0MxY ughmwcJWtmDzyimXRqhIXZbQVQjolaMBIaeBwoaQVW+4hfqtGywP+qqWA9OMwDUfnz0t ELBu4+aCfZ6nztXJXimN3seukzGf0yyWHqeHbZQm3CIeTydzX8wAQ2SEri5uFO3q1+tg 0YeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=XvBiFkolKGUNT/T8gjXpcXzeHtarJfPAvEGuDLN1G0E=; b=vgWKNZkgzOMdzlMrTSfBfpcP1gNaB9C/afJOQHOP2UJEJKnOWMdQWAZUa6Ug2ZNGHx zkeZKByrCMgJl6SLQkoaejR1yfU+vSAuqfLjnSCs0wbmKyz6vjvJjzbhob6Rl9RvocXj /K8EJ/d0LPHJnKCSE246PCtSvQ7Fze4gsKYuTAhnLDm8BDdoYKNyfmO1SswRncpzmelo d+1f9CRyZu8NgXQUsDIvmxKXh284rlPee5vu9NY/FItZP8hTKQv4yZbONtZ2m9/b8p4r e16Ivv1Ye1EklWKVmWD92MW2f31neD9a6Td9VCDfswzd9L4yvt8CNxO1C8NMr29ain5m 4QUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa19-20020a1709076d1300b007a6ec03b13bsi17267883ejc.799.2022.11.09.04.47.52; Wed, 09 Nov 2022 04:48:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229931AbiKIMWU (ORCPT + 93 others); Wed, 9 Nov 2022 07:22:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbiKIMWS (ORCPT ); Wed, 9 Nov 2022 07:22:18 -0500 Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7E6A250; Wed, 9 Nov 2022 04:22:17 -0800 (PST) Received: by mail-qt1-f173.google.com with SMTP id l2so10197183qtq.11; Wed, 09 Nov 2022 04:22:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XvBiFkolKGUNT/T8gjXpcXzeHtarJfPAvEGuDLN1G0E=; b=s99MiDBO7eAhnWAxeDGGJrdHdVOtxlXxWPC30w1PgFXr+XY1nxBUuhLPQ5k5yuMZgG o7RtW/JkcS92aszpKWr7KK5GGz7Vcn+c+897dgp9LLUlxK9YGCfsGuYNh1JQPQGm/Lvw ziqJQ6UmtPQ2XoDEx0/1N+i0DcwjGe9K3gSew7HNnAmxEDw5tUtayrjkTR4r8ZKtrDAH QEE0AqC3gH64ZqO9lwmKwKt0P28Szt+9XCdH7g9gEEoQi93rIqVshoUKGiRae8k9wp2i iwCcqEXJlpdANWflmo95Cd/uV+M1sU8DoMOlDW2HHylRXJ4cmpFL8EO8Nrc3wZ+n7Vka sclw== X-Gm-Message-State: ACrzQf0/LR6gDuCyTHN5wxPfpNy5Uy4YhWMzRkJ94UFhQu4dqo5QBeFT gY6vsJF0B4TlLOUaCgsYSFQCP6AkX7gs0DrJKBc= X-Received: by 2002:ac8:7d15:0:b0:3a5:449:87c3 with SMTP id g21-20020ac87d15000000b003a5044987c3mr47257311qtb.357.1667996536769; Wed, 09 Nov 2022 04:22:16 -0800 (PST) MIME-Version: 1.0 References: <20221109104059.766720-1-rrichter@amd.com> <20221109104059.766720-10-rrichter@amd.com> In-Reply-To: <20221109104059.766720-10-rrichter@amd.com> From: "Rafael J. Wysocki" Date: Wed, 9 Nov 2022 13:22:05 +0100 Message-ID: Subject: Re: [PATCH v3 9/9] cxl/acpi: Set ACPI's CXL _OSC to indicate CXL1.1 support To: Robert Richter Cc: Alison Schofield , Vishal Verma , Ira Weiny , Ben Widawsky , Dan Williams , Bjorn Helgaas , "Rafael J. Wysocki" , linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, Len Brown , Jonathan Cameron , Davidlohr Bueso , Dave Jiang , Terry Bowman , linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 9, 2022 at 11:41 AM Robert Richter wrote: > > From: Terry Bowman > > ACPI includes a CXL _OSC support procedure to communicate the available > CXL support to FW. The CXL support _OSC includes a field to indicate > CXL1.1 RCH RCD support. The OS sets this bit to 1 if it supports access > to RCD and RCH Port registers.[1] FW can potentially change it's operation > depending on the _OSC support setting reported by the OS. > > The ACPI driver does not currently set the ACPI _OSC support to indicate > CXL1.1 RCD RCH support. Change the capability reported to include CXL1.1. > > [1] 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 > --- > 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 c8385ef54c37..094a59b216ae 100644 > --- a/drivers/acpi/pci_root.c > +++ b/drivers/acpi/pci_root.c > @@ -492,6 +492,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)) > -- > 2.30.2 >