Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2865326ybh; Mon, 16 Mar 2020 11:10:33 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu0OFlA3znoGM89o4YMJqaINqFCVeis2YwjtaVDFRr2KMO7phrhbsmrPOziYPrPgW5PMXwX X-Received: by 2002:a9d:5e04:: with SMTP id d4mr427082oti.36.1584382232591; Mon, 16 Mar 2020 11:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584382232; cv=none; d=google.com; s=arc-20160816; b=wV3+UGIEYbuN3DkAQzX1L+v9nD0TWtttOT/mp1SQj2CdwUDvMT1v+Lg0SFJnjT4smx cT/jGQvdyeJ7AaE8wg/CejolUaCkjq4a2hXTUcSSRRXBCJL3nYKZn/cvGJaJgGZFj3EK qYrFNBk6cDI5EGhWcuhNkrb0OsBg3eNE5QT95/dRZdHT4p4AYyx9nUm73FKG58+mIpi0 j/lr5QM05ADX4ZzFA4tDWWsNzei6ygxQIPwxnXG04akkf1Nolfqr8Lqz3+tTlxB+CTo5 ocBAKTGnjAIqM26NFycdPDdxyLZACzOp6kbljqIPOnRyepkSZIEH63LP+avXodhvoEeO e7Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BWcGdDqsDLKukOwUdjv1uByG4xJeZMLjRXLsayzjkaE=; b=gCyOwmhpNfN7M8Nrz8PBGBry4t7XDKZ8ExgjfXVXlJmoktx7LTvISX/RSdoP3pemhM fTqPj4w2lMdEQzb9M2uRUgAJG0kbusm4KEXD74cnafrmgXAFIxAX83CCWk5EHq0z6DFD a+/YcH8wPD+yly/ISJyv6WOqa9CO+t3INhWgFq9hbk95I8q9iP3Ls+FQwubh8/JyIAIR BgcmEKdbJKVe6uRxRDM9Sqyw61h08pCTso/5gTpFOz6GiIRFpsS0jXPdHzJOMPY/cIa3 NzWuNDNYgFl4B+dsMYUCxbuzEKHIDpUvbz1o0uoV22ZZeWTLu1baQby6ze720RifjFVm JGuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=ZSyiK0rT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id l136si276651oib.277.2020.03.16.11.10.02; Mon, 16 Mar 2020 11:10:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=ZSyiK0rT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1732345AbgCPSIZ (ORCPT + 99 others); Mon, 16 Mar 2020 14:08:25 -0400 Received: from mail.skyhub.de ([5.9.137.197]:53454 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732242AbgCPSIZ (ORCPT ); Mon, 16 Mar 2020 14:08:25 -0400 Received: from zn.tnic (p200300EC2F06AB00329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2f06:ab00:329c:23ff:fea6:a903]) (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 E85871EC0C84; Mon, 16 Mar 2020 19:08:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1584382103; 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=BWcGdDqsDLKukOwUdjv1uByG4xJeZMLjRXLsayzjkaE=; b=ZSyiK0rTzOfdUWBy80UPgJ1F0kWy8AOIcOnfpO9jCLDjyguTmras8/gvB0ruNU4J4pCt01 +71UQAiN0kbs6IOtbYrBWwZ++25bwdK+amIA6DKyPWMM7VF99h92dJDCPIXC3lbwmSHak+ fNBIFlrCFGDhvqUpFyXoRWC0TTLU4Ns= Date: Mon, 16 Mar 2020 19:08:29 +0100 From: Borislav Petkov To: Wei Huang Cc: linux-kernel@vger.kernel.org, tony.luck@intel.com, yazen.ghannam@amd.com, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, linux-edac@vger.kernel.org, x86@kernel.org, smita.koralahallichannabasappa@amd.com Subject: Re: [PATCH 1/1] x86/mce/amd: Add PPIN support for AMD MCE Message-ID: <20200316180829.GP26126@zn.tnic> References: <20200311044409.2717587-1-wei.huang2@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200311044409.2717587-1-wei.huang2@amd.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 10, 2020 at 11:44:09PM -0500, Wei Huang wrote: > Newer AMD CPUs support the feature of protected processor identification > number (PPIN). This patch detects and enables PPIN support on AMD platforms Avoid having "This patch" or "This commit" in the commit message. It is tautologically useless. Also, do $ git grep 'This patch' Documentation/process for more details. > and includes PPIN info in MCE records if available. Because this feature is > almost identical on both Intel and AMD, it re-uses X86_FEATURE_INTEL_PPIN > feature bit and renames it to X86_FEATURE_PPIN. Strictly speaking, you can't rename it anymore because it is visible in /proc/cpuinfo and thus ABI. Besides, we have already a cpufeatures.h leaf for exactly that word: /* AMD-defined CPU features, CPUID level 0x80000008 (EBX), word 13 */ which means you can call the AMD define #define X86_FEATURE_AMD_PPIN ( 13*32+23) /* AMD Protected Processor Inventory Number */ and /proc/cpuinfo will have "amd_ppin" and the code will use the respective vendor flag to test. > Signed-off-by: Wei Huang > Signed-off-by: Smita Koralahalli Channabasappa What does this SOB mean? Grep Documentation/ for "Co-developed-by" in case this is what you're trying to express. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette