BUG: unable to handle kernel paging request on 2.6.33-rc2

2010-01-05 Thread Xiaotian Feng
Hi: When I perform echo mem /sys/power/state, I got BUG on rs600_gart_set_page, then suspend hangs. I don't have a camera to log the outputs, the call trace are: rs600_gart_set_page+0x31 radeon_gart_bind radeon_ttm_backend ttm_tt_bind ttm_bo_handle_move_mem

[PATCH 2/4] gpu/drm: fix memory leak in drm_fill_in_dev fail path

2009-07-31 Thread Xiaotian Feng
In drm_fill_in_dev, drm_ht_create/drm_agp_init/drm_gem_init all allocate memories. but in the fail path, those memory is not freed, then memory leaks is resulted. Signed-off-by: Xiaotian Feng df...@redhat.com --- drivers/gpu/drm/drm_stub.c | 25 - 1 files changed, 20

[PATCH 4/4] gpu/drm: fix memory leak if dev-driver-load fails

2009-07-31 Thread Xiaotian Feng
Noticed a bundle of memory leaks after radeon_driver_load_kms fails. After dev-driver-load failes, drm_get_dev doesn't free memories allocated from drm_fill_in_dev. Signed-off-by: Xiaotian Feng df...@redhat.com --- drivers/gpu/drm/drm_stub.c | 14 -- 1 files changed, 8 insertions

[PATCH 0/4] gpu/drm: fix memory leak when radeon_driver_load_kms fails

2009-07-31 Thread Xiaotian Feng
I've noticed a bundle of kmemleak reports on drm. When I look into dmesg, I found: [drm:radeon_driver_load_kms] *ERROR* Failed to initialize radeon, disabling IOCTL. In radeon_driver_load_kms, if radeon_device_init fails, rdev is not freed. Then radeon_driver_load_kms as dev-driver-load, if load

[PATCH 1/4] gpu/drm/radeon: fix memory leak in radeon_driver_load_kms

2009-07-31 Thread Xiaotian Feng
[radeon] [811f8779] local_pci_probe+0x17/0x1b [8105ffbb] do_work_for_cpu+0x18/0x2a [81063c38] kthread+0x8a/0x92 [81012cba] child_rip+0xa/0x20 [] 0x Signed-off-by: Xiaotian Feng df...@redhat.com --- drivers/gpu/drm

[PATCH 3/4] gpu/drm: introduce drm_cleanup_dev to cleanup memories allocated from drm_fill_in_dev

2009-07-31 Thread Xiaotian Feng
drm_fill_in_dev may allocate memories for agp/gem/ht, introduce new function drm_cleanup_dev(derived from drm_put_dev) to cleanup what drm_fill_in_dev. Signed-off-by: Xiaotian Feng df...@redhat.com --- drivers/gpu/drm/drm_stub.c | 47 +-- 1 files changed

[PATCH] drm/radeon/kms: fix memory leak in radeon_driver_load_kms

2009-07-29 Thread Xiaotian Feng
[8105ffbb] do_work_for_cpu+0x18/0x2a [81063c38] kthread+0x8a/0x92 [81012cba] child_rip+0xa/0x20 [] 0x Signed-off-by: Xiaotian Feng df...@redhat.com --- drivers/gpu/drm/radeon/radeon_kms.c |2 ++ 1 files changed, 2 insertions(+), 0