From patchwork Mon Feb 17 13:46:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prarit Bhargava X-Patchwork-Id: 11386513 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9D344159A for ; Mon, 17 Feb 2020 13:46:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7DE3F24125 for ; Mon, 17 Feb 2020 13:46:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="UVYnvmvj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728686AbgBQNqi (ORCPT ); Mon, 17 Feb 2020 08:46:38 -0500 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:31942 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726977AbgBQNqh (ORCPT ); Mon, 17 Feb 2020 08:46:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581947196; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=cf8YgMTUEKRaWnswbL5aVh8i50xAm7xMMhVzr6GLwJg=; b=UVYnvmvjbdBzsblPjiQhbI7TrULeyCMmFMp5/CtXgM5fjgkuy4m1e4O34kaxSS7qJIdJKC Efu2l/CWSpWOZAn92aWeJ7z3mmZoa/2Yb42ZuEpYROseylRBXcx+5U0IFYt32eDF5ZJKC2 DGnhO6qQ7+0nR1Ue/GHpjaxXUNH/JOM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-150-9xOsY9kYMTmCI711DNcdBg-1; Mon, 17 Feb 2020 08:46:32 -0500 X-MC-Unique: 9xOsY9kYMTmCI711DNcdBg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 987D1107ACC4; Mon, 17 Feb 2020 13:46:30 +0000 (UTC) Received: from prarit.bos.redhat.com (prarit-guest.7a2m.lab.eng.bos.redhat.com [10.16.222.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 83D0410013A1; Mon, 17 Feb 2020 13:46:29 +0000 (UTC) From: Prarit Bhargava To: linux-kernel@vger.kernel.org Cc: Prarit Bhargava , Borislav Petkov , Mauro Carvalho Chehab , Tony Luck , James Morse , Robert Richter , linux-edac@vger.kernel.org Subject: [PATCH] EDAC/mce_amd: Output Scalable MCA processor warning once Date: Mon, 17 Feb 2020 08:46:27 -0500 Message-Id: <20200217134627.19765-1-prarit@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Sender: linux-edac-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org This warning is output for every virtual cpu in a guest on an EPYC 2 system. The warning only needs to be logged one time. Output the warning only once. Signed-off-by: Prarit Bhargava Cc: Borislav Petkov Cc: Mauro Carvalho Chehab Cc: Tony Luck Cc: James Morse Cc: Robert Richter Cc: linux-edac@vger.kernel.org --- drivers/edac/mce_amd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c index ea980c556f2e..8874b7722b2f 100644 --- a/drivers/edac/mce_amd.c +++ b/drivers/edac/mce_amd.c @@ -1239,7 +1239,7 @@ static int __init mce_amd_init(void) case 0x17: case 0x18: - pr_warn("Decoding supported only on Scalable MCA processors.\n"); + pr_warn_once("Decoding supported only on Scalable MCA processors.\n"); return -EINVAL; default: