From: Alex Deucher Date: Fri, 1 Aug 2014 18:05:31 +0000 (+0200) Subject: drm/radeon: use packet3 for nop on hawaii with new firmware X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=78cd3661fe597dc13b874192994ea6865e7a951c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Andreas Boll --- 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) 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); }