From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Subject: Re: [stable] [PATCH] drm/radeon/kms: fix possible sigbus in evergreen accel code Date: Tue, 19 Oct 2010 14:00:05 -0700 Message-ID: <20101019210005.GD5813@kroah.com> References: <1286900431-7497-1-git-send-email-alexdeucher@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from coco.kroah.org (kroah.org [198.145.64.141]) by gabe.freedesktop.org (Postfix) with ESMTP id B6FEB9E733 for ; Tue, 19 Oct 2010 14:09:10 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1286900431-7497-1-git-send-email-alexdeucher@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Alex Deucher Cc: stable@kernel.org, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org I need the ack from the DRM maintainer before I can add a patch to the stable tree that is not upstream in Linus's tree, as it is a major exception to the rule. David? On Tue, Oct 12, 2010 at 12:20:31PM -0400, Alex Deucher wrote: > 2.6.35 and 2.6.36 do not contain blit support for evergreen > asics so if they use unmappable vram, you can end up with an > unreachable buffer address. This should not be applied to drm-next > as that tree already contains evergreen blit support. This should > only be applied to the 2.6.35 and 2.6.36 stable trees. > > Fixes: > https://bugs.freedesktop.org/show_bug.cgi?id=30188 > > Signed-off-by: Alex Deucher > Cc: stable@kernel.org > --- > drivers/gpu/drm/radeon/evergreen.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c > index 2117cf5..f8c0f15 100644 > --- a/drivers/gpu/drm/radeon/evergreen.c > +++ b/drivers/gpu/drm/radeon/evergreen.c > @@ -1480,6 +1480,8 @@ int evergreen_mc_init(struct radeon_device *rdev) > rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE) * 1024 * 1024; > rdev->mc.real_vram_size = RREG32(CONFIG_MEMSIZE) * 1024 * 1024; > rdev->mc.visible_vram_size = rdev->mc.aper_size; > + /* limit it to the aperture size for now as there is no blit support in 2.6.35/36*/ > + rdev->mc.real_vram_size = rdev->mc.visible_vram_size; > r600_vram_gtt_location(rdev, &rdev->mc); > radeon_update_bandwidth_info(rdev); > > -- > 1.7.1.1 > > _______________________________________________ > stable mailing list > stable@linux.kernel.org > http://linux.kernel.org/mailman/listinfo/stable