Re: hot-attach SATA drive



Andriy Gapon wrote:
on 30/03/2009 14:14 Alexander Motin said the following:
Andriy Gapon wrote:
Recently I tried to hot-attach a SATA drive to a running system.
Controller is ICH9 in AHCI mode. Physically/electronically everything went
smoothly, the drive spun-up. Then I tried to detach and re-attach all channels
with no devices on them using atacontrol. I did it 3 times to be sure, but no new
disk showed up. Then I finally rebooted, the disk showed up OK.

Question: was hot-attach expected to work? Is there a limitation in hardware or in
our driver?

Note: I attached the drive to a regular SATA port, not eSATA.
Which system version do you use? With recent CURRENT I have successfully
tested insert/remove SATA drives with ICH8, ICH8M and JMB363 AHCI
controllers channel attach/detach. Theoretically it is possible to
insert/remove SATA drives even without channel attach/detach. Remove
works fine, but such really hot insertion functionality is not
implemented properly now and so blocked.

It was stable/7, amd64.
Maybe there is a small subset of the changes in current that I could try in stable/7?

There is significant sources difference due to modularization work done
on CURRENT, so it is not so easy to directly compare sources or backport
something. I haven't actually looked on/tested 7-STABLE much.

--
Alexander Motin
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Help installing Fedora
    ... Each IDE/ATA channel can support either one or two devices. ... giving each device a designation as either master or slave, ... the reasons why drives don't always "play nicely together" has to do ...
    (comp.os.linux.setup)
  • Re: What is ata2 ?
    ... I count two hard disks on the primary channel of your first ATA ... controller, which is probably on the motherboard itself. ... since mixing CD-drives and HD drives on the ...
    (freebsd-questions)
  • Re: ATA_DMA errors - [ workaround for me ]
    ... Channel 1: 40 GB Seagate ... DMA_READ timed out errors for both drives, ... Since I had an older ATA-100 controller available, ... Result: No error messages. ...
    (freebsd-stable)
  • Re: To Richard U
    ... > to the primary channel. ... > I also have a Promise ATA-100 controller card in a PCI slot. ... Each of the channels support 2 drives. ...
    (microsoft.public.windowsxp.general)
  • Re: along these lines ..... disk placement
    ... >> laying around dedicated to wave recording. ... >> and on IDE 2 is the DVD and CD rom drives. ... the optical drives are both ATAPI with PIO mode 2 and UDMA-2 and now ... separate IDE channel. ...
    (comp.sys.ibm.pc.hardware.storage)