From patchwork Wed Jul 19 19:23:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Smita Koralahalli X-Patchwork-Id: 12297 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2678643vqt; Wed, 19 Jul 2023 13:08:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlENCJb7hsSTqLbJ6t8qYVOqJ5ML8t6HYtl5a+awr08b9N5yM2SdEB3x8dW2e7gtx0PMrhre X-Received: by 2002:a2e:6a0f:0:b0:2b4:7c31:ab8a with SMTP id f15-20020a2e6a0f000000b002b47c31ab8amr230989ljc.23.1689797315408; Wed, 19 Jul 2023 13:08:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689797315; cv=pass; d=google.com; s=arc-20160816; b=JrZzmAgjnCABxZs+PX+SYjwJMsl7QPe3585U8ma9CXRNqk9F6tFwHYrgIZgqWHZHL/ WNU4Ths0JC6lQITpLH/qN7n6cFcF3ittMDHWmTouGT3ir5A18Uvm2x/37j0EpwyGqsoz LJC7IbQgAQaSqnGOrZ8m+s2VnZPNws3kSvj18C8lO+qw1HP5BnW+TSn0X8+ntNgQzxkU dzo/BuFzV1XqvaP/fVfQjD5rx7InrNQt/yIIiMePnNbs+Rz3+QjjHbb1n40UgxOcJqDw 4liYxUNH8ywC459E/qkEuz0AyigcWFbdIdwim7A8FDB9E9AxYXLHfQUsGIGL62/JVVWi ZyTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=dnVOxWBrxNU/yJ5Ip2Q965HakR2b6pFC4vrQYvjhZAA=; fh=XsftW3UEsKVDpg34R8O86oa1udFTwHG6Ldr3ac/pbNM=; b=EHy6X+0s5L2+lmjxJxQNwEodP4aWuLmv/tcCdpahGi+5XU40lXNOjM6dh+lMuK6hpq uqx2sUtMnLar/gVKWSJ5llr/E4+WXuXPVa1ysxR9Mn03mXKGWW8yrRf/PV65g07Px1Wz eqM5/czoS0Mr4Lniqj/MQfzwpPPSOiStRKV4QHe/8Pk7RVQgRWs23UQkOmtY8wwPvyXJ ixjgbpUA269iZxbl7S2RT/j0s6ucfKBigAfHoIZeFrpRGWJU/AD5ST4x9BJsUvDSOwyg HDv5ILpFOmzTnnSPB7l1fnQTTt3vX2Cvd/5emVde8jopG/WUeW5vSqoOiKWoABW1Z16M JLxw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=FiBbxFrb; arc=pass (i=1 spf=pass spfdomain=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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q22-20020a170906541600b009928c9d9971si3327328ejo.875.2023.07.19.13.08.11; Wed, 19 Jul 2023 13:08:35 -0700 (PDT) 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=FiBbxFrb; arc=pass (i=1 spf=pass spfdomain=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 S231193AbjGSTXi (ORCPT + 99 others); Wed, 19 Jul 2023 15:23:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231148AbjGSTXc (ORCPT ); Wed, 19 Jul 2023 15:23:32 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on20611.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e8d::611]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51C6F1BFC; Wed, 19 Jul 2023 12:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P7xwIkbBn0YxMXAKfwUgcZV43d2A1umkURih6GMWz1IV6F9lqW0QORcHxTTfBvexeM8mUgOkafK5K9b6dtWzlBEN9DuEmxBnQldBhIY/ijeMsbE0476M5I0lo0tr6TFskTbxt0GXbn9T5SkLFCqpd9A6D1+qaUsGpGC93E2BS7hCC9sV+0dIoYBBpBFfun3zGfVaRDaLIxN4kpk6eTQVpdM2J+fCrvssmOyTIffp0aPoNhyLcJlBmiMqGQBktgTUFtv2uItJMZ4vTiChgEBPGyWnk0P9Dc70Ebb6TeGzgCT+Dv0+LQfRDD3mBkd6LfcXdDKhEZKic6wYPYeGOLmDkw== 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=dnVOxWBrxNU/yJ5Ip2Q965HakR2b6pFC4vrQYvjhZAA=; b=C7PwM+MSa26dAs0gVkOvN2JclyeJ4Z6y9OiLnZeeEKhGsnNIhJH18ytrb6b76EKKI7j/tPJwMMaB8ynvaItGuc4e/v4yEe5O2P8UlWau0vJhd9eUowipfcaCAuU9nJfhwW5xqRjNxT8Ceb4xDzjLanTa/3WjNw4zmv3dH8l8DI8jwls7HGJEAy9/U8XGZwg6TeMZ51AvZqUx9A0li4S8IzAhpnLYWX8o4wVEx8r1Z8sJIxjRsffRnIe2c6UYV+k7OmB1JA78urOQqu9rwEo0HVH7I4c3M5y1GoL7vjI9gvALNFTKtfqOGP/cyD/z39Gim6I2gV4ELuUWk8Sr2FGrZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); 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=dnVOxWBrxNU/yJ5Ip2Q965HakR2b6pFC4vrQYvjhZAA=; b=FiBbxFrbR/SYQARkl5Fh41e7Pn3P+S2hLLGsHLH6hQ52U65LGwv+OKRA7jR9CuZF1oLyJGUOe/i5Bbj7qoUHcgkczKsIgkchKVC1+zV+Tt0KDhQ3Up5tXqhwNt96LiTf3Fi6jkSFSIEJX7K/mEsDiOWjqlVnuusyUIJN57gWAfU= Received: from MW4PR04CA0325.namprd04.prod.outlook.com (2603:10b6:303:82::30) by DS7PR12MB6213.namprd12.prod.outlook.com (2603:10b6:8:97::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.23; Wed, 19 Jul 2023 19:23:27 +0000 Received: from CO1NAM11FT023.eop-nam11.prod.protection.outlook.com (2603:10b6:303:82:cafe::21) by MW4PR04CA0325.outlook.office365.com (2603:10b6:303:82::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.24 via Frontend Transport; Wed, 19 Jul 2023 19:23:26 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CO1NAM11FT023.mail.protection.outlook.com (10.13.175.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6588.34 via Frontend Transport; Wed, 19 Jul 2023 19:23:26 +0000 Received: from ethanolx50f7host.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 19 Jul 2023 14:23:24 -0500 From: Smita Koralahalli To: , , CC: Bjorn Helgaas , , Lukas Wunner , Kuppuswamy Sathyanarayanan , Mahesh J Salgaonkar , Alison Schofield , "Vishal Verma" , Ira Weiny , "Ben Widawsky" , Dan Williams , Jonathan Cameron , Yazen Ghannam , Terry Bowman , Robert Richter , Smita Koralahalli Subject: [PATCH 0/2] PCI, AER, CXL: Fix appropriate _OSC check for CXL RAS Cap Date: Wed, 19 Jul 2023 19:23:11 +0000 Message-ID: <20230719192313.38591-1-Smita.KoralahalliChannabasappa@amd.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT023:EE_|DS7PR12MB6213:EE_ X-MS-Office365-Filtering-Correlation-Id: 3cbb79dc-3d56-47a9-0533-08db888da06a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8/Z/mkxUAAmdHt1LhyGbRSiZIji889gnSbcKF9iHksrs+YP8loyuS2YvjQ1WEk3mQK56EI22XeCErzm8vV4oBE4+FG/vU+H0lGrwxs7T/ce56SIin2b8fa4RuCFZ0+wiu+kY7v9BLzA8ycmj7LMeioiNC48q//Be4QxpqQu1tAY5FnimeYp3jqDWmnPc+ZtuQ4Cvc9Cts4PGUtR18kuxqqT3i7dmrPl3T4rBnYO37jvB7bQw9qVgX3bdj/UkmgadAB9mYrqLBM/gtpg4TrtrspVVv8OE1SVw02fIQ9G1400s0xxmcAJ4hRbFJiLTUCMfTSFhRI/cFm4wC46ZVUvZPX0ZlrZWT2CpfZpj7Vvi+KUkEvX1sUVuekTAd7n3aH53YN735DhLW+kPoZap+/XmgsT2PBqUpVpetuKJ/5BhFIzTu9qIYVI0rX3LvoqxyhRz5veC0O/+c7DqY4/uVotiTQ+3tPhzZy4x/GW9dAVsbkIv5PaRnD9fmC6Z4evLLri9cEkQuToeoqmvVQLkFM7L0Md4jBQzeOc6zOQ5uk34Jd/WRd+/p8MC993TknwzLtip/Tl75IK2EEuqiojWaGUzHIwabuDbN//MCDC5g7teIE8oLA4+ZWPF/T/0zkhB3ys+7ITYmeLdoHjwGWgb/f49a+ZaXz7GM6JSC6THvRU25IFnJYDwpEwJwYzqb6VRMVzqLCIUnanpDES/aN+0+4wPbJlEjhWAggvfH2sIXTHcIdCQiho8T6aGd1b2H+QVW9bnSjXnS+8HJnjhkg7ijrqA0g== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(396003)(136003)(346002)(39860400002)(376002)(451199021)(82310400008)(46966006)(36840700001)(40470700004)(40480700001)(1076003)(26005)(40460700003)(110136005)(54906003)(36756003)(81166007)(70206006)(7416002)(5660300002)(70586007)(4744005)(4326008)(316002)(2906002)(8676002)(41300700001)(8936002)(86362001)(7696005)(356005)(6666004)(82740400003)(478600001)(83380400001)(426003)(47076005)(2616005)(36860700001)(16526019)(336012)(186003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2023 19:23:26.4563 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3cbb79dc-3d56-47a9-0533-08db888da06a X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT023.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB6213 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771880909868401251 X-GMAIL-MSGID: 1771880909868401251 This series of patches fixes the appropriate _OSC check for CXL RAS registers. First patch moves around pcie_aer_is_native() function declaration to a common location to be used by cxl/pci module. Second patch addresses the _OSC check. Smita Koralahalli (2): PCI, AER: Export and make pcie_aer_is_native() global cxl/pci: Fix appropriate checking for _OSC while handling CXL RAS registers drivers/cxl/pci.c | 7 +++---- drivers/pci/pcie/aer.c | 1 + drivers/pci/pcie/portdrv.h | 2 -- include/linux/aer.h | 2 ++ 4 files changed, 6 insertions(+), 6 deletions(-)