diff options
author | Dave Airlie <airlied@redhat.com> | 2012-03-15 06:24:32 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-03-15 06:24:32 -0400 |
commit | 8229c885fe361e521ac64de36b16011e54a30de0 (patch) | |
tree | 572e5d34b16713ddef9e803308c6f72014aff01b /drivers/gpu/drm/radeon/r100.c | |
parent | c3c50e8b651887bcefcc13beb3739c00b2379b5c (diff) | |
parent | fde7d9049e55ab85a390be7f415d74c9f62dd0f9 (diff) |
drm: Merge tag 'v3.3-rc7' into drm-core-next
Merge the fixes so far into core-next, needed to test
intel driver.
Conflicts:
drivers/gpu/drm/i915/intel_ringbuffer.c
Diffstat (limited to 'drivers/gpu/drm/radeon/r100.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r100.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index cee3c8a28dbd..81801c176aa5 100644 --- a/drivers/gpu/drm/radeon/r100.c +++ b/drivers/gpu/drm/radeon/r100.c | |||
@@ -827,9 +827,7 @@ int r100_irq_process(struct radeon_device *rdev) | |||
827 | WREG32(RADEON_AIC_CNTL, msi_rearm | RS400_MSI_REARM); | 827 | WREG32(RADEON_AIC_CNTL, msi_rearm | RS400_MSI_REARM); |
828 | break; | 828 | break; |
829 | default: | 829 | default: |
830 | msi_rearm = RREG32(RADEON_MSI_REARM_EN) & ~RV370_MSI_REARM_EN; | 830 | WREG32(RADEON_MSI_REARM_EN, RV370_MSI_REARM_EN); |
831 | WREG32(RADEON_MSI_REARM_EN, msi_rearm); | ||
832 | WREG32(RADEON_MSI_REARM_EN, msi_rearm | RV370_MSI_REARM_EN); | ||
833 | break; | 831 | break; |
834 | } | 832 | } |
835 | } | 833 | } |
@@ -3979,6 +3977,8 @@ static int r100_startup(struct radeon_device *rdev) | |||
3979 | 3977 | ||
3980 | int r100_resume(struct radeon_device *rdev) | 3978 | int r100_resume(struct radeon_device *rdev) |
3981 | { | 3979 | { |
3980 | int r; | ||
3981 | |||
3982 | /* Make sur GART are not working */ | 3982 | /* Make sur GART are not working */ |
3983 | if (rdev->flags & RADEON_IS_PCI) | 3983 | if (rdev->flags & RADEON_IS_PCI) |
3984 | r100_pci_gart_disable(rdev); | 3984 | r100_pci_gart_disable(rdev); |
@@ -3998,7 +3998,11 @@ int r100_resume(struct radeon_device *rdev) | |||
3998 | radeon_surface_init(rdev); | 3998 | radeon_surface_init(rdev); |
3999 | 3999 | ||
4000 | rdev->accel_working = true; | 4000 | rdev->accel_working = true; |
4001 | return r100_startup(rdev); | 4001 | r = r100_startup(rdev); |
4002 | if (r) { | ||
4003 | rdev->accel_working = false; | ||
4004 | } | ||
4005 | return r; | ||
4002 | } | 4006 | } |
4003 | 4007 | ||
4004 | int r100_suspend(struct radeon_device *rdev) | 4008 | int r100_suspend(struct radeon_device *rdev) |