From: "Rebecca Cran" <quic_rcran@quicinc.com>
To: Pierre Gondois <pierre.gondois@arm.com>, <devel@edk2.groups.io>,
<quic_rcran@quicinc.com>,
Ard Biesheuvel <ardb+tianocore@kernel.org>,
"Thomas Abraham" <thomas.abraham@arm.com>,
Sami Mujawar <sami.mujawar@arm.com>
Subject: Re: [edk2-devel] [PATCH edk2-platforms 2/3] Platform/ARM/JunoPkg: Override PcdTimerPeriod to be 10000
Date: Mon, 5 Dec 2022 04:48:43 -0700 [thread overview]
Message-ID: <2b79d2f4-15cc-f1f2-bd0f-8fa8ae91cde4@quicinc.com> (raw)
In-Reply-To: <e27e2772-ca11-0d3c-47ba-e9bd955815c4@arm.com>
On 12/5/22 02:22, Pierre Gondois wrote:
> 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 ?
Sorry, I misread a comment in TimerDxe.c. This patch should be dropped.
// mTimerTicks = TimerPeriod in 1ms unit * Frequency.10^-3
--
Rebecca Cran
>
> 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 <rebecca@quicinc.com>
>> ---
>> 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
next prev parent reply other threads:[~2022-12-05 11:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-29 13:53 [PATCH edk2-platforms 0/3] Platform/ARM/JunoPkg: Timer fixes Rebecca Cran
2022-11-29 13:53 ` [PATCH edk2-platforms 1/3] Platform/ARM/JunoPkg: Switch to MdeModulePkg/Universal/Metronome driver Rebecca Cran
2022-11-29 13:53 ` [PATCH edk2-platforms 2/3] Platform/ARM/JunoPkg: Override PcdTimerPeriod to be 10000 Rebecca Cran
2022-12-05 9:22 ` [edk2-devel] " PierreGondois
2022-12-05 11:48 ` Rebecca Cran [this message]
2022-11-29 13:53 ` [PATCH edk2-platforms 3/3] Platform/ARM/JunoPkg: Set PcdArmArchTimerFreqInHz to 0 to read from CNTFRQ_EL0 Rebecca Cran
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2b79d2f4-15cc-f1f2-bd0f-8fa8ae91cde4@quicinc.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox