]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: don't clamp debugfs register access to the BAR size
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 11 Feb 2019 21:49:47 +0000 (16:49 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Feb 2019 22:51:41 +0000 (17:51 -0500)
commit6060bc668c20a8a65d2bae3bc106fea1abaa8eea
tree2cfe89645e58c52dd134b7999ab1b67a7c13ce5d
parent07528096ca31b8c22f820fd6e1d65e557f4b9ab3
drm/amdgpu: don't clamp debugfs register access to the BAR size

This prevents us from accessing extended registers in tools like
umr.  The register access functions already check if the offset
is beyond the BAR size and use the indirect accessors with locking
so this is safe.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c