Skip to content

Kernel BUG in drivers/video/fbdev/bcm2708_fb.c:329! #961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
huaraz opened this issue May 8, 2015 · 5 comments
Closed

Kernel BUG in drivers/video/fbdev/bcm2708_fb.c:329! #961

huaraz opened this issue May 8, 2015 · 5 comments

Comments

@huaraz
Copy link

huaraz commented May 8, 2015

Hi

I upgraded my with a new kernel und run now into the following issue:

raspberrypi login: ▒▒[225060.073616] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[225061.883660] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[225061.925903] systemd-journald[88]: Received SIGTERM from PID 1 (systemd-shutdow).
[225061.983990] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[225062.018718] systemd-shutdown[1]: Unmounting file systems.
[225062.026081] systemd-shutdown[1]: Unmounting /sys/fs/fuse/connections.
[225062.033154] systemd-shutdown[1]: Unmounting /sys/kernel/config.
[225062.039323] systemd-shutdown[1]: Unmounting /dev/mqueue.
[225062.045006] systemd-shutdown[1]: Unmounting /sys/kernel/debug.
[225062.106181] EXT4-fs (sda1): re-mounted. Opts: (null)
[225062.117704] EXT4-fs (sda1): re-mounted. Opts: (null)
[225062.122979] EXT4-fs (sda1): re-mounted. Opts: (null)
[225062.128117] systemd-shutdown[1]: All filesystems unmounted.
[225062.133927] systemd-shutdown[1]: Deactivating swaps.
[225062.139474] systemd-shutdown[1]: All swaps deactivated.
[225062.145098] systemd-shutdown[1]: Detaching loop devices.
[225062.190936] systemd-shutdown[1]: All loop devices detached.
[225062.196840] systemd-shutdown[1]: Detaching DM devices.
[225062.203056] systemd-shutdown[1]: All DM devices detached.
[225062.260208] systemd-shutdown[1]: Rebooting.
[225062.265938] reboot: Restarting system
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.18.7+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #755 PREEMPT Thu Feb 12 17:14:31 GMT 2015
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine model: Raspberry Pi Model B
[    0.000000] early_vc_cma_mem(0/0x4c00000@0xa000000)
[    0.000000]  -> initial 0, size 4c00000, base a000000[    0.000000] cma: Reserved 76 MiB at 0x0a000000
[    0.000000] cma: Reserved 8 MiB at 0x08800000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 55848
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0x2 bcm2708.serial=0x96445531 smsc95xx.macaddr=B8:27:EB:44:55:31 bcm2708_fb.fbswap=1 sdhci-bcm2708.emmc_clock_freq=250000000 vc-cma-mem=0/0x4c00000@0xa000000 mem=0x9000000@0x0 mem=0x4c00000@0xa000000 vc_mem.mem_base=0xec00000 vc_mem.mem_size=0x10000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/sda1     rootfstype=ext4 elevator=deadline rootwait rootdelay=5 coherent_pool=6M  smsc95xx.turbo_mode=N
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 127784K/225280K available (5926K kernel code, 358K rwdata, 1876K rodata, 340K init, 734K bss, 97496K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xcf000000 - 0xff000000   ( 768 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xcec00000   ( 236 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07a6ad8   (7803 kB)
[    0.000000]       .init : 0xc07a7000 - 0xc07fc000   ( 340 kB)
[    0.000000]       .data : 0xc07fc000 - 0xc085588c   ( 359 kB)
[    0.000000]        .bss : 0xc085588c - 0xc090d128   ( 735 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:522
[    0.000024] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483648000ns
[    0.000075] Switching to timer-based delay loop, resolution 1000ns
[    0.000354] Console: colour dummy device 80x30
[    0.001536] console [tty1] enabled
[    0.001581] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[    0.001657] pid_max: default: 32768 minimum: 301
[    0.002030] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002095] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.003093] Initializing cgroup subsys memory
[    0.003185] Initializing cgroup subsys devices
[    0.003244] Initializing cgroup subsys freezer
[    0.003297] Initializing cgroup subsys net_cls
[    0.003349] Initializing cgroup subsys blkio
[    0.003474] CPU: Testing write buffer coherency: ok
[    0.003596] ftrace: allocating 19479 entries in 58 pages
[    0.111766] Setting up static identity map for 0x55d058 - 0x55d0b4
[    0.114597] devtmpfs: initialized
[    0.132493] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.145109] pinctrl core: initialized pinctrl subsystem
[    0.147802] NET: Registered protocol family 16
[    0.156282] DMA: preallocated 6144 KiB pool for atomic coherent allocations
[    0.181608] cpuidle: using governor ladder
[    0.211668] cpuidle: using governor menu
[    0.212564] bcm2708.uart_clock = 3000000
[    0.215628] No ATAGs?
[    0.215693] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.215754] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.215821] mailbox: Broadcom VideoCore Mailbox driver
[    0.215985] bcm2708_vcio: mailbox at f200b880
[    0.216478] bcm_power: Broadcom power driver
[    0.216536] bcm_power_open() -> 0
[    0.216568] bcm_power_request(0, 8)
[    0.717308] bcm_mailbox_read -> 00000080, 0
[    0.717355] bcm_power_request -> 0
[    0.717554] Serial: AMBA PL011 UART driver
[    0.717790] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[    1.133621] console [ttyAMA0] enabled
[    1.206726] SCSI subsystem initialized
[    1.210828] usbcore: registered new interface driver usbfs
[    1.216643] usbcore: registered new interface driver hub
[    1.222146] usbcore: registered new device driver usb
[    1.229527] Switched to clocksource stc
[    1.264035] FS-Cache: Loaded
[    1.267374] CacheFiles: Loaded
[    1.287495] NET: Registered protocol family 2
[    1.293456] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    1.300752] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    1.307183] TCP: Hash tables configured (established 2048 bind 2048)
[    1.313700] TCP: reno registered
[    1.316967] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.322894] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.329651] NET: Registered protocol family 1
[    1.334668] RPC: Registered named UNIX socket transport module.
[    1.340753] RPC: Registered udp transport module.
[    1.345484] RPC: Registered tcp transport module.
[    1.350249] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.358137] bcm2708_dma: DMA manager at f2007000
[    1.363161] vc-mem: phys_addr:0x00000000 mem_base=0x0ec00000 mem_size:0x10000000(256 MiB)
[    1.373057] futex hash table entries: 256 (order: -1, 3072 bytes)
[    1.379331] audit: initializing netlink subsys (disabled)
[    1.385055] audit: type=2000 audit(1.120:1): initialized
[    1.405924] VFS: Disk quotas dquot_6.5.2
[    1.410422] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.419934] FS-Cache: Netfs 'nfs' registered for caching
[    1.427044] NFS: Registering the id_resolver key type
[    1.432367] Key type id_resolver registered
[    1.436582] Key type id_legacy registered
[    1.442131] msgmni has been set to 417
[    1.448431] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.456454] io scheduler noop registered
[    1.460598] io scheduler deadline registered (default)
[    1.466156] io scheduler cfq registered
[    1.472337] BCM2708FB: allocated DMA memory 48e00000
[    1.477402] BCM2708FB: allocated DMA channel 0 @ f2007000
[    1.484352] ------------[ cut here ]------------
[    1.489066] WARNING: CPU: 0 PID: 1 at arch/arm/mm/ioremap.c:301 __arm_ioremap_pfn_caller+0x228/0x258()
[    1.498555] Modules linked in:
[    1.501774] CPU: 0 PID: 1 Comm: swapper Not tainted 3.18.7+ #755
[    1.507858] [<c00151fc>] (unwind_backtrace) from [<c0012710>] (show_stack+0x20/0x24)
[    1.515727] [<c0012710>] (show_stack) from [<c0555b30>] (dump_stack+0x20/0x28)
[    1.523062] [<c0555b30>] (dump_stack) from [<c0022ef4>] (warn_slowpath_common+0x7c/0x9c)
[    1.531252] [<c0022ef4>] (warn_slowpath_common) from [<c0022fd0>] (warn_slowpath_null+0x2c/0x34)
[    1.540141] [<c0022fd0>] (warn_slowpath_null) from [<c001ada0>] (__arm_ioremap_pfn_caller+0x228/0x258)
[    1.549504] [<c001ada0>] (__arm_ioremap_pfn_caller) from [<c001ae30>] (__arm_ioremap_caller+0x60/0x68)
[    1.558912] [<c001ae30>] (__arm_ioremap_caller) from [<c001a8d4>] (__arm_ioremap+0x24/0x2c)
[    1.567366] [<c001a8d4>] (__arm_ioremap) from [<c032a17c>] (bcm2708_fb_set_par+0x10c/0x130)
[    1.575816] [<c032a17c>] (bcm2708_fb_set_par) from [<c032a4bc>] (bcm2708_fb_probe+0x31c/0x3c0)
[    1.584540] [<c032a4bc>] (bcm2708_fb_probe) from [<c0367698>] (platform_drv_probe+0x54/0xb4)
[    1.593082] [<c0367698>] (platform_drv_probe) from [<c03656e8>] (really_probe+0x88/0x21c)
[    1.601354] [<c03656e8>] (really_probe) from [<c0365988>] (__driver_attach+0xa8/0xac)
[    1.609243] [<c0365988>] (__driver_attach) from [<c0363a84>] (bus_for_each_dev+0x70/0xa4)
[    1.617515] [<c0363a84>] (bus_for_each_dev) from [<c0365274>] (driver_attach+0x28/0x30)
[    1.625616] [<c0365274>] (driver_attach) from [<c0364ef8>] (bus_add_driver+0x154/0x200)
[    1.633714] [<c0364ef8>] (bus_add_driver) from [<c0366328>] (driver_register+0x88/0x108)
[    1.641904] [<c0366328>] (driver_register) from [<c03675b8>] (__platform_driver_register+0x58/0x6c)
[    1.651056] [<c03675b8>] (__platform_driver_register) from [<c07ce96c>] (bcm2708_fb_init+0x18/0x20)
[    1.660200] [<c07ce96c>] (bcm2708_fb_init) from [<c0008760>] (do_one_initcall+0x90/0x1e4)
[    1.668445] [<c0008760>] (do_one_initcall) from [<c07a7e08>] (kernel_init_freeable+0xf8/0x1b8)
[    1.677159] [<c07a7e08>] (kernel_init_freeable) from [<c05513d0>] (kernel_init+0x18/0xfc)
[    1.685442] [<c05513d0>] (kernel_init) from [<c000e988>] (ret_from_fork+0x14/0x20)
[    1.693135] ---[ end trace 25f71beeec4416ec ]---
[    1.697908] ------------[ cut here ]------------
[    1.702547] kernel BUG at drivers/video/fbdev/bcm2708_fb.c:329!
[    1.708484] Internal error: Oops - BUG: 0 [#1] PREEMPT ARM
[    1.713982] Modules linked in:
[    1.717064] CPU: 0 PID: 1 Comm: swapper Tainted: G        W      3.18.7+ #755
[    1.724217] task: c8078000 ti: c803c000 task.ti: c803c000
[    1.729645] PC is at bcm2708_fb_set_par+0x12c/0x130
[    1.734551] LR is at console_unlock+0x44c/0x6e0
[    1.739100] pc : [<c032a19c>]    lr : [<c005cec0>]    psr: 60000113
[    1.739100] sp : c803dd50  ip : 60000113  fp : c803dd74
[    1.750601] r10: 00000186  r9 : 000186a0  r8 : 00000190
[    1.755838] r7 : c81c4424  r6 : c803dd54  r5 : c8e10000  r4 : c81c4400
[    1.762378] r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : 00000000
[    1.768921] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[    1.776249] Control: 00c5387d  Table: 00004008  DAC: 00000015
[    1.782008] Process swapper (pid: 1, stack limit = 0xc803c1b0)
[    1.787855] Stack: (0xc803dd50 to 0xc803e000)
[    1.792231] dd40:                                     c080b1d0 00000000 c81c4424 c81c4400
[    1.800436] dd60: c080b1d0 c080b1c0 c803ddb4 c803dd78 c032a4bc c032a07c 00000000 c81c4400
[    1.808642] dd80: 00000001 48e10000 c080b1d8 c080b1d0 fffffdfb c0837bdc c0837bdc 00000000
[    1.816848] dda0: c8200e40 00000000 c803ddd4 c803ddb8 c0367698 c032a1ac c08e4d88 c080b1d0
[    1.825054] ddc0: 00000000 c0837bdc c803ddfc c803ddd8 c03656e8 c0367650 00000007 c080b1d0
[    1.833260] dde0: c0837bdc c080b204 00000000 c07df1f4 c803de1c c803de00 c0365988 c036566c
[    1.841465] de00: c03658e0 00000000 c0837bdc c03658e0 c803de44 c803de20 c0363a84 c03658ec
[    1.849671] de20: c802370c c812a030 c81fd754 c0837bdc c81fd720 c083c310 c803de54 c803de48
[    1.857877] de40: c0365274 c0363a20 c803de7c c803de58 c0364ef8 c0365258 c06a3e78 c803de68
[    1.866082] de60: c0837bdc c08077f0 c07ce954 c803c038 c803de94 c803de80 c0366328 c0364db0
[    1.874286] de80: c08077f0 c08077f0 c803dea4 c803de98 c03675b8 c03662ac c803deb4 c803dea8
[    1.882492] dea0: c07ce96c c036756c c803df4c c803deb8 c0008760 c07ce960 c06a0278 000000c7
[    1.890697] dec0: c0731f34 00000000 c803def0 c803dee0 c003e430 c02f9b18 c803df04 c803dee8
[    1.898902] dee0: c803df00 c803def0 c003e430 c02f9afc c87ff359 c05a26b8 c803df4c c803df08
[    1.907107] df00: c003e5c0 c003e41c 00000000 00000006 00000006 c87ff36e c07312c4 00000000
[    1.915313] df20: 00000000 c07fb250 00000006 c08558a0 c08558a0 c07df1f4 000000e8 c07df200
[    1.923517] df40: c803df94 c803df50 c07a7e08 c00086dc 00000006 00000006 c07a75e8 c08295f0
[    1.931722] df60: c803c038 c8078d80 c803df94 00000000 c05513b8 00000000 00000000 00000000
[    1.939927] df80: 00000000 00000000 c803dfac c803df98 c05513d0 c07a7d1c c803c000 00000000
[    1.948131] dfa0: 00000000 c803dfb0 c000e988 c05513c4 00000000 00000000 00000000 00000000
[    1.956335] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.964538] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[    1.972762] [<c032a19c>] (bcm2708_fb_set_par) from [<c032a4bc>] (bcm2708_fb_probe+0x31c/0x3c0)
[    1.981426] [<c032a4bc>] (bcm2708_fb_probe) from [<c0367698>] (platform_drv_probe+0x54/0xb4)
[    1.989908] [<c0367698>] (platform_drv_probe) from [<c03656e8>] (really_probe+0x88/0x21c)
[    1.998127] [<c03656e8>] (really_probe) from [<c0365988>] (__driver_attach+0xa8/0xac)
[    2.005995] [<c0365988>] (__driver_attach) from [<c0363a84>] (bus_for_each_dev+0x70/0xa4)
[    2.014211] [<c0363a84>] (bus_for_each_dev) from [<c0365274>] (driver_attach+0x28/0x30)
[    2.022252] [<c0365274>] (driver_attach) from [<c0364ef8>] (bus_add_driver+0x154/0x200)
[    2.030294] [<c0364ef8>] (bus_add_driver) from [<c0366328>] (driver_register+0x88/0x108)
[    2.038425] [<c0366328>] (driver_register) from [<c03675b8>] (__platform_driver_register+0x58/0x6c)
[    2.047516] [<c03675b8>] (__platform_driver_register) from [<c07ce96c>] (bcm2708_fb_init+0x18/0x20)
[    2.056601] [<c07ce96c>] (bcm2708_fb_init) from [<c0008760>] (do_one_initcall+0x90/0x1e4)
[    2.064832] [<c0008760>] (do_one_initcall) from [<c07a7e08>] (kernel_init_freeable+0xf8/0x1b8)
[    2.073487] [<c07a7e08>] (kernel_init_freeable) from [<c05513d0>] (kernel_init+0x18/0xfc)
[    2.081709] [<c05513d0>] (kernel_init) from [<c000e988>] (ret_from_fork+0x14/0x20)
[    2.089311] Code: e24bd018 e89da870 ebf4c8f0 ebf4ca35 (e7f001f2)
[    2.095430] ---[ end trace 25f71beeec4416ed ]---
[    2.100210] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    2.100210]
[    2.109392] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    2.109392]

The config.txt was:

    # uncomment if you get no picture on HDMI for a default "safe" mode
    #hdmi_safe=1

    # uncomment this if your display has a black border of unused pixels visible
    # and your display can output without overscan
    #disable_overscan=1

    # uncomment the following to adjust overscan. Use positive numbers if console
    # goes off screen, and negative if there is too much border
    #overscan_left=16
    #overscan_right=16
    #overscan_top=16
    #overscan_bottom=16

    # uncomment to force a console size. By default it will be display's size minus
    # overscan.
    #framebuffer_width=1280
    #framebuffer_height=720

    # uncomment if hdmi display is not detected and composite is being output
    #hdmi_force_hotplug=1

    # uncomment to force a specific HDMI mode (this will force VGA)
    #hdmi_group=1
    #hdmi_mode=1

    # uncomment to force a HDMI mode rather than DVI. This can make audio work in
    # DMT (computer monitor) modes
    #hdmi_drive=2

    # uncomment to increase signal to HDMI, if you have interference, blanking, or
    # no display
    #config_hdmi_boost=4

    # uncomment for composite PAL
    #sdtv_mode=2

    #uncomment to overclock the arm. 700 MHz is the default.
    #arm_freq=800

    #memory split options
    gpu_mem_256=112
    gpu_mem_512=368
    cma_lwm=16
    cma_hwm=32
    cma_offline_start=16

    # for more options see http://elinux.org/RPi_config.txt
    gpu_mem=64

cmdline.txt was:

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/sda1   rootfstype=ext4 elevator=deadline rootwait rootdelay=5 coherent_pool=6M  smsc95xx.turbo_mode=N

The last kernel working for me was:

Linux raspberrypi 3.12.32+ #721 PREEMPT Fri Nov 7 16:50:31 GMT 2014 armv6l GNU/Linux

Markus

@notro
Copy link
Contributor

notro commented May 8, 2015

@popcornmix
This commit https://github.com/notro/linux/commit/5b103c323095098b1170ec50bb32a8e0bc555ede from #949 removes that nasty BUG statement in the fbdev driver letting the kernel continue booting when it fails probing.

@pelwell
Copy link
Contributor

pelwell commented May 8, 2015

That's an old kernel and firmware. There have been several CMA-related changes since then - you could try a "sudo rpi-update" after you've temporarily commented out the CMA settings. But to keep things simple, try adding "cma=0" to your cmdline.txt and rebooting.

@huaraz
Copy link
Author

huaraz commented May 8, 2015

When you say old kernel do you mean
Linux raspberrypi 3.12.32+ #721 PREEMPT Fri Nov 7 16:50:31 GMT 2014 armv6l GNU/Linux ?

The latest I tested and from which the kernel bug messages is is

3.18.7-v7+

Markus

@pelwell
Copy link
Contributor

pelwell commented May 8, 2015

Both. The rpi-3.18.y tree is up to 3.18.11.

@huaraz
Copy link
Author

huaraz commented May 8, 2015

Ok. I did a rpi-update and added cma=0 which worked.

Thank you
Markus

@huaraz huaraz closed this as completed May 8, 2015
pfpacket pushed a commit to pfpacket/linux-rpi-rust that referenced this issue Apr 7, 2023
rust: rename `PointerWrapper` to `ForeignOwnable`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants