Hi Yann,

I had a quick look into failed cases, both of the failed test cases build with TF-A build option PSCI_EXTENDED_STATE_ID=1.
The failure is because of psci_is_last_cpu_to_idle_at_pwrlvl() returning PSCI_E_DENIED (called by psci_validate_state_coordination()  function)
I have created an action item to analyse it further.

Thanks
Manish

From: Yann Gautier via TF-A <tf-a@lists.trustedfirmware.org>
Sent: 12 January 2024 13:58
To: tf-a-tests@lists.trustedfirmware.org <tf-a-tests@lists.trustedfirmware.org>; tf-a@lists.trustedfirmware.org <tf-a@lists.trustedfirmware.org>
Cc: Patrick DELAUNAY <patrick.delaunay@st.com>; Wing Li <wingers@google.com>
Subject: [TF-A] PSCI patches fail TF-A-tests on 2 platform configs
 
Hi,

Patrick has sent 2 correction patches for PSCI stack in OSI mode there:
https://review.trustedfirmware.org/q/topic:%22fix_psci_osi%22

But when running CI+2, there are 2 platforms for which 2 PSCI OSI tests
are failing:
fvp-ext-pstate-ea-el3|fvp-default|fvp-tftf-fip.tftf-cortexa57x4a53x4-debug
fvp-ext-pstate-ea-el3|fvp-default|fvp-tftf-fip.tftf-aemv8a-debug

I'm not familiar with those test configs, but when checking lava logs,
I see those traces for failing tests:

2024-01-11T14:21:59 > Executing 'CPU suspend to powerdown at level 1 in
OSI mode'
2024-01-11T14:21:59 INFO:    Booting
2024-01-11T14:21:59 INFO:    Registered IRQ handler 0x8801b274 for IRQ #7
2024-01-11T14:21:59 INFO:    Booting
2024-01-11T14:21:59 INFO:    Registered IRQ handler 0x8801b274 for IRQ #7
2024-01-11T14:21:59 INFO:    Booting
2024-01-11T14:21:59 INFO:    Registered IRQ handler 0x8801b274 for IRQ #7
2024-01-11T14:21:59 INFO:    Booting
2024-01-11T14:21:59 INFO:    Registered IRQ handler 0x8801b274 for IRQ #7
2024-01-11T14:21:59 INFO:    Booting
2024-01-11T14:21:59 INFO:    Registered IRQ handler 0x8801b274 for IRQ #7
2024-01-11T14:21:59 INFO:    Booting
2024-01-11T14:21:59 INFO:    Registered IRQ handler 0x8801b274 for IRQ #7
2024-01-11T14:21:59 INFO:    Booting
2024-01-11T14:21:59 INFO:    Registered IRQ handler 0x8801b274 for IRQ #7
2024-01-11T14:21:59 INFO:    Going into suspend state
2024-01-11T14:22:00 INFO:    Going into suspend state
2024-01-11T14:22:00 INFO:    Going into suspend state
2024-01-11T14:22:00 INFO:    Going into suspend state
2024-01-11T14:22:00 INFO:    Going into suspend state
2024-01-11T14:22:00 INFO:    Going into suspend state
2024-01-11T14:22:00 INFO:    Going into suspend state
2024-01-11T14:22:00 INFO:    Resumed from suspend state
2024-01-11T14:22:03 INFO:    Going into suspend state
2024-01-11T14:22:03 INFO:    Resumed from suspend state
2024-01-11T14:22:03 INFO:    Unregistered IRQ handler for IRQ #7
2024-01-11T14:22:03 INFO:    Powering off
2024-01-11T14:22:03 INFO:    Resumed from suspend state
2024-01-11T14:22:03 INFO:    Unregistered IRQ handler for IRQ #7
2024-01-11T14:22:03 INFO:    Powering off
2024-01-11T14:22:03 INFO:    Resumed from suspend state
2024-01-11T14:22:03 INFO:    Unregistered IRQ handler for IRQ #7
2024-01-11T14:22:03 INFO:    Powering off
2024-01-11T14:22:03 INFO:    Resumed from suspend state
2024-01-11T14:22:03 INFO:    Unregistered IRQ handler for IRQ #7
2024-01-11T14:22:03 INFO:    Powering off
2024-01-11T14:22:03 INFO:    Resumed from suspend state
2024-01-11T14:22:03 INFO:    Unregistered IRQ handler for IRQ #7
2024-01-11T14:22:03 INFO:    Powering off
2024-01-11T14:22:03 INFO:    Resumed from suspend state
2024-01-11T14:22:03 INFO:    Unregistered IRQ handler for IRQ #7
2024-01-11T14:22:03 INFO:    Powering off
2024-01-11T14:22:03 INFO:    Unregistered IRQ handler for IRQ #7
2024-01-11T14:22:03 INFO:    Powering off
2024-01-11T14:22:03 INFO:    Resumed from suspend state
2024-01-11T14:22:03   TEST COMPLETE                 Failed
2024-01-11T14:22:03 Wrong value: expected 0, got -3

2024-01-11T14:22:03 > Executing 'CPU suspend to powerdown at level 2 in
OSI mode'
2024-01-11T14:22:03 INFO:    Booting
2024-01-11T14:22:03 INFO:    Registered IRQ handler 0x8801b274 for IRQ #7
2024-01-11T14:22:03 INFO:    Booting
2024-01-11T14:22:03 INFO:    Registered IRQ handler 0x8801b274 for IRQ #7
2024-01-11T14:22:03 INFO:    Booting
2024-01-11T14:22:03 INFO:    Registered IRQ handler 0x8801b274 for IRQ #7
2024-01-11T14:22:03 INFO:    Booting
2024-01-11T14:22:03 INFO:    Registered IRQ handler 0x8801b274 for IRQ #7
2024-01-11T14:22:03 INFO:    Booting
2024-01-11T14:22:03 INFO:    Registered IRQ handler 0x8801b274 for IRQ #7
2024-01-11T14:22:03 INFO:    Booting
2024-01-11T14:22:03 INFO:    Registered IRQ handler 0x8801b274 for IRQ #7
2024-01-11T14:22:03 INFO:    Booting
2024-01-11T14:22:03 INFO:    Registered IRQ handler 0x8801b274 for IRQ #7
2024-01-11T14:22:03 INFO:    Going into suspend state
2024-01-11T14:22:03 INFO:    Going into suspend state
2024-01-11T14:22:03 INFO:    Going into suspend state
2024-01-11T14:22:03 INFO:    Going into suspend state
2024-01-11T14:22:03 INFO:    Going into suspend state
2024-01-11T14:22:03 INFO:    Going into suspend state
2024-01-11T14:22:03 INFO:    Going into suspend state
2024-01-11T14:22:03 INFO:    Resumed from suspend state
2024-01-11T14:22:03 INFO:    Going into suspend state
2024-01-11T14:22:03 INFO:    Saving system context
2024-01-11T14:22:03 INFO:    Resumed from suspend state
2024-01-11T14:22:03 INFO:    Unregistered IRQ handler for IRQ #7
2024-01-11T14:22:03 INFO:    Powering off
2024-01-11T14:22:03 INFO:    Resumed from suspend state
2024-01-11T14:22:03 INFO:    Unregistered IRQ handler for IRQ #7
2024-01-11T14:22:03 INFO:    Powering off
2024-01-11T14:22:03 INFO:    Resumed from suspend state
2024-01-11T14:22:03 INFO:    Unregistered IRQ handler for IRQ #7
2024-01-11T14:22:03 INFO:    Powering off
2024-01-11T14:22:03 INFO:    Resumed from suspend state
2024-01-11T14:22:03 INFO:    Unregistered IRQ handler for IRQ #7
2024-01-11T14:22:03 INFO:    Powering off
2024-01-11T14:22:03 INFO:    Resumed from suspend state
2024-01-11T14:22:03 INFO:    Unregistered IRQ handler for IRQ #7
2024-01-11T14:22:03 INFO:    Powering off
2024-01-11T14:22:03 INFO:    Resumed from suspend state
2024-01-11T14:22:03 INFO:    Unregistered IRQ handler for IRQ #7
2024-01-11T14:22:03 INFO:    Powering off
2024-01-11T14:22:03 INFO:    Unregistered IRQ handler for IRQ #7
2024-01-11T14:22:03 INFO:    Powering off
2024-01-11T14:22:03 INFO:    Restoring system context
2024-01-11T14:22:03 INFO:    Resumed from suspend state
2024-01-11T14:22:03   TEST COMPLETE            Failed
2024-01-11T14:22:03 Wrong value: expected 0, got -3


The "Resumed from suspend state" message interleaved with "Going into
suspend state" seem strange, but I cannot say what could be wrong there.

Maybe there is something wrong with the TF-A patches?
Or the platforms tests or configs need to be updated?
If you have any clue that would be very helpful!


Thanks,
Yann
--
TF-A mailing list -- tf-a@lists.trustedfirmware.org
To unsubscribe send an email to tf-a-leave@lists.trustedfirmware.org