Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1191194rwb; Thu, 10 Nov 2022 12:29:57 -0800 (PST) X-Google-Smtp-Source: AMsMyM5XbeWAY68ynN5yFrTgGWPH9/Flx91xu4vXfILKW65zUW6Kb71wKLxZkSakBhAbuPr0hDoi X-Received: by 2002:a17:90a:4d08:b0:20b:25f6:3e30 with SMTP id c8-20020a17090a4d0800b0020b25f63e30mr1959686pjg.227.1668112197604; Thu, 10 Nov 2022 12:29:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668112197; cv=pass; d=google.com; s=arc-20160816; b=soyF7Qeem09RhMzpivYlb6zUGWhB83YnLL/PqHIg/I9073YPd1gjQQyl5YGQO94Pq7 5JaKGUgeeJrvSecr1ra3gKO9u/P1ysqJ4lb8DyCZixiM5B0M5WWMOjkkUnkhOBYZBnz9 8HZh/fFehgdTUtthyAjvpQZvg+yzkMkBYEe9vdat4wUjYp5LnzM6yN+XSvX3CQSiCqSz Up1fgKrp2H/bVaOpiQHranyDubdyy+yAJ5vI7fbnWWJ98EyRrw4PPoX4V9zErLtgd18Y bNBSidqhbDKXHND54dcQoUeS5Elwr72WW+zHSENAF4/eSRKtXKhhQ5l1Ddzcu4xErC5r UiuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=xZBsxG9szuV5AbDuzTYHyqBHOMcS0TWMIuniJfh1/po=; b=mH0PSNihzPXjrvd+cTNufOLePsUxP3ztB/gdxXFGajoY1emLnyvydWFCTkaSo1B8a6 GItImCI7JYl2Tu7Sr1Q04JHf/F2YYCEKzPWYnQ0/so5JUpsxW6NOPYXPgWfoKyf2KTWE kDS/H+6susyBS4ms6tDFClelBRe4s/7kobpkNGesTz2Oq1h798XoSWs6SI+lpB4iKojT Kgto4Uu3GTdYBausssHZW5nK6leIx+zZnHgz0OMPBWaZXQVc5CkKP+lC6PFxQhgl8T+U fLqjXt+VTBt9s8IeW6LaeCczoxcQppDWfQ4BvmFt/ejK+1TpgUk7yt5KyZx8GhFCB5sC eyfw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=dim03moa; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o4-20020a63e344000000b0044b014c9a3asi157483pgj.300.2022.11.10.12.29.40; Thu, 10 Nov 2022 12:29:57 -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; dkim=pass header.i=@amd.com header.s=selector1 header.b=dim03moa; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230462AbiKJTng (ORCPT + 92 others); Thu, 10 Nov 2022 14:43:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbiKJTnc (ORCPT ); Thu, 10 Nov 2022 14:43:32 -0500 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2071.outbound.protection.outlook.com [40.107.102.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 252C01124; Thu, 10 Nov 2022 11:43:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YQ8s7Bbgc7p6FKnBLcoy1DvqF86b01l2N95kMob447gWSMu2b21qe5IC95+8MiwFpdZpS/cctlnJ/EhHZq2pVYRNXxq977aW5exW3cQzGuq1rc16ArcHSpoquw8wAhfs0EYb+qbDJOwbjRBoSXHFBHALkOjX5y6yNHevRcT6r2X8BW+1Xqe3ol/9tfNTfxjdC9fURjM5G9bvmj1KrTC4sjuXF9hhd92eS2VT64m00TJJDnN9jyc2woqsDIZiCejKf6Z4+59DVetlWdRdLU4EEy9cySAkq7K38BSNaGm4JY2P6VvkgRKrqfMNVXK3/rHY6fiqe5RAJ6ioIcOfB1XovA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xZBsxG9szuV5AbDuzTYHyqBHOMcS0TWMIuniJfh1/po=; b=noB6I32wbnbWVLzNUFOBemigvPoyaoeAXbqjiBGABm6gnpEc+zEoziM8iU/pH+6WXf5voxZegR6V+0qZWxUWpCd48gDB9g2KdbavPsSo9Pt+9mUM2svGRlC3fUssCckAbYyjd1zLnCNb3WlM94Pc0l7EKZqHxBtJAMHszTHI+rR8UWtOr9TD4Wkuhi9SX2Gsskrkel6UkgwVsxlLGuUb7XONY9i1gB8JCt8lJHsHQ0JH+fHfxsIX0nt4blqB8ZQ8v1MIIOh9hwmukCb1irgYfeRx8IQodQkkgNgjohbISJ32jBTZh3P9kcbdWRE76KTxU59Pi2X1MhwFG3My+/tyPA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xZBsxG9szuV5AbDuzTYHyqBHOMcS0TWMIuniJfh1/po=; b=dim03moakWdaEGVi0MzBalYEquW+dFk+KDSXKmJ8Xm25Xs0PIBh4RNOCnrfTWRCxZca1H7h/YJMFCn7vTv5fS96gNQwzUmVNtfdfl8io9kp2uqEJ9B4hkeFzwiYW5eI71KQY2ge0BcYK8HAQmO192p2nHsPQ6S6Z0BdNKSu/IXo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DS0PR12MB6390.namprd12.prod.outlook.com (2603:10b6:8:ce::7) by MN0PR12MB6272.namprd12.prod.outlook.com (2603:10b6:208:3c0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.27; Thu, 10 Nov 2022 19:43:27 +0000 Received: from DS0PR12MB6390.namprd12.prod.outlook.com ([fe80::6b84:1aa9:19fe:71a1]) by DS0PR12MB6390.namprd12.prod.outlook.com ([fe80::6b84:1aa9:19fe:71a1%8]) with mapi id 15.20.5791.026; Thu, 10 Nov 2022 19:43:27 +0000 Message-ID: <52116d0b-90a1-41c7-5b3c-622fdabf788e@amd.com> Date: Thu, 10 Nov 2022 13:43:25 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v3 9/9] cxl/acpi: Set ACPI's CXL _OSC to indicate CXL1.1 support To: Bjorn Helgaas , 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 , linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org References: <20221109233558.GA581582@bhelgaas> Content-Language: en-US From: Terry Bowman In-Reply-To: <20221109233558.GA581582@bhelgaas> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: CH0PR03CA0315.namprd03.prod.outlook.com (2603:10b6:610:118::15) To DS0PR12MB6390.namprd12.prod.outlook.com (2603:10b6:8:ce::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR12MB6390:EE_|MN0PR12MB6272:EE_ X-MS-Office365-Filtering-Correlation-Id: a7273f33-ffd6-42a5-f1a9-08dac353d672 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7U0Ib5bh88AqXOQqwLmtZxjMn++FDNQ1pC9TpRhO+Ojg8YlLiM5TO7X80iyWLk1TbcpFQL6331EnRmKBqRUPuakGvx2kIrqjfO6yKjPixdQveaT2vc7r1giAzaip8bGDMNEhaaY7NlT+iSRrqlkHpM3BSPfLvkVJdJp40cNBaTNIHonySffTVPHzIVp06CUZWHfg8nuBCjtlDpDjHn+nRVGsuL20iDEumfb8A8f6GjWy0J3VqO2hJsRHCmT6nBxyNg2pKbH+INOOjrIkj27H9h4aYfBIrN7JIhUcZhc+77FEXOxHy1J8ZeS4BQOP0UCBLz22ZzeSYccUh7SGfwwOn2tRu95P2iK+LKL59sn/GgacxYPCuxCiaeMM0AaXWShiW2AEDO/DhRd75vv4i8QzFnqdq2ikJuyTM0yVVX6fz5zt7frP5cvl0VSCWl0Z1fvmYB+yViAqFpy+63dNd1s8D2VCqnqUbRt5890bFAjuRcMUSPre2LVbIitFkb3oTCFyGGp3hbQUohm+fx2uHxvbLYF02QjdTgtTOm8vKql6njkYRP8HFS/86rz9DY2JMH9Tcx2Rvi8wt7L5Pt+JK1QnkA41AHFkrE6tyco1lZ0wWS3tBbpNMeUbfyyD29rulDKfhtbszt6eZ2vT0xMhNEYYRtkqYK26AH2jHZQuHNlDpEFQHc1WT+z2zYavfSvVRgObVkaVJ+X1DESKEIfI+AyYAO7FPfpdw0MdgsuS1OThFjc/5vEYnshYji4iqCOBgrj8PCwCqGeAI+HVhVTcHAluMPM/dMZyqwzq8eZweK6+kXg= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR12MB6390.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(346002)(39860400002)(136003)(396003)(376002)(451199015)(53546011)(2616005)(110136005)(186003)(316002)(8676002)(66946007)(6636002)(6486002)(4326008)(54906003)(26005)(6506007)(38100700002)(6512007)(478600001)(66476007)(66556008)(7416002)(41300700001)(2906002)(5660300002)(83380400001)(31686004)(36756003)(31696002)(86362001)(8936002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?M2lISjFVUTZ1bHdxbFYwQ2xqL2l4Y1VMTE5aNVhNTmRxcmp5K3ZBMDhOTmVU?= =?utf-8?B?VFNzNFBIRWNoME5IU2dobW5aZkdQT05RenZabkVMWmRiczRjWmkrMWRvS0FS?= =?utf-8?B?ajF1SzFyaWcxQ3BUWXkvZGdEVFdqZHJ5OVNLKzg0emY2WFQ5TVFsdmlrVlVy?= =?utf-8?B?eXNPT3daU0FMbDFReWh3WG50c2Y0d2htNThaWmZlZWE0bkVtT0N0TU50Q0tl?= =?utf-8?B?L0YrUCtBbjVDYmJBUDltTlYwVURhcm9vcXRKbXM2ZHlHUEZVbnllSTUzMlQ4?= =?utf-8?B?aGhtNkxoTDJlUmszdTdqNHpPQzNNWTN4K1ZUc1RGNkRKQU9FVWFQZG1mMGZM?= =?utf-8?B?VG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TBN?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: a7273f33-ffd6-42a5-f1a9-08dac353d672 X-MS-Exchange-CrossTenant-AuthSource: DS0PR12MB6390.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2022 19:43:27.6561 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hwpHdNPp0ZAwOoXpytecFVEBaQqj/Pn6YUI7lBmBaRyXlipIqSRTvJOxu80vxJ7eu02OvibQwwmbveKsbjpn/Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB6272 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 11/9/22 17:35, Bjorn Helgaas wrote: > On Wed, Nov 09, 2022 at 11:40:59AM +0100, 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 > > s/it's/its/ > Ok, will fix. >> 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. > > Eight instances of "support" above seems like it might be more than > necessary. > > I don't know the history, but OSC_CXL_1_1_PORT_REG_ACCESS_SUPPORT and > OSC_CXL_2_0_PORT_DEV_REG_ACCESS_SUPPORT seem like sort of weird names > since they don't match the spec at all ("RCD and RCH Port Register > Access Supported" and "CXL VH Register Access Supported"). > I'll reword to not excessively reuse 'support'. Thanks for point out. Regards, Terry >> [1] CXL3.0 Table 9-26 'Interpretation of CXL _OSC Support Field' >> >> 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 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 >>