Message ID | alpine.LNX.2.00.1301132143310.1772@xoschi (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Dear Eldad, thanks a lot for the patch. Am Sonntag, den 13.01.2013, 22:00 +0100 schrieb Eldad Zack: […] > From 5817128d2761f60051b069d2bb31209c909b6a04 Mon Sep 17 00:00:00 2001 > From: Eldad Zack <eldad@fogrefinery.com> > Date: Sun, 13 Jan 2013 21:14:08 +0100 > Subject: [PATCH] drm/radeon: fix evergreen brightness control regression > > Commit 0ecebb9e0d14e9948e0b1529883a776758117d6f please paste the commit summary into the commit message as remembering hashes is difficult. > introduced a > regression, where using ACPI brightness control leads to a > hard system lock-up. > To resolve the issue, this patch moves the GUI_ACTIVE test > earlier, as it was before the commit. Please also add a link to this discussion on the list to the commit message. > Signed-off-by: Eldad Zack <eldad@fogrefinery.com> > --- > drivers/gpu/drm/radeon/evergreen.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) […] Thanks, Paul
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index 061fa0a..1392f99 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c @@ -2310,9 +2310,6 @@ static void evergreen_gpu_soft_reset_gfx(struct radeon_device *rdev) { u32 grbm_reset = 0; - if (!(RREG32(GRBM_STATUS) & GUI_ACTIVE)) - return; - dev_info(rdev->dev, " GRBM_STATUS = 0x%08X\n", RREG32(GRBM_STATUS)); dev_info(rdev->dev, " GRBM_STATUS_SE0 = 0x%08X\n", @@ -2404,6 +2401,9 @@ static int evergreen_gpu_soft_reset(struct radeon_device *rdev, u32 reset_mask) if (reset_mask == 0) return 0; + if (!(RREG32(GRBM_STATUS) & GUI_ACTIVE)) + return 0; + dev_info(rdev->dev, "GPU softreset: 0x%08X\n", reset_mask); evergreen_mc_stop(rdev, &save);