From owner-freebsd-sparc64@FreeBSD.ORG Wed Aug 18 08:48:05 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90B9E16A4CE; Wed, 18 Aug 2004 08:48:05 +0000 (GMT) Received: from ns.kt-is.co.kr (ns.kt-is.co.kr [211.218.149.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id F133C43D48; Wed, 18 Aug 2004 08:48:04 +0000 (GMT) (envelope-from yongari@kt-is.co.kr) Received: from michelle.kt-is.co.kr (ns2.kt-is.co.kr [220.76.118.193]) (authenticated bits=128) by ns.kt-is.co.kr (8.12.10/8.12.10) with ESMTP id i7I8kJAh029948 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 18 Aug 2004 17:46:19 +0900 (KST) Received: from michelle.kt-is.co.kr (localhost.kt-is.co.kr [127.0.0.1]) by michelle.kt-is.co.kr (8.12.10/8.12.10) with ESMTP id i7I8laTv008998 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Aug 2004 17:47:36 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Received: (from yongari@localhost) by michelle.kt-is.co.kr (8.12.10/8.12.10/Submit) id i7I8lZr4008997; Wed, 18 Aug 2004 17:47:35 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Date: Wed, 18 Aug 2004 17:47:35 +0900 From: Pyun YongHyeon To: =?iso-8859-1?Q?S=F8ren?= Schmidt Message-ID: <20040818084735.GA8836@kt-is.co.kr> References: <200408170909.i7H99taL082002@postoffice.e-easy.com.au> <20040817115518.W68839@ury.york.ac.uk> <20040818010554.GB5194@electra.cse.Buffalo.EDU> <20040818052628.GA8375@kt-is.co.kr> <20040818072641.GB8375@kt-is.co.kr> <20040818074217.GC8375@kt-is.co.kr> <41230DB2.60900@DeepCore.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <41230DB2.60900@DeepCore.dk> User-Agent: Mutt/1.4.1i X-Filter-Version: 1.11a (ns.kt-is.co.kr) cc: sos@FreeBSD.ORG cc: Ken Smith cc: marius@FreeBSD.ORG cc: sparc64@FreeBSD.ORG Subject: Re: Insta-panic with recent -current on Ultra10 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: yongari@kt-is.co.kr List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Aug 2004 08:48:05 -0000 On Wed, Aug 18, 2004 at 10:05:06AM +0200, Søren Schmidt wrote: > Could I have you try this patch and see if that fixes things. The args Unfortunately, it still paniced at the same location. > to busdma is not really correct as is. However if this still doesn't > work, either busdma is at fault for not giving us what we ask for or I > dont have the correct info on DMA restrictions on the sparc.... > Neither do I. Marius? > Maybe you could instument that fixup loop, if it still fails, so we > could tell what sizes etc gets delivered from busdma ? > I'll try that tomorrow. > -Søren > > laptop> cvs diff -u > cvs diff: Diffing . > Index: ata-dma.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/ata/ata-dma.c,v > retrieving revision 1.129 > diff -u -r1.129 ata-dma.c > --- ata-dma.c 13 Aug 2004 08:14:27 -0000 1.129 > +++ ata-dma.c 18 Aug 2004 07:59:29 -0000 > @@ -95,10 +95,10 @@ > { > struct ata_dc_cb_args ccba; > > - if (bus_dma_tag_create(NULL, 1, 0, > + if (bus_dma_tag_create(NULL, ch->dma->alignment, 0, > BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, > - NULL, NULL, MAXCTLDMASZ, > - ATA_DMA_ENTRIES, BUS_SPACE_MAXSIZE_32BIT, > + NULL, NULL, 16*1024*1024, > + ATA_DMA_ENTRIES, ch->dma->max_iosize, > BUS_DMA_ALLOCNOW, NULL, NULL, &ch->dma->dmatag)) > goto error; > > @@ -110,8 +110,8 @@ > > if > (bus_dma_tag_create(ch->dma->dmatag,ch->dma->alignment,ch->dma->boundary, > BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, > - NULL, NULL, ch->dma->max_iosize, > - ATA_DMA_ENTRIES, ch->dma->boundary, > + NULL, NULL, 16*1024*1024, > + ATA_DMA_ENTRIES, ch->dma->max_iosize, > BUS_DMA_ALLOCNOW, NULL, NULL, > &ch->dma->ddmatag)) > goto error; > > > > Thanks. Regards, Pyun YongHyeon -- Pyun YongHyeon