Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp602508lqb; Fri, 24 May 2024 07:54:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUheN0yfH17gxkg4rVY00hWsa7Pw8R5+pbj4Iy9Ujp8WAp4KuEGozuD2slqvywgF/BivxbJNhe74FB9g2c0zkaIPsIzqAIf29UDw1+7TQ== X-Google-Smtp-Source: AGHT+IFsO1UPy/R7JmYPRIZIsVmXu1f2lSyoNiqNERlnpicqvrQ3xFl5xl5AvKcbrMdjleWTcy6o X-Received: by 2002:a05:622a:138f:b0:439:f52b:b98d with SMTP id d75a77b69052e-43fb0e88ba1mr30906441cf.26.1716562450858; Fri, 24 May 2024 07:54:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716562450; cv=pass; d=google.com; s=arc-20160816; b=lN1RBmSVncQbRbQtSzuBSabSqPGH53wWsvnb/eX6pRDyPdm1UmdYe+OFXitJDY1X1B FwN72DiUJaIi2S05v13m0sCQ8VHVWxgNVm2mpY8VdbjKGQp3YjvbvMgsXQM7ERK1Ixsx XuNwkH2HSS9s0rStNvqNjBy03MFnWZ+AOuykeV57mQvYcOr+Kimpk67tUckT+PGVk6QW xW9UGHholXJrIu1w02fm90eFX00HXvDIOP9yQ0Qm1q9+ohgDpzm4h+UyRi7Fuc0WV587 uLqdmLs9075hcUlJYWD1ccmzqOPm2yatYiAEVNt5IyolP/RlFbxtAzpUMYFzNZlBA18d A5/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6/WyMpeLD7PW3IYfJwxTvSgcRfBMp0+ADWk+WOzwZAI=; fh=Mp0b4qa5Z7QxcMtwelWAtSX1vWdglDM0K+IjPukbHXo=; b=GeHtwMr4zXiJTwo1Nsg2znY3Lcg2HeDFrl3YYOo1k1RY7zi5lHVEVXr7S8QqpjdPB3 dmO3stKqzsUxN/WZg4K6oovtKZCINWv7hRB7/WBg37WZ7sF3xflAUqgmiN49365OwIa9 4nUOWe2yaOWKAJvYX99cDFSMrfqQIp2ZvfC3JCHwSKUWLEIMXAlQI9DedlsZbUSvf5K+ C8WMBEBq/75HWusDs5XwZI6m01kk8zEPdDRuE+/1cFpFxp0PtFpqZZS0XH0s+/UVeZ+w 05jCOZdSoMzRuW3H+pp7fRp2ftoqgguqkkD3SlUbo544lmIUUbNhEubr8GQsMEp3BcAu KQyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=b4T3ldzd; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-188817-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188817-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb18b3d5asi19620861cf.450.2024.05.24.07.54.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 07:54:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188817-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=@alien8.de header.s=alien8 header.b=b4T3ldzd; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-188817-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188817-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de 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 9448B1C20B50 for ; Fri, 24 May 2024 14:54:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB56C12C7FF; Fri, 24 May 2024 14:54:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="b4T3ldzd" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (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 0D5C12BAF3; Fri, 24 May 2024 14:54:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716562444; cv=none; b=tUOmqFq+QPeCQB2N0suVziIef+CZ8qSuz5nbFejqNbJfetXO0n6PyvLPUVv4LjQba/tYUqefKnX68+QuAkQFeslqXdZGZft/d5Srdfu8xDnMddQzZVYa0j0GduNWf9ETZv8nqpFyo74kBuzbcvfr5RyyFcOrma84XE5FQNaqhb8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716562444; c=relaxed/simple; bh=6b5WaG8RwTRaSu4VPX/gk6NuU3QaXHGREcosZB+kWIQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=D8FS9vzLw9WQWLSPr7obczPAg+TNfrcCfiw+zXiRNtrW98kHtv1GHBdYXVtZAVcV/gruQX/5JQIdhWAlIpV/iL98YrZeuVzxn7xAiSnvVNuWdBpiP7IDCKZaPyN+TWxGty9tFCnB7Yw+kFquC28NYffJzvRdLNKbuT7nr13cKUc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=b4T3ldzd; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 016CE40E02A8; Fri, 24 May 2024 14:53:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 66pLATH8wysw; Fri, 24 May 2024 14:53:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1716562428; bh=6/WyMpeLD7PW3IYfJwxTvSgcRfBMp0+ADWk+WOzwZAI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b4T3ldzdx0/7BTYg2WMGtiO56rn3h/2g/5UaXTovqRMFl4RBK1+nKh4Y97djbSu8b Vyi+g7ERRf+ftImqLW3b975Sq4RIax29yhp4I+UHvrK0mXXzD+9VE9KVU+wRlxje76 VxXWmkuipruLm0hmPcMaImddyDwMsTy9KdPPZyBv/e9mTqeUcJghrjiZAl0a35K7/E yl80JUVVz3TdsgAk08XsZXBrf4T9z8hqsuW7Z/jC0dXZtCWiBUZiLbGDNhC5CZxfaN vP6qDazPBemIABb607Zx+WqTigwsbxdO/B/paTuThtRfcE3U7krWR2ihNSBCp4hz1c BAbua3KeVwysicYp8pcVMWVU/HvlHQmwH5tEcfzzXw7KOXZMIiTZwX2pT1wWo5TvDL LnjqxcDWtNlsqykoUOqaO5dASoh0TuNAPcgVm2EbGCKmjmFL1qr9GoqZRayPAVJR8J Kd8ZKXGtKjJoe4UxD36ioSAg0RzS6NvIbr7E1CQVzWXMLomVdxTp/Dz1/6P103VMW8 ncokZo7y3+fwhWDRy+sWqRmOSq6RnusrG6lQu3Z/850FgzHKWNjqZZjMr0Pzph+aMT CX+r65EgjzlrBLU2HoMS6j2hl7MwYoBjlpw0eu1dFkvM6N1nl6IDbyRIkpXkMr+vBB 46GNV6Bxb9Qz4urWohzj9ZW8= Received: from zn.tnic (p5de8ee85.dip0.t-ipconnect.de [93.232.238.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 9920740E01F6; Fri, 24 May 2024 14:53:41 +0000 (UTC) Date: Fri, 24 May 2024 16:53:35 +0200 From: Borislav Petkov To: Yazen Ghannam Cc: 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 Message-ID: <20240524145335.GAZlCp7wAO22acrGyP@fat_crate.local> References: <20240523155641.2805411-1-yazen.ghannam@amd.com> <20240523155641.2805411-4-yazen.ghannam@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240523155641.2805411-4-yazen.ghannam@amd.com> 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... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette