Re: Improving Performance
Hi Geert,
Hi Michael,
On Sat, Mar 15, 2014 at 7:29 PM, schmitz
<schmitz@biophys.uni-duesseldorf.de> wrote:
The problem is - it dies when calling ioremap:
stram_virt_offset = ioremap(stram_pool.start,
resource_size(&stram_pool) - stram_pool.start);
Why do you subtract stram_pool.start from the size again?
Good question - no idea where that got left over from.
Regarding your other comment that ioremap may be called too early into
the boot - you're right, the kernel dies before it reports any VM stats.
The full log up to that point is:
Linux version 3.14.0-rc6-atari-164151-g0939d5c (schmitz@xplor) (gcc
version 4.6.3 (GCC) ) #209 Mon Mar 17 21:13:51 NZDT 2014
Saving 174 bytes of bootinfo
console [debug0] enabled
Atari hardware found: VIDEL STDMA-SCSI ST_MFP YM2149 PCM CODEC DSP56K
SCC_DMA SCC ANALOG_JOY BLITTER IDE TT_CLK FDC_SPEED
Ignoring memory chunk at 0x0:0xe00000 before the first chunk
Fix your bootloader or use a memfile to make use of this area!
On node 0 totalpages: 130688
free_area_init_node: node 0, pgdat 002b95d8, node_mem_map 0037c000
DMA zone: 1149 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 130688 pages, LIFO batch:31
atari_stram pool: kernel not in ST-RAM, using ioremap!
atari_stram pool: size = 1048576 bytes, resource = [???
0x00001000-0x00100fff flags 0x0]
atari_stram pool: start = 00001000, end = 00100fff
Unable to handle kernel NULL pointer dereference at virtual address (null)
Oops: 00000000
Modules linked in:
PC: [<000896a4>] kmem_cache_alloc+0x10/0x9a
SR: 2700 SP: 0029ded0 a2: 002a42d8
d0: 000080d0 d1: 00000013 d2: 000080d0 d3: 0007ff90
d4: 00000001 d5: 000000d0 a0: 0029c000 a1: 002a762e
Process swapper (pid: 0, task=002a42d8)
Frame format=4 fault addr=00000000 fslw=01050200
Stack from 0029df0c:
00100000 00080000 0021705a 002db308 0007ff90 00000000 000080d0
00100000
00000000 00000001 00001000 0021705a 00080bbe 00100000 00000001
00000001
20000000 d0000000 000000d0 00006bb4 00006bb4 00100000 00000001
00000001
00000008 0021705a 002b9070 000b3ef4 0021705a 002db308 002d55e8
0029dfc8
002d626e 00001000 00100000 00000001 002b907c 002d4844 012f9fd0
002eb0ae
00000000 00000000 00000000 003bee10 01001000 0021705a 00000000
0029dff8
How can I delay the call to atari_stram_reserve_pages() until after VM
init, but before driver initcalls?
Cheers,
Michael
Reply to: