Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3119873pxj; Mon, 14 Jun 2021 15:05:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyv+Lsmqc0/JF3O5m6cTo+1qbOEn7vDGOMRr9MAwIKh640UVbPNcC6MQabkV7IfkJZm3WtV X-Received: by 2002:a05:6402:35d3:: with SMTP id z19mr9581931edc.324.1623708320389; Mon, 14 Jun 2021 15:05:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623708320; cv=none; d=google.com; s=arc-20160816; b=PKD5cWtlAsufE7KPnDe2MakC2rTZvzCCfqOXcP+TL1TG1e79bMXkzwMsid/slJRM6g LLmhMZlD1l763IGB8PMaF8O+5CNgbYSHQHaSAowYrmqdlQQUpQndovgRfRqh/ysOnjEB ckZ+TyxvAUS72C6Gm0+xVwuWy/2UW/STV9NfYB0i3moa6nEfeVvVnvUJD5/vwdpYgHaZ p9rC4+xwFy/3Qfj7JKXs+9aaeyf/t9Yd9ag7uHVVEtctlLHyoVIVCm1pOcs5DNXxFTaQ qeDmh5fblC5ud8tVJnIr9mxjU2t3Q6nPO+EhqbOjc1J8Lzdf7OVN4ba28UUeGd7QF+hZ bZdw== 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=m3AAJQrbVnts2lZ7AysK1yHmxX97aQiFdJvbzt+9ix0=; b=KlT0UtoesBiQ8k40OJBb9zGn1xSj00drD4oCglMa8lkNyOJs4iT6cXbzbNKKm4e2WM gvz6LwMxigERsbyoafpki23ps11Bjy+gds+mD4lkeJ/eFuwp6xtSe9WgfQjGeXCluaTI dd3bGi4sIJEZkzgaC42l7GnrbHo2Dc6NuSoElQudyVXaSjxYWLs8POjfLY7ytxDbgQG/ eZpyFyVcWZ8ufSQhHCtxgeSiWc4gFnZtLr4FmocqHwPzTmbvbtUYR14qwxPSEsk9NJN9 wzmzoSmjQAdcQ3G1ojiRUXeNry+INOxuCrekfKmKJf84QK2SorB1kERu6VhsQs1sgXCT dysw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=JJWYSaJW; 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 u3si14325754edc.326.2021.06.14.15.04.56; Mon, 14 Jun 2021 15:05:20 -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=JJWYSaJW; 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 S230230AbhFNWD5 (ORCPT + 99 others); Mon, 14 Jun 2021 18:03:57 -0400 Received: from mail.skyhub.de ([5.9.137.197]:47190 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229979AbhFNWD5 (ORCPT ); Mon, 14 Jun 2021 18:03:57 -0400 Received: from zn.tnic (p200300ec2f09b90088ef25f957385d7b.dip0.t-ipconnect.de [IPv6:2003:ec:2f09:b900:88ef:25f9:5738:5d7b]) (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 A61D71EC036C; Tue, 15 Jun 2021 00:01:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1623708112; 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=m3AAJQrbVnts2lZ7AysK1yHmxX97aQiFdJvbzt+9ix0=; b=JJWYSaJWG78Fa9MtqsKq+CyxtHjYq+dSqxbMEG7flxvc8w1UV9TWPGkVHOCk1q8uNPtDDV 7DMdmaBqU2FsFoxFpZmtjGeAVmagYkYXzA4olD+IFqo2D1pMgBduqEoTIUqRabLMq8THx6 DObhAFmO+8yEM2P6l/1vvBPoYrGy9qI= Date: Tue, 15 Jun 2021 00:01:41 +0200 From: Borislav Petkov To: Smita Koralahalli Cc: x86@kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, Tony Luck , Mauro Carvalho Chehab , James Morse , yazen.ghannam@amd.com, Robert Richter Subject: Re: [PATCH] EDAC/mce_amd: Reduce unnecessary spew in dmesg if SMCA feature bit is not exposed Message-ID: References: <20210614212129.227698-1-Smita.KoralahalliChannabasappa@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210614212129.227698-1-Smita.KoralahalliChannabasappa@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 14, 2021 at 04:21:29PM -0500, Smita Koralahalli wrote: > The SMCA feature bit is not exposed on the guest. > > This causes a lot of noise in dmesg as the warning is printed for each > logical CPU. > > $ dmesg |grep -i family > > [ 0.031000] smpboot: CPU0: AMD EPYC-Milan Processor (family: 0x19, model: 0x1, stepping: 0x1) > [ 4.653422] Huh? What family is it: 0x19?! > [ 4.720732] Huh? What family is it: 0x19?! > [ 6.171028] Huh? What family is it: 0x19?! > [ 6.766552] Huh? What family is it: 0x19?! > [ 6.811119] Huh? What family is it: 0x19?! > [ 6.839855] Huh? What family is it: 0x19?! > > Give these messages debug severity and output once as it is mostly useful > for module developers and just noise for users. I'm getting a patch like that on a pretty regular basis and each time I tell people simply not to load the module in guests. Hypervisors do not support SMCA... But apparently those wrong error messages bug people on a regular basis and I'm tired of typing this each time so I'll take a different version of this patch: check X86_FEATURE_HYPERVISOR on entry in mce_amd_init() and return -ENODEV if set. So that this is done once and for all. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette