Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Apr 2004 17:57:07 +0200
From:      =?ISO-8859-1?Q?S=F8ren_Schmidt?= <sos@DeepCore.dk>
To:        Doug Ambrisko <ambrisko@ambrisko.com>
Cc:        current@freebsd.org
Subject:   Re: Intel SATA ICH5/5R 6300ESB support patches
Message-ID:  <406EDED3.90708@DeepCore.dk>
In-Reply-To: <200404030612.i336CRmA019492@ambrisko.com>
References:  <200404030612.i336CRmA019492@ambrisko.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Doug Ambrisko wrote:
> Here are some patches to deal with SATA devices causing errors and 
> resulting in wedged systems.  Deals with drives removed/powered down,
> drives powered up or plugged in and media errors.  We need to
> read the SATA registers and twiddle the port enable on device 
> departures.  If we don't then the ata code execution will result in
> a lock-up.
> 
> I put in a patch for geom for bio_taskqueue_remove.  Since ata code
> schedules bio_task it need to be cancelled when we abort and call
> biodone.  If we don't cancel this task then when the task is 
> run later we get a double free in UMA since we have cleaned up
> twice and called biodone twice for the same request.  It seems
> like in biodone we should clean up tasks there.  Suggestions
> appreciated.  This band-aids it for:
>      1)	dd if=/dev/ad2 of=/dev/null
>      2)	then power down the drive.
> 
> There are other issues on media recovery that I've hit but
> I'm going to do that separate to this HW support.  Promise
> patches to deal with SATA issues should be coming soon.
> 
> These are based on my -stable patches but are enhanced a little to
> deal with some other cases.
> 
> This should make -current systems more stable with SATA drives when
> something goes wrong with them.
> 
> I'd like to commit them to -current after a review.

Well, looks promising, but unfortunatly they collide with the WIP I have 
here in the lab, so I'd appreciate if you would not commit it right now.
I'll look into getting the confilicting areas merged into what I have 
here, then have you test it on the ICH5 as I dont have any of those 
around...

-- 
-Søren



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?406EDED3.90708>