Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+4 -1
+4 -1
drivers/gpu/drm/radeon/cik.c
··· 8394 8394 cik_irq_set(rdev); 8395 8395 8396 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 8401 } else { 8399 8402 nop = PACKET3(PACKET3_NOP, 0x3FFF); 8400 8403 }