Skip to content

Commit

Permalink
Merge branch 'bugfix/put_extra_link_retention_in_iram_5.1' into 'rele…
Browse files Browse the repository at this point in the history
…ase/v5.1'

fix(pm): place extra link opt in iram(Backport v5.1)

See merge request espressif/esp-idf!27898
  • Loading branch information
jack0c committed Dec 21, 2023
2 parents d09d7bb + 7d2ab4c commit a8a3adc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions components/esp_hw_support/port/pau_regdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,18 @@ void IRAM_ATTR pau_regdma_trigger_system_link_restore(void)
}
#endif

void pau_regdma_set_extra_link_addr(void *link_addr)
void IRAM_ATTR pau_regdma_set_extra_link_addr(void *link_addr)
{
pau_hal_set_regdma_extra_link_addr(PAU_instance()->hal, link_addr);
}

void pau_regdma_trigger_extra_link_backup(void)
void IRAM_ATTR pau_regdma_trigger_extra_link_backup(void)
{
pau_hal_start_regdma_extra_link(PAU_instance()->hal, true);
pau_hal_stop_regdma_extra_link(PAU_instance()->hal);
}

void pau_regdma_trigger_extra_link_restore(void)
void IRAM_ATTR pau_regdma_trigger_extra_link_restore(void)
{
pau_hal_start_regdma_extra_link(PAU_instance()->hal, false);
pau_hal_stop_regdma_extra_link(PAU_instance()->hal);
Expand Down
2 changes: 1 addition & 1 deletion components/esp_hw_support/sleep_modem.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ void sleep_modem_unregister_mac_bb_module_prepare_callback(mac_bb_power_down_cb_
* @param cpu_freq_mhz cpu frequency to do retention
* @param do_retention function for retention
*/
static void rtc_clk_cpu_freq_to_pll_mhz_and_do_retention(bool backup, int cpu_freq_mhz, void (*do_retention)(bool))
static void IRAM_ATTR rtc_clk_cpu_freq_to_pll_mhz_and_do_retention(bool backup, int cpu_freq_mhz, void (*do_retention)(bool))
{
#if SOC_PM_SUPPORT_PMU_MODEM_STATE
if (pmu_sleep_pll_already_enabled()) {
Expand Down
2 changes: 1 addition & 1 deletion components/esp_hw_support/sleep_retention.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ uint32_t IRAM_ATTR sleep_retention_get_modules(void)
}

#if SOC_PM_RETENTION_HAS_CLOCK_BUG
void sleep_retention_do_extra_retention(bool backup_or_restore)
void IRAM_ATTR sleep_retention_do_extra_retention(bool backup_or_restore)
{
if (s_retention.highpri < SLEEP_RETENTION_REGDMA_LINK_HIGHEST_PRIORITY ||
s_retention.highpri > SLEEP_RETENTION_REGDMA_LINK_LOWEST_PRIORITY) {
Expand Down

0 comments on commit a8a3adc

Please sign in to comment.