OSDN Git Service

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)
commit7a5e0d9ab6d9564f5f82d7a16355118aadd25ef8
tree2cfe89645e58c52dd134b7999ab1b67a7c13ce5d
parent9b49c19766a854feefa7fe5288c1915658a939f5
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