fix(ppa): fix potential SRM operation stuck on DMA issue

Apply a workaound to bypass macro block order function in PPA SRM
when specific conditions are met to avoid SRM operation getting stuck
This commit is contained in:
Song Ruo Jing
2025-12-22 16:09:06 +08:00
parent 507bea72e7
commit 1b13ef0498
3 changed files with 117 additions and 0 deletions
@@ -600,6 +600,17 @@ static inline void ppa_ll_srm_get_dma_dscr_port_mode_block_size(ppa_dev_t *dev,
}
}
/**
* @brief Whether to bypass the macro block order function in PPA SRM
*
* @param dev Peripheral instance address
* @param enable True to bypass; False to not bypass
*/
static inline void ppa_ll_srm_bypass_mb_order(ppa_dev_t *dev, bool enable)
{
dev->sr_byte_order.sr_macro_bk_ro_bypass = enable;
}
//////////////////////////////////// Blending ////////////////////////////////////////
/*
* Alpha Blending Calculation: