Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4509253rwb; Tue, 8 Aug 2023 09:26:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGLznXCbDCGy5Qr+U/qF9vIsOdzUroOyHPsPNEiELAfAAzpId9xu3zS6xCv5416aIj+uPaU X-Received: by 2002:ac2:5e2f:0:b0:4fb:8948:2b8e with SMTP id o15-20020ac25e2f000000b004fb89482b8emr3924lfg.8.1691512019106; Tue, 08 Aug 2023 09:26:59 -0700 (PDT) Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z18-20020aa7cf92000000b005222c4133f8si7219043edx.16.2023.08.08.09.26.34; Tue, 08 Aug 2023 09:26:59 -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=@intel.com header.s=Intel header.b=g5cCU5gq; arc=fail (signature failed); 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231370AbjHHDZM (ORCPT + 99 others); Mon, 7 Aug 2023 23:25:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230412AbjHHDY0 (ORCPT ); Mon, 7 Aug 2023 23:24:26 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B0B0A8; Mon, 7 Aug 2023 20:22:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691464965; x=1723000965; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=QQkpMx9IHz1ow+JZBx7UGg/LEemKsHh2B57j+1Yf76Q=; b=g5cCU5gqmH451DfOHu1U9Mz36DJyQb7AMcDRRa1nrVoKZFlBYDCLEjSM WDFx8fsa6X185/5INXUXJjzCGeF9pR3zcBH6Zs3TIwRM+i3JR9994w83Q jiUP1CkxFfeIdru7Fkd2Ls5bg4uV7I+JmjrlRug5fwr0QGM0ohxBjUKm+ n02jqL8Xns9B7GWUF7IZFqais66c7wTSbkbPsvLGGHPCldR0ngZ73b0do ygtE6SGT+jxDlEWLx59F9vDzDJt5J7GzVCUxvD1uejUxWSnklfD1/446s Bmtth5JQpZIkZM20AcZueUmXmBkiZj7IHsE96lS1HFF3dE9w1HbGRhi0q Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="360797163" X-IronPort-AV: E=Sophos;i="6.01,263,1684825200"; d="scan'208";a="360797163" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Aug 2023 20:22:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="977700522" X-IronPort-AV: E=Sophos;i="6.01,263,1684825200"; d="scan'208";a="977700522" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga006.fm.intel.com with ESMTP; 07 Aug 2023 20:22:31 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Mon, 7 Aug 2023 20:22:30 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Mon, 7 Aug 2023 20:22:30 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27 via Frontend Transport; Mon, 7 Aug 2023 20:22:30 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.109) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Mon, 7 Aug 2023 20:22:29 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Om2EwwxqWzBptiQ53nAGW2iaecwQhIwRBtZfY57iJq/ZKFvAZCfshRbn2IbiaujATyQvlHDSL4aPqmZjxDaiaWlUQh3RuUyJX4/kbDQGv1Blsc9h3pzPjototesx1eKiozsN4BV92XT0cEut/6gIN6HXiehPgDUWp0L8LuNEZeN8Ugs/9h2cKw11FTHaoTFajnEjPBSVEZ4COyX6DochjhJARZvYb6FDETjNtslJXP0XxQRJKkFzII2IEVmQuTfbY4ukB4x4eWeTDA+5/CRMtYhfx14CkVsumMyHluFYLEtgeUqDDkl3vFlCMLppFfLJdDRFcfJkWeRWLeAn/jomGw== 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=5FF1PsZTHcfK4La0U2jihdS+stQpJTSISQRwCpiyH7E=; b=lmzfm4LO0VOG6Ogf+q9OUjVD5zqj+Q9bcHvZeEVQHwunvr2ayZ4R5m88OsmPMXToPFl0AUDhP7kaBNGf5hcj1uKKuwHz0Q45RV9c6bmbAB2ONs32Hw55ZCBg/Dwk1vOhY2BY+PYWCgynGguo0n1/wG1DYSW4xIuznLLEk4BbRWeOLzb/AVvExVv/x86m/CGzuyUgvhP0FCJN5LTohlYJYgZnFkj6XZHLFrsHC5XxJgbvkcvb+LWL3x9K9+7VxpA1cJDdPwsPV1Bhewt4vFLStgZAF+ySP5cleXIYS9zW3cWapF0LWPPNdHgxxyTsA5KhKKFmQzffCMyr3HVz/Z54fA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from PH8PR11MB8107.namprd11.prod.outlook.com (2603:10b6:510:256::6) by PH7PR11MB7595.namprd11.prod.outlook.com (2603:10b6:510:27a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.26; Tue, 8 Aug 2023 03:22:22 +0000 Received: from PH8PR11MB8107.namprd11.prod.outlook.com ([fe80::4556:2d4e:a29c:3712]) by PH8PR11MB8107.namprd11.prod.outlook.com ([fe80::4556:2d4e:a29c:3712%4]) with mapi id 15.20.6652.026; Tue, 8 Aug 2023 03:22:22 +0000 Date: Mon, 7 Aug 2023 20:22:19 -0700 From: Dan Williams To: Smita Koralahalli , Sathyanarayanan Kuppuswamy , , , CC: Bjorn Helgaas , , Lukas Wunner , Mahesh J Salgaonkar , "Alison Schofield" , Vishal Verma , Ira Weiny , Ben Widawsky , Dan Williams , "Jonathan Cameron" , Yazen Ghannam , Terry Bowman , Robert Richter Subject: Re: [PATCH v2 1/3] cxl/pci: Fix appropriate checking for _OSC while handling CXL RAS registers Message-ID: <64d1b4eb4d991_5ea6e29427@dwillia2-xfh.jf.intel.com.notmuch> References: <20230721214740.256602-1-Smita.KoralahalliChannabasappa@amd.com> <20230721214740.256602-2-Smita.KoralahalliChannabasappa@amd.com> <0e4dc46f-a086-8b85-f94f-b3530d958209@linux.intel.com> <64da6d98-953f-f813-7184-e69b1c8bb28e@amd.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <64da6d98-953f-f813-7184-e69b1c8bb28e@amd.com> X-ClientProxiedBy: MW4PR04CA0346.namprd04.prod.outlook.com (2603:10b6:303:8a::21) To PH8PR11MB8107.namprd11.prod.outlook.com (2603:10b6:510:256::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH8PR11MB8107:EE_|PH7PR11MB7595:EE_ X-MS-Office365-Filtering-Correlation-Id: 0e8a4664-abeb-42ca-9761-08db97beae50 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PN9UFpEFuqf1sv/QpP+qnu1r4nKgSppSUUKla+sTHrIuLYIDy609c62xE58n+QgTbEMzhQwRbY7gohNRo0mU+08ZAjO3ynin1g1g9by6YWoezz8ANYBtA3RyZIli921/xSJm4C1vg0UwpCwqMWAUmiwDcDaJbmIm+gMGJkEoHu3JqU99DzMFMCMvKBycteX0wDmBRI5gC9PcKm+B4s0X5Izx99p8hdWdgpP52tgOv9ZRuttpy2I1y9meXFlBvOnfNqfMos1niRXA5cLbdVzRgmIA1Iz5gEDfBX0/4TXeM9pWkCkO8e41UqGJbVf6RPCeMEmASZS0CqkDKaS+CH8G0HjUxH82SV1OB/+WSsO7aPMj5WFrG1OVc5S9p/ZHOeXR359o0kMQIGCLDSapQ5SR0U8Q57BJqwJpn0Ticv0e6MHqFdgakZYBJVIJAT8vR/ulViSXd7rYIt4mLoxJc525eM8DMSe3epMXEwMA0f+kw1VW30i4TDWmFIXAGiCmRl8dkAQVBvxqeiLFNXZigwvDzuOWlNRZQVAZWT9f7Zheou+7TEdt8Y/WWmbSn9MGfUEHvOmA0XSsyJopJBFKhqc1pImMwYPxExWw++GPRKZNLGT6W3FyIQf6RbgS30N/p2e83XCXU/Eb1LRQnC2nMuThNw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH8PR11MB8107.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(346002)(376002)(366004)(136003)(396003)(39860400002)(90011799007)(186006)(1800799003)(90021799007)(451199021)(41300700001)(26005)(2906002)(5660300002)(83380400001)(7416002)(8676002)(4744005)(8936002)(86362001)(316002)(6506007)(6486002)(110136005)(38100700002)(54906003)(82960400001)(478600001)(66476007)(66556008)(6666004)(66946007)(9686003)(6512007)(966005)(4326008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?8AAW+Wmdx57uvXcVdpkJCp1OHG6IRap9U4cmqucGVMRAWwuwY6oal67d2ei7?= =?us-ascii?Q?O6q+wEzPIAK0ERJE+eSHgOv5jr3ANAZjoGYXXQEkG9lRc/cYA31oGPkWv1u7?= =?us-ascii?Q?taUZySm06FPFNVuKjyJCYmEXFNeYNiJF/LLP7asu73hxiccA6Lud1ah25mdu?= =?us-ascii?Q?6aXK7cFgelfQEhkA48b4vt3zhfLX7EVlo7SqxTglq/nQ0V3FvWeeqT3sLF1B?= =?us-ascii?Q?2EnAerBzQ1buP6mbpf47fKDZWRDsaucWCORNhwYPrkwSEcEPq4NSN/GhtrCT?= =?us-ascii?Q?e3CAK+OpueOZZ1Hk7nLAqfe1IeGabImbGswpXAfUZtpqyUsjwJEL7DIyoXOf?= =?us-ascii?Q?JryWlFxgZ+7enOSjBdyKS/9koEUv/ZKlTJIiU260jYUojAG1Fr+51uG8mKMI?= =?us-ascii?Q?E0WmuUubjhpg3/3LsQFG7EToy7WQ/raIt+b+DaZRaZ0EW9klunCum+re2gLU?= =?us-ascii?Q?9d2DkPx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pKGf8xA0Qr?= =?us-ascii?Q?5dJaTjISLkKrJEWUqZ69GuOi5tF/8aNZt2aCahI8PLfU6GU34OYHXpBmLfOM?= =?us-ascii?Q?w1UyR32LmC7RKJsCuxEhE3S7hnDt8tbHp3L3AUuq9tFgylFA4IyXtvUpYOel?= =?us-ascii?Q?80G4lKIBd5/YEvTzTuQYIuy8MPZ66oNyPaY+5TiOLeXAspIFb7q/CJc4K158?= =?us-ascii?Q?/3n0J+/cceFpY1lbFQSLA0PwmhG4ojv+qOdzeLD/3grK+2MpjAhQ5fSu22Je?= =?us-ascii?Q?aA=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 0e8a4664-abeb-42ca-9761-08db97beae50 X-MS-Exchange-CrossTenant-AuthSource: PH8PR11MB8107.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Aug 2023 03:22:22.8370 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: pJfUZr+6zHgK/e9X47+JAhvWHfl3HiYIDypPIPKB9NyD7rr+Umt/eANNhB1JuEWOt/ZvfNu7+f/PqtzrFOx+404WTaLnxUoC72O2MvPP6/s= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB7595 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED 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 Smita Koralahalli wrote: > > >> - /* BIOS has CXL error control */ > >> - if (!host_bridge->native_cxl_error) > >> - return -ENXIO; > >> + /* BIOS has PCIe AER error control */ > >> + if (!host_bridge->native_aer) > >> + return 0; > > > > Why not directly use pcie_aer_is_native() here? > Yeah, this was in my v1. But changed as per Robert's comments, to be > applicable for automated backports.. > > https://lore.kernel.org/all/ZLkxiZv3lWfazwVH@rric.localdomain/ > > Please advice. Keep it the way you have it. Minimizing the backport is the right call.