Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Mar 2002 01:06:33 -0600 (CST)
From:      "Ryan K. Losh" <rklosh@rkl.org>
To:        freebsd-stable@FreeBSD.ORG
Cc:        sos@freebsd.dk
Subject:   Re: Request for testers of new ATA driver patches
Message-ID:  <20020308.010633.74747065.rklosh@rkl.org>
In-Reply-To: <20020307052255.E996EBA03@i8k.babbleon.org>
References:  <20020306044600.EF828BA03@i8k.babbleon.org> <20020306.230648.74753456.rklosh@rkl.org> <20020307052255.E996EBA03@i8k.babbleon.org>

next in thread | previous in thread | raw e-mail | index | archive | help
From: "Brian T.Schellenberger" <bts@babbleon.org>
Subject: Re: Request for testers of new ATA driver patches
Date: Thu, 7 Mar 2002 00:22:55 -0500

> | > My hot-swappable secondary hard drive is now hot-swappable under FreeBSD!
> |
> | Mine doesn't seem to be.  I've got a HP Pavilion ZU-1175 laptop that
> | physically is two separate parts: a docking station with a dual
> | channel (ata2 and ata3) PCI IDE controller and 2 IDE drives (separate
> | DVD and CDRW drives).  The only time FreeBSD recognizes these drives
> | is when I boot the computer ON THE DOCKING STATION.  It looks like the
> | IDE controller is a separate PCI device which is "hot-plugged"
> | whenever docking/undocking the laptop.  Any idea if hot-plug PCI
> | devices are supported in FreeBSD?
> 
> You understand that it's only semi-hot, right?  Or at least that it's not 
> automatically hot-swappable . . .
> 
> You have to do an 
> 
> atacontrol reinit 
> 
> after insert or removing, and of course you have to mount & umount as usual, 
> and in the sensible order; eg, to dock:
> 
> (physically dock)
> atacontrol reinit 1
> mount /whatever/is/on/the/second/channel
> 
>
> To undock:
> umount /whatever/I/mounted/before
> (physically undock)
> atacontrol reinit 1
> 

Yes, I understand this.  However, if I boot the computer undocked,
doing "atacontrol list" would only show ata0 and ata1 controllers and
their corresponding master/slave drives.  I would then dock the
computer and type "atacontrol list" and it would continue only show
ata0 and ata1.  I tried typing atacontrol reinit 2 and it responded
that ata2 didn't exist.

If I booted the computer docked, "atacontrol list" would list ata[0-3], and
doing atacontrol reinit 2 would function as advertised.  However, I
would undock the computer, and type atacontrol list, and it would
STILL list ata[0-3] EVEN THOUGH ata2 and ata3 were left behind on the
port replicator.

I assume the patched IDE subsystem behaves in the following way:

  The IDE controllers (aka ata0, ata1, etc) are enumerated and
  initialized at boot time.

  The IDE devices are probed and initialized at boot time.

  atacontrol is able to make changes to the list of DEVICES after
  hard disk/CDROM/Tape drive/etc is physically added or removed.

  atacontrol is not able to re-scan the (PCI or whatever) bus to
  detect CONTROLLER additions/removals

Is my understanding of the patch correct, or does it have the ability
to "play nicely" with my hardware?

I'd give more detailed output/error messages, but I've already
restored the old backup since the patched version didn't seem to
recover from suspend with any amount of stability.  I'd be happy to
reinstall the patch and provide any information necessary to assist
the developer...


Ryan

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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