Repository navigation
Closed
Description
I have rpi-montior (http://rpi-experiences.blogspot.fr/) regularly invoking 'vcgencmd' to determine the core voltage and to output the amount of memory assigned to ARM and VC respectively... and this works, for about two hours.
After roughly this period, vcgencmd continues to output the appropriate data, but each invocation generates a dmesg entry similar to:
[17396.823193] ------------[ cut here ]------------
[17396.823249] WARNING: at /usr/portage/local/raspberrypi/src/kernel-3.10.y/fs/proc/generic.c:356 proc_register+0xe0/0x148()
[17396.823265] proc_dir_entry 'clients/8388' already registered
[17396.823276] Modules linked in: loop ipv6 cpufreq_ondemand nls_iso8859_15 nls_cp850 vfat fat raid1 md_mod spi_bcm2708 i2c_bcm2708 i2c_core cachefiles fscache bcm2708_wdog bcm2835_thermal thermal_sys freq
_table bcm2708_rng rng_core dmaer_master
[17396.823371] CPU: 0 PID: 8388 Comm: vcgencmd Tainted: G W 3.10.7-srcs #5
[17396.823435] [<c0012ef0>] (unwind_backtrace+0x0/0xe0) from [<c0010788>] (show_stack+0x10/0x14)
[17396.823477] [<c0010788>] (show_stack+0x10/0x14) from [<c001f9c8>] (warn_slowpath_common+0x4c/0x68)
[17396.823506] [<c001f9c8>] (warn_slowpath_common+0x4c/0x68) from [<c001fa64>] (warn_slowpath_fmt+0x2c/0x3c)
[17396.823536] [<c001fa64>] (warn_slowpath_fmt+0x2c/0x3c) from [<c0100730>] (proc_register+0xe0/0x148)
[17396.823566] [<c0100730>] (proc_register+0xe0/0x148) from [<c0100878>] (proc_mkdir_data+0x48/0x68)
[17396.823594] [<c0100878>] (proc_mkdir_data+0x48/0x68) from [<c02beaf8>] (vchiq_open+0xc4/0x1a8)
[17396.823623] [<c02beaf8>] (vchiq_open+0xc4/0x1a8) from [<c00b5a5c>] (chrdev_open+0x170/0x194)
[17396.823660] [<c00b5a5c>] (chrdev_open+0x170/0x194) from [<c00b0248>] (do_dentry_open.isra.12+0x180/0x240)
[17396.823693] [<c00b0248>] (do_dentry_open.isra.12+0x180/0x240) from [<c00b032c>] (finish_open+0x24/0x38)
[17396.823729] [<c00b032c>] (finish_open+0x24/0x38) from [<c00be844>] (do_last.isra.45+0x934/0xb28)
[17396.823760] [<c00be844>] (do_last.isra.45+0x934/0xb28) from [<c00beae0>] (path_openat+0xa8/0x404)
[17396.823788] [<c00beae0>] (path_openat+0xa8/0x404) from [<c00bf0f0>] (do_filp_open+0x2c/0x78)
[17396.823820] [<c00bf0f0>] (do_filp_open+0x2c/0x78) from [<c00b119c>] (do_sys_open+0xe4/0x170)
[17396.823850] [<c00b119c>] (do_sys_open+0xe4/0x170) from [<c000d7c0>] (ret_fast_syscall+0x0/0x30)
[17396.823865] ---[ end trace d63189854f08f312 ]---
I'll can raise this as a firmware issue - but no matter what user-space is doing, I wouldn't anticipate it causing the kernel to fill my logs with warnings :(
Metadata
Metadata
Assignees
Labels
No labels
Activity
popcornmix commentedon Aug 22, 2013
I'm assuming this only affects 3.10 kernel?
Does it occur with 3.9 or 3.6 kernels?
3.10 kernel is very much experimental, and comes with no guarantees.
Due to api changes in procfs, bits of our drivers have been commented out. It possible this hasn't been done correctly in the call stack shown.
srcshelton commentedon Aug 22, 2013
I can check whether the issue also manifests on 3.9.y or 3.6.y this evening... I've only adopted RPi-Monitor since I was using 3.10.y, so haven't tried earlier versions.
ajs124 commentedon Aug 22, 2013
I'm experiencing the same issue in archlinux (3.10 kernel) with a php script that regularly calls "vcgencmd measure_temp".
popcornmix commentedon Aug 24, 2013
I think I've fixed it. rpi-3.10.y is rebased onto 3.10.9 and the "bcm2708 vchiq driver" commit has been adjusted to stub out more of the procfs calls.
ajs124 commentedon Aug 24, 2013
This still occurs with archlinux arm's core/linux-raspberrypi-latest at version 3.10.9-1.
uname -a returns "Linux [hostname] 3.10.9-1-ARCH+ #1 PREEMPT Sat Aug 24 05:18:52 CDT 2013 armv6l GNU/Linux"
Is there a way for me to check if this includes the relevant commits?
popcornmix commentedon Aug 24, 2013
If you still get the error, and have no evidence that the patch has been applied, then there's a good chance it hasn't.
Can you post the backtrace? If it stil looks identical, then I think the patch can't have been applied, as vchiq_open doesn't call proc_mkdir_data.
ajs124 commentedon Aug 24, 2013
Ok, I see the proc_mkdir_data in there. Sorry for the noise… I'll build a fresh kernel from git and report back.
ajs124 commentedon Aug 24, 2013
Seems fixed for me, can you confirm that @srcshelton?
srcshelton commentedon Aug 26, 2013
Yup - looks good so far, no warnings in the past 3 hours since the kernel finished recompiling. I'll update and close tomorrow if things continue to be okay.
popcornmix commentedon Aug 29, 2013
@srcshelton
Okay to close?
srcshelton commentedon Aug 29, 2013
Yup - all good, thanks :)
sched: always use blk_schedule_flush_plug in io_schedule_out
sched: always use blk_schedule_flush_plug in io_schedule_out
thp: do not hold anon_vma lock during swap in
thp: do not hold anon_vma lock during swap in
ARM: 8591/1: mm: use fully constructed struct pages for EFI pgd alloc…
RDMA/rdma_cm: Fix use after free race with process_one_req
RDMA/rdma_cm: Fix use after free race with process_one_req
RDMA/rdma_cm: Fix use after free race with process_one_req
RDS: RDMA: Fix the NULL-ptr deref in rds_ib_get_mr
RDS: RDMA: Fix the NULL-ptr deref in rds_ib_get_mr
net: avoid double iput when sock_alloc_file fails
net: avoid double iput when sock_alloc_file fails
net: avoid double iput when sock_alloc_file fails
selftests/bpf: Enable cpu v4 tests for LoongArch
selftests/bpf: Extend netkit tests to validate skb meta data