From patchwork Fri Oct 9 04:35:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Hung X-Patchwork-Id: 1378983 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C6wHX3KPXz9sRk for ; Fri, 9 Oct 2020 15:35:50 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1kQk88-0003sm-9b; Fri, 09 Oct 2020 04:35:44 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kQk86-0003sf-HK for fwts-devel@lists.ubuntu.com; Fri, 09 Oct 2020 04:35:42 +0000 Received: from 2.general.alexhung.us.vpn ([10.172.65.255] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kQk85-0002iw-W6; Fri, 09 Oct 2020 04:35:42 +0000 From: Alex Hung To: fwts-devel@lists.ubuntu.com Subject: [PATCH] cpu/msr: skip MSR MCG_CTL (0x17b) for AMD CPUS Date: Thu, 8 Oct 2020 22:35:38 -0600 Message-Id: <20201009043538.267977-1-alex.hung@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" AMD CPU only report the extension MCA banks on CPU0. BugLink: https://bugs.launchpad.net/fwts/+bug/1897220 Signed-off-by: Alex Hung Acked-by: Ivan Hu Acked-by: Colin Ian King --- src/cpu/msr/msr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cpu/msr/msr.c b/src/cpu/msr/msr.c index 3a8722c2..c4edc5b8 100644 --- a/src/cpu/msr/msr.c +++ b/src/cpu/msr/msr.c @@ -270,7 +270,9 @@ static const msr_info AMD_MSRs[] = { { "MCG_CAP", 0x00000179, 0x0000000001ff0fffULL, NULL }, */ { "MCG_STATUS", 0x0000017a, 0xffffffffffffffffULL, NULL }, + /* MCG_CTL differs in Ryzen 4000 series and probably later series { "MCG_CTL", 0x0000017b, 0xffffffffffffffffULL, NULL }, + */ { "MTRR_PHYSBASE0", 0x00000200, 0xffffffffffffffffULL, NULL }, { "MTRR_PHYSMASK0", 0x00000201, 0xffffffffffffffffULL, NULL }, { "MTRR_PHYSBASE1", 0x00000202, 0xffffffffffffffffULL, NULL },