From owner-freebsd-current@FreeBSD.ORG Mon Nov 29 09:37:42 2004 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 7472F16A4CE for ; Mon, 29 Nov 2004 09:37:42 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id E617E43D58 for ; Mon, 29 Nov 2004 09:37:41 +0000 (GMT) (envelope-from se@freebsd.org) Received: from [212.227.126.205] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CYhyW-0004wY-00; Mon, 29 Nov 2004 10:37:40 +0100 Received: from [80.132.243.41] (helo=Gatekeeper.FreeBSD.org) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1CYhyW-00062v-00; Mon, 29 Nov 2004 10:37:40 +0100 Received: from StefanEsser.FreeBSD.org (StefanEsser [192.168.0.10]) by Gatekeeper.FreeBSD.org (Postfix) with ESMTP id 47AC25F57; Mon, 29 Nov 2004 10:37:38 +0100 (CET) Received: by StefanEsser.FreeBSD.org (Postfix, from userid 200) id 550D22305; Mon, 29 Nov 2004 10:37:37 +0100 (CET) Date: Mon, 29 Nov 2004 10:37:35 +0100 From: Stefan =?iso-8859-1?Q?E=DFer?= To: Doug White Message-ID: <20041129093735.GA1734@StefanEsser.FreeBSD.org> Mail-Followup-To: Stefan =?iso-8859-1?Q?E=DFer?= , Doug White , Aaron Wallace , freebsd-current@freebsd.org References: <41A60006.3060708@uiuc.edu> <20041128220740.O40277@carver.gumbysoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041128220740.O40277@carver.gumbysoft.com> User-Agent: Mutt/1.5.6i X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:fa3fae9b6ca38d745862a668565919f6 cc: Aaron Wallace cc: freebsd-current@freebsd.org Subject: Re: bug report: AMD64, 5.3, sym driver 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: Mon, 29 Nov 2004 09:37:42 -0000 On 2004-11-28 22:20 -0800, Doug White wrote: > On Thu, 25 Nov 2004, Aaron Wallace wrote: > > > I believe that I've found a bug with the sym driver in AMD64. I don't > > have this problem with 5.3 under i386. I wasn't able to submit this > > report via web because the anti-spam code wasn't being recognized. > > > > The problem occurs during boot up / driver detect. I get the following > > messages in bootup which I've manually copied: > > > > sym0: <810a> port 0x9000-0x90ff mem 0xea094000-0xea0940ff irq 12 at > > device 7.0 on pci1 > > __sym_calloc2: failed to allocate HCB[4288] > > device_attach: sym0 attach returned 6 > > Oh yuck. The sym driver has its own memory allocator that caps allocations > at 1 page. Since PAGE_SIZE on amd64 is 4k, and the 64 bit resizing of the > structs puts the size over 4k, the struct will need some pruning. > (PAGE_SIZE is 8k on sparc64 (and alpha?) which is why this hasn't been > caught previously.) > > You will have to use a different controller until the driver can be fixed. Hmmm, does the NCR driver work? The sym driver adds full support for NCR/Symbios chips that offer an advanced command set (e.g. including indirect loads and stores) but the 53c810a does not implement those extra commands. If the NCR driver is affected, too, I'm willing to fix it (though I currently don't have access to any AMD64 equipment). The fix may also apply to sym, which was derived from the ncr driver, long ago. Regards, STefan