]> 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)
commit240e43ef2bf614e9c43d24eff2d573e8ee503907
treef16a0dcf1cab2af71b2c8185a38e6e24b8bfacb4
parent662e0e18f578a63b5f38f3578c510e24c15cef36
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