Commit 385e606b authored by Alex Deucher's avatar Alex Deucher Committed by Stefan Bader

drm/amdgpu/gfx7: fix broken condition check

BugLink: http://bugs.launchpad.net/bugs/1607404

commit 8b18300c upstream.

Wrong operator.
Reported-by: default avatarDavid Binderman <linuxdev.baldrick@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent 10349dc8
...@@ -5481,7 +5481,7 @@ static int gfx_v7_0_eop_irq(struct amdgpu_device *adev, ...@@ -5481,7 +5481,7 @@ static int gfx_v7_0_eop_irq(struct amdgpu_device *adev,
case 2: case 2:
for (i = 0; i < adev->gfx.num_compute_rings; i++) { for (i = 0; i < adev->gfx.num_compute_rings; i++) {
ring = &adev->gfx.compute_ring[i]; ring = &adev->gfx.compute_ring[i];
if ((ring->me == me_id) & (ring->pipe == pipe_id)) if ((ring->me == me_id) && (ring->pipe == pipe_id))
amdgpu_fence_process(ring); amdgpu_fence_process(ring);
} }
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment