arm_global_timer: Use 64 Bit hw counter for ipipe_tsc
Subsystems (2)
PATCH 1/1 arm_global_timer: Use 64 Bit hw counter for ipipe_tsc
When using the arm_global_timer as source for ipipe_tsc the mask was configured with 32 Bit.
However this timer is a native 64 Bit counter. So use the complete hardware register by configuring a 64 Bit mask on initialization. The ipipe_tsc implementation is already 64 Bit ready and reads this register as described in the reference manual, so no further changes needed.
--- drivers/clocksource/arm_global_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clocksource/arm_global_timer.c +1 -1
@@ -82,7 +82,7 @@ static inline void gt_ipipe_cs_setup(void) .u = { { .counter_paddr = gt_pbase, - .mask = 0xffffffff, + .mask = CLOCKSOURCE_MASK(64), } }, .refresh_freq = refresh_gt_freq,
--
2.17.1
________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
Quoted 27 lines · Gunter Grau via Xenomai
When using the
arm_global_timeras source foripipe_tscthe mask was configured with 32 Bit.
However this timer is a native 64 Bit counter. So use the complete hardware register by configuring a 64 Bit mask on initialization. Theipipe_tscimplementation is already 64 Bit ready and reads this register as described in the reference manual, so no further changes needed.Signed-off-by Gunter Grau <[email protected]>--- drivers/clocksource/arm_global_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/clocksource/arm_global_timer.c +1
-2@@ -82,7 +82,7 @@ static inline void gt_ipipe_cs_setup(void) .u = { { .counter_paddr = gt_pbase, - .mask = 0xffffffff, + .mask = CLOCKSOURCE_MASK(64), } }, .refresh_freq = refresh_gt_freq, --
Quoted 2 lines
2.17.1
Thanks for the fixes. You may help Greg with integrating them by telling us on which kernel versions they apply / have been tested.
Jan
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux
Quoted 46 lines
-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Freitag, 5. März 2021 13:27
To: Grau, Gunter <[email protected]>; [email protected]; Greg Gallagher <[email protected]>
Subject: Re: [PATCH]arm_global_timer: Use 64 Bit hw counter foripipe_tscCaution: This e-mail originated from outside of Philips, be careful for phishing.
Quoted 28 lines · Gunter Grau via Xenomai
When using the
arm_global_timeras source foripipe_tscthe mask was configured with 32 Bit.
However this timer is a native 64 Bit counter. So use the complete hardware register by configuring a 64 Bit mask on initialization. Theipipe_tscimplementation is already 64 Bit ready and reads this register as described in the reference manual, so no further changes needed.Signed-off-by Gunter Grau <[email protected]>--- drivers/clocksource/arm_global_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/clocksource/arm_global_timer.c +1
-2@@ -82,7 +82,7 @@ static inline void gt_ipipe_cs_setup(void) .u = { { .counter_paddr = gt_pbase, - .mask = 0xffffffff, + .mask = CLOCKSOURCE_MASK(64), } }, .refresh_freq = refresh_gt_freq, --Quoted 2 lines
2.17.1
Thanks for the fixes. You may help Greg with integrating them by telling us on which kernel versions they apply / have been tested.
Quoted 5 lines
Jan
--
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
Hi,
The patches apply to ipipe/master.
But as I have seen so far they should even apply to 5.4.y.
Unfortunately we are currently using a very old kernel on imx6. So I can report this patches has been tested on 4.1.x only.
Thanks,
Gunter
________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
Quoted 66 lines · Gunter
Quoted 6 lines
-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Freitag, 5. März 2021 13:27
To: Grau, Gunter <[email protected]>; [email protected]; Greg Gallagher <[email protected]>
Subject: Re: [PATCH]arm_global_timer: Use 64 Bit hw counter for
ipipe_tscQuoted 30 lines
Caution: This e-mail originated from outside of Philips, be careful for phishing.
Quoted 24 lines · Gunter Grau via Xenomai
When using the
arm_global_timeras source foripipe_tscthe mask was configured with 32 Bit.
However this timer is a native 64 Bit counter. So use the complete hardware register by configuring a 64 Bit mask on initialization. Theipipe_tscimplementation is already 64 Bit ready and reads this register as described in the reference manual, so no further changes needed.Signed-off-by Gunter Grau <[email protected]>--- drivers/clocksource/arm_global_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/clocksource/arm_global_timer.c +1
-1@@ -82,7 +82,7 @@ static inline void gt_ipipe_cs_setup(void) .u = { { .counter_paddr = gt_pbase, - .mask = 0xffffffff, + .mask = CLOCKSOURCE_MASK(64),Quoted 8 lines
Quoted 6 lines
drivers/clocksource/arm_global_timer.c +0
-1} }, .refresh_freq = refresh_gt_freq, --2.17.1
Thanks for the fixes. You may help Greg with integrating them by telling
us
Quoted 7 lines
on which kernel versions they apply / have been tested.
Jan
--
Siemens AG, T RDA IOT
Corporate Competence Center Embedded LinuxHi,
The patches apply to ipipe/master.
But as I have seen so far they should even apply to 5.4.y.Unfortunately we are currently using a very old kernel on imx6. So I can report this patches has been tested on 4.1.x only.
Thanks,
Gunter
Quoted 8 lines
________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
Thanks! I can test them out this weekend, I have a bunch of ipipe work to do.
Thanks
Greg
Quoted 2 lines
Quoted 75 lines
From: Greg Gallagher <[email protected]>
Sent: Freitag, 5. März 2021 13:57
To: Grau, Gunter <[email protected]>
Cc: Jan Kiszka <[email protected]>; [email protected]
Subject: Re: [PATCH]arm_global_timer: Use 64 Bit hw counter foripipe_tscCaution: This e-mail originated from outside of Philips, be careful for phishing.
Quoted 65 lines · Gunter
Quoted 46 lines
-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Freitag, 5. März 2021 13:27
To: Grau, Gunter <[email protected]>; [email protected]; Greg Gallagher <[email protected]>
Subject: Re: [PATCH]arm_global_timer: Use 64 Bit hw counter foripipe_tscCaution: This e-mail originated from outside of Philips, be careful for phishing.
Quoted 28 lines · Gunter Grau via Xenomai
When using the
arm_global_timeras source foripipe_tscthe mask was configured with 32 Bit.
However this timer is a native 64 Bit counter. So use the complete hardware register by configuring a 64 Bit mask on initialization. Theipipe_tscimplementation is already 64 Bit ready and reads this register as described in the reference manual, so no further changes needed.Signed-off-by Gunter Grau <[email protected]>--- drivers/clocksource/arm_global_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/clocksource/arm_global_timer.c +1
-2@@ -82,7 +82,7 @@ static inline void gt_ipipe_cs_setup(void) .u = { { .counter_paddr = gt_pbase, - .mask = 0xffffffff, + .mask = CLOCKSOURCE_MASK(64), } }, .refresh_freq = refresh_gt_freq, --Quoted 2 lines
2.17.1
Thanks for the fixes. You may help Greg with integrating them by telling us on which kernel versions they apply / have been tested.
Quoted 5 lines
Jan
--
Siemens AG, T RDA IOT
Corporate Competence Center Embedded LinuxHi,
The patches apply to ipipe/master.
But as I have seen so far they should even apply to 5.4.y.Unfortunately we are currently using a very old kernel on imx6. So I can report this patches has been tested on 4.1.x only.
Thanks,
Gunter
Quoted 9 lines
Quoted 2 lines
[...]
Thanks! I can test them out this weekend, I have a bunch of ipipe work to do.
Thanks
Greg
Hi Greg,
Did you have the chance to look into the two patches? Is there anything I can do?
Thanks,
Gunter
________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
Greg Gallagher
AppliedQuoted 103 lines · Gunter
Quoted 7 lines
From: Greg Gallagher <[email protected]>
Sent: Freitag, 5. März 2021 13:57
To: Grau, Gunter <[email protected]>
Cc: Jan Kiszka <[email protected]>; [email protected]
Subject: Re: [PATCH]arm_global_timer: Use 64 Bit hw counter for
ipipe_tscQuoted 2 lines
Caution: This e-mail originated from outside of Philips, be careful for
phishing.
Quoted 2 lines
Quoted 2 lines
On Fri, Mar 5, 2021 at 7:52 AM Grau, Gunter <[email protected]>
Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Freitag, 5. März 2021 13:27
To: Grau, Gunter <[email protected]>; [email protected];Greg
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Gallagher <[email protected]>
Subject: Re: [PATCH]arm_global_timer: Use 64 Bit hw counter for
ipipe_tscQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
Caution: This e-mail originated from outside of Philips, be careful
for
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
phishing.
Quoted 1 line · Gunter Grau via Xenomai
When using the
arm_global_timeras source foripipe_tscthe maskwas
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
configured with 32 Bit.
However this timer is a native 64 Bit counter. So use the complete hardware register by configuring a 64 Bit mask on initialization. Theipipe_tscimplementation is already 64 Bit ready and reads this register as described in the reference manual, so no furtherchanges
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
needed.
Signed-off-by Gunter Grau <[email protected]>--- drivers/clocksource/arm_global_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/clocksource/arm_global_timer.c +1
-1@@ -82,7 +82,7 @@ static inline void gt_ipipe_cs_setup(void) .u = { { .counter_paddr = gt_pbase, - .mask = 0xffffffff, + .mask = CLOCKSOURCE_MASK(64),Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
drivers/clocksource/arm_global_timer.c +0
-1} }, .refresh_freq = refresh_gt_freq, --2.17.1
Thanks for the fixes. You may help Greg with integrating them by
telling us
Quoted 17 lines
Quoted 17 lines
Quoted 7 lines
on which kernel versions they apply / have been tested.
Jan
--
Siemens AG, T RDA IOT
Corporate Competence Center Embedded LinuxHi,
The patches apply to ipipe/master.
But as I have seen so far they should even apply to 5.4.y.Unfortunately we are currently using a very old kernel on imx6. So I can report this patches has been tested on 4.1.x only.
Quoted 7 lines
Quoted 5 lines
Thanks,
Gunter[...]
Thanks! I can test them out this weekend, I have a bunch of ipipe work
to do.
Quoted 5 lines
Thanks
Greg
Hi Greg,
Did you have the chance to look into the two patches? Is there anything I can do?
Thanks,
Gunter
Quoted 9 lines
________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
Applied, thanks for the patch. Sorry it took so long, patches will be released this weekend.
-Greg