From owner-freebsd-current@FreeBSD.ORG Sat Jan 8 14:55:39 2005 Return-Path: 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 5008316A4CE for ; Sat, 8 Jan 2005 14:55:39 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id E366943D54 for ; Sat, 8 Jan 2005 14:55:37 +0000 (GMT) (envelope-from scottl@freebsd.org) Received: from [192.168.254.11] (junior-wifi.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.12.11/8.12.10) with ESMTP id j08EwjJe030994; Sat, 8 Jan 2005 07:58:45 -0700 (MST) (envelope-from scottl@freebsd.org) Message-ID: <41DFF402.6090502@freebsd.org> Date: Sat, 08 Jan 2005 07:53:54 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040929 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pawel Worach References: <15219186.1102627583229.JavaMail.tomcat@pne-ps4-sn1> <41DF6366.9070900@telia.com> <41DF9613.80107@telia.com> In-Reply-To: <41DF9613.80107@telia.com> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=3.8 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pooker.samsco.org cc: freebsd-current@freebsd.org Subject: Re: panic: pmap_mapdev: Couldn't alloc kernel virtual memory on mpt_attach X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 08 Jan 2005 14:55:39 -0000 Pawel Worach wrote: > Pawel Worach wrote: > >> mpt0: soft reset >> mpt1: port 0x2700-0x27ff mem >> 0xf7fc0000-0xf7fcffff,0xf7fd0000-0xf7fdffff irq 28 at device 7.1 on pci8 >> mpt1: linking with peer (mpt0) >> mpt1: Reserved 0x10000 bytes for rid 0x14 type 3 at 0xf7fd0000 >> panic: pmap_mapdev: Couldn't alloc kernel virtual memory > > > After a quick binary search I found the commit that sunk the mpt > battleship. > 2004-11-21 04:30:00 UTC works > 2004-11-21 05:00:00 UTC panics > > Can KTR be used during the boot process, the busdma stuff seems pretty well > instrumented? > > scottl 2004-11-21 04:43:28 UTC > > FreeBSD src repository > > Modified files: > sys/i386/i386 busdma_machdep.c > Log: > MFC amd64: > Consolidate all of the bounce tests into the BUS_DMA_COULD_BOUNCE flag. > Allocate the bounce zone at either tag creation or map creation to help > avoid null-pointer derefs later on. Track total pages per zone so that > each zone can get a minimum allocation at tag creation time instead of > being defeated by mis-behaving tags that suck up the max amount. > > Revision Changes Path > 1.66 +45 -29 src/sys/i386/i386/busdma_machdep.c > Ok, I'll look at this, thanks. Scott