[ltp] DMA hotswap 0.2.0

Jim Duchek linux-thinkpad@linux-thinkpad.org
Sat, 4 Mar 2006 15:07:06 -0600


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

It's been tested not to work on 2.6.13 even if you fix the compile error.

Jim


On 04/03/06, Aaron Mulder <ammulder@alumni.princeton.edu> wrote:
>
> I tried this on a vanilla SuSE 10 machine (2.6.13-15.8-smp) and it
> didn't compile.  Any suggestions?
>
> Thanks,
>     Aaron
>
> /usr/src/lt_hotswap-0.2.0/lt_hotswap.c: In function 'lths_setup_handlers'=
:
> /usr/src/lt_hotswap-0.2.0/lt_hotswap.c:113: error: implicit
> declaration of function 'kzalloc'
> /usr/src/lt_hotswap-0.2.0/lt_hotswap.c: In function
> 'ide_get_or_set_dma_base':
> /usr/src/lt_hotswap-0.2.0/lt_hotswap.c:646: warning: format '%08x'
> expects type 'unsigned int', but argument 2 has type 'struct hwif_s *'
> /usr/src/lt_hotswap-0.2.0/lt_hotswap.c:646: warning: format '%08x'
> expects type 'unsigned int', but argument 2 has type 'struct hwif_s *'
> make[4]: *** [/usr/src/lt_hotswap-0.2.0/lt_hotswap.o] Error 1
> make[3]: *** [_module_/usr/src/lt_hotswap-0.2.0] Error 2
> make[2]: *** [modules] Error 2
> make[1]: *** [modules] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.13-15.8-obj/i386/smp'
> make: *** [default] Error 2
>
> On 2/21/06, Jim Duchek <jim.duchek@gmail.com> wrote:
> > http://churchofjim.org/sources/lt_hotswap-0.2.0.tar.gz
> >
> > There were some issues with DMA setup.  It's much, much better now,
> although
> > it's a pretty kludgy solution.
> >
> > Use the auto_eject=3D1 command-line option until you think you're getti=
ng
> > clean ide1 un/reregisters.  Then switch to the userspace acpid  stuff -=
-
> > trust me, it's a better idea and you're less likely to dick up your
> system.
> > Remember that with auto_eject=3D1, you _must_ have everything umounted =
and
> > make sure you're not using it, or your system is going to get really
> > confused.
> >
> > See configs/lths.sh (it gets installed in /usr/local/sbin) for 'what
> > userspace stuff it should do upon insertion/removal'.  You probably wan=
t
> to
> > customize it.
> >
> > If you do 'make install' it'll put the module and acpi scripts in
> (probably,
> > anyway ;) the right places.  Restart acpid, load the kernel module, and
> you
> > should be in business.
> >
> > Oh, when you load the module at boot, make sure it loads AFTER
> everything
> > else ACPI.  I dig around in some internal ACPI stuff and things need to
> > already be in place.
> >
> > Jim
> >
> >
> --
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
>

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

It's been tested not to work on 2.6.13 even if you fix the compile error.<b=
r><br>Jim<br><br><br><div><span class=3D"gmail_quote">On 04/03/06, <b class=
=3D"gmail_sendername">Aaron Mulder</b> &lt;<a href=3D"mailto:ammulder@alumn=
i.princeton.edu">
ammulder@alumni.princeton.edu</a>&gt; wrote:</span><blockquote class=3D"gma=
il_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0=
pt 0pt 0.8ex; padding-left: 1ex;">I tried this on a vanilla SuSE 10 machine=
 (
2.6.13-15.8-smp) and it<br>didn't compile.&nbsp;&nbsp;Any suggestions?<br><=
br>Thanks,<br>&nbsp;&nbsp;&nbsp;&nbsp;Aaron<br><br>/usr/src/lt_hotswap-0.2.=
0/lt_hotswap.c: In function 'lths_setup_handlers':<br>/usr/src/lt_hotswap-0=
.2.0/lt_hotswap.c:113: error: implicit
<br>declaration of function 'kzalloc'<br>/usr/src/lt_hotswap-0.2.0/lt_hotsw=
ap.c: In function 'ide_get_or_set_dma_base':<br>/usr/src/lt_hotswap-0.2.0/l=
t_hotswap.c:646: warning: format '%08x'<br>expects type 'unsigned int', but=
 argument 2 has type 'struct hwif_s *'
<br>/usr/src/lt_hotswap-0.2.0/lt_hotswap.c:646: warning: format '%08x'<br>e=
xpects type 'unsigned int', but argument 2 has type 'struct hwif_s *'<br>ma=
ke[4]: *** [/usr/src/lt_hotswap-0.2.0/lt_hotswap.o] Error 1<br>make[3]: ***=
 [_module_/usr/src/lt_hotswap-
0.2.0] Error 2<br>make[2]: *** [modules] Error 2<br>make[1]: *** [modules] =
Error 2<br>make[1]: Leaving directory `/usr/src/linux-2.6.13-15.8-obj/i386/=
smp'<br>make: *** [default] Error 2<br><br>On 2/21/06, Jim Duchek &lt;<a hr=
ef=3D"mailto:jim.duchek@gmail.com">
jim.duchek@gmail.com</a>&gt; wrote:<br>&gt; <a href=3D"http://churchofjim.o=
rg/sources/lt_hotswap-0.2.0.tar.gz">http://churchofjim.org/sources/lt_hotsw=
ap-0.2.0.tar.gz</a><br>&gt;<br>&gt; There were some issues with DMA setup.&=
nbsp;&nbsp;It's much, much better now, although
<br>&gt; it's a pretty kludgy solution.<br>&gt;<br>&gt; Use the auto_eject=
=3D1 command-line option until you think you're getting<br>&gt; clean ide1 =
un/reregisters.&nbsp;&nbsp;Then switch to the userspace acpid&nbsp;&nbsp;st=
uff --<br>&gt; trust me, it's a better idea and you're less likely to dick =
up your system.
<br>&gt; Remember that with auto_eject=3D1, you _must_ have everything umou=
nted and<br>&gt; make sure you're not using it, or your system is going to =
get really<br>&gt; confused.<br>&gt;<br>&gt; See configs/lths.sh (it gets i=
nstalled in /usr/local/sbin) for 'what
<br>&gt; userspace stuff it should do upon insertion/removal'.&nbsp;&nbsp;Y=
ou probably want to<br>&gt; customize it.<br>&gt;<br>&gt; If you do 'make i=
nstall' it'll put the module and acpi scripts in (probably,<br>&gt; anyway =
;) the right places.&nbsp;&nbsp;Restart acpid, load the kernel module, and =
you
<br>&gt; should be in business.<br>&gt;<br>&gt; Oh, when you load the modul=
e at boot, make sure it loads AFTER everything<br>&gt; else ACPI.&nbsp;&nbs=
p;I dig around in some internal ACPI stuff and things need to<br>&gt; alrea=
dy be in place.
<br>&gt;<br>&gt; Jim<br>&gt;<br>&gt;<br>--<br>The linux-thinkpad mailing li=
st home page is at:<br><a href=3D"http://mailman.linux-thinkpad.org/mailman=
/listinfo/linux-thinkpad">http://mailman.linux-thinkpad.org/mailman/listinf=
o/linux-thinkpad
</a><br></blockquote></div><br>

------=_Part_797_12394490.1141506426804--