]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Given that the buffer dcons_crom(4) exposes is used for both input
authorMarius Strobl <marius@FreeBSD.org>
Wed, 19 Nov 2008 22:09:03 +0000 (22:09 +0000)
committerMarius Strobl <marius@FreeBSD.org>
Wed, 19 Nov 2008 22:09:03 +0000 (22:09 +0000)
commiteddfa7b1474598bf9c9327713a849c4773afd868
treee1e56b97926247afd1f8a10df81e58253fcabd65
parent656b038372878935c0b630b41625a2adb5345f1b
Given that the buffer dcons_crom(4) exposes is used for both input
and output, set BUS_DMA_COHERENT when creating the DMA map used for
loading the buffer. As a side-effect this solves locking issues on
sparc64 when dcons(4) calls bus_dmamap_sync(9) while in an interrupt
filter, which are executed in a critical section, and iommu(4) has
to use a sleep lock when taking advantage of the streaming buffer.

Reported and tested by: kensmith
Approved by: simokawa
sys/dev/dcons/dcons_crom.c