Skip to content

Conversation

@mbukowsk
Copy link
Contributor

@mbukowsk mbukowsk commented Feb 9, 2023

Memory banks enablement flow is adjusted to reccommended approach. Power status should be read twice to ensure ebb readiness

Signed-off-by: Michal Bukowski michal.bukowski@intel.com

@mbukowsk mbukowsk force-pushed the mbukowsk/memory-powerup branch from 02f6d3b to 90d5316 Compare February 9, 2023 12:53
@lgirdwood lgirdwood added the P1 Blocker bugs or important features label Feb 9, 2023
Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mbukowsk
Copy link
Contributor Author

mbukowsk commented Feb 9, 2023

@cujomalainey Could you please verify this fix on your setup?

Copy link
Member

@abonislawski abonislawski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wszypelt can you check CI issue?

@lgirdwood
Copy link
Member

@mbukowsk still draft ?

@plbossart
Copy link
Member

@lgirdwood this PR looks like a prime candidate for a stable-2.2 update?

@mbukowsk
Copy link
Contributor Author

mbukowsk commented Feb 9, 2023

@mbukowsk still draft ?

Still fix is not verified and CI not working

@mbukowsk mbukowsk force-pushed the mbukowsk/memory-powerup branch from 90d5316 to 43a4f19 Compare February 9, 2023 16:55
@mbukowsk
Copy link
Contributor Author

mbukowsk commented Feb 9, 2023

I've done cosmetic change. for loop is added instead of code duplication. Primarily code was duplicated due to ifdef for cavs 2_5. Fix is applicable for all cavs versions, define is removed so same code is executed in simple loop.

@cujomalainey
Copy link
Contributor

Got it cycling, I'll check it tonight, probably will hit about 2k cycles by then

@mbukowsk mbukowsk force-pushed the mbukowsk/memory-powerup branch from 43a4f19 to 4c77545 Compare February 9, 2023 21:44
@cujomalainey
Copy link
Contributor

cujomalainey commented Feb 9, 2023

Just shy of 400 cycles right now. Probably will hit 1k tonight. If its still going by then I will give my +1 so we can submit, but will still let it run through the night

Copy link
Contributor

@cujomalainey cujomalainey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

935 cycles passed so far

@mwasko
Copy link
Contributor

mwasko commented Feb 10, 2023

SOFCI TEST

@mbukowsk mbukowsk marked this pull request as ready for review February 10, 2023 09:33
@kv2019i
Copy link
Collaborator

kv2019i commented Feb 10, 2023

#6864 hit once in https://sof-ci.01.org/sofpr/PR7065/build3847/devicetest/index.html

The qemu-failures are more complicated, the changed code affects CNL and ICL and the qemu check in CI now fails, so this seems to be related to the code.

OTOH, we have #7000 review which will remove CNL and ICL from mainline, making the failures moot.

@lgirdwood @mwasko guidance how to proceed? I can't immediately see how the change of this PR can break the qemu test, but apparently it does.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure I understand. Does this mean, that once we successfully identified the register value to match what we expect, it can change and we have to run the loop again to catch a second such change? Or do we just have to

idelay();
while (io_reg_read() != expected)
	idelay();
idelay();
io_reg_read();

? If this is the case, I wouldn't use a loop there but just add that additional register read (possibly with a delay) after the loop.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

regarding your recommendation, is that not what the outer loop enforces?

Memory banks enablement flow is adjusted to recommended approach.
Power status should  be read twice to ensure ebb readiness

Signed-off-by: Michal Bukowski <michal.bukowski@intel.com>
@mbukowsk mbukowsk force-pushed the mbukowsk/memory-powerup branch from 4c77545 to cbf5199 Compare February 10, 2023 12:56
Copy link
Contributor

@cujomalainey cujomalainey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1930 cycles passed

@cujomalainey
Copy link
Contributor

stopped my test at 4600 reboots, i think we are good

@lgirdwood lgirdwood merged commit aaac08a into main Feb 13, 2023
@lgirdwood lgirdwood deleted the mbukowsk/memory-powerup branch February 13, 2023 11:01
@cujomalainey
Copy link
Contributor

This needs to be cherry picked to Rpl-001 asap

@sathyap-chrome
Copy link
Contributor

created #7086 for picking to RPL-001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1 Blocker bugs or important features

Projects

None yet

Development

Successfully merging this pull request may close these issues.