]> git.hungrycats.org Git - linux/commitdiff
drm/radeon: do a posting read in r100_set_irq
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Mar 2015 01:36:26 +0000 (20:36 -0500)
committerJiri Slaby <jslaby@suse.cz>
Thu, 9 Apr 2015 11:13:57 +0000 (13:13 +0200)
commit f957063fee6392bb9365370db6db74dc0b2dce0a upstream.

To make sure the writes go through the pci bridge.

bug:
https://bugzilla.kernel.org/show_bug.cgi?id=90741

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/gpu/drm/radeon/r100.c

index f98dcbeb9a72e1073952182a802ac30f160bb6b7..91bcb794d59ed4ae2bef432ef065c856bca4b529 100644 (file)
@@ -742,6 +742,10 @@ int r100_irq_set(struct radeon_device *rdev)
                tmp |= RADEON_FP2_DETECT_MASK;
        }
        WREG32(RADEON_GEN_INT_CNTL, tmp);
+
+       /* read back to post the write */
+       RREG32(RADEON_GEN_INT_CNTL);
+
        return 0;
 }