From owner-freebsd-current@FreeBSD.ORG Mon Nov 28 17:20:34 2005 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 422AD16A41F; Mon, 28 Nov 2005 17:20:34 +0000 (GMT) (envelope-from sos@deepcore.dk) Received: from spider.deepcore.dk (cpe.atm2-0-53484.0x50a6c9a6.abnxx9.customer.tele.dk [80.166.201.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89BE243D5D; Mon, 28 Nov 2005 17:20:33 +0000 (GMT) (envelope-from sos@deepcore.dk) Received: from [194.192.25.142] (spider.deepcore.dk [194.192.25.142]) by spider.deepcore.dk (8.13.4/8.13.4) with ESMTP id jASHKW8s026277; Mon, 28 Nov 2005 18:20:32 +0100 (CET) (envelope-from sos@deepcore.dk) Message-ID: <438B3C5F.2060500@deepcore.dk> Date: Mon, 28 Nov 2005 18:20:31 +0100 From: =?UTF-8?B?U8O4cmVuIFNjaG1pZHQ=?= User-Agent: Mozilla Thunderbird 1.0.6 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Scott Long References: <438ACA94.6090606@fsn.hu> <438B12EA.6030100@deepcore.dk> <438B3883.7090205@samsco.org> In-Reply-To: <438B3883.7090205@samsco.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-mail-scanned: by DeepCore Virus & Spam killer v1.16 Cc: Attila Nagy , freebsd-current@FreeBSD.ORG, Scott Long Subject: Re: DMA failures on AMD64 with 4 GB RAM 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: Mon, 28 Nov 2005 17:20:34 -0000 Scott Long wrote: > Søren Schmidt wrote: > >> Attila Nagy wrote: >> >>> Hello, >>> >>> There is a problem with recent ATA drivers on (at least) AMD64 with 4 >>> GB of RAM, which can be triggered by synchronizing a geom mirror >>> provider to another one (or generally a bigger disk I/O, I guess). >>> >>> The machine dies instantly with the following: >>> GEOM_MIRROR: Device hars: rebuilding provider ad6. >>> ad6: setting up DMA failed >>> ad6: setting up DMA failed >>> >>> This is true either on RELENG_6 and on HEAD as of today. >>> >>> There are two workarounds: >>> - use the ata driver from RELENG_6 which is not older than 2005.10.08 >>> - set hw.physmem smaller than 4G >>> >>> Are there any chances to resolve this issue? >>> >>> Thank you. >>> >>> ps: there was some discussion about this: >>> http://marc.theaimsgroup.com/?l=freebsd-amd64&m=113034973432742&w=2 >>> where Søren said it might be busdma, not the ata driver and Scott >>> promised to look into that. >> >> The resolution was that busdma doesn't work as advertised in the man >> page, and that scottl would look into it > > Well, the more accurate statement is that the manpage is not the > authoritative design document, but rather a poorly adapted > representation of how the subsystem might work on NetBSD =-) So > busdma needs to be fixed to provide what the drivers need, and > the manpage needs to be fixed to reflect how things actually work. > > In any case ATA still doesn't come anywhere close to conforming to > the busdma API, and I doubt that me rewriting the manpage will fix > that. Hmm, thats not how I recall the conclusion, but anyway.. Please mark ATA as broken for > 4G of memory then, I have no immediate plans to rework the entire logic to bend over backwards for busdma's callback centric world just yet. -Søren