This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Question on loadmodules.sh

I would like to decode 4 files at the same time,

so, I have to increase the memory size for decode because of the multi thread structure.

but when I mofidy the loadmodules.sh below:

insmod cmemk.ko phys_start=0x87800000 phys_end=0x93e00000 pools=3x4147200,30x3458400,30x1434240,33x663552,12x60000

it crash the whole system...and show below error message:

root@10.32.62.100:/opt/dvsdk# ./loadmodules.sh
ioremap_nocache(0x87800000, 207618048)=0xc8080000
allocated heap buffer 0xc8080000 of size 0x1863000
Unable to handle kernel NULL pointer dereference at virtual address 00000004
pgd = c5b5c000
[00000004] *pgd=83a9f031, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1]
Modules linked in: cmemk
CPU: 0
Unable to handle kernel paging request at virtual address 40864360
pgd = c5b5c000
[40864360] *pgd=00000000
Internal error: Oops: 5 [#2]
Modules linked in: cmemk
CPU: 0
Unable to handle kernel paging request at virtual address 40864360
pgd = c5b5c000
[40864360] *pgd=00000000
Internal error: Oops: 5 [#3]
Modules linked in: cmemk
CPU: 0
Unable to handle kernel paging request at virtual address 40864360
pgd = c5b5c000
[40864360] *pgd=00000000
Internal error: Oops: 5 [#4]
Modules linked in: cmemk
CPU: 0
Unable to handle kernel paging request at virtual address 40864360
pgd = c5b5c000
[40864360] *pgd=00000000
Internal error: Oops: 5 [#5]
Modules linked in: cmemk
CPU: 0
Unable to handle kernel paging request at virtual address 40864360
pgd = c5b5c000
[40864360] *pgd=00000000
Internal error: Oops: 5 [#6]
Modules linked in: cmemk
CPU: 0
Unable to handle kernel paging request at virtual address 40864360
pgd = c5b5c000
[40864360] *pgd=00000000
Internal error: Oops: 5 [#7]
Modules linked in: cmemk
CPU: 0
Unable to handle kernel paging request at virtual address 40864360
pgd = c5b5c000
[40864360] *pgd=00000000
Internal error: Oops: 5 [#8]
Modules linked in: cmemk
CPU: 0
Unable to handle kernel paging request at virtual address 40864360
pgd = c5b5c000
[40864360] *pgd=00000000
Internal error: Oops: 5 [#9]
Modules linked in: cmemk
CPU: 0
Unable to handle kernel paging request at virtual address 40864360
pgd = c5b5c000
[40864360] *pgd=00000000
Internal error: Oops: 5 [#10]
Modules linked in: cmemk
CPU: 0

What are the limits of  phys_start and phys_end if I wish to do 4 files decode simultaneously ???

Update:

below is workable setting of cmemk. but it is not enough to decode 4 files simultaneously.

The pools need to adjust for decode, does anyone know how to set up them?

insmod cmemk.ko phys_start=0x87800000 phys_end=0x8fc00000 pools=2x4147200,20x3458400,20x1434240,22x663552,8x60000

 

 

 

Tai Chang