[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> <<a href=3D"mailto:ammulder@alumn=
i.princeton.edu">
ammulder@alumni.princeton.edu</a>> 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. Any suggestions?<br><=
br>Thanks,<br> 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 <<a hr=
ef=3D"mailto:jim.duchek@gmail.com">
jim.duchek@gmail.com</a>> wrote:<br>> <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>><br>> There were some issues with DMA setup.&=
nbsp; It's much, much better now, although
<br>> it's a pretty kludgy solution.<br>><br>> Use the auto_eject=
=3D1 command-line option until you think you're getting<br>> clean ide1 =
un/reregisters. Then switch to the userspace acpid st=
uff --<br>> trust me, it's a better idea and you're less likely to dick =
up your system.
<br>> Remember that with auto_eject=3D1, you _must_ have everything umou=
nted and<br>> make sure you're not using it, or your system is going to =
get really<br>> confused.<br>><br>> See configs/lths.sh (it gets i=
nstalled in /usr/local/sbin) for 'what
<br>> userspace stuff it should do upon insertion/removal'. Y=
ou probably want to<br>> customize it.<br>><br>> If you do 'make i=
nstall' it'll put the module and acpi scripts in (probably,<br>> anyway =
;) the right places. Restart acpid, load the kernel module, and =
you
<br>> should be in business.<br>><br>> Oh, when you load the modul=
e at boot, make sure it loads AFTER everything<br>> else ACPI. &nbs=
p;I dig around in some internal ACPI stuff and things need to<br>> alrea=
dy be in place.
<br>><br>> Jim<br>><br>><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--