=============================================
[ INFO: possible recursive locking detected ]
3.4.35_s40 #1 Not tainted
---------------------------------------------
swapper/0/1 is trying to acquire lock:
 (&lock->obj.mutex){+.+.+.}, at: [<c0373158>] _mali_osk_lock_wait+0xb0/0x118but task is already holding lock:
 (&lock->obj.mutex){+.+.+.}, at: [<c0373158>] _mali_osk_lock_wait+0xb0/0x118other info that might help us debug this:
 Possible unsafe locking scenario:       CPU0
       ----
  lock(&lock->obj.mutex);
  lock(&lock->obj.mutex); *** DEADLOCK *** May be due to missing lock nesting notation3 locks held by swapper/0/1:
 #0:  (&__lockdep_no_validate__){......}, at: [<c0390ef8>] __driver_attach+0x58/0xa8
 #1:  (&__lockdep_no_validate__){......}, at: [<c0390f08>] __driver_attach+0x68/0xa8
 #2:  (&lock->obj.mutex){+.+.+.}, at: [<c0373158>] _mali_osk_lock_wait+0xb0/0x118stack backtrace:
[<c001de44>] (unwind_backtrace+0x0/0x108) from [<c09b6c78>] (dump_stack+0x20/0x24)
[<c09b6c78>] (dump_stack+0x20/0x24) from [<c0085488>] (validate_chain+0x1044/0x1444)
[<c0085488>] (validate_chain+0x1044/0x1444) from [<c0085cec>] (__lock_acquire+0x464/0xc4c)
[<c0085cec>] (__lock_acquire+0x464/0xc4c) from [<c0086580>] (lock_acquire+0xac/0x13c)
[<c0086580>] (lock_acquire+0xac/0x13c) from [<c09b8758>] (mutex_lock_nested+0x90/0x3b0)
[<c09b8758>] (mutex_lock_nested+0x90/0x3b0) from [<c0373158>] (_mali_osk_lock_wait+0xb0/0x118)
[<c0373158>] (_mali_osk_lock_wait+0xb0/0x118) from [<c037eabc>] (os_allocator_allocate_page_table_block+0x2c/0x268)
[<c037eabc>] (os_allocator_allocate_page_table_block+0x2c/0x268) from [<c037e008>] (mali_allocation_engine_allocate_page_tables+0x34/0x68)
[<c037e008>] (mali_allocation_engine_allocate_page_tables+0x34/0x68) from [<c037d1ac>] (mali_mmu_get_table_page+0x204/0x32c)
[<c037d1ac>] (mali_mmu_get_table_page+0x204/0x32c) from [<c037c9f4>] (mali_allocate_empty_page+0x24/0x5c)
[<c037c9f4>] (mali_allocate_empty_page+0x24/0x5c) from [<c037beac>] (mali_mmu_initialize+0x1c/0x60)
[<c037beac>] (mali_mmu_initialize+0x1c/0x60) from [<c03770d4>] (mali_initialize_subsystems+0x5e4/0x8dc)
[<c03770d4>] (mali_initialize_subsystems+0x5e4/0x8dc) from [<c0378504>] (mali_probe+0x40/0x214)
[<c0378504>] (mali_probe+0x40/0x214) from [<c0392528>] (platform_drv_probe+0x28/0x2c)
[<c0392528>] (platform_drv_probe+0x28/0x2c) from [<c0390d20>] (driver_probe_device+0xac/0x22c)
[<c0390d20>] (driver_probe_device+0xac/0x22c) from [<c0390f44>] (__driver_attach+0xa4/0xa8)
[<c0390f44>] (__driver_attach+0xa4/0xa8) from [<c038f21c>] (bus_for_each_dev+0x78/0x9c)
[<c038f21c>] (bus_for_each_dev+0x78/0x9c) from [<c0390b48>] (driver_attach+0x2c/0x30)
[<c0390b48>] (driver_attach+0x2c/0x30) from [<c038fc10>] (bus_add_driver+0x21c/0x2e8)
[<c038fc10>] (bus_add_driver+0x21c/0x2e8) from [<c0391608>] (driver_register+0x88/0x190)
[<c0391608>] (driver_register+0x88/0x190) from [<c03929a4>] (platform_driver_register+0x60/0x68)
[<c03929a4>] (platform_driver_register+0x60/0x68) from [<c0378710>] (mali_module_init+0x38/0x7c)
[<c0378710>] (mali_module_init+0x38/0x7c) from [<c00085e0>] (do_one_initcall+0x44/0x198)
[<c00085e0>] (do_one_initcall+0x44/0x198) from [<c0cf8420>] (kernel_init+0x12c/0x1d8)
[<c0cf8420>] (kernel_init+0x12c/0x1d8) from [<c00166a8>] (kernel_thread_exit+0x0/0x8)

解决方案 »

  1.   

    Mali: Mali device driver loaded
    brd: module loaded
    loop: module loaded
    input: Hi keyboard as /devices/virtual/input/input0
    input: Hi mouse as /devices/virtual/input/input1
    input: qwerty as /devices/virtual/input/input2
    Hi Android vinput driver init successful!
    NCQ is supported.
    ahci: SSS flag set, parallel bus scan disabled
    ahci ahci.0: AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl platform mode
    ahci ahci.0: flags: ncq sntf stag pm led clo only pmp fbs slum part ccc sxs boh
    scsi0 : ahci_platform
    ata1: SATA max UDMA/133 mmio [mem 0xf9900000-0xf990ffff] port 0x100 irq 102
    Spi id table Version 1.30
    Check Spi Flash Controller V350. Found
    Spi(cs1) ID: 0xC2 0x20 0x16 0xC2 0x20 0x16
    Spi(cs1): Block:64KB Chip:4MB Name:"MX25L3206E"
    4 cmdlinepart partitions found on MTD device hi_sfc
    Creating 4 MTD partitions on "hi_sfc":
    0x000000000000-0x000000080000 : "fastboot"
    0x000000080000-0x000000090000 : "bootargs"
    0x000000090000-0x0000003f0000 : "recovery"
    0x0000003f0000-0x000000400000 : "deviceinfo"
    Found Nand Flash Controller V504.
    Nand ID: 0x2C 0x68 0x04 0x4A 0xA9 0x00 0x00 0x00
    Nand: Micron MT29F32G08CBACA
    Nand(Hardware): Block:1MB Page:4KB OOB:224B ECC:24bit Chip:4GB*1
    11 cmdlinepart partitions found on MTD device hinand
    Creating 11 MTD partitions on "hinand":
    0x000000000000-0x000000200000 : "baseparam"
    0x000000200000-0x000000c00000 : "logo"
    0x000000c00000-0x000001600000 : "logobak"
    0x000001600000-0x000003400000 : "fastplay"
    0x000003400000-0x000005200000 : "fastplaybak"
    0x000005200000-0x000007000000 : "kernel"
    0x000007000000-0x000007a00000 : "misc"
    0x000007a00000-0x000026e00000 : "system"
    ata1: SATA link down (SStatus 0 SControl 300)
    0x000026e00000-0x000066e00000 : "userdata"
    0x000066e00000-0x00006d200000 : "cache"
    0x00006d200000-0x000100000000 : "sdcard"
    UBI: attaching mtd11 to ubi0
    UBI: physical eraseblock size:   1048576 bytes (1024 KiB)
    UBI: logical eraseblock size:    1040384 bytes
    UBI: smallest flash I/O unit:    4096
    UBI: VID header offset:          4096 (aligned 4096)
    UBI: data offset:                8192
    UBI: max. sequence number:       330
    UBI: attached mtd11 to ubi0
    UBI: MTD device name:            "system"
    UBI: MTD device size:            500 MiB
    UBI: number of good PEBs:        500
    UBI: number of bad PEBs:         0
    UBI: number of corrupted PEBs:   0
    UBI: max. allowed volumes:       128
    UBI: wear-leveling threshold:    128
    UBI: number of internal volumes: 1
    UBI: number of user volumes:     1
    UBI: available PEBs:             0
    UBI: total number of reserved PEBs: 500
    UBI: number of PEBs reserved for bad PEB handling: 5
    UBI: max/mean erase counter: 2/1
    UBI: image sequence number:  1955543463
    UBI: background thread "ubi_bgt0d" started, PID 651
    UBI: attaching mtd12 to ubi1
    UBI: physical eraseblock size:   1048576 bytes (1024 KiB)
    UBI: logical eraseblock size:    1040384 bytes
    UBI: smallest flash I/O unit:    4096
    UBI: VID header offset:          4096 (aligned 4096)
    UBI: data offset:                8192
    UBI: max. sequence number:       13097
    UBI error: ubi_read_volume_table: the layout volume was not found
    UBI error: ubi_init: cannot attach mtd12
    UBI: attaching mtd13 to ubi1
    UBI: physical eraseblock size:   1048576 bytes (1024 KiB)
    UBI: logical eraseblock size:    1040384 bytes
    UBI: smallest flash I/O unit:    4096
    UBI: VID header offset:          4096 (aligned 4096)
    UBI: data offset:                8192
    UBI: max. sequence number:       2
    UBI: attached mtd13 to ubi1
    UBI: MTD device name:            "cache"
    UBI: MTD device size:            100 MiB
    UBI: number of good PEBs:        100
    UBI: number of bad PEBs:         0
    UBI: number of corrupted PEBs:   0
    UBI: max. allowed volumes:       128
    UBI: wear-leveling threshold:    128
    UBI: number of internal volumes: 1
    UBI: number of user volumes:     0
    UBI: available PEBs:             94
    UBI: total number of reserved PEBs: 6
    UBI: number of PEBs reserved for bad PEB handling: 2
    UBI: max/mean erase counter: 1/1
    UBI: image sequence number:  -931419877
    UBI: background thread "ubi_bgt1d" started, PID 653
    UBI: attaching mtd14 to ubi2
    UBI: physical eraseblock size:   1048576 bytes (1024 KiB)
    UBI: logical eraseblock size:    1040384 bytes
    UBI: smallest flash I/O unit:    4096
    UBI: VID header offset:          4096 (aligned 4096)
    UBI: data offset:                8192
    UBI: max. sequence number:       4
    UBI: attached mtd14 to ubi2
    UBI: MTD device name:            "sdcard"
    UBI: MTD device size:            2350 MiB
    UBI: number of good PEBs:        2350
    UBI: number of bad PEBs:         0
    UBI: number of corrupted PEBs:   0
    UBI: max. allowed volumes:       128
    UBI: wear-leveling threshold:    128
    UBI: number of internal volumes: 1
    UBI: number of user volumes:     1
    UBI: available PEBs:             0
    UBI: total number of reserved PEBs: 2350
    UBI: number of PEBs reserved for bad PEB handling: 23
    UBI: max/mean erase counter: 2/1
    UBI: image sequence number:  -146904018
    UBI: background thread "ubi_bgt2d" started, PID 656
      

  2.   

    MISC TAGS:
    higmac_mdio_bus: probed
    higmac_mdio_bus: probed
    PHY mdio1:01 not found
    ETH0: mii, phy_addr=2, mii_name=mdio0
    ETH1: rgmii, phy_addr=1, mii_name=mdio1
    PPP generic driver version 2.4.2
    PPP BSD Compression module registered
    PPP Deflate Compression module registered
    PPP MPPE Compression module registered
    NET: Registered protocol family 24
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    hiusb-ehci hiusb-ehci.0: HIUSB EHCI
    hiusb-ehci hiusb-ehci.0: new USB bus registered, assigned bus number 1
    hiusb-ehci hiusb-ehci.0: irq 98, io mem 0xf9890000
    hiusb-ehci hiusb-ehci.0: USB 0.0 started, EHCI 1.00
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 3 ports detected
    ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    hiusb-ohci hiusb-ohci.0: HIUSB OHCI
    hiusb-ohci hiusb-ohci.0: new USB bus registered, assigned bus number 2
    hiusb-ohci hiusb-ohci.0: irq 99, io mem 0xf9880000
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 3 ports detected
    usbcore: registered new interface driver cdc_wdm
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    mousedev: PS/2 mouse device common for all mice
    usbcore: registered new interface driver uvcvideo
    USB Video Class driver (1.1.1)
    device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: [email protected]
    usbcore: registered new interface driver btusb
    usb 1-1: new high-speed USB device number 2 using hiusb-ehci
    hi_mci1: eMMC/MMC/SD Device NOT detected!
    usb 1-2: new high-speed USB device number 3 using hiusb-ehci
    hi_mci0: eMMC/MMC/SD Device NOT detected!
    hub 1-2:1.0: USB hub found
    hub 1-2:1.0: 4 ports detected
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    ashmem: initialized
    logger: created 256K log 'log_main'
    logger: created 256K log 'log_events'
    logger: created 256K log 'log_radio'
    logger: created 256K log 'log_system'
    usbcore: registered new interface driver snd-usb-audio
    oprofile: using arm/armv7-ca9
    Netfilter messages via NETLINK v0.30.
    nf_conntrack version 0.5.0 (15541 buckets, 62164 max)
    ctnetlink v0.93: registering with nfnetlink.
    NF_TPROXY: Transparent proxy support initialized, version 4.1.0
    NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
    xt_time: kernel timezone is -0000
    IPVS: Registered protocols ()
    IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
    IPVS: Creating netns size=1224 id=0
    IPVS: ipvs loaded.
    ip_tables: (C) 2000-2006 Netfilter Core Team
    ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
    arp_tables: (C) 2002 David S. Miller
    TCP: cubic registered
    NET: Registered protocol family 10
    ip6_tables: (C) 2000-2006 Netfilter Core Team
    NET: Registered protocol family 17
    Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    lib80211: common routines for IEEE802.11 drivers
    lib80211_crypt: registered algorithm 'NULL'
    lib80211_crypt: registered algorithm 'WEP'
    lib80211_crypt: registered algorithm 'CCMP'
    lib80211_crypt: registered algorithm 'TKIP'
    VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    Load hi_hdmi.ko success.        (SDK_VERSION:[HiSTBLinuxV100R002] Build Time:[Mar  6 2014, 10:09:34])
    Load hi_vou.ko success.         (SDK_VERSION:[HiSTBLinuxV100R002] Build Time:[Mar  6 2014, 10:13:10])
    usb 1-2.2: new high-speed USB device number 4 using hiusb-ehci
    scsi1 : usb-storage 1-2.2:1.0
    Load hi_tde.ko success.         (SDK_VERSION:[HiSTBLinuxV100R002] Build Time:[Mar  6 2014, 10:11:08])
    Load hi_fb.ko success.          (SDK_VERSION:[HiSTBLinuxV100R002] Build Time:[Mar  6 2014, 10:10:05])
    Load hi_jpegdec.ko success.             (SDK_VERSION:[HiSTBLinuxV100R002] Build Time:[Mar  6 2014, 10:10:22])
    Load hi_pvr.ko success.         (SDK_VERSION:[HiSTBLinuxV100R002] Build Time:[Mar  6 2014, 10:10:57])
    asoc: aiao-hifi <-> hisi-i2s mapping ok
    Load hi_adec.ko success.        (SDK_VERSION:[HiSTBLinuxV100R002] Build Time:[Mar  6 2014, 10:07:47])
    Load hi_svdec.ko success.       (SDK_VERSION:[HiSTBLinuxV100R002] Build Time:[Mar  6 2014, 10:11:35])
    <OMX VDEC> Load hi_omxvdec.ko success.  (SDK_VERSION:[HiSTBLinuxV100R002] Build Time:[Mar  6 2014, 10:10:34])
    Load hi_wdg.ko success          (SDK_VERSION:[HiSTBLinuxV100R002] Build Time:[Mar  6 2014, 10:12:58])
    Load hi_png.ko success.         (SDK_VERSION:[HiSTBLinuxV100R002] Build Time:[Mar  6 2014, 10:10:48])
    Load hi_jpegenc.ko success.             (SDK_VERSION:[HiSTBLinuxV100R002] Build Time:[Mar  6 2014, 10:10:23])
    select TM1628 Led
    Load hi_aenc.ko success.        (SDK_VERSION:[HiSTBLinuxV100R002] Build Time:[Mar  6 2014, 10:08:00])
    Load hi_venc.ko success.        (SDK_VERSION:[HiSTBLinuxV100R002] Build Time:[Mar  6 2014, 10:11:30])
    ALSA device list:
      #0: HISI-AIAO
    Warning: unable to open an initial console.
    Freeing init memory: 2032K
    init (1): /proc/1/oom_adj is deprecated, please use /proc/1/oom_score_adj instead.
    scsi 1:0:0:0: Direct-Access     USB      Flash DISK       1100 PQ: 0 ANSI: 4
    sd 1:0:0:0: [sda] 31703040 512-byte logical blocks: (16.2 GB/15.1 GiB)
    sd 1:0:0:0: [sda] Write Protect is off
    sd 1:0:0:0: [sda] Mode Sense: 43 00 00 00
    sd 1:0:0:0: [sda] No Caching mode page present
    sd 1:0:0:0: [sda] Assuming drive cache: write through
    sd 1:0:0:0: [sda] No Caching mode page present
    sd 1:0:0:0: [sda] Assuming drive cache: write through
     sda: sda1
    sd 1:0:0:0: [sda] No Caching mode page present
    sd 1:0:0:0: [sda] Assuming drive cache: write through
    sd 1:0:0:0: [sda] Attached SCSI removable disk
    UBIFS: mounted UBI device 0, volume 0, name "ubifs"
    UBIFS: file system size:   501465088 bytes (489712 KiB, 478 MiB, 482 LEBs)
    UBIFS: journal size:       24969216 bytes (24384 KiB, 23 MiB, 24 LEBs)
    UBIFS: media format:       w4/r0 (latest is w4/r0)
    UBIFS: default compressor: lzo
    UBIFS: reserved for root:  4952683 bytes (4836 KiB)
    init: Unable to open persistent property directory /data/property errno: 2
    init: cannot find '/system/bin/rild', disabling 'ril-daemon'
    init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
    init: cannot find '/system/bin/dtvserver', disabling 'dtvserver'
    input: tdinput_n as /devices/virtual/input/input3
    input: tdinput_t as /devices/virtual/input/input4
    input: tdinput_mt as /devices/virtual/input/input5
    root@android:/ # init: Unable to write persistent property to temp file /data/property/.temp errno: 2
    init: Unable to write persistent property to temp file /data/property/.temp errno: 2
    init: Unable to write persistent property to temp file /data/property/.temp errno: 2
    init: Unable to write persistent property to temp file /data/property/.temp errno: 2
    init: Unable to write persistent property to temp file /data/property/.temp errno: 2
    init: Unable to write persistent property to temp file /data/property/.temp errno: 2
    ufsd: module license 'Commercial product' taints kernel.
    ufsd:: trace mask set to 0000000f
    ufsd: driver (lke_8.9.0 lke_8.9.0_r211758_b30, LBD=ON, delalloc, acl, ioctl, bdi, sd, fua, tr) loaded at bf000000
    NTFS support included
    optimized: speed
    Build_for__Huawei_Hi3716cv200_k3.4.35_2013-05-09_with_lock_debugging_lke_8.9.0_r211758_b30
     'Evaluation version - not for resale!'
    =========================> KEYLED_Init_TM1628: 620
    init: untracked pid 1533 exited
    init: untracked pid 1538 exited
    init: untracked pid 2009 exited
    init: untracked pid 2010 exited
      

  3.   

    你可以利用ftrace来看一下哪个进程在不停重启:
    echo 1 > /sys/kernel/debug/tracing/events/sched/sched_process_exit/enable
    cat /sys/kernel/debug/tracing/trace