Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp289067lqm; Tue, 30 Apr 2024 23:39:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjRwpkkSinJDiY7zvkX2gve59GCfhjeEpjSvRxN6J6SXuwqmk1Ri6UsJF/vptIJQjW1V/EgP86tPJ0NqvYNLE4KSrIDmR5t6fOAjKGcQ== X-Google-Smtp-Source: AGHT+IHnyyBOoW4WA/7IIxtSYb5zapWam/GgcwxO9rM1y2aXvw2Cec4N+WXwxa1j+3mdjsnFyTzs X-Received: by 2002:a05:622a:450:b0:439:dffd:3228 with SMTP id o16-20020a05622a045000b00439dffd3228mr1706369qtx.26.1714545543708; Tue, 30 Apr 2024 23:39:03 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w5-20020a05622a134500b0043aea0168a5si6324290qtk.278.2024.04.30.23.39.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 23:39:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164971-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=xuU5uwhj; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-164971-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164971-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 19D8F1C222E1 for ; Wed, 1 May 2024 06:39:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 35FCD3A29A; Wed, 1 May 2024 06:38:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="xuU5uwhj" Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2077.outbound.protection.outlook.com [40.107.95.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E2CE1B806; Wed, 1 May 2024 06:38:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.95.77 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714545535; cv=fail; b=E83ZHoq9ETAhWJnlNE+IjgPyJdIIAOFtvBrDAzd+Z34KfL0R2xyf/DkRv9BUbV60WkpYHBZRwcjbYplrWCRYylTQwD5m5gPXvwJnNtx7EuHMEagbD4NRgzIz6p+rNEsGx5wL/G29x4o3kU9qhVGQcbEiGDBIzDIt2CcH0Y4ur1M= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714545535; c=relaxed/simple; bh=UqHauTQsRnvUOj8hYJBhlN/qx2M1B+MLklMfVUNvYgg=; h=Subject:To:Cc:References:From:Message-ID:Date:In-Reply-To: Content-Type:MIME-Version; b=Yb2wMGGDHC4QoBiRwWAglVoFY1LpR90Ec4UUDNMN1XSiWid9N6YLi0VymbyGKARN2xED43DvWtvhwblZ7+JXFHf9x3rBlfIPDybnyrN4Vu5BwC9XKv1QqnL1laHTIIlLjrwkg4nYE8TsXhgcezvP+niwfZNGGlCYBsSMGvUidro= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=xuU5uwhj; arc=fail smtp.client-ip=40.107.95.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dbM3lv+IhulJ7Gq9DEoT5UsYVMNJR9+I5PPBj3r7E8irHqr1C3XzF8+kC6CSUiNLi7HUjukhbVY5fy82OTmF6itOlvj2wvFePR8VyAlj5d4G2753chGRyZbDTBIEyfqbMIAH70+JRLybDXQNhLFVftFcTU3ispXZ/LF9PRL2n0EBfLotwiDIW+4WY/wEpWhmJSUtrej7Jk2PkbyJtmJOykyGXtJp8z0Yf0rW35RgoyR7FBxLsofnpAzbVMD7VgVsE/7aRYxzofpEjkuOxi+W9G5pZPaK+iv2OESIF4+wu878IOdV8weUx7aooX8D5HFnL08G5/tECYqBNYaEKNm7gQ== 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=6Yo4RGaB0fF8A73cti2WUMt9aip4VUuq/Yts0Lt1jYw=; b=EtaxHg2r+BHrNFNgvpgzgkCb1BIs1fUpnKE6k+Q0NvsqYcqcXIHtgPpM+QBgC3cHjrsViivZIaV7GsHgsQ2SBmioy4T+hichBJIgoxGYd3QMpOj5xkl/vrqF57f12dniMF2CprxyTDhcBdEuoBPTb7N9pPTOE9mnFVklGxqDLPv8Q+tYZDqAY308sppGwoHLxcQFpssn/JYjoji+YE2vhXmxZvSxxyIn9uW8brZhxfP8PrLfNS5nnLRnWO5wJA+OTuEseiZI49vbmkgwUvMiX9tQJXebKKHgpYUJXNFqToVjuCs1ZS2Cer8pXBCTRhStKw5KS/pTI8lEipUgGlUg/A== 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=6Yo4RGaB0fF8A73cti2WUMt9aip4VUuq/Yts0Lt1jYw=; b=xuU5uwhjxV2Vp6QqUMPy0caLPoLwEb5DukpTIilBaoamq9laiX2cbHUFnmI+S9za5LPyARqFhRLM8y7lJnFjcQ0XYp4zBofFwe30kBWxttmk8wJDCgXrNkZx5uJj4EeG/JtsVklLwRyc4mxyW9jKrpSy+7Sa18ySPubw0X9J0/4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BYAPR12MB2869.namprd12.prod.outlook.com (2603:10b6:a03:132::30) by IA1PR12MB6410.namprd12.prod.outlook.com (2603:10b6:208:38a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.28; Wed, 1 May 2024 06:38:50 +0000 Received: from BYAPR12MB2869.namprd12.prod.outlook.com ([fe80::56a2:cd83:43e4:fad0]) by BYAPR12MB2869.namprd12.prod.outlook.com ([fe80::56a2:cd83:43e4:fad0%4]) with mapi id 15.20.7519.031; Wed, 1 May 2024 06:38:50 +0000 Subject: Re: [PATCH v4 2/2] cxl/pci: Process CPER events To: Ira Weiny , Dave Jiang , Dan Williams , Jonathan Cameron , Shiju Jose Cc: Dan Carpenter , Yazen Ghannam , Davidlohr Bueso , Alison Schofield , Vishal Verma , Ard Biesheuvel , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-cxl@vger.kernel.org References: <20240426-cxl-cper3-v4-0-58076cce1624@intel.com> <20240426-cxl-cper3-v4-2-58076cce1624@intel.com> From: Smita Koralahalli Message-ID: Date: Tue, 30 Apr 2024 23:38:48 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 In-Reply-To: <20240426-cxl-cper3-v4-2-58076cce1624@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ2PR07CA0006.namprd07.prod.outlook.com (2603:10b6:a03:505::18) To BYAPR12MB2869.namprd12.prod.outlook.com (2603:10b6:a03:132::30) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR12MB2869:EE_|IA1PR12MB6410:EE_ X-MS-Office365-Filtering-Correlation-Id: e87f6802-11b1-464d-dc97-08dc69a95c75 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|7416005|376005|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?bGxwakJkNkoxK09LaG5uMDhmZTRVanRMMnFzN0piUklVUTZzUXN3QUNLRjFn?= =?utf-8?B?YWR3WVNDaXllTWEvTnIwYldaVElkWHhINWlHdUdWVHFTMitqVGFoa2s2alRV?= =?utf-8?B?MUhuTExWQ2RGNXRsZmorSy82TksrUUhGTW93ZDRNcVZ3S3p1US9XRHFTNktH?= =?utf-8?B?UFFMejBjc3B6clZld1hReWY4U3VMOGh0dlRNaGFLak9rTkEzVlZaSDdyaUxN?= =?utf-8?B?Z1BtTnFlRTN5aTNrTVd1TWR2VnVCU1RVUmwrSk81ZkZxeU90V3Rrako1azc5?= =?utf-8?B?cGhURVZjZ1BROWpVYXZTa0dJVXo4dTBxMjd2L0pCQm1jYXhMdnNvQTgvajRD?= =?utf-8?B?N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lxdXhj?= =?utf-8?B?cWV1OG9TNzV3QlluNmVMMzFNVHVaeFhuQ21OaldHWWNYTWpVSUk4WWZHSDBO?= =?utf-8?B?TVdzTWxsQU11RXJhZmxrcEZlZVNSRzVNejhIc29xektHSTM5N2dZbmVOay9s?= =?utf-8?B?UUdYVHV0Ym9Hb3B4U0QzTXNSNTBGNnhsYVFCUHBlWndNS2hReG9mTGdTQlQv?= =?utf-8?B?VGZqV1Y3Ni85SExNaGREaFdXaGI3MjhtOVVNeTEwSFJlV2VraE9MTXFRR2xX?= =?utf-8?B?N09YdGpOdjBYeDBPaWFUZGRYcy9pcm1MWjFtNTFqOFp3UVlBRCt4dmZTbjh6?= =?utf-8?B?dXBKeXdnNEVoTXhrT3dvdElvRmNxcFkyRW5mZk1ObTN1bStJcWNoMlFlWk1H?= =?utf-8?Q?PZ8fWqY15q/yVz6e+Sbz7HoVSqh0+B/PxXvX8nL/W/sE=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR12MB2869.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(7416005)(376005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QzVYaWJFYXJMR2htTmxyZGNuVm10eW9iRlZUMlV0ZVh0M0JqNDBBNXRpd0xs?= =?utf-8?B?OWNrcHIvZVFDdDZnMFJodWlQTWVnYmtSZE10eXl3Yk5ZZ05TSlRaT0E1dUF2?= =?utf-8?B?VTQ0YTNmK0RnV1NrUlA3ajZ4Zk1lTGVxYW52bXduZEttU2Y0Z1I4M1d3RzA5?= =?utf-8?B?QUdBQ1MrRjBqWXdSR2lUNnNkYnVEWXV0M2UzMm42OXNDN1V5blVoeWwwNGFO?= =?utf-8?B?bTlaK2hVTWRrREpRdDZMMmh5c1RIby9peFQyQ0M3c3FBeG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tCRTBMdjNmQ0F2SmpvOThETnUrbFlFaitSdE80anEwUVRlWUx2?= =?utf-8?Q?PtdiKA7JXqExAVr7GyB9H9E8B?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: e87f6802-11b1-464d-dc97-08dc69a95c75 X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB2869.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2024 06:38:50.2334 (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: rWAiH5sVR8qE6YAWZR9vykDfG8e7L8TdcPeEeAnuIHPWkw1V6G5QF8BKAIqnPZu2E+OZ4D8NI/iiwwSIgVIG9w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6410 On 4/26/2024 8:34 PM, Ira Weiny wrote: > If the firmware has configured CXL event support to be firmware first > the OS will receive those events through CPER records. The CXL layer has > unique DPA to HPA knowledge and existing event trace parsing in > place.[0] > > Add a CXL CPER work item and register it with the GHES code to process > CPER events. > > Link: http://lore.kernel.org/r/cover.1711598777.git.alison.schofield@intel.com [0] > Reviewed-by: Dan Williams > Signed-off-by: Ira Weiny > --- > Changes: > [iweiny: pick up tag] > [djbw: use proper link format] > --- > drivers/cxl/pci.c | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- > 1 file changed, 70 insertions(+), 1 deletion(-) > Tested-by: Smita Koralahalli Reviewed-by: Smita Koralahalli