OSDN Git Service

drm/radeon: Use direct mapping for fast fb access on RS690
authorSamuel Li <samuel.li@amd.com>
Mon, 8 Apr 2013 21:25:47 +0000 (17:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Apr 2013 14:31:31 +0000 (10:31 -0400)
commita0a53aa8c7b491a43e2ef66786f9511bae8cbc35
treeba99c19682038634fece39989fef348baaebab1b
parent7c1c7c18fc752b2a1d07597286467ef186312463
drm/radeon: Use direct mapping for fast fb access on RS690

This patch allows the CPU to map the stolen vram segment
directly rather than going through the PCI BAR.  This
significantly improves performance for certain workloads with
a properly patched ddx.

Use radeon.fastfb=1 to enable it (disabled by default).
Currently only supported on RS690, but support for RS780/880
and newer APUs may be added eventually.

Signed-off-by: Samuel Li <samuel.li@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_drv.c
drivers/gpu/drm/radeon/radeon_kms.c
drivers/gpu/drm/radeon/radeon_object.c
drivers/gpu/drm/radeon/rs690.c
drivers/gpu/drm/radeon/rs690d.h
include/uapi/drm/radeon_drm.h