Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp144818pxm; Tue, 22 Feb 2022 07:53:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWJ3yqOid7hj3Nf65cNUW1YbS3vd7fLQrLOyPekCtJEUCqzvlZ984f6eHumfcKksmJMRMD X-Received: by 2002:a05:6402:2546:b0:412:d0eb:2a4a with SMTP id l6-20020a056402254600b00412d0eb2a4amr20630671edb.306.1645545203590; Tue, 22 Feb 2022 07:53:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645545203; cv=none; d=google.com; s=arc-20160816; b=LkbnsPIP9JGi7m5fVv376edqIT3nrvYyYAvsm4wyuTlaad5p/Tnd414oTlFVMOXjwr rLHfMDa391nasHbRtxTdytynqn8P9k0MYUdbU1rtJqYgKjVl7EK/tz12hJXM9s2JeVgo YuO/+8Vd8ld2V/mIE4h30kzD2hGalqPLh4JGkqSjfODyHiNvrfpkqBx4o4q9A0HN7Hgb AJGxQ0TuenGK20LTj6qDlweGTk6JlA2TIhu0PnVJUbOTbrRWGKhhG6RDxE6bHEHeLEJ1 ePzAlfiQgsMAzFto9PW8FVHrez88Y2FZ7/0syEBXKvlbw1C4v3YTXBR50n1mfp5rh+Ro az3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2a4MMuFTNxjhQiCqxEjybhzusRfnc7p6n/cb/C5lpOA=; b=Hlsc/9ZnDAZ5yptm2d7yX7BWAO0n5BhGt8pQ1aswqTLNezp4jH829tD2W4uFchRGo7 vS+v6I8RYh5OjJJ/C9jEvexkYLBB6sZsMnUPQECs6h8Q0FMqWvAeNpDu3B/HtokP41PD 0sjouZq4DAKT0m6fB2aJDqhp6ar2AZsb88VlwhalmCyPP/t3JppVpB8f0a0IrDj0hUpR /4p4oBohVh4LjfBHzm2cSg6Z4eB3HHLrNabhlOzbw4JLKgK+djUm9ZRcr1hqeJDbot4k qGhVmi0QGEbhmTytcVgXQnpr4xB1B35xDuBr/WJJLSuaiS25MOQex9ru223+Tr+hLhT9 Mihw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=PfeIMI9o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gq16si7714793ejb.520.2022.02.22.07.53.00; Tue, 22 Feb 2022 07:53:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=PfeIMI9o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233628AbiBVPgr (ORCPT + 99 others); Tue, 22 Feb 2022 10:36:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233643AbiBVPg2 (ORCPT ); Tue, 22 Feb 2022 10:36:28 -0500 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1FE116307C; Tue, 22 Feb 2022 07:35:49 -0800 (PST) Received: from zn.tnic (dslb-088-067-221-104.088.067.pools.vodafone-ip.de [88.67.221.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 298FC1EC053C; Tue, 22 Feb 2022 16:35:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1645544144; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=2a4MMuFTNxjhQiCqxEjybhzusRfnc7p6n/cb/C5lpOA=; b=PfeIMI9ocvfjFEcOI3SzzRkKbcAOcPH5ei+5N8bovdeOZV3r1xEW9x3tYpDO6seM5u2vGN AyYeF2ex4LFSnqs4li238N4ok9BKuwQwUyxD/qo/SOOAoR9Bsse165mVQ/Y+DgtAZgJtSu f+6/aSXRX3AkZb69kQu7Yvbf+9k/xYE= Date: Tue, 22 Feb 2022 16:35:51 +0100 From: Borislav Petkov To: Smita Koralahalli Cc: x86@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Tony Luck , Dave Hansen , "H . Peter Anvin" , James Morse , Robert Richter , Yazen Ghannam Subject: Re: [PATCH v3 3/4] x86/mce, EDAC/mce_amd: Cache MCA_CONFIG[McaX] in struct mce_bank Message-ID: References: <20220211223442.254489-1-Smita.KoralahalliChannabasappa@amd.com> <20220211223442.254489-4-Smita.KoralahalliChannabasappa@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220211223442.254489-4-Smita.KoralahalliChannabasappa@amd.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 11, 2022 at 04:34:41PM -0600, Smita Koralahalli wrote: > Cache the value of MCA_CONFIG[McaX] in the existing mce_bank struct > similar to MCA_CONFIG[McaLsbInStatusSupported]. > > This simplifies and eliminates the need to read MCA_CONFIG register each > time to check McaX. I don't see the point for this change, frankly. I doubt it is speed because those are not really hot paths. Code savings ain't either: 5 files changed, 36 insertions(+), 22 deletions(-) Having yet another exported function to modules if not really necessary doesn't make it prettier too. So if there's no point for it, you can simply drop it. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette