aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorIvan Bornyakov <[email protected]>2022-12-30 12:29:20 +0300
committerXu Yilun <[email protected]>2023-01-28 23:20:24 +0800
commit1da53d23a41c5f77963984d8da5623ed56918ada (patch)
tree7e14e7ea8034e90a41097ca0ebd474d4cf1479e1 /tools/perf/scripts/python/exported-sql-viewer.py
parent1b929c02afd37871d5afb9d498426f83432e71c2 (diff)
fpga: microchip-spi: move SPI I/O buffers out of stack
As spi-summary doc says: > I/O buffers use the usual Linux rules, and must be DMA-safe. > You'd normally allocate them from the heap or free page pool. > Don't use the stack, or anything that's declared "static". Replace spi_write() with spi_write_then_read(), which is dma-safe for on-stack buffers. Use cacheline aligned buffers for transfers used in spi_sync_transfer(). Although everything works OK with stack-located I/O buffers, better follow the doc to be safe. Fixes: 5f8d4a900830 ("fpga: microchip-spi: add Microchip MPF FPGA manager") Signed-off-by: Ivan Bornyakov <[email protected]> Acked-by: Conor Dooley <[email protected]> Acked-by: Xu Yilun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Xu Yilun <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions