[ltp] Re: IDE hotswapping

Justus Piater linux-thinkpad@linux-thinkpad.org
Mon, 24 Apr 2006 13:52:40 +0200


"Jim Duchek" <jim.duchek@gmail.com> wrote on Sat, 22 Apr 2006 14:41:20
-0500:

> Try this (attached).

He-ho, it works! When I load the module (debug=3D3), it says among other
things:

  lt_hotswap: '\_SB.PCI0.PATA.PRIM.MAST' found (Hot-Swappable)

I "echo -n "PMST eject" > /proc/acpi/lths": It says

  lt_hotswap: Attempting to eject

and Tim Stadelmann's hotswap no longer sees my drive. When I then
take it out and insert it back in, I get=20

      ide0: BM-DMA at 0x1410-0x1417, BIOS settings: hda:DMA, hdb:pio
  hda: _NEC DVD+/-RW ND-6650A, ATAPI CD/DVD-ROM drive
  ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
  hda: ATAPI 24X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33)

and I can access the drive as usual.

lt_hotswap does not seem to take any note of my swappable battery, but
the system recognizes it without any problems.

I also booted with the battery in the bay. When I inserted the drive,
the syslog responded

      ide0: BM-DMA at 0x1410-0x1417 -- Error, ports in use.
  hda: _NEC DVD+/-RW ND-6650A, ATAPI CD/DVD-ROM drive
  ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
  hda: ATAPI 24X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33)
  Uniform CD-ROM driver Revision: 3.20

and everything seems to function as usual.  But what does the error
mean?  Should I test read performance to check that DMA is
operational? hdparm says so at least.

*BIG* thanks,
Justus

--=20
Justus H. Piater, Ph.D.         http://www.montefiore.ulg.ac.be/~piater/
Institut Montefiore, B28        Phone: +32-4-366-2279
Universit=C3=A9 de Li=C3=A8ge, Belgium    Fax:   +32-4-366-2620