Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp884817pxb; Wed, 27 Oct 2021 14:27:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/pCFqjo+3tmBtyD0HHIqWY7XvRcRuI40QwApm0VGUWQRj/6v6x2B3ljr64IwB0qh+4r9n X-Received: by 2002:a17:907:6e04:: with SMTP id sd4mr129519ejc.40.1635370030703; Wed, 27 Oct 2021 14:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635370030; cv=none; d=google.com; s=arc-20160816; b=og1CDWe7P0ejjQkfV2skWmgfDKj01Zva/XQNAK/9q3bbkODdnriHTJxu0upykrKyMh T2ka8aUY9YpLMOKUIFhNc+1IJccx35s20h/1GvPBFOKAKOEueX41Hv1Amh1gLQ4eGTyd Ihch5+WKXnHgyYFheOVlla+0bOVyfWL8zT43xjvY3/EZvJQH6xnPQ+8xjEzDokK8+hUM UwZg7jse0JuNe4xbPrc373/RSPNQSc8oEdean/GX9vLOm5aa1PBMooYEV/g2nHZVxeNX YLv9Qt5biX9m1yUu7p7tn4oJQMWHksYwHWh8hPA0gT2Q7MubTqD3Hfv7FXhUlr1IoiJT x2cg== 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=8AFb4PMAeHttwC3qS0esrlJfGzXNEM1Moimt2WNSlzU=; b=y8CEx6YAoJlzuwwCv9PR4orrUQY7MeEMdktYBnueD9VzjEJw6Oyqj3fQjHMrxpTwzG sEdCWOV7Vhwnv/SEdEhiyMOALmoYjQTR5sThSbmswzTOzqDUoIFJWMFOYWDTcYq47OGo SBdfin8zLFQE0771xEZxIShtuHT+RjeoXDNhq9A0bK4GDxoozbKx02TAWYXArQaAGkw1 fcof49c6qk4piYv2Rmb+CNx+luugnR/VuUPpc7UwpZ8hF7BYfBtD+FMSHrx9+czwosLD O1zbqSS4P1uZTeTiGfJXjgUVw5U9NgMagtolAJ9xCzQV7ezcTuFz/Zi8XBr5xLcp/A1u 4Emw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=QyYiPlHM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i20si1238313ejd.100.2021.10.27.14.26.47; Wed, 27 Oct 2021 14:27:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=QyYiPlHM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S241668AbhJ0Lne (ORCPT + 97 others); Wed, 27 Oct 2021 07:43:34 -0400 Received: from mail.skyhub.de ([5.9.137.197]:51776 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230336AbhJ0Lnd (ORCPT ); Wed, 27 Oct 2021 07:43:33 -0400 Received: from zn.tnic (p200300ec2f161500de850afe3c1188c4.dip0.t-ipconnect.de [IPv6:2003:ec:2f16:1500:de85:afe:3c11:88c4]) (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 EB7671EC061D; Wed, 27 Oct 2021 13:41:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1635334867; 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=8AFb4PMAeHttwC3qS0esrlJfGzXNEM1Moimt2WNSlzU=; b=QyYiPlHM3SDI0E3QPXTszPfzfejgQnMuXfb1uv/NcQcTzDappkqng30GR78Djhb+HY9s5b sbmK9dbaJxXdAb6QAOSa7puPB04FkN8xoOG2XCARHtcLdYocFWc9JoS0IQD6Kf9y5ikaxv YdPFxjDBcULwBAD79AqjYyHzEiqrW44= Date: Wed, 27 Oct 2021 13:41:03 +0200 From: Borislav Petkov To: Smita Koralahalli Cc: x86@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Tony Luck , "H . Peter Anvin" , yazen.ghannam@amd.com Subject: Re: [PATCH v2 3/5] x86/mce: Use mca_msr_reg() in prepare_msrs() Message-ID: References: <20211019233641.140275-1-Smita.KoralahalliChannabasappa@amd.com> <20211019233641.140275-4-Smita.KoralahalliChannabasappa@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20211019233641.140275-4-Smita.KoralahalliChannabasappa@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 19, 2021 at 06:36:39PM -0500, Smita Koralahalli wrote: > Replace MCx_{STATUS, ADDR, MISC} macros with mca_msr_reg(). And this is where your commit message and patch should end. It is a bad idea to do textual replacements *and* functional changes in a single patch: it is hard to review and debug if there are possible issues. So you do the textual replacements in the first one and then the functional changes in subsequent patches. > Also, restructure the code to avoid multiple initializations for MCA > registers. What multiple initializations? > SMCA machines define a different set of MSRs for MCA registers > and mca_msr_reg() returns the proper MSR address for SMCA and legacy > processors. > > Initialize MCA_MISC and MCA_SYND registers at the end after initializing > MCx_{STATUS, DESTAT} which is further explained in the next patch. And this should be *in* the next patch. Also, there's no concept of "next patch" when you do git log on the upstream tree and use different sorting etc. So a patch should be self-contained and do one change only. There's very good documentation in Documentation/process/, expecially Documentation/process/submitting-patches.rst, which explains how a patch should look like. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette