]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu: Fix wave mask in amdgpu_debugfs_wave_read() (v2)
authorTom St Denis <tom.stdenis@amd.com>
Fri, 10 Nov 2017 17:54:50 +0000 (12:54 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Nov 2017 19:37:05 +0000 (14:37 -0500)
commit05fe0bf00af6033256f0c16be50c3b71dadc11c1
treef16a0dcf1cab2af71b2c8185a38e6e24b8bfacb4
parenta13554515fb39a417d4b2945f457c28ea5481470
drm/amd/amdgpu: Fix wave mask in amdgpu_debugfs_wave_read() (v2)

The bottom two bits of the simd value were being put into
the upper bits of the wave value which was likely working due
to the bits being ignored (or aliased).

Eitherway, now we mask it correctly.

(v2) Touch up using GENMASK_ULL to a couple of other functions too

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