Hi,
I get an oops with Linux 2.6.32-rc1 when enabling Radeon KMS with a
Radeon HD 4350 card.
The oops is triggered by a custom version of wayland.
I have a photo of the screen, which indicates that the crash is in:
- radeon_get_object_pin+0x7
- atombios_crtc_set_base+0x74
- drm_crtc_helper_set_config+0x75c
- drm_mode_setcrtc+0x170
- drm_ioctl+0x17d
The below patch "fix" the oops, but is naturally not the solution.
dmesg verifies that both printk()s are invoked.
Have a nice day
--
Yuval Fledel
diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c
b/drivers/gpu/drm/radeon/atombios_crtc.c
index 6a01592..be60553 100644
--- a/drivers/gpu/drm/radeon/atombios_crtc.c
+++ b/drivers/gpu/drm/radeon/atombios_crtc.c
@@ -602,6 +602,9 @@ radeon_framebuffer_create(struct drm_device *dev,
}
drm_framebuffer_init(dev, &radeon_fb->base, &radeon_fb_funcs);
drm_helper_mode_fill_fb_struct(&radeon_fb->base, mode_cmd);
+ if (!obj) {
+ printk(KERN_WARNING "radeon_framebuffer_create: no obj\n");
+ }
radeon_fb->obj = obj;
return &radeon_fb->base;
}
@@ -483,6 +483,12 @@ int atombios_crtc_set_base(struct drm_crtc *crtc,
obj = radeon_fb->obj;
obj_priv = obj->driver_private;
+ if (!obj) {
+ printk(KERN_ERR "set_base on no obj\n");
+ return -EINVAL;
+ }
+
if (radeon_gem_object_pin(obj, RADEON_GEM_DOMAIN_VRAM, &fb_location)) {
return -EINVAL;
}
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel