From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.11236.1670232153231432476 for ; Mon, 05 Dec 2022 01:22:33 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: pierre.gondois@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5B85023A; Mon, 5 Dec 2022 01:22:39 -0800 (PST) Received: from [192.168.1.12] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2E9613F71A; Mon, 5 Dec 2022 01:22:31 -0800 (PST) Message-ID: Date: Mon, 5 Dec 2022 10:22:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [edk2-devel] [PATCH edk2-platforms 2/3] Platform/ARM/JunoPkg: Override PcdTimerPeriod to be 10000 To: devel@edk2.groups.io, quic_rcran@quicinc.com, Ard Biesheuvel , Thomas Abraham , Sami Mujawar Cc: Rebecca Cran References: <20221129135358.136555-1-rebecca@quicinc.com> <20221129135358.136555-3-rebecca@quicinc.com> From: "PierreGondois" In-Reply-To: <20221129135358.136555-3-rebecca@quicinc.com> Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hello Rebecca, The default value of PcdTimerPeriod in EmbeddedPkg/EmbeddedPkg.dec seems to be 100000 (100ns), so 10ms, and other Arm platforms have set the value to 1000 (100ns), so 100us. I was wondering where you found the 1ms value ? Otherwise the other patches look good to me. Regards, Pierre On 11/29/22 14:53, Rebecca Cran via groups.io wrote: > The PCD PcdTimerPeriod is used in TimerDxe to calculate how many ticks > to wait between timer interrupts. The default value of 100000 results > in waiting 10 ms, while the driver wants interrupts to occur every 1ms. > > Override the value of PcdTimerPeriod in ArmJuno.dsc to be 10000. > > Signed-off-by: Rebecca Cran > --- > Platform/ARM/JunoPkg/ArmJuno.dsc | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Platform/ARM/JunoPkg/ArmJuno.dsc b/Platform/ARM/JunoPkg/ArmJuno.dsc > index 9cde4c862651..9b63a8914f03 100644 > --- a/Platform/ARM/JunoPkg/ArmJuno.dsc > +++ b/Platform/ARM/JunoPkg/ArmJuno.dsc > @@ -189,6 +189,7 @@ [PcdsFixedAtBuild.common] > # ARM Architectural Timer Frequency > # > gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|50000000 > + gEmbeddedTokenSpaceGuid.PcdTimerPeriod|10000 > > gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE >