Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7331370rdb; Wed, 3 Jan 2024 12:04:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IFdyhQ/6iUIJkDjhOnXsWwEo0oatPNoNVFx5iHP62BpYVCUnchtDaxfe01CbezLnLBpa8Na X-Received: by 2002:a17:903:1251:b0:1d3:529a:83b6 with SMTP id u17-20020a170903125100b001d3529a83b6mr10168971plh.17.1704312265296; Wed, 03 Jan 2024 12:04:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704312265; cv=pass; d=google.com; s=arc-20160816; b=X0LsOhkw+NFdv2VFmFbNbBl2YjR9LCTBsY9q9+AbuxjkWov7uINW//xT461eO/e6nE Aq9Jiz1uqdq0g8iAAY1qSNjta7bxnnGKdtEL+/DDEcHl+LXuHLb5+x72oEPQSPQN+h7G 2/vzRWS1cj9r9mS1XHF6S0gaLe0Vuos9pv2eCTL/lcJYmJKX36DCirtXcZzyGDgy8EXj 6poJjtQa8S2T87k2fTKmqsUIM67fVaCj8MiiprrW0hKHb+0JHHrrRXvFVwT6jLWA7KcX kt+V0rIDI2HP7zEaushhCBtkzEViN4HNAQHUCHHuI6wHDx4DGmUHwuZeR99nvD9LrWna Grng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:in-reply-to:user-agent :date:message-id:from:references:cc:to:subject:dkim-signature; bh=Gdl7JK343d1aJJwkxPY0cmhBsKm2s6MaB+xwXY8O6zM=; fh=Ufs9lLtiKQpwzV9j9cmfrlfc99s8Db1TFmeBYHRzltM=; b=g6W50phQjwCszoVk1CAkWmzloRd4rF5xzliBWvGtKKKmpZyJ/Hoo1iVEVyW+kEWXEV rFClHq3hlpJXd8THYME0Csg95Y3Qc74o3wUnNNRr9DsXXTzewrhiTldIPtq7iaRUuvxL I6bnl5vSwRbzMEWRGBLRtzlZRxUjaI/QqRIDMm8/4lAo8/EimABIeSINb8pKqIw7er/9 0l9+UimY/EKZc13lMI0OzPX9MW7Qph/kEuzqoYgTMwO0ee4dmdz8c8x/fCY7T95mBg05 JdckDsnqxkhEThczW4DB/6cs87xNg0DD6b9tLil+uEJO4oZuK+zHVsC7h10xK6LfrIer gJ4g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=csZQ54bi; 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+bounces-15945-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15945-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bc7-20020a170902930700b001d3a6cb519dsi22092349plb.543.2024.01.03.12.04.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 12:04:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15945-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=csZQ54bi; 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+bounces-15945-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15945-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 94741B23CC0 for ; Wed, 3 Jan 2024 20:04:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 677171CFBE; Wed, 3 Jan 2024 20:04:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="csZQ54bi" X-Original-To: linux-kernel@vger.kernel.org Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2051.outbound.protection.outlook.com [40.107.92.51]) (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 004B91CFA0; Wed, 3 Jan 2024 20:04:07 +0000 (UTC) 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=SFjStIDMCFIV5eNSmzRgUogIrCbRkaVbkDFG7I/a6iyVQGW5mKEnuQ+WVJpP4WlTQ0bC6bzS+DdnnoIAjtJt1isQ9savr8tQ2bvIIiEmkGCrnV78+d86Hn2ZkwjcVzDo/4RVMCjcBN5crvUuBxNwWVWAztTfNPi075+0mw9VHHvCG9qT6nKRf0qDUoyOMCfd6wGqBkebiInwp0LZc8fekaF7E9wod573NEoe1d/xxvMtxVZoQjVFuEzp6dHJ+OkuVBSC0b4RHmZ2F4j8z1mg2brAjIjHDhrIlBLtUoxfZk3uFTM+EqP6Z7weQYZtF6vL9PWuxwvj7XJL/jlxp+8+rQ== 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=Gdl7JK343d1aJJwkxPY0cmhBsKm2s6MaB+xwXY8O6zM=; b=MdmngFAhhKoXhubvwv+uFYOXOv34TVgcEEZTInL95viGA1nk1z44AuSAksADDxUhIwPzfHtXc6PAGwwstLzKe2NAMqmDLXujxLmrkydQrc8w2qjdRq+O3C2Oga3+diSnYsO0nysM3N/GSMyy8WUAQ17aYdYcayPejKITyz43nY8RB6euHEIgWbC9RhzSJnVSjT+YuS6iRkyJdgAmruNMmXOGr40zjfCw1GgQC+o2EV7FYiP0wDazjL6sZJpnyy8BRX/hWoyvYBmtXx1oiiuHKwb66Xiyh2WP1VpC52xHLLuBYkdHwpVElibAumch1L2EnBvKmDzge13wmpp9h3H//w== 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=Gdl7JK343d1aJJwkxPY0cmhBsKm2s6MaB+xwXY8O6zM=; b=csZQ54biBdP/PcYI2Z7502qUHac1mOqdeBbLwhhyvl8o0rHJISZCR6PKrjy38lQqup4V8Vg8caJgg27cJe8Cj+OR8HCdC6rAbCkeWgDNVA8/cXpyP+w51x1aYnq8r3i4DI9U+92syMEmNtaVnYcoDHMS6OQo5+DOR60asn/sX5M= 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 SA1PR12MB8118.namprd12.prod.outlook.com (2603:10b6:806:333::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.25; Wed, 3 Jan 2024 20:04:05 +0000 Received: from BYAPR12MB2869.namprd12.prod.outlook.com ([fe80::bdc7:f7b9:a4fc:b793]) by BYAPR12MB2869.namprd12.prod.outlook.com ([fe80::bdc7:f7b9:a4fc:b793%4]) with mapi id 15.20.7135.023; Wed, 3 Jan 2024 20:04:04 +0000 Subject: Re: [PATCH 1/4] acpi/ghes, cxl: Create a common CXL struct to handle different CXL CPER records To: Ira Weiny , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-cxl@vger.kernel.org Cc: Ard Biesheuvel , Alison Schofield , Vishal Verma , Dan Williams , Jonathan Cameron , Yazen Ghannam References: <20240102150933.161009-1-Smita.KoralahalliChannabasappa@amd.com> <20240102150933.161009-2-Smita.KoralahalliChannabasappa@amd.com> <6594387015431_151dc12949a@iweiny-mobl.notmuch> From: Smita Koralahalli Message-ID: <321f2cd2-ec64-3def-857c-61c4054f8be2@amd.com> Date: Wed, 3 Jan 2024 12:04:02 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 In-Reply-To: <6594387015431_151dc12949a@iweiny-mobl.notmuch> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BYAPR08CA0043.namprd08.prod.outlook.com (2603:10b6:a03:117::20) 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_|SA1PR12MB8118:EE_ X-MS-Office365-Filtering-Correlation-Id: f3247b33-51bb-4414-2a75-08dc0c9722e5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YGEPiE8cb3g5CFpiKWGXS7AxxE3eHEezHkIMdB0+LI2MannpnKAdn+eyGcfj/8LP8glDI1y9JUY8X0N8nC0Zb4dYij8v+MSN1QIDySXJmSMAV7d3Fsdd6DrJjY0Ty0IUqmLJvIBYHioXWbvRYxBsY5E1Ck5ybyH1FO2pwOTHIAPtm8lDbAwMVPfPhhwQe4/DlTT6dBE73JXFOeFCoT90trA+0A/jLwdH3Qr1UC77+Ta8dRC3/FmlGNIA2fBF7suzIAbqhcXp8BuieT/6JNX+iUc1t783T/2MS35Q72TaOEJ6ca3dzKnT3oH0/ZAUisrE8iw8l+9Xyix5B2KEuVjH5JwTY9Ps/AJlh3mb9LH+U16wgR1d7jaANfUjMrjjZ9Ub/RKv0ky2irNCjg7OGd5ye5EZ0MOvdKAIJwoiba738BxtFuA5Z2eHX6UxbGqCEFnaFcmmevGilPJS9/+uQ1zppXkQ5Weaw2eMN4IZDXy1m9In4Ngajuv9ChjxN8nKm+g9kk0et8MGfk5gFTX8LHZvKGWDGTiJ9ebSFva6KYMg8pdsEJGm5U5cx+3K+Wkg0YoF3PCphXCO23uYTCZsi+X0LAZaa/Gie6vtkmfwblqHQuBfbXpKkhihv+5M6B5JKjPIOz8/JYESJjRXiNUbm/abjw== 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)(346002)(136003)(366004)(396003)(39860400002)(376002)(230922051799003)(64100799003)(451199024)(186009)(1800799012)(31686004)(38100700002)(31696002)(86362001)(66946007)(36756003)(6512007)(53546011)(26005)(2616005)(54906003)(6486002)(5660300002)(66556008)(478600001)(2906002)(66476007)(316002)(6506007)(41300700001)(8936002)(8676002)(4326008)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-Chunk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8?B?clhmTm9XQjk2RGJSZEk3anN2NkdQT0Vmb1BxNTV4bGFjZW1iY1JxcnRoTWZS?= =?utf-8?B?TnMzTGpHcXNWb1VnNjFSbVZBdHQ1aVBFN25palZPYi8zS0lBbFc0NHFyTUlY?= =?utf-8?B?d2lhdHZUNHlOV1ZhMVBqMU55VkFSQ1ViNFl2Vy90U3E5Y2tLZGtZVmNDYlhM?= =?utf-8?B?R21sbWJ5YkhvMC91MGhjSVFxZERaY015cnhWZGFHeWNteFNWaHhOZEpkWmJs?= =?utf-8?B?VUVMbDFyMkNhNU9CY3RwZ0V6WlZxSkx5dHJOTEZrRDFCSCtLNlR5T0d1eEl4?= =?utf-8?B?L3B0MVVYYk90dUQ5V0MvbHBrYldsd0pNYzgzWGR0SGdsV1kwWk1KQUV5eVlx?= =?utf-8?Q?oMcBAjjq1fUNLx142h0taYJg/?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f3247b33-51bb-4414-2a75-08dc0c9722e5 X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB2869.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2024 20:04:04.7050 (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: ruUCRuXUUlEr7zcPUytk1UVkHv9cOUKlobfxpDFzSkf4UsLTN/PcP0AokmfLIAlTvVX/N8xwgBH9i2NRCARmGA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB8118 On 1/2/2024 8:23 AM, Ira Weiny wrote: > Smita Koralahalli wrote: >> Currently defined cxl_cper_callback interface between CXL subsystem and >> GHES module is just confined to handling CXL Component errors only. >> >> Extend this callback to process CXL Protocol errors as well. Achieve >> by defining a new struct cxl_cper_rec_data to include cxl_cper_event_rec >> and other fields of CXL protocol errors which will be defined in future >> patches. >> >> Signed-off-by: Smita Koralahalli > > [snip] > >> >> static int __init cxl_pci_driver_init(void) >> diff --git a/include/linux/cxl-event.h b/include/linux/cxl-event.h >> index 17eadee819b6..afa71ee0437c 100644 >> --- a/include/linux/cxl-event.h >> +++ b/include/linux/cxl-event.h >> @@ -141,8 +141,12 @@ struct cxl_cper_event_rec { >> union cxl_event event; >> } __packed; >> >> +struct cxl_cper_rec_data { >> + struct cxl_cper_event_rec rec; > > NIT: I would call this something like event to distinguish it from other > record data. What do you think of the below? struct cxl_cper_event_info { struct cxl_cper_event_rec rec; struct cxl_cper_prot_err { struct cxl_ras_capability_regs cxl_ras; int severity; } p_err; }; Addressed changing to sub-struct and copying the struct rather than pointer comments in patch 3.. > > Other than that this seems reasonable to me. > > Reviewed-by: Ira Weiny > > [snip] >