[PATCH] drm/amd/amdgpu: Fix wave mask in amdgpu_debugfs_wave_read()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Signed-off-by: Tom St Denis <tom.stdenis at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index c1f1b8f15395..cc59020d5874 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -3766,7 +3766,7 @@ static ssize_t amdgpu_debugfs_wave_read(struct file *f, char __user *buf,
 	se = ((*pos >> 7) & 0xFF);
 	sh = ((*pos >> 15) & 0xFF);
 	cu = ((*pos >> 23) & 0xFF);
-	wave = ((*pos >> 31) & 0xFF);
+	wave = ((*pos >> 31) & 0x3F);
 	simd = ((*pos >> 37) & 0xFF);
 
 	/* switch to the specific se/sh/cu */
-- 
2.12.0



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux