Skip to content

Commit

Permalink
xlnx-versal-ospi: disable reentrancy detection for iomem_dac
Browse files Browse the repository at this point in the history
The OSPI DMA reads flash data through the OSPI linear address space (the
iomem_dac region), because of this the reentrancy guard introduced in
commit a2e1753 ("memory: prevent dma-reentracy issues") is disabled for
the memory region.

Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@amd.com>
Message-id: 20240219105637.65052-1-sai.pavan.boddu@amd.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
  • Loading branch information
saipava authored and pm215 committed Feb 27, 2024
1 parent efabbc0 commit 3b3e4c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hw/ssi/xlnx-versal-ospi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1772,6 +1772,12 @@ static void xlnx_versal_ospi_init(Object *obj)
memory_region_init_io(&s->iomem_dac, obj, &ospi_dac_ops, s,
TYPE_XILINX_VERSAL_OSPI "-dac", 0x20000000);
sysbus_init_mmio(sbd, &s->iomem_dac);
/*
* The OSPI DMA reads flash data through the OSPI linear address space (the
* iomem_dac region), because of this the reentrancy guard needs to be
* disabled.
*/
s->iomem_dac.disable_reentrancy_guard = true;

sysbus_init_irq(sbd, &s->irq);

Expand Down

0 comments on commit 3b3e4c2

Please sign in to comment.