Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2473097rdf; Mon, 6 Nov 2023 15:48:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IHYFSWFpIRERqh1yyAVWmzdNUSJiIcOj6uQTy1RPeo4CECSmP1QkuZQ5RqVB4eeBpF+R22T X-Received: by 2002:a17:903:25c2:b0:1c8:9d32:339e with SMTP id jc2-20020a17090325c200b001c89d32339emr24039424plb.50.1699314511653; Mon, 06 Nov 2023 15:48:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699314511; cv=pass; d=google.com; s=arc-20160816; b=V8UvKsG5cZVPmH254YTQKAj04b2PgBnFLCQBlaslcm+qEo0HDC0ckXXseex8oHQwqj A2Rpt9jzwiTHIvsqBC6+eMoYrFA0Jd8YWWVFDTidCrdn3WPFm/SqzePtHBGkXkV4njFV /x4IfRHbOMs9PsfxzJRLMicUjBjkMdON/udarzB0pCua4c07upgP3xwEo7e2UK98n/Ns dA5uVUkviHTaZLqEplDl7KBGNPcE9fdnMQh55Y6b7+YtPR6aLp9f9cRR37eN4RRVe/YA rax+qJNlwmnGEmwFypfNfdZciloY6oF+JNc4iyUMo8M3C68YgJxCkGe+lNXuO4TiSptJ NRew== 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=D0xMfxzhhnyxFQXGU8y3kAVuKxi0egh2ufOtPnEI5wc=; fh=M0MD0sl6U+zoTNIy4jy+cRo6bpPunQm/KWx7Z2PY1j4=; b=bApAOYVSAo3KnCNeedW5z8taahoTYUKHF7k6TVm+4yGAjeq3RzCsUr/TLBxrWbwIBV 2zHUUQ6NHMbYuyvAgZfFlHbB8Dzx2Py6Ea/aznF9FzHl1QgT6O1sSulZ2aU0xWNQa8+U v7MhuCsOEqdIaSMkLRDhblUAe1Vnd1ZkgZKwqCev+pco5XsrCuOIfJJIelf/p9ZNNJoF t1JPuDX6jUK6rj80Rn5tk4Anjg9SPhZsYZbPVO2F0obXwh0zXn39bfBlLL3q/J9iap45 wRcawErKUFtMdiF8YNbdrgPVznjGmYdlkHCFoNTveNNuIQpOvcn3ajQTC+g/xGKuNgxi Pqdg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=SXuxRgcG; 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.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id kc11-20020a17090333cb00b001bf88e777f9si8615347plb.33.2023.11.06.15.48.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 15:48:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=SXuxRgcG; 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.32 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 agentk.vger.email (Postfix) with ESMTP id 3FA3F802F218; Mon, 6 Nov 2023 15:48:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232152AbjKFXrh (ORCPT + 99 others); Mon, 6 Nov 2023 18:47:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231739AbjKFXrf (ORCPT ); Mon, 6 Nov 2023 18:47:35 -0500 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2062.outbound.protection.outlook.com [40.107.212.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D878C95; Mon, 6 Nov 2023 15:47:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hFLV5CTI4v0uPNfind8hq51JeV1R3A4+TA0Sg+/gpr9IyNBRDUeKHH92eLfnCBoSkJrInBm92XyrEIQUKh3HBAAEEqZYKPKuiUcyVv8rmx2B0IqCHzoaluwvyt05B14Z5fo5SFv0IKEoG9aYmEl3QPB88PI22r7mxo9RgQsj8GugjuTqQJDZ6keLsvneV8qHqTJXoZo95VeQC9xHiV8/4D670BSOi97wDrW9EU5N/+uIVRPOE0MjzFxtehDoxipRqSymflCnm+DeFfAJjgO51LXJtj49NNyKvm3OwqFglWOnhZxxEt2cwNnhFApvdJmgnhlldutaxD3khgOkgfbkvQ== 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=D0xMfxzhhnyxFQXGU8y3kAVuKxi0egh2ufOtPnEI5wc=; b=mOJgg0j4KZKxWWjLlXAjTekb6xAyUZ4vvPsni0f9Ed6dZfPHNWNYGZEI8seoZ8d3hdA0u9HCQ8RmX13fkgOOcXRLrS1C9hljlOeiarPtOxheBjFV178vJRoOyn6+kqFVjMZ7SNeQJ+QbfBO06CSzszyzGlL8Zdw+HksvQgd7yU1Y6uOa8HzGCYIhMcwOVjuOicDeH93ajtCHo5fHoOXVB9JF0G8liW3zPIBA7Vr5VdC4Rs9PfuHQFkH2TziOkqDP/g6G4h8b8KRD3S+F2gcvQfxxZbbAQjxBR/wYFtzcYo4FPXj8KvgTieasxqrE+ciDPY2vGlP6bkGX5Tb7Xt/gFQ== 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=D0xMfxzhhnyxFQXGU8y3kAVuKxi0egh2ufOtPnEI5wc=; b=SXuxRgcGT8/oesZp9dYNNBwhdt3tGSpfoEfBrJ0/OWalYy36zSlW/hpiTrzJPTVgR8o96BCaCYIOpegYQsiMF2/jhgZpqj18v+i7gAgmX3WJXxfqjqmPI9vP4cUJGNqe9coWRaN6xaNvRdFzdRkKlEt3fPveh3i42d7gNAq5nQg= 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 PH8PR12MB6889.namprd12.prod.outlook.com (2603:10b6:510:1c9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.27; Mon, 6 Nov 2023 23:47:30 +0000 Received: from CH3PR12MB8403.namprd12.prod.outlook.com ([fe80::51d7:e9ef:b57b:f4f2]) by CH3PR12MB8403.namprd12.prod.outlook.com ([fe80::51d7:e9ef:b57b:f4f2%3]) with mapi id 15.20.6954.028; Mon, 6 Nov 2023 23:47:30 +0000 Message-ID: <8e059965-5196-4dc2-9cbd-828443f7e7ec@amd.com> Date: Mon, 6 Nov 2023 17:47:27 -0600 User-Agent: Mozilla Thunderbird Subject: Re: [RESEND v2] ACPI: APEI: Skip initialization of GHES_ASSIST structures for Machine Check Architecture Content-Language: en-US To: "Luck, Tony" , "linux-acpi@vger.kernel.org" Cc: "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: DM6PR07CA0122.namprd07.prod.outlook.com (2603:10b6:5:330::18) To CH3PR12MB8403.namprd12.prod.outlook.com (2603:10b6:610:133::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PR12MB8403:EE_|PH8PR12MB6889:EE_ X-MS-Office365-Filtering-Correlation-Id: 45f9a3f7-aab9-445e-62e0-08dbdf22bd06 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AbDR9CgFuXTjWKNWdjzgxRJAukRhQNOj4wTsBh/awEmriMR8AwUe/h8PoqoLxTThiNtLegNeX8scuewwyvgSaEqMnRZ1Et6T4I6GKl33GSxBQ9KU6RgikXSi4pFgV4nQphuwLGFlUxeAsefudmY3DzwR70iJXoNjz62hEny8re9MGtf4czp+Wn1hyesnKD5/KG/v4mxY74WRu0o355YvhF1zF9NZtq6Gp3S2pD2SArXuaKkv7vXH24JI9G4Ijvs0V5tOGr/3qKDPIgOZhYrRczeX57uRHj4IfZjPWcj5No+AcScp/0QBYjeG1is/jk4noarXqC5X89ug4HIj7rrKqWa5/ZY3ygZaTXANnep4dUKoCxYLrlI2zl1LEOQbRTGc54JE8FtB3dU8mbre7dvx9hbPokXScqX2m1rAiYtktvIRdmvgWj9EFj7vlRn1B3Czor8eI8URCdabv4n/81C6IBa+VgQPGd0YhhHxDflDQ41BbLgrF2/itnY7rKesXVpq9HnaECYg7oBVl7tivcX+ocDcMoeBd5EqgKm37NyzhqHOzeaV+bPL6c4I/PjRAVEvRdoQBPKq+nS43N85voZXQ1rAgFfnjQO3zHidkREqDxsIJA1hrliDksWab2LkimNG+wVqOtiJZU2rFnO0MP67mw== 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)(376002)(346002)(396003)(366004)(39860400002)(136003)(230922051799003)(1800799009)(451199024)(64100799003)(186009)(26005)(316002)(66556008)(66476007)(54906003)(66946007)(110136005)(36756003)(6666004)(6512007)(6506007)(53546011)(2616005)(31696002)(38100700002)(83380400001)(6486002)(478600001)(5660300002)(41300700001)(8936002)(8676002)(4326008)(2906002)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MEMvZ1JqalhMWGYxY2tjNEVGL0pPZnBMTWc5VlFYcW1mRGVtVGM0Vm5zR1JG?= =?utf-8?B?UmIyVjMyYTNOaWtydngxVHlTMmduZUFrSVpXTGgzL3JNTFRwbHdSSmVrcmVQ?= =?utf-8?B?M3lqV0s3cXFvWjVUU0J2bjd5ekowQ1ZMMGhLM2dlQlFmM1NGaDdjVUVaem90?= =?utf-8?B?RVZNeG5LUktBbWFSYW0wVDRUcTU0aUU0Yk5uRU04RFBsWHFPbkdKUDM0MGta?= =?utf-8?B?QTNNY0J2S1Fyb2ZUM0FsZ011RUlHa0Q2THp6SHlUY0RlaWFQZkNrWjA1bHZv?= =?utf-8?B?RUZNSjNpbzZ2ZXFyME5yQkRMcFZpMFUwVnpHOHpZR3ROdXU2cFRBSmtWWU9X?= =?utf-8?B?L3J4MEdSZEFmNjZ4M1gwdjFyNXNwendEZENTOH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45f9a3f7-aab9-445e-62e0-08dbdf22bd06 X-MS-Exchange-CrossTenant-AuthSource: CH3PR12MB8403.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2023 23:47:29.7650 (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: xL0gCKyp7tugJVyN9LYrvY2f6LQpQ2tb1ETagPOnEDFi35uwcEUZKwV1UE9UvD2pjqVV5EzoruDHPjz/GE10+w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB6889 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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 06 Nov 2023 15:48:04 -0800 (PST) Hi, On 11/6/2023 14:42, Luck, Tony wrote: >> To support GHES_ASSIST on Machine Check Architecture (MCA) error sources, >> a set of GHES structures is provided by the system firmware for each MCA >> error source. Each of these sets consists of a GHES structure for each MCA >> bank on each logical CPU, with all structures of a set sharing a common >> Related Source ID, equal to the Source ID of one of the MCA error source >> structures.[1] On SOCs with large core counts, this typically equates to >> tens of thousands of GHES_ASSIST structures for MCA under >> "/sys/bus/platform/drivers/GHES". > > What combination of CONFIG options and BIOS table support results in this? > From the kernel side, CONFIG_ACPI_APEI_GHES will have to be set, at the minimum. From the BIOS perspective, it depends on HEST Table implementation and whether or not it supports GHES_ASSIST feature. The actual number of GHES_ASSIST structures will depend on number of logical CPUs in the SOC, number of MCA banks per logical CPU and the number of enabled MCA error sources. > I don't see much under "/sys/bus/platform/drivers/GHES" on my lab machine > (Dual socket * 36 cores * HT = 144 logical CPUs). > Does the BIOS on your machine support GHES_ASSIST? Can you confirm the number of entries you actually see? Typically, bit 2 of the Flags field of MCA Error sources in HEST indicates GHES_ASSIST support. Below are the results from one of my systems without and with the patch respectively. This system has 256 logical CPUs with 28 MCA banks (I think) per logical CPU and 2 enabled (Machine Check and Corrected Machine Check) error sources. That's a total of (256*2*28) 14336 GHES_ASSIST structures for MCA in HEST. [root avadnaik]# ls /sys/bus/platform/drivers/GHES/ | grep -i "ghes.*" | wc -l 14349 [root avadnaik]# ls /sys/bus/platform/drivers/GHES/ | grep -i "ghes.*" | wc -l 13 -- Thanks, Avadhut Naik > -Tony