Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp997835lqj; Mon, 3 Jun 2024 07:22:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW8TpbRIT5rBHCruagX+VBq1J6pnqB9X9HpG63P8xpk5GlCHTosSp10rhgzNFNY3AlGr2EcPxy//fPxuUr08fPdnrCkUfIcz2hD0WoaIA== X-Google-Smtp-Source: AGHT+IFcHYjiY0tQz9QEgnsHtPcMOATA4xzyvt6qQ5n/K5YsmScEU/hvzAkUxGGkXq06H/DztA3Q X-Received: by 2002:a9d:664c:0:b0:6f8:e05e:a50b with SMTP id 46e09a7af769-6f911f20cbdmr9845082a34.1.1717424561997; Mon, 03 Jun 2024 07:22:41 -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 ada2fe7eead31-48be4ae8d8esi378803137.128.2024.06.03.07.22.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 07:22:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199279-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=Mi3zd3Yg; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-199279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199279-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 A01901C2087D for ; Mon, 3 Jun 2024 14:22:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B71FC12F360; Mon, 3 Jun 2024 14:22:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="Mi3zd3Yg" Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2066.outbound.protection.outlook.com [40.107.212.66]) (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 29D8A12EBD3; Mon, 3 Jun 2024 14:22:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.212.66 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717424551; cv=fail; b=KPuhO6qrgJuB+/2KJ1+SEGfJwrsu6nn9TIuvhDMcGoqyE2+gOFNLZTvh79zyh01pxeDcA1DYGPw4HoNRyBvBoDjN6Paykt9CYV5MD9Ks0PJbLislY/Bz9m3MNVzSYd3ewTFL6jTgDGHdBmGaJhmGJZb6RCKZz74jgjSSeg9zL9Y= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717424551; c=relaxed/simple; bh=KqSfQG1ciyxgY4Hmaz99xlAG2xniGeiHsray4VAsqqU=; h=Message-ID:Date:Cc:Subject:To:References:From:In-Reply-To: Content-Type:MIME-Version; b=ZIDz089awVDejObhkVngHsSplB0eEfEqLunovxLZLfjZ5eN4AVfDH3ZUjU6YmgxMBjHlTdS5w6JoqjZ9XpBkV9x+56qKwX94qkrPUUGW0QwnkHBRfR42JUALeKlta+MxKAuMkApQyhhtAFrrsyCD67COZj7mPZR5Qk9iFh/bMZg= 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=Mi3zd3Yg; arc=fail smtp.client-ip=40.107.212.66 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=M7Up5psk4q2BzRbfAjWLA14kSQd0UmNAfpv+IcKul31ZAsDd/AAORs78D5YJEWC8o2zLQilkoOEaoBtgMLS8yBcHTBUJvTsSjLu7tAPqnCs5ngcDuLyvdv9P7iD5xW1Xycn096q0MK3lWgxz5j9CTLyPyO4/DUNfoDLldK0eyxyJmHMWZQkm+rSEShW8ZK/2APYLQINloEf4GKG91VXX0aGuBzpZtko5u2YscYPF7OqprhDrKKV0q7uoaGIO27Wbdg2UNEqjnXURbhZGBGXE39mBzt342kchYFq+uicKWGGelV2nfbE+yjnnD0xOOWdXSmxSW9LyxlnaDti6+aPY9w== 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=UksDgjYE1E+zG79+4IbMa9gxmiYh8FwJV8aNoIKmG7c=; b=MAU0EmgjlOQ/sjlt5Jg9y4CoFWn8ypkVb4kRE7RtqLgmdvXk1rfLPZjUV3bQzW0l7aFDXYrxKo3KBj523gN3DtBgakPnKUqGyOG/p+obiylAAO0z+XbJaR409zbIGBB4yNk6CiyL34LgEUdQqxs9XQQMssSymD4aVbp5tIitvj9YfLf07moU+cPPrckZI4zsqi3v7IgFXRDjjZETa9PwojtWUlw7JD80wQyUdWHT/Fd8d2P+jqR1jn/YdZf7CsSyH/5KDFW1uDRwhFRU/murO+1cTM3j9/koofMyW8cQVmRtGlaIx96vGIk/tRq3if63RtiJWWiKLh8PrpZlQ6DcRg== 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=UksDgjYE1E+zG79+4IbMa9gxmiYh8FwJV8aNoIKmG7c=; b=Mi3zd3YgzYJDfy0qHgauM3vie1lQL5d9ln0yPKrfImSvVL65iFxVv3cMqV8FeQ0WDx2dzEF0KrOSgU1naFxCS++B6G2CvdLxrdymiqIydtgWrBXMJXfdZJ0/6TAz94n7W2qfmW7yjJS3r5qblwWxbgcummvSunh7EcPPKTWGXBU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BN8PR12MB3108.namprd12.prod.outlook.com (2603:10b6:408:40::20) by MN0PR12MB6200.namprd12.prod.outlook.com (2603:10b6:208:3c3::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.22; Mon, 3 Jun 2024 14:22:24 +0000 Received: from BN8PR12MB3108.namprd12.prod.outlook.com ([fe80::43a5:ed10:64c2:aba3]) by BN8PR12MB3108.namprd12.prod.outlook.com ([fe80::43a5:ed10:64c2:aba3%6]) with mapi id 15.20.7633.021; Mon, 3 Jun 2024 14:22:24 +0000 Message-ID: <3990ab6d-6217-4e10-bda9-6b5c7bd668c0@amd.com> Date: Mon, 3 Jun 2024 10:22:22 -0400 User-Agent: Mozilla Thunderbird Cc: yazen.ghannam@amd.com, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, tony.luck@intel.com, x86@kernel.org, avadhut.naik@amd.com, john.allen@amd.com Subject: Re: [PATCH 3/9] x86/mce: Increment MCP count only for timer calls To: Borislav Petkov References: <20240523155641.2805411-1-yazen.ghannam@amd.com> <20240523155641.2805411-4-yazen.ghannam@amd.com> <20240524145335.GAZlCp7wAO22acrGyP@fat_crate.local> Content-Language: en-US From: Yazen Ghannam In-Reply-To: <20240524145335.GAZlCp7wAO22acrGyP@fat_crate.local> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SA1PR04CA0005.namprd04.prod.outlook.com (2603:10b6:806:2ce::14) To BN8PR12MB3108.namprd12.prod.outlook.com (2603:10b6:408:40::20) 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: BN8PR12MB3108:EE_|MN0PR12MB6200:EE_ X-MS-Office365-Filtering-Correlation-Id: ef79ecde-713c-4817-3eb4-08dc83d896bd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|1800799015|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?S1h4blJSNUpQRTV0U2JTSmpPSGl0TVBBdXZvZVBtdVhoSU4xRWlnaG1JVW9j?= =?utf-8?B?NmdIUTJsbHpnV2xQRlZ2eTJqT3VqY1lsYVJ4RTJzQVFmVkVwU25lK29kUktl?= =?utf-8?B?SWIvYVJJVy95bFY1bzMzV0RqZ2VzWTBCdy9EMHZ5cnZjTnM5R3FVKzltMDFa?= =?utf-8?B?Z1JwcWRnRWJaSEdnaHVUc3BaMFNOaUYrbzl2QjhLckFQcTgzdmliVU9Ed2o4?= =?utf-8?B?aGxGS3o1QzRqYjJOWHFZM1ZQVFpNdFp3NGdrNXA1T0hPK0IwZ0FFRW5hZW1U?= =?utf-8?B?QitWMlhHM1I2dGErQTNpbjgweWtkS3RJSHhlMzQ1MVpSSmdDTXNlelk5ck93?= =?utf-8?B?WndGM2dXNXBkZW9SNGZVajgxT2Y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3JwNHQyMmFCQktjdXpTY0oxNGFOK0JEVks4c1BUK3FHYUljYUxk?= =?utf-8?B?QzJBU1hvTzEyS1VTS2Vib1FzR05rUFJHQ25XOXBLVEJCcWhBSVFFZFNHaGtC?= =?utf-8?B?ekU1cnUxTHcxTUZnaHpzWmJEUzF6bVJzTW1HSG5zOXVVdCtJTjNKVGl2blVk?= =?utf-8?B?a25VWmdpL0pGakhWaXpxSm05WG1DcG5kTlo3emtvc1ZrRjlhelZFZnhaQ1RO?= =?utf-8?B?Z245WWRTeVZHUjFKYk5td2lyM1RibElVb0M4VTN2WEgwOG1qdkhLbG5UaWg2?= =?utf-8?B?c2svY3FYWHp2U0Uyakp3eEl2ZFp0MUhzNllTa2ZwSUZrYkl5TEpJWUptNHEv?= =?utf-8?B?ZXFUTVdmMkU4L2xQcjZGWml1SGgzVVZJUVpqa3lxOU5FL2pzQUJTcFRET0JY?= =?utf-8?B?Z05FZmh2OXAvSjQ2VUJpVzdJT1ovaTNTdDBhVUEvM0M3dTdacGVOV0hRPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR12MB3108.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?aHdCQ1ZPajB3OUhsVkFZTGFJbXFDaGtsdFpKZDhVZHU2UFhNcFZJaFgwcG1M?= =?utf-8?B?TUF4dkM3YU1jK3RnaDBnOVQ3c1VKcWlMMEs5ay9VUjFuZldyWWl1T2xEYkdh?= =?utf-8?B?Z2t6L1dpMHMrR0x2dm9LVGdYUlhEM3lMSm9GelhJMExBQWRRbXBPdDg1TWk0?= =?utf-8?B?cXlJclAvNkE3R3g1azdyV2s4ZDBVY1dlVVd1SVFpUEpQVmdlbXJqN25vbzk2?= =?utf-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wMStCdzJ0TUorWUVwMW90Z3J0bldKRmtvWHJDRVlX?= =?utf-8?B?SU9TeUxoSlFiMGJ4WUZDallQU0FZYmI3ZzZYU1Q3RGtLR1ZHWTF1cjU1QjVl?= =?utf-8?Q?O0pEq5zWzCs7oA+V5DCrZRMCu?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: ef79ecde-713c-4817-3eb4-08dc83d896bd X-MS-Exchange-CrossTenant-AuthSource: BN8PR12MB3108.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2024 14:22:24.6924 (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: QwsLgIRxd43rzI5IIycIHSumSHBAvkDDr1LZQRdp/WeNGaIUpG1xjc2HkUUS+49MmzGx0kO+8S0AK/shTcopgA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB6200 On 5/24/24 10:53 AM, Borislav Petkov wrote: > On Thu, May 23, 2024 at 10:56:35AM -0500, Yazen Ghannam wrote: >> MCP count is currently incremented for any call to machine_check_poll(). >> Therefore, the count includes calls from the timer, boot-time polling, >> and interrupt handlers. >> >> Only increment the MCP count when called from the timer so as to avoid >> double counting the interrupt handlers. > > Well, but, every time the function is called, we did poll the banks. > Sure, the count is part of /proc/interrupts but we did poll the banks in > those other cases too. So I think showing an accurate poll number is > actually representing the truth, no matter where it is shown... > Okay, fair enough. In this case, should we also increment the count in __mc_scan_banks()? Thanks, Yazen