On Wed,  4 Nov 2009 20:03:19 +0100
Jerome Glisse <jgli...@redhat.com> wrote:

> Just do nothings crct_set_base i call with no FB.
> 

hmpf.  It's obvious that you spent hours carefully describing this
patch for us.

> diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c 
> b/drivers/gpu/drm/radeon/atombios_crtc.c
> index c15287a..f5987af 100644
> --- a/drivers/gpu/drm/radeon/atombios_crtc.c
> +++ b/drivers/gpu/drm/radeon/atombios_crtc.c
> @@ -578,8 +578,11 @@ int atombios_crtc_set_base(struct drm_crtc *crtc, int x, 
> int y,
>       uint64_t fb_location;
>       uint32_t fb_format, fb_pitch_pixels, tiling_flags;
>  
> -     if (!crtc->fb)
> -             return -EINVAL;
> +     /* no fb bound */
> +     if (!crtc->fb) {
> +             DRM_DEBUG("No FB bound\n");
> +             return 0;
> +     }
>  
>       radeon_fb = to_radeon_framebuffer(crtc->fb);
>  
> diff --git a/drivers/gpu/drm/radeon/radeon_legacy_crtc.c 
> b/drivers/gpu/drm/radeon/radeon_legacy_crtc.c
> index 8d0b7aa..5794364 100644
> --- a/drivers/gpu/drm/radeon/radeon_legacy_crtc.c
> +++ b/drivers/gpu/drm/radeon/radeon_legacy_crtc.c
> @@ -408,6 +408,11 @@ int radeon_crtc_set_base(struct drm_crtc *crtc, int x, 
> int y,
>       uint32_t gen_cntl_reg, gen_cntl_val;
>  
>       DRM_DEBUG("\n");
> +     /* no fb bound */
> +     if (!crtc->fb) {
> +             DRM_DEBUG("No FB bound\n");
> +             return 0;
> +     }
>  
>       radeon_fb = to_radeon_framebuffer(crtc->fb);

Under which circumstances does this oops occur?  What userspace actions?

See, curious minds want to know whether this patch is needed in 2.6.33,
2.6.32, 2.6.31.x, 2.6.30,x, etc, etc.  Often we rely upon the
originator to provide us with enough information to make that decision.
You didn't do this.  Please always do so.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to