Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp71475rdf; Thu, 2 Nov 2023 14:10:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IErz0JliYnldZdUI084OFPnG3VyStUwpMrXz0qKCD04gC8V7iH6egpj2IjV/xQ5lyrwH2Cs X-Received: by 2002:a05:6a00:3a03:b0:68e:2d59:b1f3 with SMTP id fj3-20020a056a003a0300b0068e2d59b1f3mr17491199pfb.13.1698959426888; Thu, 02 Nov 2023 14:10:26 -0700 (PDT) Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id f22-20020a056a00229600b006bd0842622asi274048pfe.239.2023.11.02.14.10.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 14:10:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Zi2H1fDk; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 1E6CE839231A; Thu, 2 Nov 2023 14:10:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376675AbjKBVJu (ORCPT + 99 others); Thu, 2 Nov 2023 17:09:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234638AbjKBVJs (ORCPT ); Thu, 2 Nov 2023 17:09:48 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4885B7; Thu, 2 Nov 2023 14:09:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698959382; x=1730495382; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=apbU3aFM7d6FER40uh/ikOaNVqX//tNLV501AtkLwWA=; b=Zi2H1fDkWsHI/7CaSnR38PoJTBjoqTCXnSXEMbn0cbFteMLaj+CQDHDx gUGbv+NLpW1WQbfjkwPKpuYLSjmvZYM8ng4nl1gQyoCqsHNRj5RiYeBpn SfJxvgeXLh7KMhaxzWC1gunU8I08U9OsvhABqUgIYqO1TPvDv0oBTUf10 nVKG7NYgTtzR4gD6GfUFIE8TDpaComQZXxJ+SGW86nyFTkGo6djNxdWfG ocbrodx/KcmDcARnqymSIMa/bbsAeYGH0S/MQIelbpa71J8A5w/9mKBJH TJmF718p6Uj6R5YULnqedtd9rNb/KklzANqRQxLqSLpEZy7sW5z/K7S6U g==; X-IronPort-AV: E=McAfee;i="6600,9927,10882"; a="453119325" X-IronPort-AV: E=Sophos;i="6.03,272,1694761200"; d="scan'208";a="453119325" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2023 14:09:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10882"; a="765048080" X-IronPort-AV: E=Sophos;i="6.03,272,1694761200"; d="scan'208";a="765048080" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga007.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 02 Nov 2023 14:09:29 -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.34; Thu, 2 Nov 2023 14:09:28 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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.34 via Frontend Transport; Thu, 2 Nov 2023 14:09:28 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.41) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Thu, 2 Nov 2023 14:09:28 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QILnvWmsybttD7F4E/PEfz7wgRoTzgTPRhS41WW/rRDVDkijFdqks17755Uc6fCk3FAdjk9N2mklcnfviZot6KPcNFL5CkezHIqhFe3HOzjrWvQNXzilkdNS/CRr0xpMSR/v6WuD4wgRlwtBpWK0zX8jeLg9VwcK94GGiXq+Wjm1FoWwHOaiTEgDPw2hsInxrqtA1FYcOsc+txqlenStoLZWUuzraJqLtADNes9fs8JY3OfhsC9VwvYb/yd1iDFT+gq4t0BaWfJuuOtWTWhg0rvsP4FF5xN62k6TX4YSiBk/MCi8jHCEYhY+PsKmfwcAWmJrobxcQmOpcMHidDYCaw== 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=KUquRWNGY8TxGfFjPHeWCTyMQMWCl9sB+XPiLTQkSF0=; b=RdkZ4Ex+cEsnFeq6GM5Zpf4Wpj/r2ApAauWgr4RsXo9YxY58zGDd35Ok0p4r+01Oy6qq7zFrAjPVZT1U6h3Eh8dXhvJ/QZSGHCe4+ukf0r1vlLXNvX2JFVInGkL/RqWjIjv8OA/thOm5Yu0Cl4DXEfi1hsLmwd6ABxf5noOrxi8l896PjtLBf2aX1ES+Ywq7mMagxfnwmM+ligZNwdi25+gny/Wr/FUizz0k/HwCovv2GEhWPQVCW6Bt5JFMAF36wCtMjcWVE2Df2BdGcFkgkapKxPZkDNP9g9Cs6GDwpPO+cBQl2UzICj3v7t3ZMamaxH4bmNtO/onN9wlZyQXIEA== 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 CY8PR11MB7340.namprd11.prod.outlook.com (2603:10b6:930:84::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.21; Thu, 2 Nov 2023 21:09:27 +0000 Received: from PH8PR11MB8107.namprd11.prod.outlook.com ([fe80::e75f:ec47:9be1:e9e4]) by PH8PR11MB8107.namprd11.prod.outlook.com ([fe80::e75f:ec47:9be1:e9e4%4]) with mapi id 15.20.6933.026; Thu, 2 Nov 2023 21:09:26 +0000 Date: Thu, 2 Nov 2023 14:09:24 -0700 From: Dan Williams To: Terry Bowman , , , , , , , , CC: , , , Subject: RE: [PATCH] cxl/pci: Change CXL AER support check to use native AER Message-ID: <654410047189f_780ef29411@dwillia2-xfh.jf.intel.com.notmuch> References: <20231102155232.1421261-1-terry.bowman@amd.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20231102155232.1421261-1-terry.bowman@amd.com> X-ClientProxiedBy: MW4PR03CA0034.namprd03.prod.outlook.com (2603:10b6:303:8e::9) To PH8PR11MB8107.namprd11.prod.outlook.com (2603:10b6:510:256::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH8PR11MB8107:EE_|CY8PR11MB7340:EE_ X-MS-Office365-Filtering-Correlation-Id: ee3c99a2-afdf-4a44-ba57-08dbdbe7ff21 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: hi2m/DSBVQOQppOTpmNHOpkK/cwi2ABi6Y5c50i6rifSt9Nr29yHyE1bm395r2HplFpblhlxLteZ2iIlG0JJYyjBCEFudP/CnERDwV2Qa/JcAp+mfCFy3BldAB6Re4eca1GSVWdxXPYcBf52dlNaJOOzM7vhg1PEGQct/xHvqVZKHUVcOqo5GBy+8bUavTmrceHGsQ+yv/bVnGvsg3yWgUEqs3bOeycCR+7p3ARAK+j+XmjGEzkDToQQ0YqYg0Af1Fp7v7FodlXLq9zfzywcBitTwX1+MGsMNfX4tG2mJp37Mw1F0+CBUvycxbfcw3/uRbo6bX5c95Hh6CigNmykaFKd9god6yWebsQtro9eHUL/vKPWhm7ktrmKC8Rwtg2VVQtBJKWdRLyGxiIcZHaXVDpJ4KNNWPxa8WQoo/MzHThRcMMLneIbhkyJU7eq1Q5Ky4vDzG8nkxl7NmtroG+Ho5IxsAERZ8dzouv3zpbwdVmHNPec6BN1ahPrmU51z5f+pK0tTO8l2ptBoFr6rjHQT7VWQvl7/q+gdN2yPw0k55Z9yRzWIvYMgRmBSJHW/CoR 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:(13230031)(346002)(376002)(136003)(366004)(39860400002)(396003)(230922051799003)(186009)(1800799009)(451199024)(64100799003)(83380400001)(86362001)(82960400001)(2906002)(6486002)(6512007)(9686003)(41300700001)(478600001)(4744005)(8676002)(8936002)(4326008)(6506007)(26005)(66556008)(5660300002)(316002)(66476007)(66946007)(38100700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?jgZOp4+LeqjMIlIGnTGP9nNUyimUGMRuxh1vxP3oCBWKTxtUZRZ4ki6egPMF?= =?us-ascii?Q?gignUh/0MQfTe5uNCRroCiKqn6cvj21dCNFqvh6gSm9k7qiTCZwCQOpt2xUq?= =?us-ascii?Q?PuJFyl5D4M5fy7GZbQfUdC/5gaAgJ7fhPJypGhMix940nm26BmwHMzpWtgYH?= =?us-ascii?Q?buQ5iaXrDU1FtsBrR+DZ6WGG3SDewFTTwuORVPHXsP4WBTdgQdAnlCypZOuZ?= =?us-ascii?Q?72AEkoX6wFpfE5Byla1VOfkBcbEQJsi7ESX6cLT4ZncP+JQurpUdiU6O1ofJ?= =?us-ascii?Q?Qdc63AyunMAgufzqcRGiH5xzHxJwR7Gx1aDOD52kLAVAzLtnbi3XW9eOKibb?= =?us-ascii?Q?3tCf17ODI9SNdlzq+eeWneAOK16U86IZwnibnVinTP0Rgo4gY4fTHEuqgpp4?= =?us-ascii?Q?cARkn8iktvCpIOl5+cD7u1BcD6CisH3FlKymukducImfU8ZJ5PH3euQRD1wi?= =?us-ascii?Q?JZly+j8LojQY4QDx6R2wfYUoN4a+bhCcokrNGJy8Et9m/o5rWNjdljp+kuam?= =?us-ascii?Q?j8jEEzFsWD003Mk8+z/I/Ld9wlB7T3V7WWALDCgr759VvQMWT7V9Wi1xKmp/?= =?us-ascii?Q?yfxWED2SnZi4oL1CCdis2XVjfH7+9TCL5q/7dAOQ8gM07uRjHy9kxdrnKEfo?= =?us-ascii?Q?pDwD2Q1KimChHs6+Hy2NLwnUt/4Q2uldAksH2MZkk7BF+56/hTBhVw9okHpo?= =?us-ascii?Q?jDRNJmH0fR3oaN0O8v3ZrmQ0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=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: ee3c99a2-afdf-4a44-ba57-08dbdbe7ff21 X-MS-Exchange-CrossTenant-AuthSource: PH8PR11MB8107.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2023 21:09:26.8706 (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: ioeLhdE/w2lP4p6Kf8mKKupQYDk4EyfrHamJnRoOt9kIll1m2V8q5LIaTuw2x+gkTqr4PVulDg2LYR4fD4cM0JSQL+0tTkbBqHraWO9BS28= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB7340 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 02 Nov 2023 14:10:22 -0700 (PDT) Terry Bowman wrote: > Native CXL protocol errors are delivered to the OS through AER > reporting. The owner of AER owns CXL Protocol error management with > respect to _OSC negotiation.[1] CXL device errors are handled by a > separate interrupt with native control gated by _OSC control field > 'CXL Memory Error Reporting Control'. > > The CXL driver incorrectly checks for 'CXL Memory Error Reporting > Control' before accessing AER registers and caching RCH downport > AER registers. Replace the current check in these 2 cases with > native AER checks. > > [1] CXL 3.0 - 9.17.2 CXL _OSC, Table-9-26, Interpretation of CXL > _OSC Support Fields, p.641 Makes sense, applied.