]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/radeon: narrow asic_init for virtualization
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Sep 2016 16:35:22 +0000 (12:35 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 23 Feb 2017 03:54:02 +0000 (03:54 +0000)
commit 884031f0aacf57dad1575f96714efc80de9b19cc upstream.

Only needed on CIK+ due to the way pci reset is handled
by the GPU.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/radeon/radeon_device.c

index 7a7a4af75630b1b301f04966fe427b8a87cb8359..93324c9ddfc6c4d460bcbae0d7eae3ae6b0ebd97 100644 (file)
@@ -629,8 +629,9 @@ bool radeon_card_posted(struct radeon_device *rdev)
 {
        uint32_t reg;
 
-       /* for pass through, always force asic_init */
-       if (radeon_device_is_virtual())
+       /* for pass through, always force asic_init for CI */
+       if (rdev->family >= CHIP_BONAIRE &&
+           radeon_device_is_virtual())
                return false;
 
        /* required for EFI mode on macbook2,1 which uses an r5xx asic */