[ltp] DMA hotswap 0.2.0

Aaron Mulder linux-thinkpad@linux-thinkpad.org
Sat, 4 Mar 2006 13:47:36 -0500


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_bas=
e':
/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, altho=
ugh
> it's a pretty kludgy solution.
>
> Use the auto_eject=3D1 command-line option until you think you're getting
> 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 syste=
m.
> Remember that with auto_eject=3D1, you _must_ have everything umounted an=
d
> 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 want =
to
> customize it.
>
> If you do 'make install' it'll put the module and acpi scripts in (probab=
ly,
> anyway ;) the right places.  Restart acpid, load the kernel module, and y=
ou
> 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
>
>