Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp585952rdb; Thu, 30 Nov 2023 12:31:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IEe9fvoig5FXEihlc0pJDtZX2EO57CRyZ7igSCwe3T8Lq5wkX3Y47tSj5T5gM1GfFfT3D32 X-Received: by 2002:a17:902:ea84:b0:1cf:5543:a96 with SMTP id x4-20020a170902ea8400b001cf55430a96mr21733619plb.51.1701376292591; Thu, 30 Nov 2023 12:31:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701376292; cv=pass; d=google.com; s=arc-20160816; b=HtE9FBtE3NFtfbwGVp6O6JCpQtKtiofRpbf4mU9SojocbszrwjR0VXZzMZt+ZsVoZE TrSSSC+Bh2s87dT0R9htsngZdulpjnYFI/+Ob+pod0eugeGX5ZdGboKw8PRU62yxPzFg b8Q5Uf+EXzhScRS5acZ7o3qy8ijl7/R3JJm9oxoh0ht8JqNxEw52ZbAVYB1XbEAIFJAo AuaZV11bBA1VPmpDsE7sZnCEHoMctfQ9gH4B32pBdabBiC7R5HFQBnOA4X90ofWC+xKA PuKtlq10Tz4Ez2auXRgwg6fQIm28NulIwI7epVsAkIUe38FFxVTQIpNipyLyTNpfKplY +sKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=ITSOlfXBUuXR+GLnLv8rwy4XV7dMyDT/OtN/ZBtYGG8=; fh=uKvhilKQ0ljrR0elpIsMhYXVNHe+COF9z5sjkd75xH0=; b=zeW9XodN4D5ZfjmNBE5A6deZ6IDCZvoHMJ96XYiDqoaOghPkjJT0q/tiOIjiomM8/m XFEFAdYDnzPk6xJFA5Mw+ztM4v8U8R57m7PmzgrcKFvnG8JG3Tm9dkriVAkIkwyaU7M6 FBEvMzj/vsDL9pLbfyCM0T9S7e03GDi2afotP4G1jL1SMx7cK+9bPdakt8LJNu1Z1ggl 6YAMPINKzD8Z3qWcHpSdHIJn3oPXRqTqFVFwdh3H2grMrxXNGquMp8DW2KRrKRjtAGtT Ej2MXWiH/YZcoFw/HfWHutRr/vm3LjR9aCpmgUQ88Bo1s/z9Ztu2HtiHgqidp1YnIrOc pFpQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=EqGrsYhU; 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-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id t16-20020a170902b21000b001cfa17ec332si46336plr.616.2023.11.30.12.31.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 12:31:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=EqGrsYhU; 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-owner@vger.kernel.org designates 23.128.96.31 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id B15658095F75; Thu, 30 Nov 2023 12:31:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235279AbjK3UbP (ORCPT + 99 others); Thu, 30 Nov 2023 15:31:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232427AbjK3UbF (ORCPT ); Thu, 30 Nov 2023 15:31:05 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2072.outbound.protection.outlook.com [40.107.223.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6003A19B1; Thu, 30 Nov 2023 12:31:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mmNKDZCsEcQBeS3524ga/ujrKA8Xx2uYw/aTzsHrBocmzyTec00c/go0VNaxvbiDeFPzjMTzf3pwjQu4J2Y62KwDQi+lNiSWNidwK5wDeExynToqqYokdCVwlOsao9qSJEh5R4KZh7IXmkZJbwV+I174Zxv2NQWOQYcgw+ILaRtwoocf2fnZtqu/CVzIV7+WEsJpDrxDD113zwun0L8wqUdGfmA2a4ITTH07gz4ncZbLe7LTiEgJf0rM53AofLqbSB31NcMmaO+qYOo9YuZk4WelFfbLBk51BjXUxUjXX+kONAWwiTGtLnN9AuvvahslBumAP+4d6H7M3Qeh6r4cJg== 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=ITSOlfXBUuXR+GLnLv8rwy4XV7dMyDT/OtN/ZBtYGG8=; b=G/sMcywjeitxwa96LF8RYOV9LUx518WWugjW3peCCzKpWZ8BikxQlk/4L1Q1POMSRhlY2lHbUkp13ZRNBi9ZZQ3dmppRe8ToLdWcsMh9l6HeSKr03UI5Rd39L7SpM0sx07yv8+pb28yG7TWnrkhq+K+8E1DkVisA9ZRcxc9c9rxmoTndn1PWGZbbYjucy1KMJxrG1IqpAuHueFO9ZU4PKhqXIAvPq9E8F+NV4ZGAYi+LmQAyFrLViUaZRkroBkn5KSskIQlKwDnERm5Juyr3nM6TeQVLLFBmdeobDLx95XyYQfQxNXbM32mjpdUvBQtvAwIHNCEtQ49zH5p17T1esQ== 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=ITSOlfXBUuXR+GLnLv8rwy4XV7dMyDT/OtN/ZBtYGG8=; b=EqGrsYhUIYAd0bqmj6YFJSfse7xZfnqKVTg7BKxeyxeHWkDyma46SXEmfnUYE6wK5ahN4eceV7S0CVjMvZvXhVUa31j2dSb3yRbn490Wp0aSpfbY0tpXaycPnHvqohvXvg9tgR01WtcRcYq4H5Vvlo2vZqY/GQAmSm0BKbyECQU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH3PR12MB8403.namprd12.prod.outlook.com (2603:10b6:610:133::14) by CY8PR12MB7218.namprd12.prod.outlook.com (2603:10b6:930:5a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.24; Thu, 30 Nov 2023 20:31:05 +0000 Received: from CH3PR12MB8403.namprd12.prod.outlook.com ([fe80::e2:9f06:b82e:9a0f]) by CH3PR12MB8403.namprd12.prod.outlook.com ([fe80::e2:9f06:b82e:9a0f%3]) with mapi id 15.20.7046.024; Thu, 30 Nov 2023 20:31:05 +0000 Message-ID: Date: Thu, 30 Nov 2023 14:31:02 -0600 User-Agent: Mozilla Thunderbird Subject: [RESEND v2] ACPI: APEI: Skip initialization of GHES_ASSIST structures for Machine Check Architecture Content-Language: en-US To: "Luck, Tony" Cc: "linux-acpi@vger.kernel.org" , "rafael@kernel.org" , "lenb@kernel.org" , "james.morse@arm.com" , "bp@alien8.de" , "linux-kernel@vger.kernel.org" , "yazen.ghannam@amd.com" , Avadhut Naik References: <20231106201340.434878-1-avadhut.naik@amd.com> From: Avadhut Naik In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SA1P222CA0164.NAMP222.PROD.OUTLOOK.COM (2603:10b6:806:3c3::29) To CH3PR12MB8403.namprd12.prod.outlook.com (2603:10b6:610:133::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PR12MB8403:EE_|CY8PR12MB7218:EE_ X-MS-Office365-Filtering-Correlation-Id: b5dc89f4-b38b-4a0c-ecf0-08dbf1e346e1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mleUalBCdUiDIel7be/SJxDqjQ/NJz7FVOIbMGF6KVThOUMXwl5w7dE//FGyuApJGWzIPV68Tiq7Lpr/dtjJiR6g6Ug5Yt4ooDZYfakPgdn/8dui/pT6zMrqRqrieX+2YShoEYQ0rizDv4wL0FGWv5om2/BhiMcznAJZqXavDKZzY9lJMr7GXpx0F5OPNxruj9a0WPhKTWWc1xxU4VekBZtSU1Nols9skanwmkqKroN5tP5c85tRnP6FGehr6JuhfXcd1jHynaUYQrLGnBIUaqd0GQRsxMXu1BTUwS03AFQiehueToa/3mb2BS6Q7WxvGtoP+ja0mwU1/1uSYsAge2KILRQG0HMuuFYmdrSTlhQ2wv+FKZv+QFS/hrPQy1kcRcwI2vRIl864M63WzCkhvXYNRvtOgzI3TsqCGHQB+b82Iyxtgo7IyZ2rVAQfwvfRWfjTgCK48gtnFt7tDWWGUg4V4aH7ShVpkghTT2/zBC7QOmuru2c/tJE2iiXoBYal+hMQaZJoHN4ocxPZywFoTQcsFy+Q3aqJthEVW4FXweGEargBENnrKn1DXTCjGieViIT+zBv771wZpxSVFFSzmCx2sl+VIzmER8assIh8fLkvg5vd55Ih1ElIAYOiy6s64e6YrEsQPqHVpAjTfGnuJA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH3PR12MB8403.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(366004)(396003)(136003)(346002)(376002)(230922051799003)(1800799012)(186009)(64100799003)(451199024)(6506007)(26005)(53546011)(6666004)(2616005)(6512007)(83380400001)(5660300002)(4326008)(8936002)(41300700001)(2906002)(8676002)(6486002)(66556008)(478600001)(316002)(66476007)(54906003)(6916009)(66946007)(31696002)(36756003)(38100700002)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OU1IeUJUeHRYUWdzdjhCWGlXYTFJZEdDWlFnQWFBNGxjMTVkZXBaNUptRERw?= =?utf-8?B?QUtUOTRTNkVtV3BIUEZYTXM3NTlkN0xZYkpHTmhMcVEwd0orbXR4TEFJN1h3?= =?utf-8?B?NE5wQVpNY1JMMTFmVWJReUwzOFVLZGxKK2xEcVdwVitmWkRUNjh4U2hYampy?= =?utf-8?B?b2wxQlF4clI4RlJvV3dGM1NJcGN5TDBhUzFBM3RrK21LZ2Y5cmtsd3JEcTJF?= =?utf-8?B?c29FNlIzaHRCMjlSVU4waXk1ZWc5eHNZYlJscDhocUVmblc2U1pDaVpCRTBI?= =?utf-8?B?MHBsNjNlQkNpTWx3VXRuTVFrbWVIWlZEdGFRcHFDR1Z2Z3ZHQ2hKYS9UYnR4?= =?utf-8?B?ektWTUozbHlDTVhzeUNWTitFamt1L2hWQnRzeVFSR2ZPc1dHOS8vSk9HWlov?= =?utf-8?B?N25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-MS-Exchange-CrossTenant-AuthSource: CH3PR12MB8403.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2023 20:31:05.4508 (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: eT9QfhCaobOD8oaSVnCew5sKZ1nzVUSBD/OiWCYqHfNF2h9Oo6hkybk6RDQOcJ4n/UpbIZThjp9P7qu4B26+oA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7218 X-Spam-Status: No, score=-0.9 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Thu, 30 Nov 2023 12:31:28 -0800 (PST) Hi, On 11/30/2023 14:03, Luck, Tony wrote: >> Actually, caching of values from an earlier structure to be compared against values >> in a later structure is what we intend to do here i.e. comparing cached source_id >> from an earlier structure with related_source_id in a later structure. To hint >> towards the same, I had added the below comment on top of the static structure's >> declaration: >> >>>>> + * Since GHES_ASSIST is not supported, skip initialization >>>>> + * of GHES_ASSIST structures for MCA. >>>>> + * During HEST parsing, detected MCA error sources are cached. >>>>> + * Flags and Source Id fields from these cached values are >>>>> + * then referred to determine if the encountered GHES_ASSIST >>>>> + * structure should be initialized. >>>>> + */ >> >> Is this not good enough? Should I make it more explicit? > > I understand now, but missed that the caching and use are across > different entries in the HEST table. > > Maybe something like this: > > * Since GHES_ASSIST is not supported, skip initialization of GHES_ASSIST > * structures for MCA. During HEST parsing, detected MCA error sources > * are cached from early table entries so that Flags and Source Id > * fields from these cached values are then referred to in later table > * entries to determine if the encountered GHES_ASSIST structure should > * be initialized. > Sounds good! Thank you for this. Will update accordingly and resubmit. > -Tony -- Thanks, Avadhut Naik