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.

am3517: kernel 3.6 wl1271 crash

Other Parts Discussed in Thread: WL1271, AM3517

I'm trying to get the upcoming kernel 3.6 running. My biggest problem is wl1271 via SDIO. kernel 3.3.rc7 had no problems initializing and using WLAN. This way I configure WLAN interrupt and pass platform data:

        /* WLAN */
        omap_am3517evm_wlan_data.irq =  gpio_to_irq(OMAP_AM3517EVM_WIFI_IRQ_GPIO);
        if (wl12xx_set_platform_data(&omap_am3517evm_wlan_data))
                pr_err("error setting wl12xx data\n");

during kernel boot I get a crash (see further). If I don't provide IRQ the system doesn't crash, but has no WLAN. It has something to to with making GPIO to IRQ or something similar. This is the kernel from https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git, the linux-omap shows the same behavior.

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0
Linux version 3.5.0-08833-g2d53492-dirty () (gcc version 4.5.3 (Buildroot 2012.05-rc2-00009-gfbd5a1d-dirty) ) #18 Wed Aug 1 16:03:35 CEST 2012
CPU: ARMv7 Processor [411fc087] revision 7 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: OMAP3517/AM3517 EVM
Ignoring tag cmdline (using the default kernel command line)
bootconsole [earlycon0] enabled
Reserving 16777216 bytes SDRAM for VRAM
Memory policy: ECC disabled, Data cache writeback
AM3517 ES1.1 (l2cache sgx neon )
Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 60672
Kernel command line: root=/dev/mmcblk0p2 rootwait console=ttyO2,115200 earlyprintk=serial,ttyO2,115200
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 239MB = 239MB total
Memory: 228284k/228284k available, 33860k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
      .text : 0xc0008000 - 0xc07c9ff8   (7944 kB)
      .init : 0xc07ca000 - 0xc080b060   ( 261 kB)
      .data : 0xc080c000 - 0xc089beb0   ( 576 kB)
       .bss : 0xc089bed4 - 0xc0dd0d48   (5332 kB)
NR_IRQS:474
IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
Total of 96 interrupts on 1 active controller
OMAP clockevent source: GPTIMER1 at 32768 Hz
sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
OMAP clocksource: 32k_counter at 32768 Hz
Console: colour dummy device 80x30
Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
... MAX_LOCKDEP_SUBCLASSES:  8
... MAX_LOCK_DEPTH:          48
... MAX_LOCKDEP_KEYS:        8191
... CLASSHASH_SIZE:          4096
... MAX_LOCKDEP_ENTRIES:     16384
... MAX_LOCKDEP_CHAINS:      32768
... CHAINHASH_SIZE:          16384
 memory used by lock dependency info: 3695 kB
 per task-struct memory footprint: 1152 bytes
Calibrating delay loop... 331.40 BogoMIPS (lpj=1296384)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x80576cc0 - 0x80576d18
devtmpfs: initialized
dummy:
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
GPMC revision 5.0
gpmc: irq-20 could not claim: err -22
OMAP GPIO hardware version 2.5
omap_mux_init: Add partition: #1: core, flags: 0
_omap_mux_get_by_name: Could not find signal uart4_rx.uart4_rx
Reprogramming SDRC clock to 332000000 Hz
dpll3_m2_clk rate change failed: -22
 usbhs_omap: alias fck already exists
hw-breakpoint: debug architecture 0x4 unsupported.
 omap-mcbsp.2: alias fck already exists
 omap-mcbsp.3: alias fck already exists
OMAP DMA hardware revision 4.0
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
omap_i2c omap_i2c.1: bus 1 rev1.3.12 at 400 kHz
omap_i2c omap_i2c.2: bus 2 rev1.3.12 at 400 kHz
pca953x 2-0021: failed reading register
pca953x: probe of 2-0021 failed with error -121
omap_i2c omap_i2c.3: bus 3 rev1.3.12 at 400 kHz
omap_i2c omap_i2c.3: timeout waiting on XUDF bit
omap_i2c omap_i2c.3: controller timed out
pca953x 3-0020: failed reading register
pca953x: probe of 3-0020 failed with error -110
omap_i2c omap_i2c.3: timeout waiting on XUDF bit
omap_i2c omap_i2c.3: controller timed out
pca953x 3-0021: failed reading register
pca953x: probe of 3-0021 failed with error -110
Advanced Linux Sound Architecture Driver Version 1.0.25.
Bluetooth: Core ver 2.16
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource 32k_counter
usbhs_omap usbhs_omap: xclk60mhsp1_ck set parentfailed error:-22
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 6, 294912 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 256 (order: 2, 20480 bytes)
UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (double precision)
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
msgmni has been set to 445
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
OMAP DSS rev 2.0
omapdss DPI error: can't get VDDS_DSI regulator
omapdss DPI error: device lcd init failed: -517
omapdss DPI error: can't get VDDS_DSI regulator
omapdss DPI error: device dvi init failed: -517
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0
omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1
omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
console [ttyO2] enabled, bootconsole disabled
console [ttyO2] enabled, bootconsole disabled
omap_uart.3: ttyO3 at MMIO 0x4809e000 (irq = 84) is a OMAP UART3
brd: module loaded
loop: module loaded
mtdoops: mtd device (mtddev=name/number) must be supplied
OneNAND driver initializing
vcan: Virtual CAN interface driver
slcan: serial line CAN interface driver
slcan: 10 dynamic interface channels.
CAN device driver interface
usbcore: registered new interface driver peak_usb
ti_hecc ti_hecc: device registered (reg_base=d0838000, irq=24)
davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
davinci_mdio davinci_mdio.0: detected phy mask fffffffd
libphy: davinci_mdio.0: probed
davinci_mdio davinci_mdio.0: phy[1]: device davinci_mdio-0:01, driver unknown
PPP generic driver version 2.4.2
usbcore: registered new interface driver asix
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver smsc95xx
usbcore: registered new interface driver net1080
usbcore: registered new interface driver cdc_subset
usbcore: registered new interface driver zaurus
usbcore: registered new interface driver cdc_ncm
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: OMAP-EHCI Host Controller
usb usb1: Manufacturer: Linux 3.5.0-08833-g2d53492-dirty ehci_hcd
usb usb1: SerialNumber: ehci-omap.0
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver cdc_wdm
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
usbcore: registered new interface driver ftdi_sio
USB Serial support registered for FTDI USB Serial Device
ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
usbcore: registered new interface driver sierra
USB Serial support registered for Sierra USB modem
usbcore: registered new interface driver usbtest
musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
?6Waiting for PHY clock good...
musb-hdrc musb-hdrc: USB OTG mode controller at d083e000 using PIO, IRQ 71
 gadget: using random self ethernet address
 gadget: using random host ethernet address
usb0: MAC 9e:17:61:a2:00:db
usb0: HOST MAC 96:ab:cb:2e:27:f2
 gadget: Ethernet Gadget, version: Memorial Day 2008
 gadget: g_ether ready
musb-hdrc musb-hdrc: MUSB HDRC host driver
musb-hdrc musb-hdrc: new USB bus registered, assigned bus number 2
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: MUSB HDRC host driver
usb usb2: Manufacturer: Linux 3.5.0-08833-g2d53492-dirty musb-hcd
usb usb2: SerialNumber: musb-hdrc
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
mousedev: PS/2 mouse device common for all mice
rtc-s35390a 1-0030: rtc core: registered rtc-s35390a as rtc0
i2c /dev entries driver
Driver for 1-wire Dallas network protocol.
omap_wdt: OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
Bluetooth: Virtual HCI driver ver 1.3
Bluetooth: HCI UART driver ver 2.2
Bluetooth: HCI H4 protocol initialized
Bluetooth: HCI BCSP protocol initialized
Bluetooth: HCILL protocol initialized
usbcore: registered new interface driver btusb
omap_hsmmc omap_hsmmc.0: Failed to get debounce clk
usb 1-1: new high-speed USB device number 2 using ehci-omap
omap_hsmmc omap_hsmmc.1: Failed to get debounce clk
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usbcore: registered new interface driver snd-usb-audio
OMAP3517 / AM3517 EVM SoC init
mmc0: host does not support reading read-only switch. assuming write-enable.
soc-audio soc-audio: ASoC machine am3517evm should use snd_soc_register_card()
mmc0: new high speed SDHC card at address f645
soc-audio soc-audio:  tlv320aic23-hifi <-> omap-mcbsp.1 mapping ok
mmcblk0: mmc0:f645 SU04G 3.69 GiB
 mmcblk0: p1 p2
usb 1-1: New USB device found, idVendor=0424, idProduct=9514
usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
oprofile: hardware counters not available
oprofile: using timer interrupt.
TCP: cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
NET: Registered protocol family 15
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
mmc1: card claims to support voltages below the defined range. These will be ignored.
hub 1-1:1.0: USB hub found
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
lib80211: common routines for IEEE802.11 drivers
Key type dns_resolver registered
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1
voltdm_scale: No voltage scale API registered for vdd_mpu_iva
voltdm_scale: No voltage scale API registered for vdd_core
PM: no software I/O chain control; some wakeups may be lost
ThumbEE CPU extension supported.
clock: disabling unused clocks to save power
hub 1-1:1.0: 5 ports detected
omapfb omapfb: no displays
omapfb omapfb: failed to setup omapfb
omapfb: probe of omapfb failed with error -22
failed to register omapfb driver
davinci_emac davinci_emac.0: using random MAC addr: 6e:70:8e:8b:2d:4c
rtc-s35390a 1-0030: setting system clock to 2000-01-01 03:19:48 UTC (946696788)
ALSA device list:
  #0: am3517evm
EXT3-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240)
EXT2-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (244)
mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
mmc1: new SDIO card at address 0001
EXT4-fs (mmcblk0p2): recovery complete
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:2.
devtmpfs: mounted
Freeing init memory: 260K
EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Populating  using udev: Unhandled fault: external abort on non-linefetch (0x1028) at 0xfb058040
Internal error: : 1028 [#1] ARM
CPU: 0    Not tainted  (3.5.0-08833-g2d53492-dirty #18)
PC is at _set_gpio_triggering+0x28/0x26c
LR is at gpio_irq_type+0x64/0x10c
pc : [<c025bdf8>]    lr : [<c025c3d0>]    psr: 20000093
sp : ce841c18  ip : fb058000  fp : 00000000
r10: 000000aa  r9 : c0849d70  r8 : ce872a10
r7 : 20000093  r6 : ce872a6c  r5 : 00000020  r4 : ce8585c0
r3 : ce872a10  r2 : 00000004  r1 : 0000000a  r0 : 00000040
Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 10c5387d  Table: 8e088019  DAC: 00000015
Process kworker/u:0 (pid: 6, stack limit = 0xce8402f0)
Stack: (0xce841c18 to 0xce842000)
1c00:                                                       00000004 c0849d40
1c20: ce872a6c 20000093 c025c36c c0849d40 c03280d0 00000000 c085bdc8 0000010a
1c40: 00000004 c007cfac c0849ddc ce02c6c0 c03280d0 c0849d40 0000010a c0849d90
1c60: 40000013 c007d3c8 0000010a ce058650 ce091880 c03280d0 0000010a c0849d40
1c80: ce02c6c0 00000000 cebe1808 c007d664 00002004 c032c1f8 ce091880 ce0355c0
1ca0: ce058400 000011c4 c0dc4e00 c056c5dc ce058650 ce091880 ce058408 ce058408
1cc0: ce058408 c0dc4df0 c088d0f0 c086ba00 c0dc4e00 00000000 cebe1808 c02b8044
1ce0: c02b802c c02b6d58 c02b819c c086ba00 ce058408 ce841d10 c02b70b0 00000000
1d00: c0dc4dac 00000000 cebe1808 c02b5654 ce81d4d8 ceb1ca14 00000000 ce058408
1d20: ce05843c 00000000 00000000 c02b6a74 ce81d400 ce058408 ce058408 c08634a0
1d40: 00000000 c02b5894 ce058408 ce058410 ce038c08 c02b3cd4 00000021 00000000
1d60: 00000000 c02421fc ce841d90 00000000 ce058400 00000001 ce058400 ce058408
1d80: ce038c08 00000000 00000000 cebe1808 00000000 c02b85d0 0000010a 00000000
1da0: ce035640 ce8d3dc0 ce038c08 c056ced8 00000000 0000010a 00000000 c07593d0
1dc0: 00000400 00000000 00000000 00000000 ce038c08 ce038c00 c086b98c c079de3c
1de0: 00000000 c03c7cc0 ce038c08 c0dc4df0 c088d0f0 c086b99c c0dc4e00 c02b6d58
1e00: ceb1ca94 c086b99c ce038c08 ce841e28 c02b70b0 00000000 c0dc4dac 00000000
1e20: cebe1808 c02b5654 ce9306d8 ceb1ca94 00000000 ce038c08 ce038c3c 00000000
1e40: 00000000 c02b6a74 ce930600 ce038c08 ce038c08 c0877f34 00000000 c02b5894
1e60: ce038c08 ce038c10 cebe1808 c02b3cd4 00000021 00000000 cebe1800 c02421fc
1e80: ce841ea8 ce038c00 ce038c08 ce038c00 ce038c08 ceb56800 cebe1800 cebe1800
1ea0: 00000002 cebe1808 00000000 c03c7dd0 cebe1800 00000001 00000002 c03c7280
1ec0: 00000000 00000000 a0ffff80 00000000 000002f5 ceb56800 c05ae854 c05ae860
1ee0: ce930c00 00000000 ce841f28 ce840000 00000002 c03c0308 ceb56b0c ce81a4c0
1f00: c08af5bc c004d4a4 00000002 00000000 c004d428 00000080 00000000 00000000
1f20: c03c0100 ce930c05 c0dc783c c096a9a4 00000000 c077dab8 ce81a4d0 ce81a4c0
1f40: c08af6e4 ce840000 ce81a4d0 c08af6ec c08af5bc c083caa0 00000089 c004e8c4
1f60: c05766cc ce841f78 00000001 00000000 00000000 00000000 00000000 c0072844
1f80: 60000013 ce82ded8 ce841fb4 ce81a4c0 c004e760 00000000 00000000 00000000
1fa0: 00000000 c00537c4 ce840000 00000000 ce81a4c0 00000000 00000001 dead4ead
1fc0: ffffffff ffffffff c08afcd0 00000000 00000000 c071710c ce841fd8 ce841fd8
1fe0: ce82ded8 ce82ded8 c0053738 c00150f0 00000013 c00150f0 f324f7cf 5f1775ff
[<c025bdf8>] (_set_gpio_triggering+0x28/0x26c) from [<c025c36c>] (gpio_irq_type+0x0/0x10c)
[<c025c36c>] (gpio_irq_type+0x0/0x10c) from [<c0849ddc>] (irq_desc+0xb77c/0x145e0)
Code: 0a000051 e1d452b2 e3550000 0a00004e (e79c4000)
---[ end trace 1b0213da172cb2fc ]---
In-band Error seen by MPU  at address 0
------------[ cut here ]------------
WARNING: at arch/arm/mach-omap2/omap_l3_smx.c:162 omap3_l3_app_irq+0x100/0x120()[<c001a03c>] (unwind_backtrace+0x0/0x138) from [<c0037e00>] (warn_slowpath_common+0x48/0x60)
[<c0037e00>] (warn_slowpath_common+0x48/0x60) from [<c0037ecc>] (warn_slowpath_null+0x1c/0x24)
[<c0037ecc>] (warn_slowpath_null+0x1c/0x24) from [<c002e44c>] (omap3_l3_app_irq+0x100/0x120)
[<c002e44c>] (omap3_l3_app_irq+0x100/0x120) from [<c007c374>] (handle_irq_event_percpu+0x50/0x1b4)
[<c007c374>] (handle_irq_event_percpu+0x50/0x1b4) from [<c007c514>] (handle_irq_event+0x3c/0x5c)
[<c007c514>] (handle_irq_event+0x3c/0x5c) from [<c007e600>] (handle_level_irq+0x8c/0x124)
[<c007e600>] (handle_level_irq+0x8c/0x124) from [<c007bd10>] (generic_handle_irq+0x30/0x44)
[<c007bd10>] (generic_handle_irq+0x30/0x44) from [<c001500c>] (handle_IRQ+0x30/0x84)
[<c001500c>] (handle_IRQ+0x30/0x84) from [<c000874c>] (omap3_intc_handle_irq+0x64/0x74)
[<c000874c>] (omap3_intc_handle_irq+0x64/0x74) from [<c0013d44>] (__irq_svc+0x44/0x60)
Exception stack(0xce841a68 to 0xce841ab0)
1a60:                   c0576704 00000001 ce83a080 00000000 ce832544 0000000b
1a80: ce841bd0 ce840000 0000000b 00001028 ce83a080 60000193 ce840000 ce841ab0
1aa0: c0576704 c0576708 60000113 ffffffff
[<c0013d44>] (__irq_svc+0x44/0x60) from [<c0576708>] (_raw_spin_unlock_irq+0x28/0x2c)
[<c0576708>] (_raw_spin_unlock_irq+0x28/0x2c) from [<c003d4b4>] (do_exit+0x53c/0x728)
[<c003d4b4>] (do_exit+0x53c/0x728) from [<c0017fa4>] (die+0x230/0x264)
[<c0017fa4>] (die+0x230/0x264) from [<c00085c8>] (do_DataAbort+0x8c/0x9c)
[<c00085c8>] (do_DataAbort+0x8c/0x9c) from [<c0013cdc>] (__dabt_svc+0x3c/0x60)
Exception stack(0xce841bd0 to 0xce841c18)
1bc0:                                     00000040 0000000a 00000004 ce872a10
1be0: ce8585c0 00000020 ce872a6c 20000093 ce872a10 c0849d70 000000aa 00000000
1c00: fb058000 ce841c18 c025c3d0 c025bdf8 20000093 ffffffff
[<c0013cdc>] (__dabt_svc+0x3c/0x60) from [<c025bdf8>] (_set_gpio_triggering+0x28/0x26c)
[<c025bdf8>] (_set_gpio_triggering+0x28/0x26c) from [<c025c36c>] (gpio_irq_type+0x0/0x10c)
[<c025c36c>] (gpio_irq_type+0x0/0x10c) from [<c0849ddc>] (irq_desc+0xb77c/0x145e0)
---[ end trace 1b0213da172cb2fd ]---
Unable to handle kernel paging request at virtual address fffffffc
pgd = c0004000
[fffffffc] *pgd=8eefe821, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#2] ARM
CPU: 0    Tainted: G      D W     (3.5.0-08833-g2d53492-dirty #18)
PC is at kthread_data+0x4/0xc
LR is at wq_worker_sleeping+0xc/0xc0
pc : [<c0053858>]    lr : [<c004ec6c>]    psr: 20000193
sp : ce841a18  ip : c083d560  fp : ce841ab4
r10: c057b47c  r9 : ce83a258  r8 : ce83a2d4
r7 : ce840000  r6 : c083d560  r5 : 00000001  r4 : 00000000
r3 : 00000000  r2 : c083d560  r1 : 00000000  r0 : ce83a080
Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c5387d  Table: 8e088019  DAC: 00000015
Process kworker/u:0 (pid: 6, stack limit = 0xce8402f0)
Stack: (0xce841a18 to 0xce842000)
1a00:                                                       ce83a080 c0575840
1a20: ceb7f784 00000000 a0000193 ce86c4c8 ce83a2d4 a0000193 00000000 c003d420
1a40: a0000193 c05766c0 ce86c100 ce86c4c8 ce86c100 c005cb0c ce8657c0 c083caa8
1a60: 60000193 ce807ec0 60000193 c083caa8 60000113 ce82b340 ce841ad4 ce83a258
1a80: 60000193 c05766c0 60000113 ceb7f744 60000113 ce83a080 00000001 ce83a078
1aa0: ce82b340 ce841ad4 ce83a258 ce83a258 ce83a258 c003d420 c083b5dc ce841acc
1ac0: ce840000 00000001 00000001 ce841acc ce841acc ce83a2a0 c0818c88 c089c198
1ae0: c0818c88 ce841bd0 ce840000 0000000b 00001028 ce83a080 60000193 c0017fa4
1b00: ce8402f0 0000000b c070b108 00001028 fb058040 ce841bd0 00000000 c08190f8
1b20: c0849d70 000000aa 00000000 c00085c8 00000000 c095dc94 00000007 00000000
1b40: 00000000 fb058040 ce83a508 ce83a080 ce840000 ce83a520 00000018 c0dbc2e4
1b60: f012422a 15303e01 ce83a520 00000001 00000000 ce840000 ce83a538 ce83a080
1b80: 00000006 00000000 c05766cc ce83a080 c095d854 ffffffff 00000000 c057b1a4
1ba0: f00f8092 1520a981 00000000 00000001 00000000 00000000 c025bdf8 20000093
1bc0: ffffffff ce841c04 ce872a10 c0013cdc 00000040 0000000a 00000004 ce872a10
1be0: ce8585c0 00000020 ce872a6c 20000093 ce872a10 c0849d70 000000aa 00000000
1c00: fb058000 ce841c18 c025c3d0 c025bdf8 20000093 ffffffff 00000004 c0849d40
1c20: ce872a6c 20000093 c025c36c c0849d40 c03280d0 00000000 c085bdc8 0000010a
1c40: 00000004 c007cfac c0849ddc ce02c6c0 c03280d0 c0849d40 0000010a c0849d90
1c60: 40000013 c007d3c8 0000010a ce058650 ce091880 c03280d0 0000010a c0849d40
1c80: ce02c6c0 00000000 cebe1808 c007d664 00002004 c032c1f8 ce091880 ce0355c0
1ca0: ce058400 000011c4 c0dc4e00 c056c5dc ce058650 ce091880 ce058408 ce058408
1cc0: ce058408 c0dc4df0 c088d0f0 c086ba00 c0dc4e00 00000000 cebe1808 c02b8044
1ce0: c02b802c c02b6d58 c02b819c c086ba00 ce058408 ce841d10 c02b70b0 00000000
1d00: c0dc4dac 00000000 cebe1808 c02b5654 ce81d4d8 ceb1ca14 00000000 ce058408
1d20: ce05843c 00000000 00000000 c02b6a74 ce81d400 ce058408 ce058408 c08634a0
1d40: 00000000 c02b5894 ce058408 ce058410 ce038c08 c02b3cd4 00000021 00000000
1d60: 00000000 c02421fc ce841d90 00000000 ce058400 00000001 ce058400 ce058408
1d80: ce038c08 00000000 00000000 cebe1808 00000000 c02b85d0 0000010a 00000000
1da0: ce035640 ce8d3dc0 ce038c08 c056ced8 00000000 0000010a 00000000 c07593d0
1dc0: 00000400 00000000 00000000 00000000 ce038c08 ce038c00 c086b98c c079de3c
1de0: 00000000 c03c7cc0 ce038c08 c0dc4df0 c088d0f0 c086b99c c0dc4e00 c02b6d58
1e00: ceb1ca94 c086b99c ce038c08 ce841e28 c02b70b0 00000000 c0dc4dac 00000000
1e20: cebe1808 c02b5654 ce9306d8 ceb1ca94 00000000 ce038c08 ce038c3c 00000000
1e40: 00000000 c02b6a74 ce930600 ce038c08 ce038c08 c0877f34 00000000 c02b5894
1e60: ce038c08 ce038c10 cebe1808 c02b3cd4 00000021 00000000 cebe1800 c02421fc
1e80: ce841ea8 ce038c00 ce038c08 ce038c00 ce038c08 ceb56800 cebe1800 cebe1800
1ea0: 00000002 cebe1808 00000000 c03c7dd0 cebe1800 00000001 00000002 c03c7280
1ec0: 00000000 00000000 a0ffff80 00000000 000002f5 ceb56800 c05ae854 c05ae860
1ee0: ce930c00 00000000 ce841f28 ce840000 00000002 c03c0308 ceb56b0c ce81a4c0
1f00: c08af5bc c004d4a4 00000002 00000000 c004d428 00000080 00000000 00000000
1f20: c03c0100 ce930c05 c0dc783c c096a9a4 00000000 c077dab8 ce81a4d0 ce81a4c0
1f40: c08af6e4 ce840000 ce81a4d0 c08af6ec c08af5bc c083caa0 00000089 c004e8c4
1f60: c05766cc ce841f78 00000001 00000000 00000000 00000000 00000000 c0072844
1f80: 60000013 ce82ded8 ce841fb4 ce81a4c0 c004e760 00000000 00000000 00000000
1fa0: 00000000 c00537c4 ce840000 00000000 ce81a4c0 00000001 00000001 dead4ead
1fc0: ffffffff ffffffff c08afcd0 00000000 00000000 c071710c ce841fd8 ce841fd8
1fe0: ce82ded8 ce82ded8 c0053738 c00150f0 00000013 c00150f0 f324f7cf 5f1775ff
[<c0053858>] (kthread_data+0x4/0xc) from [<c004ec6c>] (wq_worker_sleeping+0xc/0xc0)
[<c004ec6c>] (wq_worker_sleeping+0xc/0xc0) from [<c0575840>] (__schedule+0x41c/0x640)
[<c0575840>] (__schedule+0x41c/0x640) from [<c003d420>] (do_exit+0x4a8/0x728)
[<c003d420>] (do_exit+0x4a8/0x728) from [<c0017fa4>] (die+0x230/0x264)
[<c0017fa4>] (die+0x230/0x264) from [<c00085c8>] (do_DataAbort+0x8c/0x9c)
[<c00085c8>] (do_DataAbort+0x8c/0x9c) from [<c0013cdc>] (__dabt_svc+0x3c/0x60)
Exception stack(0xce841bd0 to 0xce841c18)
1bc0:                                     00000040 0000000a 00000004 ce872a10
1be0: ce8585c0 00000020 ce872a6c 20000093 ce872a10 c0849d70 000000aa 00000000
1c00: fb058000 ce841c18 c025c3d0 c025bdf8 20000093 ffffffff
[<c0013cdc>] (__dabt_svc+0x3c/0x60) from [<c025bdf8>] (_set_gpio_triggering+0x28/0x26c)
[<c025bdf8>] (_set_gpio_triggering+0x28/0x26c) from [<c025c36c>] (gpio_irq_type+0x0/0x10c)
[<c025c36c>] (gpio_irq_type+0x0/0x10c) from [<c0849ddc>] (irq_desc+0xb77c/0x145e0)
Code: e1a03000 eafffff0 c08afe9c e5903228 (e5130004)
---[ end trace 1b0213da172cb2fe ]---
Fixing recursive fault but reboot is needed!
BUG: spinlock lockup suspected on CPU#0, kworker/u:0/6
 lock: runqueues+0x0/0x490, .magic: dead4ead, .owner: kworker/u:0/6, .owner_cpu:
 0
[<c001a03c>] (unwind_backtrace+0x0/0x138) from [<c024ebc8>] (do_raw_spin_lock+0xdc/0x148)
[<c024ebc8>] (do_raw_spin_lock+0xdc/0x148) from [<c0575490>] (__schedule+0x6c/0x640)
[<c0575490>] (__schedule+0x6c/0x640) from [<c003d5e4>] (do_exit+0x66c/0x728)
[<c003d5e4>] (do_exit+0x66c/0x728) from [<c0017fa4>] (die+0x230/0x264)
[<c0017fa4>] (die+0x230/0x264) from [<c001cabc>] (__do_kernel_fault+0x64/0x84)
[<c001cabc>] (__do_kernel_fault+0x64/0x84) from [<c001cc44>] (do_page_fault+0x168/0x38c)
[<c001cc44>] (do_page_fault+0x168/0x38c) from [<c000856c>] (do_DataAbort+0x30/0x9c)
[<c000856c>] (do_DataAbort+0x30/0x9c) from [<c0013cdc>] (__dabt_svc+0x3c/0x60)
Exception stack(0xce8419d0 to 0xce841a18)
19c0:                                     ce83a080 00000000 c083d560 00000000
19e0: 00000000 00000001 c083d560 ce840000 ce83a2d4 ce83a258 c057b47c ce841ab4
1a00: c083d560 ce841a18 c004ec6c c0053858 20000193 ffffffff
[<c0013cdc>] (__dabt_svc+0x3c/0x60) from [<c0053858>] (kthread_data+0x4/0xc)
[<c0053858>] (kthread_data+0x4/0xc) from [<c004ec6c>] (wq_worker_sleeping+0xc/0xc0)
[<c004ec6c>] (wq_worker_sleeping+0xc/0xc0) from [<c0575840>] (__schedule+0x41c/0x640)
[<c0575840>] (__schedule+0x41c/0x640) from [<c003d420>] (do_exit+0x4a8/0x728)
[<c003d420>] (do_exit+0x4a8/0x728) from [<c0017fa4>] (die+0x230/0x264)
[<c0017fa4>] (die+0x230/0x264) from [<c00085c8>] (do_DataAbort+0x8c/0x9c)
[<c00085c8>] (do_DataAbort+0x8c/0x9c) from [<c0013cdc>] (__dabt_svc+0x3c/0x60)
Exception stack(0xce841bd0 to 0xce841c18)
1bc0:                                     00000040 0000000a 00000004 ce872a10
1be0: ce8585c0 00000020 ce872a6c 20000093 ce872a10 c0849d70 000000aa 00000000
1c00: fb058000 ce841c18 c025c3d0 c025bdf8 20000093 ffffffff
[<c0013cdc>] (__dabt_svc+0x3c/0x60) from [<c025bdf8>] (_set_gpio_triggering+0x28/0x26c)
[<c025bdf8>] (_set_gpio_triggering+0x28/0x26c) from [<c025c36c>] (gpio_irq_type+0x0/0x10c)
[<c025c36c>] (gpio_irq_type+0x0/0x10c) from [<c0849ddc>] (irq_desc+0xb77c/0x145e0)

  • I found the solution. I need to issue gpio_request_one() as the init routine for RTC does. After that WLAN was working.

           int r;

            /* WLAN */
            omap_mux_init_gpio(OMAP_AM3517EVM_WIFI_IRQ_GPIO, OMAP_PIN_INPUT_PULLUP);
            r = gpio_request_one(OMAP_AM3517EVM_WIFI_IRQ_GPIO, GPIOF_IN, "wl1271-irq");
            if (r < 0) {
                    printk(KERN_WARNING "failed to request GPIO#%d\n",
                                    OMAP_AM3517EVM_WIFI_IRQ_GPIO);
                    return;
            }
            omap_am3517evm_wlan_data.irq =  gpio_to_irq(OMAP_AM3517EVM_WIFI_IRQ_GPIO);
            if (wl12xx_set_platform_data(&omap_am3517evm_wlan_data))
                    pr_err("error setting wl12xx data\n");

    Yegor

  • I'm sorry, I know this question is a bit out of place here. 

    I'am really interested in using a newer Kernel Version that the standard 2.6xx. 

    Do you have any recommandations regarding How To's or Guides for the building of a suitable Kernel for the Sitara am3517?

    (My Hardware is a Craneboard and Distro is Angstrom and I am a N00b)

    Best regards, 

    Pascal

  • 3.7-rc1 seems to work. See this thread for details: http://comments.gmane.org/gmane.linux.ports.arm.omap/86719