[ltp] Re: Hotswap driver (supports DMA, etc etc)

Jim Duchek linux-thinkpad@linux-thinkpad.org
Tue, 21 Feb 2006 16:36:32 -0600


------=_Part_697_5994408.1140561392454
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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=3D1
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 full=
y
connected).  auto_eject=3D1 will unregister the IDE interface and eject the
drive w/o any userspace help.


Jim

On 21/02/06, Peter Fr=FChberger <peter.fruehberger@gmail.com> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: RIPEMD160
>
> Hi Jim,
> Jim Duchek schrieb:
> > Okay, my host came back up:
> >
> > http://www.churchofjim.org/sources/lt_hotswap-0.1.5.tar.gz
> >
> > YMMV.  Enjoy, and let me know, it does still need some work.
> >
> > Jim
> >
> >
> > On 21/02/06, Jim Duchek <jim.duchek@gmail.com> wrote:
> >
> >>Hi.  I got bored last night (freakin' business trips) and wrote an ACPI
> >>driver to handle hotswapping of IDE drives and batteries (yeah, I know
> >>batteries don't need much support, but was annoying to not be able to
> see my
> >>ultrabay battery if I didn't boot with it in).
> >>
> >>It works well on my T22, but I'd like some adventurous souls to give it
> a
> >>go as well and see if it's allright.  It should work on just about
> anything,
> >>not just Thinkpads, but I'm not sure.  The ACPI namespace stuff needs t=
o
> be
> >>hardcoded in, I took the secondary master namespaces from the ibm-acpi
> >>module and added the one I saw on my home (desktop) machine...  so it
> ought
> >>to at least work for all thinkpads.  I'm sure other systems would need
> >>additions, though.
> >>
> >>I don't want to attach a tarball to this list (even though it's only a
> >>little over 10k) and my webspace is down right now...  Be happy to emai=
l
> it
> >>to anyone in the time being, I'd certainly like to see it tested a bit.
> >>
> >>Thanks,
> >>Jim
> >
> >
>
> just tried your tarball, compiling works fine, but inserting results in:
> 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 dff8640c 00000000
> lt_hotswap: '\_SB.PCI0.ISA.FDC.FDD0' not found.
>
> My Hardware is an IBM R40, I do not use an ultrabay battery, just wanted
> to hotswap my dvd drive
>
> LG
> Peter
>
>
> - --
>                     Key-ID:     0x1A995A9B
>                     keyserver: pgp.mit.edu
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> 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+5L+2gfPYxqZWpsRA6KGAJ9BJ5pIk41KeMdysInIg5/7+ApCkACgsZEc
> Am6aQR9vuftsfVjTpmH/TjA=3D
> =3DWxj6
> -----END PGP SIGNATURE-----
> --
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
>

------=_Part_697_5994408.1140561392454
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

That looks good, actually.&nbsp; If you're just using a DVD drive and not a=
ctually 'mounting' anything, you may wish to use the auto_eject=3D1 paramet=
er.&nbsp; 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 wa=
nt to eject the drive (but until you pull the lever, the drive stays fully =
connected).&nbsp; auto_eject=3D1 will unregister the IDE interface and ejec=
t the drive w/o any userspace help.
<br><br><br>Jim<br><br><div><span class=3D"gmail_quote">On 21/02/06, <b cla=
ss=3D"gmail_sendername">Peter Fr=FChberger</b> &lt;<a href=3D"mailto:peter.=
fruehberger@gmail.com">peter.fruehberger@gmail.com</a>&gt; wrote:</span><bl=
ockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204=
, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: RIPEMD160<br><br>Hi Jim,<br>Jim=
 Duchek schrieb:<br>&gt; Okay, my host came back up:<br>&gt;<br>&gt; <a hre=
f=3D"http://www.churchofjim.org/sources/lt_hotswap-0.1.5.tar.gz">http://www=
.churchofjim.org/sources/lt_hotswap-0.1.5.tar.gz
</a><br>&gt;<br>&gt; YMMV.&nbsp;&nbsp;Enjoy, and let me know, it does still=
 need some work.<br>&gt;<br>&gt; Jim<br>&gt;<br>&gt;<br>&gt; On 21/02/06, J=
im Duchek &lt;<a href=3D"mailto:jim.duchek@gmail.com">jim.duchek@gmail.com<=
/a>&gt; wrote:
<br>&gt;<br>&gt;&gt;Hi.&nbsp;&nbsp;I got bored last night (freakin' busines=
s trips) and wrote an ACPI<br>&gt;&gt;driver to handle hotswapping of IDE d=
rives and batteries (yeah, I know<br>&gt;&gt;batteries don't need much supp=
ort, but was annoying to not be able to see my
<br>&gt;&gt;ultrabay battery if I didn't boot with it in).<br>&gt;&gt;<br>&=
gt;&gt;It works well on my T22, but I'd like some adventurous souls to give=
 it a<br>&gt;&gt;go as well and see if it's allright.&nbsp;&nbsp;It should =
work on just about anything,
<br>&gt;&gt;not just Thinkpads, but I'm not sure.&nbsp;&nbsp;The ACPI names=
pace stuff needs to be<br>&gt;&gt;hardcoded in, I took the secondary master=
 namespaces from the ibm-acpi<br>&gt;&gt;module and added the one I saw on =
my home (desktop) machine...&nbsp;&nbsp;so it ought
<br>&gt;&gt;to at least work for all thinkpads.&nbsp;&nbsp;I'm sure other s=
ystems would need<br>&gt;&gt;additions, though.<br>&gt;&gt;<br>&gt;&gt;I do=
n't want to attach a tarball to this list (even though it's only a<br>&gt;&=
gt;little over 10k) and my webspace is down right now...&nbsp;&nbsp;Be happ=
y to email it
<br>&gt;&gt;to anyone in the time being, I'd certainly like to see it teste=
d a bit.<br>&gt;&gt;<br>&gt;&gt;Thanks,<br>&gt;&gt;Jim<br>&gt;<br>&gt;<br><=
br>just tried your tarball, compiling works fine, but inserting results in:
<br>Laptop ultrabay hotswap driver version 0.1.5<br>lt_hotswap: '\_SB.PCI0.=
ISA.EC0.BAT1' not found.<br>lt_hotswap: '\_SB.PCI.ISA.EC.BAT1' not found.<b=
r>lt_hotswap: '\_SB.PCI0.ISA0.EC0.BAT1' not found.<br>lt_hotswap: '\_SB.PCI=
0.ISA.EC.BAT1' not found.
<br>lt_hotswap: '\_SB.PCI0.AD4S.EC0.BAT1' not found.<br>lt_hotswap: '\_SB.P=
CI0.ICH3.EC0.BAT1' not found.<br>lt_hotswap: '\_SB.PCI0.LPC.EC.BAT1' found!=
<br>lt_hotswap: No object found -- installing our handler.<br>lt_hotswap: '=
\_SB.PCI.IDE.SECN.MAST' not found.
<br>lt_hotswap: '\_SB.PCI0.IDE0.IDES.IDSM' not found.<br>lt_hotswap: '\_SB.=
PCI0.IDE0.SCND.MSTR' found!<br>lt_hotswap: Old handler found! 00000001 dff8=
640c 00000000<br>lt_hotswap: '\_SB.PCI0.ISA.FDC.FDD0' not found.<br><br>
My Hardware is an IBM R40, I do not use an ultrabay battery, just wanted<br=
>to hotswap my dvd drive<br><br>LG<br>Peter<br><br><br>- --<br>&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Key-ID:&nbsp;&nbsp;&nbsp;&nbsp; 0x1A995A9B=
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;keyserver: <a href=3D"http=
://pgp.mit.edu">
pgp.mit.edu</a><br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>Fingerprint: 4=
606 DA19 EC2E 9A0B 0157&nbsp;&nbsp;C81B DA07 CF63 1A99 5A9B<br>-----BEGIN P=
GP SIGNATURE-----<br>Version: GnuPG v1.4.2 (GNU/Linux)<br>
Comment: Using GnuPG with Thunderbird - <a href=3D"http://enigmail.mozdev.o=
rg">http://enigmail.mozdev.org</a><br><br>iD8DBQFD+5L+2gfPYxqZWpsRA6KGAJ9BJ=
5pIk41KeMdysInIg5/7+ApCkACgsZEc<br>Am6aQR9vuftsfVjTpmH/TjA=3D<br>=3DWxj6<br=
>-----END PGP SIGNATURE-----
<br>--<br>The linux-thinkpad mailing list home page is at:<br><a href=3D"ht=
tp://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad">http://mai=
lman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad</a><br></blockquote=
>
</div><br>

------=_Part_697_5994408.1140561392454--