diff options
author | Christian König <christian.koenig@amd.com> | 2013-12-18 21:07:39 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-12-24 16:12:47 -0500 |
commit | 2014b5694182b54c781b93d26ec993f8a12bca01 (patch) | |
tree | dca47e6c76970e557dcc420765e783a022f02ec5 /drivers/gpu/drm/radeon/radeon.h | |
parent | 893d6e6e122386d7aada4c71cf20c2d2794640fd (diff) | |
download | lwn-2014b5694182b54c781b93d26ec993f8a12bca01.tar.gz lwn-2014b5694182b54c781b93d26ec993f8a12bca01.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index b1f990d0eaa1..49f210c14796 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h @@ -413,6 +413,10 @@ struct radeon_mman { struct ttm_bo_device bdev; bool mem_global_referenced; bool initialized; + +#if defined(CONFIG_DEBUG_FS) + struct dentry *vram; +#endif }; /* bo virtual address in a specific vm */ |