Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp452819lqh; Sat, 4 May 2024 07:42:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVR0GPTmevrOxDZ3pUu2Me7Ywl76NQmt+zd8WuYYRSNrKxkCeyf6hfCQuWcUVNbLpgUdawFolsrNF3wZAcOAFm+L7T2MwST1EWdWOVRUA== X-Google-Smtp-Source: AGHT+IG8Rk9HmgJwiP9a64WONH7/mPP3BscD+loVlFK5K7l3CXD12b2JHJPbc0DloNHvuMqnJQ97 X-Received: by 2002:a50:d598:0:b0:56e:de1:f427 with SMTP id v24-20020a50d598000000b0056e0de1f427mr3639473edi.25.1714833721369; Sat, 04 May 2024 07:42:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714833721; cv=pass; d=google.com; s=arc-20160816; b=LXRjI1hMh69EEnyjv6wViyQTBlBcuz5T4csBs6ar3ypdXVG3Tb4abWPQ+o5D/fMRFH hHCt76MoDgMjXjcfZa/VDWIyd+jJbzLxHQPePWcDE2FsXQ6gG+Gz7/nB3KVSdfSyHPnI d95mol/9agqmAIrtDgy9OBV6BqOgE+cHE9qz+POIPoB5BgswuUGOBbmXDSB2/MJXmCmA RHqdlZlxbe9MnNgUdqt9Inbvx4nt3VyimBGqr67etjFle2C8jseFzvAleGU3kcY4fHeG j42964xMnVTXTz/OiI8/YdQhM16yKXjuBbXkmp6Rhncie7yJjjzctG9yC/w9M/ZO6+gw LLCw== 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=ZPZnSIgsZm76QrdrCmCnZAFegpDRYsEvTiDSXnLopVE=; fh=i1uFnDmLOTnJDQ1XDeOGmrgpRz2O/Dtw3Qgsf2FYudI=; b=cFwkp8WO9N+ipufBsXFFQ9huDPHvCJd6n2dA8dYJQC1dDX5m2Rd5a2Kua3nBrkaR5G zLlQTlVGEM0Zm2j0utDW/fp/YE+FlG7I/EbiykOo2rY+CLJcRAUNj0155dGgbDuyODny TJQQdoY4im4NwcSgvaIfUEbHkbKSOsEFdc4UU1culVJzl/mGXvP6VgF3PPvUupmTjKcc 7WOQgUkvPM2ocmgU4YxQ8DfVNj8Rq7iFpDY+5TCqE63PtdL1EV1zQGOg3e86AVpDgLr4 k+JBU8RvUnTFrYxQlDp/Nk+evL6bsnwyBqkyE22hC5CU83IDg2TTjMHGVdj+mNHTRdP5 1DJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=Bj5jNRO9; 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-168706-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168706-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id e5-20020a50fb85000000b005726df6b601si2626024edq.508.2024.05.04.07.42.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 07:42:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168706-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=Bj5jNRO9; 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-168706-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168706-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1E8E71F21E8F for ; Sat, 4 May 2024 14:42:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 382623BBE9; Sat, 4 May 2024 14:41:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="Bj5jNRO9" 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 86C8C37700; Sat, 4 May 2024 14:41:51 +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=1714833713; cv=none; b=QwOlMQmzun7xOTlfO0/BZ1xfkFHdA5kaRY5XrGiQMIugTMyshjWtwqPIshxHjil8gEQCG4jZhqKG0StfOTxknlD14iyF5M7sz97jHOtAmBCZHLe6yxzgxzXs8FJ8dkYvyDvtEnhHDz/R5V5JQAgvtOQVdbhxFhRiIF3DuP98iU8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714833713; c=relaxed/simple; bh=ctPH1ZslJOA60185S5JL9+K5bRbUtsnEi0rriNOsE9s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZZpbCuP44GTrFl3TUmFe7O5i30cHUCIo/hI9oXpoGMOcGD0EADfp6xESizer8UZ3mOk8vcbZfx1JdFcWic+zY8BDp6XEkCMDxpsFrmqoSb1Rj8eHspGDg1hTUtyEhHb3bzSw5IkfSzHk0WhlD6PiRFq00M4N5j8TSFc1zYSEU6g= 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=Bj5jNRO9; 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 8C62440E01F6; Sat, 4 May 2024 14:41:49 +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 sQruP3uFrSWy; Sat, 4 May 2024 14:41:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1714833704; bh=ZPZnSIgsZm76QrdrCmCnZAFegpDRYsEvTiDSXnLopVE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Bj5jNRO9sMhixKA3R9j1LWiBeFZwQwXocXgVUZGlmRYBqUFEWZbJrmOL3awznSoU4 uqWvpV6wKTU8oORcYq42BVtBrPLMADqdm3UGoXLmzELrvLtv+e9M9GsAf4FK/eHhmg UKuFGF/Eu+BvbPV9pp+D7g56VeV9gI/FjVl1Tc80QxVJVFMNYrFc89uZD7QZLi8alD Dqt9EdkXOg+l9hkHqNBemfdoZ1Go3X46HFbtclNT6JZhbyRcTXB9DXJewet3+dVFfS tLEp4m1klfOmSd5sN8oswF+l+b96Ywk9AM8zCRxnWEcFzETg4cEcUIVRfJLu4uJH7O YgFpVVd9eeOsXkREN5NWbupBx3qpKzlZlUJ/c+m6xbo8zc6uzzYDnOny2IsfPiGiS+ Qv6PUy1DtxV6sCmb64821n63xYkPCoEG5VQb2Es3/lMyRxHXmxJn34TihYLN31tzwO /9V2PNQgvwyA5yITIjCIZcGRnE9+XPWsHtsDQwX8hpd2t9YFCnhwcyKiXvebhCc6gw hTcOwi0LaGng8U7CVTFAN0uAIt3SsYYsJ6wslSoHPD1atfMJur0ciUcw9rc8W3hbdS nuSYVhKde7Y59oMmmh9fO5/erzHBDFT42xirsmkUmPiujxF9P4IaUt8l/daKDKYmWL EwM3ysZi2OqeVtmonIMWG15g= Received: from zn.tnic (pd953020b.dip0.t-ipconnect.de [217.83.2.11]) (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 C256040E0192; Sat, 4 May 2024 14:41:37 +0000 (UTC) Date: Sat, 4 May 2024 16:41:36 +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 v2 08/16] x86/mce/amd: Clean up enable_deferred_error_interrupt() Message-ID: <20240504144136.GEZjZJIG0QdIeAie4H@fat_crate.local> References: <20240404151359.47970-1-yazen.ghannam@amd.com> <20240404151359.47970-9-yazen.ghannam@amd.com> <20240429131240.GOZi-cyLh2OhRrNTWM@fat_crate.local> 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: On Mon, Apr 29, 2024 at 10:18:59AM -0400, Yazen Ghannam wrote: > Good idea. In fact, we can treat this register as read-only, since we will > only handle (SUCCOR && SMCA) systems. The only need to write this register > would be on !SMCA systems. > > We need to assume that the register value will be identical for all CPUs. This > is the expectation, but I'll add a comment to highlight this. > > Also, we don't need the entire register. We just need the LVT offset fields > which are 4 bits each. Yes, you could read out and sanity-check only the LVT offsets and make they're the same across all cores to make sure BIOS hasn't dropped the ball in programming them. But see my previous mail too: I think we should leave pre-Zen as it is and do cleanups and simplifications only for Zen and newer. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette