Skip to content

Commit

Permalink
drm/radeon: use packet3 for nop on hawaii with new firmware
Browse files Browse the repository at this point in the history
Older firmware didn't support the new nop packet.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com>
  • Loading branch information
Alex Deucher committed Aug 5, 2014
1 parent 3c64bd2 commit 78cd366
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/gpu/drm/radeon/cik.c
Original file line number Diff line number Diff line change
Expand Up @@ -8394,7 +8394,10 @@ static int cik_startup(struct radeon_device *rdev)
cik_irq_set(rdev);

if (rdev->family == CHIP_HAWAII) {
nop = RADEON_CP_PACKET2;
if (rdev->new_fw)
nop = PACKET3(PACKET3_NOP, 0x3FFF);
else
nop = RADEON_CP_PACKET2;
} else {
nop = PACKET3(PACKET3_NOP, 0x3FFF);
}
Expand Down

0 comments on commit 78cd366

Please sign in to comment.