From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 584E3C433FE for ; Wed, 6 Apr 2022 22:44:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237177AbiDFWqR (ORCPT ); Wed, 6 Apr 2022 18:46:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237191AbiDFWqO (ORCPT ); Wed, 6 Apr 2022 18:46:14 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4D7C197FAA; Wed, 6 Apr 2022 15:44:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649285055; x=1680821055; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=BXHlXRs9Y//4ncXgZx8BFrLclVb5x0WXnhH88lhKkU4=; b=API4CzNDSVLZ8xAQlejPFwZqYexeeQ6g+91/GqpCYqcw6ucpSG4pmII0 whhpXrp5b7Kbe621GUfrhfMAaOP2osIWcixlbOYtToj/xd1Hi7YjfhXY1 rIalaUBANjwIXHpNNGjEGrQQ0y/DUn0a47pTZKpczyvoDFYQIk6h4F8Ve FG607Vxxv3O38HPPdR5NWPnVRfKnA9K+oD5gROc+0VLXe/k83WCcizrH1 NxjkyMPd/SX/anKBcPSWayzzbBGbiI+9czUSKtSZ/Ur3yEtxW7dFMETxB tj16LFFjhfQTPRrqzVhzFZNh314yfzLmCaRAT4xh78vWhvMRmKVb/cizw g==; X-IronPort-AV: E=McAfee;i="6200,9189,10309"; a="260007582" X-IronPort-AV: E=Sophos;i="5.90,240,1643702400"; d="scan'208";a="260007582" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 15:44:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,240,1643702400"; d="scan'208";a="570770448" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga008.jf.intel.com with ESMTP; 06 Apr 2022 15:44:14 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 6 Apr 2022 15:44:14 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 6 Apr 2022 15:44:13 -0700 Received: from fmsmsx610.amr.corp.intel.com ([10.18.126.90]) by fmsmsx610.amr.corp.intel.com ([10.18.126.90]) with mapi id 15.01.2308.027; Wed, 6 Apr 2022 15:44:13 -0700 From: "Luck, Tony" To: Smita Koralahalli , "Borislav Petkov" CC: "hpa@zytor.com" , Yazen Ghannam , Dave Hansen , "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "x86@kernel.org" Subject: RE: [RFC PATCH 5/5] x86/mce: Handle AMD threshold interrupt storms Thread-Topic: [RFC PATCH 5/5] x86/mce: Handle AMD threshold interrupt storms Thread-Index: AQHYSYCbSvicE54JgU2PntMI6Ix4HKzje9Lg Date: Wed, 6 Apr 2022 22:44:13 +0000 Message-ID: References: <20220406063542.183946-1-Smita.KoralahalliChannabasappa@amd.com> <20220406063542.183946-6-Smita.KoralahalliChannabasappa@amd.com> In-Reply-To: <20220406063542.183946-6-Smita.KoralahalliChannabasappa@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.401.20 x-originating-ip: [10.1.200.100] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org + /* Return early on an interrupt storm */ + if (this_cpu_read(bank_storm[bank])) + return; Is you reasoning for early return that you already have plenty of logged errors from this bank, so OK to skip additional processing of this one? -Tony