]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/kms: enable the ttm dma pool if swiotlb is on V4
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 17 Oct 2011 21:15:08 +0000 (17:15 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 6 Dec 2011 10:39:44 +0000 (10:39 +0000)
commitda0e51039c8ed9fe8e1861d3f4c0d566d05689dc
treecb532a596f4c06b7b2efc05e887cfa78940348fa
parenta632bab3ad44ee38cf23df3028f8a3ab7b0b2e41
drm/radeon/kms: enable the ttm dma pool if swiotlb is on V4

With the exception that we do not handle the AGP case. We only
deal with PCIe cards such as ATI ES1000 or HD3200 that have been
detected to only do DMA up to 32-bits.

V2 force dma32 if we fail to set bigger dma mask
V3 Rebase on top of no memory account changes (where/when is my
   delorean when i need it ?)
V4 add debugfs entry is swiotlb is active not only if we are
   on dma 32bits only gpu

CC: Dave Airlie <airlied@redhat.com>
CC: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_device.c
drivers/gpu/drm/radeon/radeon_gart.c
drivers/gpu/drm/radeon/radeon_ttm.c