diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2014-08-01 14:05:31 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2014-08-05 08:53:58 -0400 |
commit | 78cd3661fe597dc13b874192994ea6865e7a951c (patch) | |
tree | 4fa18ac63c045956c9c0fa8f75e8df60762a012d /drivers/gpu/drm/radeon/cik.c | |
parent | 3c64bd26f7e9bd589ebe0d1ebec69ef2f784c12d (diff) |
drm/radeon: use packet3 for nop on hawaii with new firmware
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/cik.c')
-rw-r--r-- | drivers/gpu/drm/radeon/cik.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c index 2cb507ab0b7c..2693c57de80c 100644 --- a/drivers/gpu/drm/radeon/cik.c +++ b/drivers/gpu/drm/radeon/cik.c | |||
@@ -8394,7 +8394,10 @@ static int cik_startup(struct radeon_device *rdev) | |||
8394 | cik_irq_set(rdev); | 8394 | cik_irq_set(rdev); |
8395 | 8395 | ||
8396 | if (rdev->family == CHIP_HAWAII) { | 8396 | if (rdev->family == CHIP_HAWAII) { |
8397 | nop = RADEON_CP_PACKET2; | 8397 | if (rdev->new_fw) |
8398 | nop = PACKET3(PACKET3_NOP, 0x3FFF); | ||
8399 | else | ||
8400 | nop = RADEON_CP_PACKET2; | ||
8398 | } else { | 8401 | } else { |
8399 | nop = PACKET3(PACKET3_NOP, 0x3FFF); | 8402 | nop = PACKET3(PACKET3_NOP, 0x3FFF); |
8400 | } | 8403 | } |