lkml.org 
[lkml]   [2010]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[77/91] drm/radeon/kms: fix GTT/VRAM overlapping test
    2.6.34-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Jerome Glisse <jglisse@redhat.com>

    commit 2cbeb4efc2b9739fe6019b613ae658bd2119a3eb upstream.

    GTT/VRAM overlapping test had a typo which leaded to not
    detecting case when vram_end > gtt_end. This patch fix the
    logic and should fix #16574

    Signed-off-by: Jerome Glisse <jglisse@redhat.com>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/gpu/drm/radeon/radeon_device.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/gpu/drm/radeon/radeon_device.c
    +++ b/drivers/gpu/drm/radeon/radeon_device.c
    @@ -199,7 +199,7 @@ void radeon_vram_location(struct radeon_
    mc->mc_vram_size = mc->aper_size;
    }
    mc->vram_end = mc->vram_start + mc->mc_vram_size - 1;
    - if (rdev->flags & RADEON_IS_AGP && mc->vram_end > mc->gtt_start && mc->vram_end <= mc->gtt_end) {
    + if (rdev->flags & RADEON_IS_AGP && mc->vram_end > mc->gtt_start && mc->vram_start <= mc->gtt_end) {
    dev_warn(rdev->dev, "limiting VRAM to PCI aperture size\n");
    mc->real_vram_size = mc->aper_size;
    mc->mc_vram_size = mc->aper_size;



    \
     
     \ /
      Last update: 2010-08-25 01:31    [W:0.020 / U:30.212 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site