[PATCH] drm/radeon: fix typo in evergreen_mc_resume()

Alex Deucher alexdeucher at gmail.com
Wed Nov 7 06:32:38 PST 2012


On Mon, Nov 5, 2012 at 11:34 AM,  <alexdeucher at gmail.com> wrote:
> From: Alex Deucher <alexander.deucher at amd.com>
>
> Add missing index that may have led us to enabling
> more crtcs than necessary.
>
> May also fix:
> https://bugs.freedesktop.org/show_bug.cgi?id=56139
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> Cc: stable at vger.kernel.org

Looks like the stable cc got dropped when this patch got pulled.  The
original patch was backported to older kernels.

Alex

> ---
>  drivers/gpu/drm/radeon/evergreen.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c
> index 14313ad..af31f82 100644
> --- a/drivers/gpu/drm/radeon/evergreen.c
> +++ b/drivers/gpu/drm/radeon/evergreen.c
> @@ -1372,7 +1372,7 @@ void evergreen_mc_resume(struct radeon_device *rdev, struct evergreen_mc_save *s
>         WREG32(BIF_FB_EN, FB_READ_EN | FB_WRITE_EN);
>
>         for (i = 0; i < rdev->num_crtc; i++) {
> -               if (save->crtc_enabled) {
> +               if (save->crtc_enabled[i]) {
>                         if (ASIC_IS_DCE6(rdev)) {
>                                 tmp = RREG32(EVERGREEN_CRTC_BLANK_CONTROL + crtc_offsets[i]);
>                                 tmp |= EVERGREEN_CRTC_BLANK_DATA_EN;
> --
> 1.7.7.5
>


More information about the dri-devel mailing list