drm/radeon: add VRAM debugfs access v3
authorChristian König <christian.koenig@amd.com>
Wed, 18 Dec 2013 20:07:39 +0000 (21:07 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Dec 2013 21:12:47 +0000 (16:12 -0500)
commit2014b5694182b54c781b93d26ec993f8a12bca01
treedca47e6c76970e557dcc420765e783a022f02ec5
parent893d6e6e122386d7aada4c71cf20c2d2794640fd
drm/radeon: add VRAM debugfs access v3

Not very fast, but makes it possible to access even the
normally inaccessible parts of VRAM from userspace.

v2: use MM_INDEX_HI for >2GB mem access, add default_llseek
v3: set inode size in the open callback

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/evergreen_reg.h
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_ttm.c