Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Oct 2003 09:43:42 -0700
From:      "Kevin Oberman" <oberman@es.net>
To:        Hiroyuki Aizu <eyes@navi.org>
Cc:        current@freebsd.org
Subject:   Re: PATCH for ATAng 
Message-ID:  <20031016164343.159285D0C@ptavv.es.net>
In-Reply-To: Message from Hiroyuki Aizu <eyes@navi.org>  <20031016231747.4f0640e3.eyes@navi.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Date: Thu, 16 Oct 2003 23:17:47 +0900
> From: Hiroyuki Aizu <eyes@navi.org>
> Sender: owner-freebsd-current@freebsd.org
> 
> This is a multi-part message in MIME format.
> 
> --Multipart_Thu__16_Oct_2003_23_17_47_+0900_0865e200
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: 7bit
> 
> Hi.
> 
> The original ata_reset() lost ATA-master drive and remove main file system
> after suspend/resume. Of cource it occors panic!
> I think that the ata_reset() in ata-lowlevel.c is bogus and I can not
> understand the code. So I study ATA and rewrite ata_reset() completely.
> 
> New device detect algorism using ata command ATA_IDENTIFY_DEVICE and
> ATA_IDENTIFY_PACKET_DEVICE for judge ATA and ATAPI devices.
> 
> This patch works fine with my TOSHIBA Libretto L5. 
> But not yet test ATAPI devices and ATA-slave channel.
> Maybe there is need to adjust wait DELAY time.
> 
> Please test and replace ata_reset().
> 
> I hope this solve ATAng troubles.

I applied your patch and rebuilt my kernel on my ThinkPad T30 and the
behavior is changed, but not really improved.

Now, instead of hanging after "ata0: resetting devices .."
I now get:
ata0: Resetting devices ..
GEOM: destroy disk ad0 dp=0xc4945d70
ad0: WARNING - removed from configuration
done
ata1: resetting devices ..
ata1: check for dev existence:lsb=00 msb=00
ata1: check for dev existence:lsb=00 msb=00
done

I have only one ATA device which is master on ata0. (ad0).

Thanks for trying.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634



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