[ltp] Re: Hotswap driver (supports DMA, etc etc)
Peter Frühberger
linux-thinkpad@linux-thinkpad.org
Tue, 21 Feb 2006 23:57:24 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Jim Duchek schrieb:
> That looks good, actually. If you're just using a DVD drive and not
> actually 'mounting' anything, you may wish to use the auto_eject=1
> parameter. I'm not sure how the R40 works, but at least on my T22 there's a
> little switch that pops a lever out -- that also sends a signal that you
> want to eject the drive (but until you pull the lever, the drive stays fully
> connected). auto_eject=1 will unregister the IDE interface and eject the
> drive w/o any userspace help.
>
>
Summary:
insert kernel modul:
modprobe lt_hotswap auto_eject=1
kernel says:
Laptop ultrabay hotswap driver version 0.1.5
lt_hotswap: '\_SB.PCI0.ISA.EC0.BAT1' not found.
lt_hotswap: '\_SB.PCI.ISA.EC.BAT1' not found.
lt_hotswap: '\_SB.PCI0.ISA0.EC0.BAT1' not found.
lt_hotswap: '\_SB.PCI0.ISA.EC.BAT1' not found.
lt_hotswap: '\_SB.PCI0.AD4S.EC0.BAT1' not found.
lt_hotswap: '\_SB.PCI0.ICH3.EC0.BAT1' not found.
lt_hotswap: '\_SB.PCI0.LPC.EC.BAT1' found!
lt_hotswap: No object found -- installing our handler.
lt_hotswap: '\_SB.PCI.IDE.SECN.MAST' not found.
lt_hotswap: '\_SB.PCI0.IDE0.IDES.IDSM' not found.
lt_hotswap: '\_SB.PCI0.IDE0.SCND.MSTR' found!
lt_hotswap: Old handler found! 00000001 dff86434 00000000
lt_hotswap: '\_SB.PCI0.ISA.FDC.FDD0' not found.
seems to be good.
todesstern:/usr/src/patches/lt_hotswap-0.1.5# hdparm -i /dev/hdc
before eject:
(dma seems to be okay)
/dev/hdc:
Model=HL-DT-STCD-RW/DVD DRIVE GCC-4240N, FwRev=0214, SerialNo=
Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2
AdvancedPM=no
Drive conforms to: Unspecified: ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-4
ATA/ATAPI-5
* signifies the current active mode
pressing the little "thing" next to the drive:
lt_hotswap: Requesting IDE eject!
lt_hotswap: Attempting to eject
lt_hotswap: Attempting to eject
lt_hotswap: Attempting to eject
pulling out the drive
insert in again:
hdparm -i /dev/hdc
/dev/hdc: No such file or directory
Do I have to do something else to get it back?
thx for help
Peter
- --
Key-ID: 0x1A995A9B
keyserver: pgp.mit.edu
==============================================================
Fingerprint: 4606 DA19 EC2E 9A0B 0157 C81B DA07 CF63 1A99 5A9B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFD+5rU2gfPYxqZWpsRA6z5AKDwjzSn7wwqGp3KAXXs9CYKrc1NsACfUVYT
yTv8R5biSLYdka1j32TbRaU=
=5Gxh
-----END PGP SIGNATURE-----