From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 31708] kernel oops when loading large images with firefox Date: Thu, 18 Nov 2010 05:07:37 -0800 (PST) Message-ID: <20101118130737.D524313004E@annarchy.freedesktop.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from annarchy.freedesktop.org (annarchy.freedesktop.org [131.252.210.176]) by gabe.freedesktop.org (Postfix) with ESMTP id EFA3EA0CFD for ; Thu, 18 Nov 2010 05:07:37 -0800 (PST) In-Reply-To: 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: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org https://bugs.freedesktop.org/show_bug.cgi?id=31708 --- Comment #2 from Manuel Lauss 2010-11-18 05:07:36 PST --- I applied the following patch to the kernel; with it firefox loads and displays the image. diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 3ca77dc..e67831c 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -1119,8 +1119,13 @@ EXPORT_SYMBOL(ttm_bo_validate); int ttm_bo_check_placement(struct ttm_buffer_object *bo, struct ttm_placement *placement) { - BUG_ON((placement->fpfn || placement->lpfn) && - (bo->mem.num_pages > (placement->lpfn - placement->fpfn))); + if (((placement->fpfn || placement->lpfn) && + (bo->mem.num_pages > (placement->lpfn - placement->fpfn)))) { + printk(KERN_ALERT "bo->mem.num_pages = %d, placement->lpfn =%d, placement->fpfn = %d\n", + bo->mem.num_pages, placement->lpfn, placement->fpfn); + WARN_ON(1); + return -ENOMEM; + } return 0; } I get tons of warnings like these, but otherwise system seems fine: bo->mem.num_pages = 16984, placement->lpfn =16384, placement->fpfn = 0 ------------[ cut here ]------------ WARNING: at /usr/src/linux-2.6.git/drivers/gpu/drm/ttm/ttm_bo.c:1126 ttm_bo_check_placement+0x50/0x60() Hardware name: VGN-A197XP(DE) Modules linked in: ipw2200 libipw Pid: 2354, comm: X Not tainted 2.6.37-rc2-00039-g3385e32-dirty #1 Call Trace: [] ? warn_slowpath_common+0x78/0xb0 [] ? ttm_bo_check_placement+0x50/0x60 [] ? ttm_bo_check_placement+0x50/0x60 [] ? radeon_ttm_bo_destroy+0x0/0x90 [] ? warn_slowpath_null+0x19/0x20 [] ? ttm_bo_check_placement+0x50/0x60 [] ? ttm_bo_init+0x16d/0x350 [] ? radeon_bo_create+0xe0/0x1b0 [] ? radeon_ttm_bo_destroy+0x0/0x90 [] ? radeon_gem_object_create+0x78/0x100 [] ? radeon_gem_create_ioctl+0x62/0xd0 [] ? drm_ioctl+0x19e/0x440 [] ? radeon_gem_create_ioctl+0x0/0xd0 [] ? do_sync_read+0xa5/0xe0 [] ? ktime_get+0x59/0x100 [] ? drm_ioctl+0x0/0x440 [] ? do_vfs_ioctl+0x9c/0x700 [] ? vfs_read+0x104/0x150 [] ? sys_ioctl+0x3d/0x70 [] ? sysenter_do_call+0x12/0x26 ---[ end trace 7b2edf2d7bc65699 ]--- bo->mem.num_pages = 16984, placement->lpfn =16384, placement->fpfn = 0 ------------[ cut here ]------------ WARNING: at /usr/src/linux-2.6.git/drivers/gpu/drm/ttm/ttm_bo.c:1126 ttm_bo_check_placement+0x50/0x60() Hardware name: VGN-A197XP(DE) Modules linked in: ipw2200 libipw Pid: 2354, comm: X Tainted: G W 2.6.37-rc2-00039-g3385e32-dirty #1 Call Trace: [] ? warn_slowpath_common+0x78/0xb0 [] ? ttm_bo_check_placement+0x50/0x60 [] ? ttm_bo_check_placement+0x50/0x60 [] ? radeon_ttm_bo_destroy+0x0/0x90 [] ? warn_slowpath_null+0x19/0x20 [] ? ttm_bo_check_placement+0x50/0x60 [] ? ttm_bo_init+0x16d/0x350 [] ? radeon_bo_create+0xe0/0x1b0 [] ? radeon_ttm_bo_destroy+0x0/0x90 [] ? radeon_gem_object_create+0x78/0x100 [] ? radeon_gem_create_ioctl+0x62/0xd0 [] ? drm_ioctl+0x19e/0x440 [] ? radeon_gem_create_ioctl+0x0/0xd0 [] ? do_sync_read+0xa5/0xe0 [] ? ktime_get+0x59/0x100 [] ? drm_ioctl+0x0/0x440 [] ? do_vfs_ioctl+0x9c/0x700 [] ? vfs_read+0x104/0x150 [] ? sys_ioctl+0x3d/0x70 [] ? sysenter_do_call+0x12/0x26 ---[ end trace 7b2edf2d7bc6569a ]--- radeon 0000:01:00.0: object_init failed for (69566464, 0x00000006) [drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (69566464, 4, 4096, -12) -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.