linux_old1/arch/m68k/atari
Michael Schmitz 217bbd8188 m68k/atari: Reserve some ST-RAM early on for device buffer use
Based on an original patch from Michael Schmitz:

Because mem_init() is now called before device init, devices that rely on
ST-RAM may find all ST-RAM already allocated to other users by the time
device init happens. In particular, a large initrd RAM disk may use up
enough of ST-RAM to cause atari_stram_alloc() to resort to
__get_dma_pages() allocation.

In the current state of Atari memory management, all of RAM is marked
DMA capable, so __get_dma_pages() may well return RAM that is not in actual
fact DMA capable. Using this for frame buffer or SCSI DMA buffer causes
subtle failure.

The ST-RAM allocator has been changed to allocate memory from a pool of
reserved ST-RAM of configurable size, set aside on ST-RAM init (i.e.
before mem_init()). As long as this pool is not exhausted, allocation of
real ST-RAM can be guaranteed.

Other changes:
  - Replace the custom allocator in the ST-RAM pool by the existing allocator
    in the resource subsystem,
  - Remove mem_init_done and its hook, as memory init is now done before
    device init,
  - Remove /proc/stram, as ST-RAM usage now shows up under /proc/iomem, e.g.

	005f2000-006f1fff : ST-RAM Pool
	  005f2000-0063dfff : atafb
	  0063e000-00641fff : ataflop
	  00642000-00642fff : SCSI

Signed-off-by: Michael Schmitz <schmitz@debian.org>
[Andreas Schwab <schwab@linux-m68k.org>: Use memparse()]
[Geert: Use the resource subsystem instead of a custom allocator]
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
2011-07-30 21:21:39 +02:00
..
Makefile m68k: Remove the broken Hades support 2008-10-14 10:23:27 -07:00
ataints.c m68k/atari: Rename "scc" to "atari_scc" 2011-01-23 11:24:35 +01:00
atakeyb.c input/atari: Use the correct mouse interrupt hook 2011-05-19 18:19:11 +02:00
atasound.c m68k: kill arch/m68k/atari/atari_ksyms.c 2008-02-05 09:44:24 -08:00
config.c m68k/atari: Rename "scc" to "atari_scc" 2011-01-23 11:24:35 +01:00
debug.c m68k/atari: Rename "scc" to "atari_scc" 2011-01-23 11:24:35 +01:00
stdma.c m68k/atari: Do not use "/" in interrupt names 2011-05-19 18:19:10 +02:00
stram.c m68k/atari: Reserve some ST-RAM early on for device buffer use 2011-07-30 21:21:39 +02:00
time.c m68k: atari - Rename "mfp" to "st_mfp" 2009-02-22 09:23:02 -08:00