On Fri, Jun 15, 2012 at 04:09:57PM +0800, Huacai Chen wrote: > 1, Use 32bit DMA as a workaround. > 2, Read vga bios offered by system firmware. > 3, Handle io prot correctly for MIPS. > 4, Don't use swiotlb on Loongson machines. > > Signed-off-by: Huacai Chen <chenhc@xxxxxxxxxx> > Signed-off-by: Hongliang Tao <taohl@xxxxxxxxxx> > Signed-off-by: Hua Yan <yanh@xxxxxxxxxx> > --- > drivers/gpu/drm/drm_vm.c | 2 +- > drivers/gpu/drm/radeon/radeon_bios.c | 32 ++++++++++++++++++++++++++++++++ > drivers/gpu/drm/radeon/radeon_device.c | 5 +++++ > drivers/gpu/drm/radeon/radeon_ttm.c | 6 +++--- > drivers/gpu/drm/ttm/ttm_bo_util.c | 2 +- > include/drm/drm_sarea.h | 2 ++ > 6 files changed, 44 insertions(+), 5 deletions(-) Fix the following compiling warnings, please: CC drivers/gpu/drm/drm_vm.o drivers/gpu/drm/drm_vm.c: In function ‘drm_do_vm_dma_fault’: drivers/gpu/drm/drm_vm.c:309: warning: passing argument 1 of ‘virt_to_phys’ makes pointer from integer without a cast /home/liuqi/workspace/linux.git/arch/mips/include/asm/io.h:117: note: expected ‘const volatile void *’ but argument is of type ‘long unsigned int’ CC drivers/gpu/drm/radeon/radeon_ttm.o In file included from drivers/gpu/drm/radeon/radeon_ttm.c:36: include/drm/ttm/ttm_page_alloc.h:81: warning: ‘struct device’ declared inside parameter list include/drm/ttm/ttm_page_alloc.h:81: warning: its scope is only this definition or declaration, which is probably not what you want include/drm/ttm/ttm_page_alloc.h:82: warning: ‘struct device’ declared inside parameter list LIU Qi