]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Bounce in more cases in the arm64 busdma
authorandrew <andrew@FreeBSD.org>
Thu, 24 Sep 2020 07:17:05 +0000 (07:17 +0000)
committerandrew <andrew@FreeBSD.org>
Thu, 24 Sep 2020 07:17:05 +0000 (07:17 +0000)
commitbba7c438c3fefcefabc8691af51a97e94206f61f
tree1e49e6174b4402ee03327606185f858a47b5b930
parent60d42ebd226ff61148fdf9dfb4959a5b205b8a90
Bounce in more cases in the arm64 busdma

We need to use a bounce buffer when the memory we are operating on is not
aligned to a cacheline, and not aligned to the maps alignment.

The former is to stop other threads from dirtying the cacheline while we
are performing DMA operations with it. The latter is to check memory
passed in by a driver is correctly aligned for the device.

Reviewed by: mmel
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D26496
sys/arm64/arm64/busdma_bounce.c