Skip to contentSkip to conversation

mvebu - switch to orion-timer

DISCUSSION Pali Rohár 4 participants 7 messages Aug 23, 2022 – Aug 29, 2022

lore
Share & tools
lore
#0 lore raw

Hello Stefan! Now when U-Boot contains new orion-timer.c driver, which Michael wrote, I think that it mvebu platform should switch to use it. Because build process for armada boards prints deprecation warning that new timer is not being used. Could you look at it, if it is possible to do global switch for mach-mvebu and mach-kirkwood? I think it does not make sense to do per-board switching as it is de-facto platform related code.

#1 lore raw

Hi Stefan,

I would like to see this too. I was thinking of doing it per board, but it is more appropriate to enable it for Arch_Kirkwood and Arch_MVEBU.

Thanks,
Tony

Quoted 8 lines · Pali Rohár

Hello Stefan! Now when U-Boot contains new orion-timer.c driver, which Michael wrote, I think that it mvebu platform should switch to use it. Because build process for armada boards prints deprecation warning that new timer is not being used. Could you look at it, if it is possible to do global switch for mach-mvebu and mach-kirkwood? I think it does not make sense to do per-board switching as it is de-facto platform related code.

#2 lore raw
In reply to Pali Rohár

Hi Pali,

Quoted 7 lines · Pali Rohár

Hello Stefan! Now when U-Boot contains new orion-timer.c driver, which Michael wrote, I think that it mvebu platform should switch to use it. Because build process for armada boards prints deprecation warning that new timer is not being used. Could you look at it, if it is possible to do global switch for mach-mvebu and mach-kirkwood? I think it does not make sense to do per-board switching as it is de-facto platform related code.

Yes, I also though about this.

But...

In Linux we have 2 different timer clocksource drivers for Orion / Kirkwood and Armada XP / 370 etc:

drivers/clocksource/timer-orion.c
drivers/clocksource/timer-armada-370-xp.c

I did not check, if and why this is necessary to handle those chips via different drivers yet. Perhaps later this week. Or someone of you beats me with this. ;)

Thanks,
Stefan

#3 lore raw

Hi,

Quoted 16 lines · Pali Rohár
Quoted 7 lines

Hello Stefan! Now when U-Boot contains new orion-timer.c driver, which Michael wrote, I think that it mvebu platform should switch to use it. Because build process for armada boards prints deprecation warning that new timer is not being used. Could you look at it, if it is possible to do global switch for mach-mvebu and mach-kirkwood? I think it does not make sense to do per-board switching as it is de-facto platform related code.

Yes, I also though about this.

But...

In Linux we have 2 different timer clocksource drivers for Orion / Kirkwood and Armada XP / 370 etc:

Quoted 6 lines

drivers/clocksource/timer-orion.c
drivers/clocksource/timer-armada-370-xp.c

I did not check, if and why this is necessary to handle those chips via different drivers yet. Perhaps later this week. Or someone of you beats me with this. ;)

One thing which is definitely missing is
https://elixir.bootlin.com/u-boot/v2022.10-rc3/source/arch/arm/mach-mvebu/timer.c#L33

I didn't bother to handle that one. And of course all the compatibles are missing.

-michael

#4 lore raw

Hi Michael, Pali, Tony & all,

Quoted 25 lines · Michael Walle

Hi,

Quoted 16 lines · Pali Rohár
Quoted 7 lines

Hello Stefan! Now when U-Boot contains new orion-timer.c driver, which Michael wrote, I think that it mvebu platform should switch to use it. Because build process for armada boards prints deprecation warning that new timer is not being used. Could you look at it, if it is possible to do global switch for mach-mvebu and mach-kirkwood? I think it does not make sense to do per-board switching as it is de-facto platform related code.

Yes, I also though about this.

But...

In Linux we have 2 different timer clocksource drivers for Orion / Kirkwood and Armada XP / 370 etc:

Quoted 6 lines

drivers/clocksource/timer-orion.c
drivers/clocksource/timer-armada-370-xp.c

I did not check, if and why this is necessary to handle those chips via different drivers yet. Perhaps later this week. Or someone of you beats me with this. ;)

Quoted 5 lines

One thing which is definitely missing is
https://elixir.bootlin.com/u-boot/v2022.10-rc3/source/arch/arm/mach-mvebu/timer.c#L33

I didn't bother to handle that one. And of course all the compatibles are missing.

Thanks. Just a short status update:

I'm currently busy with this CONFIG_TIMER migration for MVEBU / Kirkwood. Looks good so far - I can only test on Armada XP right now. So I need some extensive testing on all other kind of Marvell 32bit users / developers. I expect to send the first draft patchset in a few days.

Thanks,
Stefan

#5 lore raw
Quoted 36 lines · On Monday 29 August 2022 14:07:29 Stefan Roese wrote:

Hi Michael, Pali, Tony & all,

Quoted 25 lines · Michael Walle

Hi,

Quoted 16 lines · Pali Rohár
Quoted 7 lines

Hello Stefan! Now when U-Boot contains new orion-timer.c driver, which Michael wrote, I think that it mvebu platform should switch to use it. Because build process for armada boards prints deprecation warning that new timer is not being used. Could you look at it, if it is possible to do global switch for mach-mvebu and mach-kirkwood? I think it does not make sense to do per-board switching as it is de-facto platform related code.

Yes, I also though about this.

But...

In Linux we have 2 different timer clocksource drivers for Orion / Kirkwood and Armada XP / 370 etc:

Quoted 6 lines

drivers/clocksource/timer-orion.c
drivers/clocksource/timer-armada-370-xp.c

I did not check, if and why this is necessary to handle those chips via different drivers yet. Perhaps later this week. Or someone of you beats me with this. ;)

Quoted 5 lines

One thing which is definitely missing is
https://elixir.bootlin.com/u-boot/v2022.10-rc3/source/arch/arm/mach-mvebu/timer.c#L33

I didn't bother to handle that one. And of course all the compatibles are missing.

Thanks. Just a short status update:

Quoted 8 lines

I'm currently busy with this CONFIG_TIMER migration for MVEBU / Kirkwood. Looks good so far - I can only test on Armada XP right now. So I need some extensive testing on all other kind of Marvell 32bit users / developers. I expect to send the first draft patchset in a few days.

Thanks,
Stefan

I will test it on Turris Omnia - A385.

#6 lore raw

Hi Stefan,

Quoted 44 lines · Pali Rohár
Quoted 42 lines · On Monday 29 August 2022 14:07:29 Stefan Roese wrote:

Hi Michael, Pali, Tony & all,

Quoted 25 lines · Michael Walle

Hi,

Quoted 16 lines · Pali Rohár
Quoted 7 lines

Hello Stefan! Now when U-Boot contains new orion-timer.c driver, which Michael wrote, I think that it mvebu platform should switch to use it. Because build process for armada boards prints deprecation warning that new timer is not being used. Could you look at it, if it is possible to do global switch for mach-mvebu and mach-kirkwood? I think it does not make sense to do per-board switching as it is de-facto platform related code.

Yes, I also though about this.

But...

In Linux we have 2 different timer clocksource drivers for Orion / Kirkwood and Armada XP / 370 etc:

Quoted 6 lines

drivers/clocksource/timer-orion.c
drivers/clocksource/timer-armada-370-xp.c

I did not check, if and why this is necessary to handle those chips via different drivers yet. Perhaps later this week. Or someone of you beats me with this. ;)

Quoted 5 lines

One thing which is definitely missing is
https://elixir.bootlin.com/u-boot/v2022.10-rc3/source/arch/arm/mach-mvebu/timer.c#L33

I didn't bother to handle that one. And of course all the compatibles are missing.

Thanks. Just a short status update:

I'm currently busy with this CONFIG_TIMER migration for MVEBU / Kirkwood. Looks good so far - I can only test on Armada XP right now. So I need some extensive testing on all other kind of Marvell 32bit users / developers. I expect to send the first draft patchset in a few days.

Quoted 4 lines
Quoted 2 lines

Thanks,
Stefan

I will test it on Turris Omnia - A385.

I will test it on a few Kirkwood boards (88F6281, 88F6282, 88F6192). Please let us know if you have any particular suggestion for a good test.

Best,
Tony