Skip to content

Commit 46d1d7a

Browse files
committed
fix(gdma): relax alignment constraint for internal memory
external memory encryption should not affect internal memory alignment Closes #15228
1 parent f2c8b32 commit 46d1d7a

File tree

1 file changed

+1
-2
lines changed
  • components/esp_hw_support/dma

1 file changed

+1
-2
lines changed

components/esp_hw_support/dma/gdma.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,10 +392,9 @@ esp_err_t gdma_config_transfer(gdma_channel_handle_t dma_chan, const gdma_transf
392392
// if MSPI encryption is enabled, and DMA wants to read/write external memory
393393
if (esp_flash_encryption_enabled()) {
394394
gdma_hal_enable_access_encrypt_mem(hal, pair->pair_id, dma_chan->direction, config->access_ext_mem);
395-
// when DMA access the encrypted memory, extra alignment is needed, for both internal and external memory
395+
// when DMA access the encrypted memory, extra alignment is needed for external memory
396396
if (config->access_ext_mem) {
397397
ext_mem_alignment = MAX(ext_mem_alignment, GDMA_ACCESS_ENCRYPTION_MEM_ALIGNMENT);
398-
int_mem_alignment = MAX(int_mem_alignment, GDMA_ACCESS_ENCRYPTION_MEM_ALIGNMENT);
399398
}
400399
} else {
401400
gdma_hal_enable_access_encrypt_mem(hal, pair->pair_id, dma_chan->direction, false);

0 commit comments

Comments
 (0)