-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
power_domain_intel_adsp.c: revert recent INIT_PRIORITY change #64712
power_domain_intel_adsp.c: revert recent INIT_PRIORITY change #64712
Conversation
This is a partial revert of one-line from commit 06cfbd4 ("drivers: power_domain: Introduce a gpio monitor driver") which not just introduced a new driver (no problem with that) but also changed the initialization priority of another, unrelated and existing power domain driver without even trying to compile it: zephyrproject-rtos#61166 (comment) ``` west config manifest.project-filter -- +sof west update west build -b intel_adsp_ace20_lnl modules/audio/sof/app/ ERROR: /soc/ssp@28100 POST_KERNEL 43 < /soc/dfpmccu@71b00/io0_domain 51 ERROR: /soc/ssp@29100 POST_KERNEL 44 < /soc/dfpmccu@71b00/io0_domain 51 ERROR: /soc/ssp@2a100 POST_KERNEL 45 < /soc/dfpmccu@71b00/io0_domain 51 ERROR: /soc/ssp@2b100 POST_KERNEL 46 < /soc/dfpmccu@71b00/io0_domain 51 ERROR: /soc/ssp@2c100 POST_KERNEL 47 < /soc/dfpmccu@71b00/io0_domain 51 ERROR: /soc/ssp@2d100 POST_KERNEL 48 < /soc/dfpmccu@71b00/io0_domain 51 ``` Also note a reviewer (@ceolin) expressed concerns about this unrelated change but it was ignored: zephyrproject-rtos#61166 (comment) Using `CONFIG_KERNEL_INIT_PRIORITY_DEFAULT` here may be "bad" for some reason(s) and maybe it should be changed in the future, but it's nothing compared to breaking _compilation_ of code that has been validated for months and been released in production (https://github.com/thesofproject/sof-bin/releases/tag/v2023.09) So the very urgent thing is to very quickly revert to the previous state to unblock development. Then we can discuss what is the better thing to do here. Signed-off-by: Marc Herbert <[email protected]>
Corresponding compilation failure in SOF daily tests: Addition to Zephyr CI: |
The change should have had a standalone commit, but the more important things:
Is this a case of the "Intel Platforms (Xtensa)" maintainer area missing an entry for |
As just mentioned, fix already submitted in:
True, maybe the filepath matching needs some fine-tuning. This being said:
It's quite subjective of course but for me the main cause was not in the lack of code reviews (which did not help) but in submitting a line change that was not even compile-tested. No one can be expected to buy hardware to test changes but I think compilation of changed code is a fair requirement! I always insert garbage temporarily in modified code to make sure I'm actually compiling my changes. The best way to test something is always to break it first, otherwise it's very common with Kconfig explosion and others to accidentally not test anything (example: missing thesofproject/sof#8429!). As another example: error handling is almost never tested. |
Yeah, what I mean is that the CI should try and build every file that has been modified, but it didn't. The whole build time priority check thing was meant to block these at CI build time so they don't get through in any case. I'm not familiar with the test plan generation and why it did not hit any cavs platforms for the change, but I think it should have, @nashif is that something you could look into? |
|
@marc-hb oh, sorry I see what you mean now, I saw it was in the sof repo and thought it was downstream only, forgot that it has tests that are run in the upstream CI, thanks for persisting :-) |
To be honest I'm not sure this twister file belongs to the SOF repo :-) It was moved with all the rest which does belong to the SOF repo: |
No idea, I see a |
This is a partial revert of one-line from commit 06cfbd4 ("drivers: power_domain: Introduce a gpio monitor driver") which not just introduced a new driver (no problem with that) but also changed the initialization priority of another, unrelated and existing power domain driver without even trying to compile it:
Also note a reviewer (@ceolin) expressed concerns about this unrelated change but it was ignored:
Using
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT
here may be "bad" for some reason(s) and maybe it should be changed in the future, but it's nothing compared to breaking compilation of code that has been validated for months and been released in production(https://github.com/thesofproject/sof-bin/releases/tag/v2023.09)
So the very urgent thing is to very quickly revert to the previous state to unblock development. Then we can discuss what is the better thing to do here.