[ltp] cannot unload and reload ultra bay

Dan Sawyer linux-thinkpad@linux-thinkpad.org
Sun, 17 Jun 2007 19:17:41 -0700


These are the ata modules loaded:

ata_generic             7940  0
ata_piix               14404  0
libata                108244  2 ata_generic,ata_piix
scsi_mod               93576  2 libata,sd_mod

- Dan

Michael Gaber wrote:
> wel if you use the right driver the ultrabay should be managed by the 
> scsi subsystem (whoich can also handle pata drives).
>
> hotplugging with the normal pata-driver was always crappy, not 
> reliable and not doable without losing dma
>
> Dan Sawyer schrieb:
>> followup:
>>
>> The thinkwiki ultrabay script references scsi devices. The swap is 
>> between a dvd and a ata disk. Neither are scsi. How should the script:
>>
>> |# echo 0 0 0 >  /sys/class/scsi_host/host1/scan
>>
>> and |
>>
>> |# echo 1 > /sys/class/scsi_device/1\:0\:0\:0/device/delete|
>> |# echo eject >  /proc/acpi/ibm/bay|
>>
>>
>> be changed to work with /dev/hdc?
>>
>> - Da n
>> Dan Sawyer wrote:
>>> Update,
>>>
>>> The system is FC6 with a 2.6.21.1 kernel
>>>
>>> Kernel config checked and ata_piix module loaded.
>>> Scripts in thinkpad wiki installed.
>>>
>>> acpi appears to be working
>>> the system beeps whenever the bay eject lever is released or closed.
>>>
>>> /proc/partition does not change
>>>
>>> The bay works successfully on boot.
>>>
>>> dmesg shows command errors attempting to read device
>>>
>>> - Dan
>>>
>>> Dan Sawyer wrote:
>>>> All,
>>>>
>>>> The system is a T41 running 2.6.21.1 kernel. The system does not 
>>>> unload devices from the ultra bay. I booted with a hard disk 
>>>> carrier in the bay. That worked as it should have.
>>>>
>>>> Then I performed an eject command and removed the drive. I then 
>>>> inserted a DVD drive. It was not recognized.
>>>>
>>>> How can this be done? What are the config parameters? What am I 
>>>> missing?
>>>>
>>>> Thanks - Dan