]> 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)
commit31fa959e261e799f1721312b111c64667f3e4bc0
tree2cfe89645e58c52dd134b7999ab1b67a7c13ce5d
parent66b5902d3f3032ab45c442f814a00d8aa85a95f3
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