From patchwork Thu Jun 20 03:40:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Hung X-Patchwork-Id: 1119107 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) 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 45TnfP44dfz9s7h; Thu, 20 Jun 2019 13:40:59 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1hdnwV-0005jc-Rc; Thu, 20 Jun 2019 03:40:55 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1hdnwU-0005jU-G5 for fwts-devel@lists.ubuntu.com; Thu, 20 Jun 2019 03:40:54 +0000 Received: from 1.general.alexhung.us.vpn ([10.172.65.254] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1hdnwT-0004x2-Nj; Thu, 20 Jun 2019 03:40:54 +0000 From: Alex Hung To: fwts-devel@lists.ubuntu.com Subject: [PATCH] cpu/msr: skip read-only MCG_CAP MSR Date: Wed, 19 Jun 2019 20:40:51 -0700 Message-Id: <20190620034051.11108-1-alex.hung@canonical.com> X-Mailer: git-send-email 2.17.1 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: , MIME-Version: 1.0 Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" Signed-off-by: Alex Hung Acked-by: Colin Ian King Acked-by: Ivan Hu --- src/cpu/msr/msr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cpu/msr/msr.c b/src/cpu/msr/msr.c index 69fd80c8..2cd51e5c 100644 --- a/src/cpu/msr/msr.c +++ b/src/cpu/msr/msr.c @@ -265,7 +265,10 @@ static const msr_info AMD_MSRs[] = { { "SYSENTER_ESP", 0x00000175, 0xffffffffffffffffULL, NULL }, { "SYSENTER_EIP", 0x00000176, 0xffffffffffffffffULL, NULL }, */ + /* + * MCG_CAP is read-only and can differ from core to core { "MCG_CAP", 0x00000179, 0x0000000001ff0fffULL, NULL }, + */ { "MCG_STATUS", 0x0000017a, 0xffffffffffffffffULL, NULL }, { "MCG_CTL", 0x0000017b, 0xffffffffffffffffULL, NULL }, { "MTRR_PHYSBASE0", 0x00000200, 0xffffffffffffffffULL, NULL },