From patchwork Wed Aug 22 16:51:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 179349 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 7BABA2C0090 for ; Thu, 23 Aug 2012 02:52:02 +1000 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1T4E9f-0000S8-SQ; Wed, 22 Aug 2012 16:51:43 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1T4E9d-0000Ry-Ug for fwts-devel@lists.ubuntu.com; Wed, 22 Aug 2012 16:51:42 +0000 Received: from cpc3-craw6-2-0-cust180.croy.cable.virginmedia.com ([77.100.248.181] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1T4E9t-0000fz-SF for fwts-devel@lists.ubuntu.com; Wed, 22 Aug 2012 16:51:57 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH] Add some MTRR specific klog tests. Date: Wed, 22 Aug 2012 17:51:57 +0100 Message-Id: <1345654317-7735-1-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.7.10.4 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: fwts-devel-bounces@lists.ubuntu.com Errors-To: fwts-devel-bounces@lists.ubuntu.com From: Colin Ian King Signed-off-by: Colin Ian King Acked-by: Alex Hung Acked-by: Ivan Hu --- data/klog.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/data/klog.json b/data/klog.json index a1f6c62..653b592 100644 --- a/data/klog.json +++ b/data/klog.json @@ -825,6 +825,20 @@ }, { "compare_mode": "regex", + "log_level": "LOG_LEVEL_HIGH", + "tag": "FWTS_TAG_BIOS", + "pattern": "mtrr:.*no more MTRRs available", + "advice": "A device driver has tried to allocate a Memory Type Range Register (MTRR) to optimially configure a caching policy on a memory region but there are no more free MTRRs available. Generally the firmware should allow for one or two free MTRRs for drivers to allocate. The system will have a sub-optimally configured memory region and this may severely impact on performance." + }, + { + "compare_mode": "regex", + "log_level": "LOG_LEVEL_HIGH", + "tag": "FWTS_TAG_BIOS", + "pattern": "[drm].*MTRR allocation failed.*Graphics performance may suffer", + "advice": "The DRM driver has tried to allocate a Memory Type Range Register (MTRR) but there are no more free MTRRs available. The system will have a sub-optimally configured graphics memory region and this may severely impact on graphics rendering throughput and performance. The firmware should allow for one or two free MTRRs, but it hasn't, which is probably a firmware bug." + }, + { + "compare_mode": "regex", "log_level": "LOG_LEVEL_MEDIUM", "tag": "FWTS_TAG_BIOS", "pattern": "mtrr:.*your BIOS has configured an incorrect mask, fixing it",