Repository navigation
Closed
Description
Testing ff1c7e1, all boots fine, but vchiq is not there. I hadn't any gpu_mem related option in config.txt. I've tried gpu_mem=128, and gpu_mem_512=128, but nothing helps.
The kernel log:
...
[ 0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0xf bcm2708.serial=0xe3e92703 smsc95xx.macaddr=B8:27:EB:E9:27:03 sdhci-bcm2708.emmc_clock_freq=100000000 vc_mem.mem_base=0x1c000000 vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 448MB = 448MB total
[ 0.000000] Memory: 432232k/432232k available, 26520k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xdc800000 - 0xff000000 ( 552 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xdc000000 ( 448 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc04ee148 (5017 kB)
[ 0.000000] .init : 0xc04ef000 - 0xc050fce8 ( 132 kB)
[ 0.000000] .data : 0xc0510000 - 0xc0544220 ( 209 kB)
[ 0.000000] .bss : 0xc0544244 - 0xc05ec8f0 ( 674 kB)
...
[ 1.048574] bcm2708_dma: DMA manager at f2007000
[ 1.053365] bcm2708_gpio: bcm2708_gpio_probe c051dd78
[ 1.058806] vc-mem: phys_addr:0x00000000 mem_base=0x1c000000 mem_size:0x20000000(512 MiB)
...
[ 1.287093] vc-cma: Videocore CMA driver
[ 1.293417] vc-cma: vc_cma_base = 0x00000000
[ 1.300418] vc-cma: vc_cma_size = 0x00000000 (0 MiB)
[ 1.307943] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
[ 1.324796] brd: module loaded
[ 1.335179] loop: module loaded
[ 1.340826] ERROR: 256 KiB atomic DMA coherent pool is too small!
[ 1.340826] Please increase it with coherent_pool= kernel parameter!
[ 1.357266] vchiq: Unable to allocate channel memory
[ 1.364563] vchiq: could not load vchiq
Metadata
Metadata
Assignees
Labels
No labels
Activity
simonjhall commentedon Dec 2, 2012
On my kit on the kernel command line I'm using "coherent_pool=6M".
EDIT: as per this http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&t=19334&start=125#p223549
viric commentedon Dec 2, 2012
Ah clear. I had no idea where to look. Maybe some commit log should have mentioned that :)
viric commentedon Dec 2, 2012
Maybe the defconfig could have that in the cmdline.
Ferroin commentedon Dec 2, 2012
This could also be fixed by adding the following to the default config:
The problem occurs because if you don't specify anything other than 'CONFIG_CMA=y', it defaults to using 10% of the available system memory.
popcornmix commentedon Dec 3, 2012
@Ferroin
are you sure about those settings?
I believe the coherent_pool is different from CMA.
(specifically the coherent pool is needed for atomic allocations, which CMA can't provide).
Ferroin commentedon Dec 3, 2012
You're right, I was thinking about the
cma=commandline paramater, not the coherent_pool.Sorry for any confusion this might have caused.
popcornmix commentedon Dec 12, 2012
Latest "next" firmware increases default coherent_pool to 4M, which makes vchiq init okay.
You may need to increase coherent_pool to 6M or more when CMA is enabled, but that is a different issue.
virtio-net: determine type of bufs correctly
drm/i915: Remove overzealous fence warn on runtime suspend
drm/i915: Remove overzealous fence warn on runtime suspend
test_bpf: Rename second ALU64_SMOD_X to ALU64_SMOD_K
powerpc/bpf/32: Fix failing test_bpf tests
netfilter: nf_tables: reject duplicate device on updates
netfilter: nf_tables: reject duplicate device on updates
netfilter: nf_tables: reject duplicate device on updates
test_bpf: Rename second ALU64_SMOD_X to ALU64_SMOD_K
powerpc/bpf/32: Fix failing test_bpf tests
riscv, bpf: Add support for BPF_SDIV and BPF_SMOD in RV32 JIT