From patchwork Mon Jul 13 14:25:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 51072 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 72A7F202B9 for ; Mon, 13 Jul 2015 14:25:50 +0000 (UTC) Received: by lafd3 with SMTP id d3sf5065375laf.1 for ; Mon, 13 Jul 2015 07:25:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=ohfdkB1zRUsa3AGLoK7YIilRzAGZ6uOe1hF0bZ09JSw=; b=ZIhkiP/QLohdeh5XH0HVOCb33nnvh7+heB7Im1FBjLGPueHnRP/DAL415tBzxvNlQp HbMdS7AQZ1ym7K3yoZcsoEC43AVODwS1DaEjofv0mfKqiYxUa0VORBuMcMUfSRRUKM9W oFOv/qadd1q2aPIqVqUp9piLoqjXcNlpstHgtEQqL4MQlYIwPZnwC4YqULf5UKhukEsw BGn1uSW/eiEVIDGXiODhcssnjo9YvFVe1qA2inF6esR+zMFXwZEw5zGu8snCHrYiOY/h Zm3jX/lP7kleXUkyXQc9Nlisca0mNb2og4lLcFhR9T/+fyRK44N6BFoiBEFdc4v94B7M g6IA== X-Gm-Message-State: ALoCoQlkCwtCZrOOZhjREzfMHpD9GTbJqq2bT9vr7A57Gh+h/f0LgOpnxKjzmVgM/xcLLEIzyLFW X-Received: by 10.152.237.36 with SMTP id uz4mr15807630lac.1.1436797549420; Mon, 13 Jul 2015 07:25:49 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.45.39 with SMTP id j7ls79611lam.21.gmail; Mon, 13 Jul 2015 07:25:49 -0700 (PDT) X-Received: by 10.112.170.167 with SMTP id an7mr32716496lbc.103.1436797549264; Mon, 13 Jul 2015 07:25:49 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id s2si13425698laa.172.2015.07.13.07.25.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Jul 2015 07:25:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbbpo10 with SMTP id po10so125835110lbb.3 for ; Mon, 13 Jul 2015 07:25:49 -0700 (PDT) X-Received: by 10.112.55.207 with SMTP id u15mr32576050lbp.88.1436797547980; Mon, 13 Jul 2015 07:25:47 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp1764561lbb; Mon, 13 Jul 2015 07:25:46 -0700 (PDT) X-Received: by 10.50.18.43 with SMTP id t11mr13163070igd.25.1436797546342; Mon, 13 Jul 2015 07:25:46 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id y14si5717116igy.0.2015.07.13.07.25.45 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 13 Jul 2015 07:25:46 -0700 (PDT) Received-SPF: pass (google.com: domain of edk2-devel-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1ZEefh-0005jH-Dq; Mon, 13 Jul 2015 14:25:29 +0000 Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1ZEefg-0005j6-N2 for edk2-devel@lists.sourceforge.net; Mon, 13 Jul 2015 14:25:28 +0000 Received-SPF: pass (sog-mx-2.v43.ch3.sourceforge.com: domain of linaro.org designates 209.85.192.176 as permitted sender) client-ip=209.85.192.176; envelope-from=haojian.zhuang@linaro.org; helo=mail-pd0-f176.google.com; Received: from mail-pd0-f176.google.com ([209.85.192.176]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1ZEeff-0006NK-MA for edk2-devel@lists.sourceforge.net; Mon, 13 Jul 2015 14:25:28 +0000 Received: by pdjr16 with SMTP id r16so63770244pdj.3 for ; Mon, 13 Jul 2015 07:25:22 -0700 (PDT) X-Received: by 10.66.164.106 with SMTP id yp10mr69905119pab.121.1436797521985; Mon, 13 Jul 2015 07:25:21 -0700 (PDT) Received: from debian.mars (li741-76.members.linode.com. [106.185.35.76]) by smtp.gmail.com with ESMTPSA id g10sm19175251pat.35.2015.07.13.07.25.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Jul 2015 07:25:21 -0700 (PDT) From: Haojian Zhuang To: edk2-devel@lists.sourceforge.net, olivier.martin@arm.com, linaro-uefi@lists.linaro.org, leif.lindholm@linaro.org Date: Mon, 13 Jul 2015 22:25:12 +0800 Message-Id: <1436797512-32148-1-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.1.4 X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record X-Headers-End: 1ZEeff-0006NK-MA Subject: [edk2] [PATCH] EmbeddedPkg: fix PcdTimerPeriod value X-BeenThere: edk2-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: haojian.zhuang@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Fix PcdTimerPeriod from 100,000 to 10,000. Since the unit base of PcdTimerPeriod is 100ns. 100,000 * 100ns = 10ms (interval of hardware timer interrupt) 10,1000 * 100ns = 1ms (interval of hardware timer interrupt) In GRUB, the required timer granularity is only 1ms. If interval of hardware timer interrupt is 10ms in UEFI, GRUB will only get all timer granularity >= 10ms. At least, the timeout of boot menu in GRUB is much slower. Only the interval of hardware timer interrupt is 1ms in UEFI, the timeout of boot menu in GRUB works well. Signed-off-by: Haojian Zhuang --- ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-A8.dsc | 2 +- ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-A9x2.dsc | 2 +- ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA9x4.dsc | 2 +- ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-RTSM-A9x4.dsc | 2 +- BeagleBoardPkg/BeagleBoardPkg.dsc | 2 +- EmbeddedPkg/EmbeddedPkg.dec | 2 +- EmbeddedPkg/EmbeddedPkg.dsc | 2 +- Omap35xxPkg/Omap35xxPkg.dsc | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-A8.dsc b/ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-A8.dsc index a64f2df..2b13fd7 100644 --- a/ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-A8.dsc +++ b/ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-A8.dsc @@ -105,7 +105,7 @@ ## SP804 Timer gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|1000000 - gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms + gEmbeddedTokenSpaceGuid.PcdTimerPeriod|10000 # expressed in 100ns units, 10,000 x 100 ns = 1,000,000 ns = 1 ms gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicInterruptNum|36 gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicBase|0x10011000 gArmPlatformTokenSpaceGuid.PcdSP804TimerMetronomeBase|0x10011020 diff --git a/ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-A9x2.dsc b/ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-A9x2.dsc index a4bffb3..e5ec8d4 100644 --- a/ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-A9x2.dsc +++ b/ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-A9x2.dsc @@ -104,7 +104,7 @@ ## SP804 Timer gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|1000000 - gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms + gEmbeddedTokenSpaceGuid.PcdTimerPeriod|10000 # expressed in 100ns units, 10,000 x 100 ns = 1,000,000 ns = 1 ms gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicInterruptNum|33 gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicBase|0x10011000 gArmPlatformTokenSpaceGuid.PcdSP804TimerMetronomeBase|0x10011020 diff --git a/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA9x4.dsc b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA9x4.dsc index ad4e7bf..248e54f 100644 --- a/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA9x4.dsc +++ b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA9x4.dsc @@ -138,7 +138,7 @@ ## SP804 Timer gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|1000000 - gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms + gEmbeddedTokenSpaceGuid.PcdTimerPeriod|10000 # expressed in 100ns units, 10,000 x 100 ns = 1,000,000 ns = 1 ms gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicInterruptNum|34 gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicBase|0x10011000 gArmPlatformTokenSpaceGuid.PcdSP804TimerPerformanceBase|0x10011020 diff --git a/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-RTSM-A9x4.dsc b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-RTSM-A9x4.dsc index 14d0cf5..d6870dc 100644 --- a/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-RTSM-A9x4.dsc +++ b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-RTSM-A9x4.dsc @@ -128,7 +128,7 @@ ## SP804 Timer gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|1000000 - gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms + gEmbeddedTokenSpaceGuid.PcdTimerPeriod|10000 # expressed in 100ns units, 10,000 x 100 ns = 1,000,000 ns = 1 ms gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicInterruptNum|34 gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicBase|0x1c110000 gArmPlatformTokenSpaceGuid.PcdSP804TimerPerformanceBase|0x1c110020 diff --git a/BeagleBoardPkg/BeagleBoardPkg.dsc b/BeagleBoardPkg/BeagleBoardPkg.dsc index 9eb364e..375f03c 100644 --- a/BeagleBoardPkg/BeagleBoardPkg.dsc +++ b/BeagleBoardPkg/BeagleBoardPkg.dsc @@ -341,7 +341,7 @@ gArmTokenSpaceGuid.PcdCpuVectorBaseAddress|0x80008000 gArmTokenSpaceGuid.PcdCpuResetAddress|0x80008000 - gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 + gEmbeddedTokenSpaceGuid.PcdTimerPeriod|10000 gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterPeriodInNanoseconds|77 gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|13000000 diff --git a/EmbeddedPkg/EmbeddedPkg.dec b/EmbeddedPkg/EmbeddedPkg.dec index f557527..9f113fc 100644 --- a/EmbeddedPkg/EmbeddedPkg.dec +++ b/EmbeddedPkg/EmbeddedPkg.dec @@ -121,7 +121,7 @@ gEmbeddedTokenSpaceGuid.PcdTimerBaseAddress|0x3c700000|UINT32|0x0000001c gEmbeddedTokenSpaceGuid.PcdTimerVector|7|UINT32|0x0000001d - gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000|UINT32|0x0000001e + gEmbeddedTokenSpaceGuid.PcdTimerPeriod|10000|UINT32|0x0000001e gEmbeddedTokenSpaceGuid.PcdInterruptBaseAddress|0x38e00000|UINT32|0x0000001f gEmbeddedTokenSpaceGuid.PcdMetronomeTickPeriod|100|UINT32|0x00000020 diff --git a/EmbeddedPkg/EmbeddedPkg.dsc b/EmbeddedPkg/EmbeddedPkg.dsc index 6719eea..2005d8f 100644 --- a/EmbeddedPkg/EmbeddedPkg.dsc +++ b/EmbeddedPkg/EmbeddedPkg.dsc @@ -219,7 +219,7 @@ # gEmbeddedTokenSpaceGuid.PcdTimerBaseAddress|0x3c700000 gEmbeddedTokenSpaceGuid.PcdTimerVector|7 - gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 + gEmbeddedTokenSpaceGuid.PcdTimerPeriod|10000 [PcdsFixedAtBuild.IPF] gEfiMdePkgTokenSpaceGuid.PcdIoBlockBaseAddressForIpf|0x0ffffc000000 diff --git a/Omap35xxPkg/Omap35xxPkg.dsc b/Omap35xxPkg/Omap35xxPkg.dsc index 8d8f521..cd963f3 100644 --- a/Omap35xxPkg/Omap35xxPkg.dsc +++ b/Omap35xxPkg/Omap35xxPkg.dsc @@ -157,7 +157,7 @@ # Timers gOmap35xxTokenSpaceGuid.PcdOmap35xxArchTimer|3 gOmap35xxTokenSpaceGuid.PcdOmap35xxFreeTimer|4 - gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 + gEmbeddedTokenSpaceGuid.PcdTimerPeriod|10000 gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterPeriodInNanoseconds|77 gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|13000000