From owner-freebsd-current@FreeBSD.ORG Fri Jan 20 17:23:41 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F02D416A41F for ; Fri, 20 Jan 2006 17:23:41 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DDFA43D45 for ; Fri, 20 Jan 2006 17:23:41 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.13.4/8.13.4) with ESMTP id k0KHNecn024933 for ; Fri, 20 Jan 2006 09:23:40 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.13.4/8.13.1/Submit) id k0KHNe3G024932 for freebsd-current@freebsd.org; Fri, 20 Jan 2006 09:23:40 -0800 (PST) (envelope-from sgk) Date: Fri, 20 Jan 2006 09:23:40 -0800 From: Steve Kargl To: freebsd-current@freebsd.org Message-ID: <20060120172340.GA24889@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Stack backtrace for drm and malloc(M_WAITOK) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2006 17:23:42 -0000 With Jason's new malloc implementation, I had to install xorg-server-snap to get a functioning x server on a amd64 system. When the drm module is loaded, I'm see numerous backtraces in /var/log/messages. KDB: stack backtrace: kdb_backtrace() at kdb_backtrace+0x37 witness_warn() at witness_warn+0x2c1 uma_zalloc_arg() at uma_zalloc_arg+0x69 malloc() at malloc+0xf5 sysctl_add_oid() at sysctl_add_oid+0xa9 alloc_bounce_zone() at alloc_bounce_zone+0x418 bus_dma_tag_create() at bus_dma_tag_create+0x1ea drm_pci_alloc() at drm_pci_alloc+0xe6 drm_do_addbufs_pci() at drm_do_addbufs_pci+0x24b drm_addbufs_pci() at drm_addbufs_pci+0xeb drm_addbufs_ioctl() at drm_addbufs_ioctl+0x89 drm_ioctl() at drm_ioctl+0x35c giant_ioctl() at giant_ioctl+0x68 devfs_ioctl_f() at devfs_ioctl_f+0xc9 ioctl() at ioctl+0x436 syscall() at syscall+0x350 Xfast_syscall() at Xfast_syscall+0xa8 --- syscall (54, FreeBSD ELF64, ioctl), rip = 0x200cce29c, \ rsp = 0x7fffffffe868, rbp = 0x202bfa890 --- malloc(M_WAITOK) of "16", forcing M_NOWAIT with the following non-sleepable \ locks held: exclusive sleep mutex drmdma r = 0 (0xffffff02323b0130) locked @ \ /usr/src/sys/modules/drm/drm/../../../dev/drm/drm_bufs.c:846 -- Steve