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)
commit0b968650cdb117396c3625e35010e569d82369b2
treef16a0dcf1cab2af71b2c8185a38e6e24b8bfacb4
parentff4cd38943199348a53f980709e16f0bc5c0b8c9
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