]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bus_dma_tag_create() and bus_dma_mem_alloc() shall not be called with a
authorkib <kib@FreeBSD.org>
Thu, 12 Jul 2007 09:02:31 +0000 (09:02 +0000)
committerkib <kib@FreeBSD.org>
Thu, 12 Jul 2007 09:02:31 +0000 (09:02 +0000)
commit7d726d3c98d2a4f21ba0561188a21bcd0b2b59df
treeaf2d1208cfe28255e701a73c2dee80220bbe419d
parentb4a663c82ad0a4c227971f6662fb4715b6acecdb
bus_dma_tag_create() and bus_dma_mem_alloc() shall not be called with a
non-sleepable lock held. drm_pci_alloc() calls them, thus drm mutex shall
not be held during the call.

Move the drm_pci_alloc() to the start of the i915_initialize() and drop the
the drm mutex around it.

Reported by: Ganbold <ganbold micom mng net>
Reviewed by: anholt
Approved by: re (hrs)
MFC after: 1 week
sys/dev/drm/i915_dma.c