From owner-freebsd-current@FreeBSD.ORG Mon Nov 28 17:04:24 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 69E9916A51E; Mon, 28 Nov 2005 17:04:24 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2BE043D67; Mon, 28 Nov 2005 17:04:18 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.14] (imini.samsco.home [192.168.254.14]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id jASH43OU075630; Mon, 28 Nov 2005 10:04:04 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <438B3883.7090205@samsco.org> Date: Mon, 28 Nov 2005 10:04:03 -0700 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.7) Gecko/20050416 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?UTF-8?B?U8O4cmVuIFNjaG1pZHQ=?= References: <438ACA94.6090606@fsn.hu> <438B12EA.6030100@deepcore.dk> In-Reply-To: <438B12EA.6030100@deepcore.dk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on pooker.samsco.org Cc: Attila Nagy , freebsd-current@FreeBSD.ORG, Scott Long , =?UTF-8?B?U8O4cmVuIFNjaG1pZHQ=?= 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:04:24 -0000 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. > > -Søren 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. Scott