Skip to contentSkip to conversation

Question about Odroid XU4 cpuidle

DISCUSSION Lukasz Luba 3 participants 7 messages Jun 10, 2020 – Jun 15, 2020 Arm Samsung Exynos

lore
Share & tools
lore
#0 lore raw

Hi Krzysztof, Bartek,

I recall that you have been working on some cpuidle code for Exynos(4?).

I have a question regarding CPUIdle driver for Odroid XU4. I use the board with LISA tests for EAS, but missing at least idle state 0 cause errors (please see the log below).

Currently the system does not report any idle driver and the state 0 is missing in: /sys/devices/system/cpu/cpu0/cpuidle/state0/

I am using driver CONFIG_ARM_BIG_LITTLE_CPUIDLE but the
boot stops silently while trying to init the cpu idle devices in there. I carry on with a workaround that just removes idle state[1] and set state_count=1 in the big and little structures.

Could you tell me if it needs some out-of-tree patches or maybe special bootloader or it is not possible at all to have this driver working properly? Or maybe I should use different driver on that board?

----------------->8-------------------------------- EXCEPTION (KeyError): 'No idle state with index 0'
----------------------------------------

################################################################################
[2020-06-08 17:53:51,333][EXEKALL] INFO Artifacts dir: /data/llu/lisa/results/20200608_17:47:19_02627c97a1de40588d800f5b777eb9e3 [2020-06-08 17:53:51,334][EXEKALL] INFO Result summary:
EnergyModelWakeMigration[board=odroidxu4]:test_task_placement UUID=b264d606c7164c8192eae59eb26d5104 EXCEPTION (KeyError): 'No idle state with index 0' OneSmallTask[board=odroidxu4]:test_task_placement UUID=c95afb9d5ab84d4f9f945e8e9b87aaea EXCEPTION (KeyError): 'No idle state with index 0' RampDown[board=odroidxu4]:test_task_placement UUID=6b9d7be94a43441c94d87543d612fde0 EXCEPTION (KeyError): 'No idle state with index 0' RampUp[board=odroidxu4]:test_task_placement UUID=7a60af8c17344214bd8602ac24767976 EXCEPTION (KeyError): 'No idle state with index 0' ThreeSmallTasks[board=odroidxu4]:test_task_placement UUID=25ec227753ce4ac3b409c88e7a8f9d78 EXCEPTION (KeyError): 'No idle state with index 0' TwoBigTasks[board=odroidxu4]:test_task_placement UUID=9e8b9148685748ed9d632912fc83f4ba EXCEPTION (KeyError): 'No idle state with index 0' TwoBigThreeSmall[board=odroidxu4]:test_task_placement UUID=a0c98621f160400fb5487d8db1c69f95 EXCEPTION (KeyError): 'No idle state with index 0'

----------------8<--------------------------------------------------

I appreciate your advice.

Regards,
Lukasz

#1 lore raw
Quoted 10 lines · Lukasz Luba

Hi Krzysztof, Bartek,

I recall that you have been working on some cpuidle code for Exynos(4?).

I have a question regarding CPUIdle driver for Odroid XU4. I use the board with LISA tests for EAS, but missing at least idle state 0 cause errors (please see the log below).

Currently the system does not report any idle driver and the state 0 is missing in: /sys/devices/system/cpu/cpu0/cpuidle/state0/

The state 0 long time ago was WFI. It was kind of meaningless so it it was dropped.

Quoted 5 lines

I am using driver CONFIG_ARM_BIG_LITTLE_CPUIDLE but the
boot stops silently while trying to init the cpu idle devices in there. I carry on with a workaround that just removes idle state[1] and set state_count=1 in the big and little structures.

Try earlyprintk.

In general, the big-little cpuidle driver should work... or rather: long time ago it was working. It requires proper support from early stages (BL1, secure monitor) but this should be already in standard Odroid.

I just saw there:

	/* Start at index 1, index 0 standard WFI */

so maybe it was not updated properly to removal of WFI?

I think no one uses this driver so it might be not well tested and not that useful.

Best regards,
Krzysztof

#2 lore raw

Hi

Quoted 24 lines · Krzysztof Kozlowski
Quoted 10 lines · Lukasz Luba

Hi Krzysztof, Bartek,

I recall that you have been working on some cpuidle code for Exynos(4?).

I have a question regarding CPUIdle driver for Odroid XU4. I use the board with LISA tests for EAS, but missing at least idle state 0 cause errors (please see the log below).

Currently the system does not report any idle driver and the state 0 is missing in: /sys/devices/system/cpu/cpu0/cpuidle/state0/

The state 0 long time ago was WFI. It was kind of meaningless so it it was dropped.

Quoted 4 lines

I am using driver CONFIG_ARM_BIG_LITTLE_CPUIDLE but the
boot stops silently while trying to init the cpu idle devices in there. I carry on with a workaround that just removes idle state[1] and set state_count=1 in the big and little structures.

Try earlyprintk.

In general, the big-little cpuidle driver should work... or rather: long time ago it was working. It requires proper support from early stages (BL1, secure monitor) but this should be already in standard Odroid.

Quoted 6 lines

I just saw there:

	/* Start at index 1, index 0 standard WFI */

so maybe it was not updated properly to removal of WFI?

I think no one uses this driver so it might be not well tested and not that useful.

I think it never worked on Odroid XU3/XU4. Afair it was developed on PeachPi Chromebook, which use different bootloader (and doesn't use trustzone).

Best regards

Signature · 2 lines
Marek Szyprowski, PhD
Samsung R&D Institute Poland
#3 lore raw

Hi Marek,

Quoted 31 lines · Marek Szyprowski

Hi

Quoted 28 lines · Krzysztof Kozlowski
Quoted 10 lines · Lukasz Luba

Hi Krzysztof, Bartek,

I recall that you have been working on some cpuidle code for Exynos(4?).

I have a question regarding CPUIdle driver for Odroid XU4. I use the board with LISA tests for EAS, but missing at least idle state 0 cause errors (please see the log below).

Currently the system does not report any idle driver and the state 0 is missing in: /sys/devices/system/cpu/cpu0/cpuidle/state0/

The state 0 long time ago was WFI. It was kind of meaningless so it it was dropped.

Quoted 4 lines

I am using driver CONFIG_ARM_BIG_LITTLE_CPUIDLE but the
boot stops silently while trying to init the cpu idle devices in there. I carry on with a workaround that just removes idle state[1] and set state_count=1 in the big and little structures.

Try earlyprintk.

In general, the big-little cpuidle driver should work... or rather: long time ago it was working. It requires proper support from early stages (BL1, secure monitor) but this should be already in standard Odroid.

I just saw there:

	/* Start at index 1, index 0 standard WFI */

so maybe it was not updated properly to removal of WFI?

Quoted 6 lines
Quoted 2 lines

I think no one uses this driver so it might be not well tested and not that useful.

I think it never worked on Odroid XU3/XU4. Afair it was developed on PeachPi Chromebook, which use different bootloader (and doesn't use trustzone).

That would explain the compatibility string in that driver. Good to know. Thank you for your response.

Regards,
Lukasz

Quoted 3 lines

Best regards

#4 lore raw

Hi Lukasz

Quoted 36 lines · Lukasz Luba
Quoted 35 lines · Marek Szyprowski
Quoted 33 lines · Krzysztof Kozlowski
Quoted 11 lines · Lukasz Luba

Hi Krzysztof, Bartek,

I recall that you have been working on some cpuidle code for Exynos(4?).

I have a question regarding CPUIdle driver for Odroid XU4. I use the board with LISA tests for EAS, but missing at least idle state 0 cause errors (please see the log below).

Currently the system does not report any idle driver and the state 0 is missing in: /sys/devices/system/cpu/cpu0/cpuidle/state0/

The state 0 long time ago was WFI. It was kind of meaningless so it it was dropped.

Quoted 5 lines

I am using driver CONFIG_ARM_BIG_LITTLE_CPUIDLE but the boot stops silently while trying to init the cpu idle devices in there.
I carry on with a workaround that just removes idle state[1] and set state_count=1 in the big and little structures.

Try earlyprintk.

In general, the big-little cpuidle driver should work... or rather:
long
time ago it was working.  It requires proper support from early stages (BL1, secure monitor) but this should be already in standard Odroid.

I just saw there:
    /* Start at index 1, index 0 standard WFI */ so maybe it was not updated properly to removal of WFI?

I think no one uses this driver so it might be not well tested and not that useful.

Quoted 7 lines
Quoted 3 lines

I think it never worked on Odroid XU3/XU4. Afair it was developed on PeachPi Chromebook, which use different bootloader (and doesn't use trustzone).

That would explain the compatibility string in that driver. Good to know. Thank you for your response.

I've just digged a bit in the old kernels and indeed, the big-little cpuidle driver worked only on Samsung Exynos 5420/5800 Chromebooks (Peach Pit/Pi). The last release which worked fine (although it was still not enabled in the exynos_defconfig) is v4.2. Then it got broken by the commit 833b5794e330 ("ARM: EXYNOS: reset Little cores when cpu is up"). It never worked on the Odroid XU3/XU4.

Do you have any plans to fix it?

Best regards

Signature · 2 lines
Marek Szyprowski, PhD
Samsung R&D Institute Poland
#5 lore raw
Quoted 46 lines · Marek Szyprowski

Hi Lukasz

Quoted 36 lines · Lukasz Luba
Quoted 35 lines · Marek Szyprowski
Quoted 33 lines · Krzysztof Kozlowski
Quoted 11 lines · Lukasz Luba

Hi Krzysztof, Bartek,

I recall that you have been working on some cpuidle code for Exynos(4?).

I have a question regarding CPUIdle driver for Odroid XU4. I use the board with LISA tests for EAS, but missing at least idle state 0 cause errors (please see the log below).

Currently the system does not report any idle driver and the state 0 is missing in: /sys/devices/system/cpu/cpu0/cpuidle/state0/

The state 0 long time ago was WFI. It was kind of meaningless so it it was dropped.

Quoted 5 lines

I am using driver CONFIG_ARM_BIG_LITTLE_CPUIDLE but the boot stops silently while trying to init the cpu idle devices in there.
I carry on with a workaround that just removes idle state[1] and set state_count=1 in the big and little structures.

Try earlyprintk.

In general, the big-little cpuidle driver should work... or rather:
long
time ago it was working.  It requires proper support from early stages (BL1, secure monitor) but this should be already in standard Odroid.

I just saw there:
    /* Start at index 1, index 0 standard WFI */
so maybe it was not updated properly to removal of WFI?

I think no one uses this driver so it might be not well tested and not that useful.

Quoted 7 lines
Quoted 3 lines

I think it never worked on Odroid XU3/XU4. Afair it was developed on PeachPi Chromebook, which use different bootloader (and doesn't use trustzone).

That would explain the compatibility string in that driver. Good to know. Thank you for your response.

Quoted 6 lines

I've just digged a bit in the old kernels and indeed, the big-little cpuidle driver worked only on Samsung Exynos 5420/5800 Chromebooks (Peach Pit/Pi). The last release which worked fine (although it was still not enabled in the exynos_defconfig) is v4.2. Then it got broken by the commit 833b5794e330 ("ARM: EXYNOS: reset Little cores when cpu is up"). It never worked on the Odroid XU3/XU4.

Thank you Marek for your time to investigate it. In this case I think there is no way to fix idle state 1 for Odroid xu3/xu4. I don't have Peach Pit/Pi so I have to pass, but I can help you in reviewing if you or someone else have time (and board) to work on it.

Quoted 2 lines

Do you have any plans to fix it?

I'm baking some patch internally which might help Odroid XU3/4 though. If that won't be killed, I'll post it soon.
If failed internally, I will also let you know.

Regards,
Lukasz

Quoted 3 lines

Best regards

#6 lore raw
In reply to Krzysztof Kozlowski
Quoted 9 lines · Krzysztof Kozlowski
Quoted 8 lines · Lukasz Luba

Hi Krzysztof, Bartek,

I recall that you have been working on some cpuidle code for Exynos(4?).

I have a question regarding CPUIdle driver for Odroid XU4. I use the board with LISA tests for EAS, but missing at least idle state 0 cause errors (please see the log below).

Quoted 5 lines
Quoted 2 lines

Currently the system does not report any idle driver and the state 0 is missing in: /sys/devices/system/cpu/cpu0/cpuidle/state0/

The state 0 long time ago was WFI. It was kind of meaningless so it it was dropped.

I see.

Quoted 8 lines
Quoted 6 lines

I am using driver CONFIG_ARM_BIG_LITTLE_CPUIDLE but the
boot stops silently while trying to init the cpu idle devices in there. I carry on with a workaround that just removes idle state[1] and set state_count=1 in the big and little structures.

Try earlyprintk.

I've tried and printed some dbg in that driver and just simply dropped the deeper idle and system runs. Idle driver account properly the residency time for this WFI in the state0 dir. That's enough for what I need in testing - accounting wfi from that dir location.

Quoted 11 lines

In general, the big-little cpuidle driver should work... or rather: long time ago it was working. It requires proper support from early stages (BL1, secure monitor) but this should be already in standard Odroid.

I just saw there:

	/* Start at index 1, index 0 standard WFI */

so maybe it was not updated properly to removal of WFI?

I think no one uses this driver so it might be not well tested and not that useful.

OK, good to know, I just found this driver by compatibility string and thought it could be used.

Thank you Krzysztof for you instant response.

Regards,
Lukasz

Quoted 4 lines

Best regards,
Krzysztof