From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 11:09:54 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03C8A16A46B; Fri, 9 Nov 2007 11:09:54 +0000 (UTC) (envelope-from rik@inse.ru) Received: from mail.inse.ru (mail.inse.ru [144.206.128.1]) by mx1.freebsd.org (Postfix) with ESMTP id 9B01413C4B0; Fri, 9 Nov 2007 11:09:53 +0000 (UTC) (envelope-from rik@inse.ru) Received: from [127.0.0.1] (www.inse.ru [144.206.128.1]) by mail.inse.ru (Postfix) with ESMTP id 2E83033C0A; Fri, 9 Nov 2007 13:52:59 +0300 (MSK) Message-ID: <47343F7C.4050709@inse.ru> Date: Fri, 09 Nov 2007 14:07:40 +0300 From: Roman Kurakin User-Agent: Thunderbird 1.5.0.12 (X11/20070719) MIME-Version: 1.0 To: Alexander Sabourenkov References: <472A548B.50406@lxnt.info> <472B9EA1.6060205@deepcore.dk> <472CEFDD.2020103@lxnt.info> In-Reply-To: <472CEFDD.2020103@lxnt.info> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, "Matthew D. Fuller" , Thierry Herbelot , =?UTF-8?B?U8O4cmVuIFNjaG1pZHQ=?= , sos@freebsd.org Subject: Re: Patch RFC: Promise SATA300 TX4 hardware bug workaround. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 11:09:54 -0000 By the way, is there any chance to get RAID5 working with this controller? rik Alexander Sabourenkov wrote: > Arno J. Klaassen wrote: > >> Rather than the marginal HW part, it seems, for me, closely related to >> MB/BIOS (as well (Alexander apperently has about the same setup as I >> have for this test)): >> >> > > [...] > > >> I vaguely remember from another PR that the Promise card does >> something with PCI-bursting which fbsd does not detect and/or >> handle correctly (and beyond my simple skills as dumb tester, but >> maybe the linux-sources contain a clue about that as well). >> >> > > Analysis of chip initialization in vendor-supplied, Linux and FreeBSD > drivers shows that FreeBSD's one: > - does not enable something called 'BMR_BURST', > - performs hotplug init in one write (instead of two read-modify-writes ), > - does an extra write (offset 0x54) which is not done in other drivers. > > Analysis text: http://lxnt.info/tx4/chipinit.text > > Patch with ported chipinit (dangerous to use with anything from Promise > other than sata300 tx4 !!): > http://lxnt.info/tx4/freebsd/chipinit.patch (cumulative) > http://lxnt.info/tx4/freebsd/ata-chipset.c+chipinit (patched source) > > Note two things: > 1. I have not compiled or tested this patch. Please do. > 2. I may have missed this bug because I'm frequently rebooting between > Linux and FreeBSD, and what Linux driver initialized may have lasted the > reboots. > > >