Skip to content
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

intel_adsp: Fix interruption locks in power management code #67863

Merged
merged 2 commits into from
Jan 30, 2024

Commits on Jan 24, 2024

  1. intel_adsp/ace: power: Restore PS after power gate

    We are arbitrarily setting a value to PS after power gates and
    losing valid information like OWB, CALLINC and INTLEVEL.
    
    We need to properly save/restore them to avoid possible wrong behavior.
    
    Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
    Flavio Ceolin committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    35e1199 View commit details
    Browse the repository at this point in the history
  2. intel_adsp/cavs: power: Fix INTLEVEL value

    In pm_state_set we can't just call k_cpu_idle() because
    this will clear out PS.INTLEVEL. Use k_cpu_atomic_idle instead
    since Zephyr's expect interruptions to be locked after pm_state_set.
    
    Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
    Flavio Ceolin committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    228230b View commit details
    Browse the repository at this point in the history