]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cgem: improve usage of busdma(9) KPI
authorMitchell Horne <mhorne@FreeBSD.org>
Wed, 20 Jan 2021 15:07:53 +0000 (11:07 -0400)
committerMitchell Horne <mhorne@FreeBSD.org>
Thu, 18 Feb 2021 21:17:41 +0000 (17:17 -0400)
commit04d2d2d7fd22bba638ccb5a0b2e0805087a70cd3
tree0ecd59522a0a3bf2983da41d22c63c76e6861b4d
parentcee8be2c78f15bed6d2339d41e3f8c232d41bb33
cgem: improve usage of busdma(9) KPI

BUS_DMA_NOCACHE should only be used when one needs to guarantee the
created mapping has uncached memory attributes, usually as a result
of buggy hardware. Normal use cases should pass BUS_DMA_COHERENT, to
create an appropriate mapping based on the flags passed to
bus_dma_tag_create().

This should have no functional change, since the DMA tags in this driver
are created without the BUS_DMA_COHERENT flag.

Reported by: mmel
Reviewed by: mmel, Thomas Skibo <thomas-bsd@skibo.net>
MFC after: 3 days
sys/dev/cadence/if_cgem.c