* [boot-wrapper PATCH] Makefile: Change COUNTER_FREQ to 100 MHz
@ 2022-02-15 11:54 Peter Hoyes
2022-02-15 12:29 ` Mark Rutland
0 siblings, 1 reply; 4+ messages in thread
From: Peter Hoyes @ 2022-02-15 11:54 UTC (permalink / raw)
To: linux-arm-kernel
Cc: mark.rutland, andre.przywara, diego.sueiro, jaxson.han, Peter Hoyes
From: Peter Hoyes <Peter.Hoyes@arm.com>
Older Arm Fast Models (AEM < RevC) had a base frequency of 24 MHz. but
the RevC base models use 100 MHz. There is not a robust method of
determining the configured base frequency at runtime, so update
COUNTER_FREQ to be 100 MHz.
Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
---
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 08e304a..6ebece2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -13,7 +13,7 @@ SCRIPT_DIR := $(top_srcdir)/scripts
PHYS_OFFSET := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findmem.pl $(KERNEL_DTB))
UART_BASE := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findbase.pl $(KERNEL_DTB) 0 'arm,pl011')
SYSREGS_BASE := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findbase.pl $(KERNEL_DTB) 0 'arm,vexpress-sysreg' 2> /dev/null)
-COUNTER_FREQ := 24000000
+COUNTER_FREQ := 100000000
CPU_IDS := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findcpuids.pl $(KERNEL_DTB))
NR_CPUS := $(shell echo $(CPU_IDS) | tr ',' ' ' | wc -w)
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [boot-wrapper PATCH] Makefile: Change COUNTER_FREQ to 100 MHz
2022-02-15 11:54 [boot-wrapper PATCH] Makefile: Change COUNTER_FREQ to 100 MHz Peter Hoyes
@ 2022-02-15 12:29 ` Mark Rutland
2022-03-01 11:18 ` Peter Hoyes
0 siblings, 1 reply; 4+ messages in thread
From: Mark Rutland @ 2022-02-15 12:29 UTC (permalink / raw)
To: Peter Hoyes
Cc: linux-arm-kernel, andre.przywara, diego.sueiro, jaxson.han,
vladimir.murzin
On Tue, Feb 15, 2022 at 11:54:18AM +0000, Peter Hoyes wrote:
> From: Peter Hoyes <Peter.Hoyes@arm.com>
>
> Older Arm Fast Models (AEM < RevC) had a base frequency of 24 MHz. but
> the RevC base models use 100 MHz. There is not a robust method of
> determining the configured base frequency at runtime, so update
> COUNTER_FREQ to be 100 MHz.
This looks right to me; if no-one shouts in the next day or two I'll apply
this.
In future, if we need this to be configurable, I reckon we can either add a
specific option for this or a more general "platform" option which can also
know about other things which aren't in the DTB.
Thanks,
Mark.
>
> Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
> ---
> Makefile.am | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile.am b/Makefile.am
> index 08e304a..6ebece2 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -13,7 +13,7 @@ SCRIPT_DIR := $(top_srcdir)/scripts
> PHYS_OFFSET := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findmem.pl $(KERNEL_DTB))
> UART_BASE := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findbase.pl $(KERNEL_DTB) 0 'arm,pl011')
> SYSREGS_BASE := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findbase.pl $(KERNEL_DTB) 0 'arm,vexpress-sysreg' 2> /dev/null)
> -COUNTER_FREQ := 24000000
> +COUNTER_FREQ := 100000000
>
> CPU_IDS := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findcpuids.pl $(KERNEL_DTB))
> NR_CPUS := $(shell echo $(CPU_IDS) | tr ',' ' ' | wc -w)
> --
> 2.25.1
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [boot-wrapper PATCH] Makefile: Change COUNTER_FREQ to 100 MHz
2022-02-15 12:29 ` Mark Rutland
@ 2022-03-01 11:18 ` Peter Hoyes
2023-01-30 14:38 ` Mark Rutland
0 siblings, 1 reply; 4+ messages in thread
From: Peter Hoyes @ 2022-03-01 11:18 UTC (permalink / raw)
To: Mark Rutland
Cc: linux-arm-kernel, andre.przywara, diego.sueiro, jaxson.han,
vladimir.murzin, robbie.cao
On 15/02/2022 12:29, Mark Rutland wrote:
> On Tue, Feb 15, 2022 at 11:54:18AM +0000, Peter Hoyes wrote:
>> From: Peter Hoyes <Peter.Hoyes@arm.com>
>>
>> Older Arm Fast Models (AEM < RevC) had a base frequency of 24 MHz. but
>> the RevC base models use 100 MHz. There is not a robust method of
>> determining the configured base frequency at runtime, so update
>> COUNTER_FREQ to be 100 MHz.
> This looks right to me; if no-one shouts in the next day or two I'll apply
> this.
>
> In future, if we need this to be configurable, I reckon we can either add a
> specific option for this or a more general "platform" option which can also
> know about other things which aren't in the DTB.
>
> Thanks,
> Mark.
I don't think there have been any further comments - would it be
possible to apply this?
Peter
>> Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
>> ---
>> Makefile.am | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/Makefile.am b/Makefile.am
>> index 08e304a..6ebece2 100644
>> --- a/Makefile.am
>> +++ b/Makefile.am
>> @@ -13,7 +13,7 @@ SCRIPT_DIR := $(top_srcdir)/scripts
>> PHYS_OFFSET := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findmem.pl $(KERNEL_DTB))
>> UART_BASE := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findbase.pl $(KERNEL_DTB) 0 'arm,pl011')
>> SYSREGS_BASE := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findbase.pl $(KERNEL_DTB) 0 'arm,vexpress-sysreg' 2> /dev/null)
>> -COUNTER_FREQ := 24000000
>> +COUNTER_FREQ := 100000000
>>
>> CPU_IDS := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findcpuids.pl $(KERNEL_DTB))
>> NR_CPUS := $(shell echo $(CPU_IDS) | tr ',' ' ' | wc -w)
>> --
>> 2.25.1
>>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [boot-wrapper PATCH] Makefile: Change COUNTER_FREQ to 100 MHz
2022-03-01 11:18 ` Peter Hoyes
@ 2023-01-30 14:38 ` Mark Rutland
0 siblings, 0 replies; 4+ messages in thread
From: Mark Rutland @ 2023-01-30 14:38 UTC (permalink / raw)
To: Peter Hoyes
Cc: linux-arm-kernel, andre.przywara, diego.sueiro, jaxson.han,
vladimir.murzin, robbie.cao
Hi Peter,
On Tue, Mar 01, 2022 at 11:18:54AM +0000, Peter Hoyes wrote:
> On 15/02/2022 12:29, Mark Rutland wrote:
> > On Tue, Feb 15, 2022 at 11:54:18AM +0000, Peter Hoyes wrote:
> > > From: Peter Hoyes <Peter.Hoyes@arm.com>
> > >
> > > Older Arm Fast Models (AEM < RevC) had a base frequency of 24 MHz. but
> > > the RevC base models use 100 MHz. There is not a robust method of
> > > determining the configured base frequency at runtime, so update
> > > COUNTER_FREQ to be 100 MHz.
> > This looks right to me; if no-one shouts in the next day or two I'll apply
> > this.
> >
> > In future, if we need this to be configurable, I reckon we can either add a
> > specific option for this or a more general "platform" option which can also
> > know about other things which aren't in the DTB.
> >
> > Thanks,
> > Mark.
>
> I don't think there have been any further comments - would it be possible to
> apply this?
Apologies for the extremely long delay; I've applied this and pushed it out
now.
Thanks,
Mark.
> Peter
>
> > > Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
> > > ---
> > > Makefile.am | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/Makefile.am b/Makefile.am
> > > index 08e304a..6ebece2 100644
> > > --- a/Makefile.am
> > > +++ b/Makefile.am
> > > @@ -13,7 +13,7 @@ SCRIPT_DIR := $(top_srcdir)/scripts
> > > PHYS_OFFSET := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findmem.pl $(KERNEL_DTB))
> > > UART_BASE := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findbase.pl $(KERNEL_DTB) 0 'arm,pl011')
> > > SYSREGS_BASE := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findbase.pl $(KERNEL_DTB) 0 'arm,vexpress-sysreg' 2> /dev/null)
> > > -COUNTER_FREQ := 24000000
> > > +COUNTER_FREQ := 100000000
> > > CPU_IDS := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findcpuids.pl $(KERNEL_DTB))
> > > NR_CPUS := $(shell echo $(CPU_IDS) | tr ',' ' ' | wc -w)
> > > --
> > > 2.25.1
> > >
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-01-30 17:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-15 11:54 [boot-wrapper PATCH] Makefile: Change COUNTER_FREQ to 100 MHz Peter Hoyes
2022-02-15 12:29 ` Mark Rutland
2022-03-01 11:18 ` Peter Hoyes
2023-01-30 14:38 ` Mark Rutland
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.