Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
beaglebone 4.9.6-ti-r17 boot log for eqep

/boot/uEnv.txt

uname_r=4.9.6-ti-r17
dtb=am335x-boneblack-overlay.dtb
cmdline=coherent_pool=1M quiet cape_universal=enable

config-pin

root@beaglebone:~# config-pin p8.11 qep
root@beaglebone:~# config-pin p8.12 qep

dmesg

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.6-ti-r17 (root@a6-imx6q-wandboard-2gb) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP PREEMPT Sat Jan 28 11:37:11 UTC 2017
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: TI AM335x BeagleBone Black
[    0.000000] cma: Reserved 48 MiB at 0x9c800000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 130560
[    0.000000] free_area_init_node: node 0, pgdat c13dd080, node_mem_map df961000
[    0.000000]   Normal zone: 1152 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 130560 pages, LIFO batch:31
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon)
[    0.000000] percpu: Embedded 15 pages/cpu @df92d000 s31936 r8192 d21312 u61440
[    0.000000] pcpu-alloc: s31936 r8192 d21312 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129408
[    0.000000] Kernel command line: console=tty0 console=ttyO0,115200n8 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait coherent_pool=1M quiet cape_universal=enable
[    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: 443920K/522240K available (12288K kernel code, 1086K rwdata, 4092K rodata, 1024K init, 736K bss, 29168K reserved, 49152K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc0d00000   (13280 kB)
      .init : 0xc1200000 - 0xc1300000   (1024 kB)
      .data : 0xc1300000 - 0xc140fa80   (1087 kB)
       .bss : 0xc1411000 - 0xc14c9138   ( 737 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000016] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000032] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000042] OMAP clocksource: timer1 at 24000000 Hz
[    0.001186] clocksource_probe: no matching clocksources found
[    0.001673] Console: colour dummy device 80x30
[    0.001728] console [tty0] enabled
[    0.001751] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.001756] This ensures that you still see kernel messages. Please
[    0.001760] update your kernel commandline.
[    0.001781] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
[    0.046785] pid_max: default: 32768 minimum: 301
[    0.047081] Security Framework initialized
[    0.047092] Yama: becoming mindful.
[    0.047131] AppArmor: AppArmor disabled by boot time parameter
[    0.047346] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.047356] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.048556] CPU: Testing write buffer coherency: ok
[    0.048627] ftrace: allocating 37044 entries in 109 pages
[    0.153760] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.153824] Setting up static identity map for 0x80100000 - 0x80100060
[    0.198808] Brought up 1 CPUs
[    0.198826] SMP: Total of 1 processors activated (995.32 BogoMIPS).
[    0.198832] CPU: All CPU(s) started in SVC mode.
[    0.200443] devtmpfs: initialized
[    0.219185] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.219725] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.223527] xor: measuring software checksum speed
[    0.262839]    arm4regs  :  1217.000 MB/sec
[    0.302771]    8regs     :  1090.000 MB/sec
[    0.342773]    32regs    :  1088.000 MB/sec
[    0.382773]    neon      :  1666.000 MB/sec
[    0.382780] xor: using function: neon (1666.000 MB/sec)
[    0.382798] pinctrl core: initialized pinctrl subsystem
[    0.384832] NET: Registered protocol family 16
[    0.388617] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.413968] omap_hwmod: debugss: _wait_target_disable failed
[    0.466822] cpuidle: using governor ladder
[    0.478800] cpuidle: using governor menu
[    0.487237] OMAP GPIO hardware version 0.1
[    0.488074] GPIO line 52 (EMMC ResetN) hogged as output/high
[    0.505213] No ATAGs?
[    0.505236] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.505496] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[    0.505506] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[    0.614981] raid6: int32x1  gen()   233 MB/s
[    0.682837] raid6: int32x1  xor()   176 MB/s
[    0.750850] raid6: int32x2  gen()   303 MB/s
[    0.818795] raid6: int32x2  xor()   198 MB/s
[    0.886950] raid6: int32x4  gen()   283 MB/s
[    0.954850] raid6: int32x4  xor()   202 MB/s
[    1.022908] raid6: int32x8  gen()   286 MB/s
[    1.090769] random: fast init done
[    1.090802] raid6: int32x8  xor()   186 MB/s
[    1.158798] raid6: neonx1   gen()  1460 MB/s
[    1.226785] raid6: neonx1   xor()   843 MB/s
[    1.294777] raid6: neonx2   gen()  1887 MB/s
[    1.362770] raid6: neonx2   xor()  1169 MB/s
[    1.430779] raid6: neonx4   gen()  1919 MB/s
[    1.498772] raid6: neonx4   xor()  1198 MB/s
[    1.566801] raid6: neonx8   gen()  1185 MB/s
[    1.634778] raid6: neonx8   xor()   836 MB/s
[    1.634785] raid6: using algorithm neonx4 gen() 1919 MB/s
[    1.634790] raid6: .... xor() 1198 MB/s, rmw enabled
[    1.634796] raid6: using intx1 recovery algorithm
[    1.644709] edma 49000000.edma: TI EDMA DMA engine driver
[    1.648892] SCSI subsystem initialized
[    1.650957] libata version 3.00 loaded.
[    1.651337] usbcore: registered new interface driver usbfs
[    1.651411] usbcore: registered new interface driver hub
[    1.651531] usbcore: registered new device driver usb
[    1.652111] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[    1.652162] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
[    1.652263] media: Linux media interface: v0.10
[    1.652334] Linux video capture interface: v2.00
[    1.652419] pps_core: LinuxPPS API ver. 1 registered
[    1.652424] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.652447] PTP clock support registered
[    1.653032] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    1.654507] NetLabel: Initializing
[    1.654519] NetLabel:  domain hash size = 128
[    1.654523] NetLabel:  protocols = UNLABELED CIPSOv4
[    1.654613] NetLabel:  unlabeled traffic allowed by default
[    1.655391] clocksource: Switched to clocksource timer1
[    1.782966] VFS: Disk quotas dquot_6.6.0
[    1.783075] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.798173] NET: Registered protocol family 2
[    1.799220] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    1.799264] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    1.799322] TCP: Hash tables configured (established 4096 bind 4096)
[    1.799518] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    1.799538] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    1.799770] NET: Registered protocol family 1
[    1.808703] RPC: Registered named UNIX socket transport module.
[    1.808711] RPC: Registered udp transport module.
[    1.808716] RPC: Registered tcp transport module.
[    1.808720] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.809395] Unpacking initramfs...
[    2.085255] Freeing initrd memory: 3504K (c8080000 - c83ec000)
[    2.085817] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    2.088708] futex hash table entries: 256 (order: 2, 16384 bytes)
[    2.088827] audit: initializing netlink subsys (disabled)
[    2.088923] audit: type=2000 audit(2.020:1): initialized
[    2.094439] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    2.094632] zbud: loaded
[    2.099951] NFS: Registering the id_resolver key type
[    2.099993] Key type id_resolver registered
[    2.099999] Key type id_legacy registered
[    2.100016] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.100437] fuse init (API version 7.26)
[    2.100869] orangefs_debugfs_init: called with debug mask: :none: :0:
[    2.101145] orangefs_init: module version upstream loaded
[    2.101152] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.121115] Key type asymmetric registered
[    2.121129] Asymmetric key parser 'x509' registered
[    2.121265] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    2.125591] io scheduler noop registered
[    2.125601] io scheduler deadline registered
[    2.125701] io scheduler cfq registered (default)
[    2.126800] pinctrl-single 44e10800.pinmux: please update dts to use #pinctrl-cells = <1>
[    2.127272] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    2.130181] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    2.131560] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    2.134898] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
[    2.147902] console [ttyS0] enabled
[    2.149412] [drm] Initialized
[    2.153429] libphy: Fixed MDIO Bus: probed
[    2.207413] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[    2.207428] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[    2.207802] davinci_mdio: dt: updated phy_id[0] from phy_mask[fffffffe]
[    2.219630] libphy: 4a101000.mdio: probed
[    2.219658] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[    2.220581] cpsw 4a100000.ethernet: Detected MACID = 1c:ba:8c:9b:be:b4
[    2.220755] cpsw 4a100000.ethernet: cpts: overflow check period 1250 (jiffies)
[    2.223274] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.223334] ehci-platform: EHCI generic platform driver
[    2.223818] ehci-omap: OMAP-EHCI Host Controller driver
[    2.224310] usbcore: registered new interface driver usb-storage
[    2.226682] 47401300.usb-phy supply vcc not found, using dummy regulator
[    2.241010] 47401b00.usb-phy supply vcc not found, using dummy regulator
[    2.255014] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    2.255056] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    2.255509] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.255521] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.255529] usb usb1: Product: MUSB HDRC host driver
[    2.255537] usb usb1: Manufacturer: Linux 4.9.6-ti-r17 musb-hcd
[    2.255544] usb usb1: SerialNumber: musb-hdrc.1.auto
[    2.256567] hub 1-0:1.0: USB hub found
[    2.256638] hub 1-0:1.0: 1 port detected
[    2.277597] mousedev: PS/2 mouse device common for all mice
[    2.279135] omap_rtc 44e3e000.rtc: already running
[    2.279792] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[    2.280783] i2c /dev entries driver
[    2.282463] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    2.283977] cpuidle: enable-method property 'ti,am3352' found operations
[    2.284939] omap_hsmmc 48060000.mmc: Got CD GPIO
[    2.328687] ledtrig-cpu: registered to indicate activity on CPUs
[    2.328808] hidraw: raw HID events driver (C) Jiri Kosina
[    2.329522] usbcore: registered new interface driver usbhid
[    2.329528] usbhid: USB HID core driver
[    2.329852] ashmem: initialized
[    2.330694] remoteproc remoteproc0: wkup_m3 is available
[    2.333292] NET: Registered protocol family 10
[    2.342101] mip6: Mobile IPv6
[    2.342124] NET: Registered protocol family 17
[    2.342252] Key type dns_resolver registered
[    2.342259] mpls_gso: MPLS GSO support
[    2.342558] omap_voltage_late_init: Voltage driver support not added
[    2.349694] PM: Cannot get wkup_m3_ipc handle
[    2.354340] ThumbEE CPU extension supported.
[    2.354366] Registering SWP/SWPB emulation handler
[    2.355577] registered taskstats version 1
[    2.355707] zswap: loaded using pool lzo/zbud
[    2.361860] Btrfs loaded, crc32c=crc32c-generic
[    2.387901] Key type encrypted registered
[    2.406847] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.410579] mmc0: new high speed SDHC card at address aaaa
[    2.415806] mmcblk0: mmc0:aaaa SU16G 14.8 GiB 
[    2.417753]  mmcblk0: p1 p2
[    2.432807] input: tps65217_pwr_but as /devices/platform/ocp/44e0b000.i2c/i2c-0/0-0024/tps65217-pwrbutton/input/input0
[    2.433376] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    2.433909] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    2.433963] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    2.435940] at24 2-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    2.436352] at24 2-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    2.436718] at24 2-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    2.437079] at24 2-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    2.437121] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[    2.438528] remoteproc remoteproc0: powering up wkup_m3
[    2.438552] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[    2.438803] remoteproc remoteproc0: remote processor wkup_m3 is now up
[    2.438824] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
[    2.444530] bone_capemgr bone_capemgr: Baseboard: 'A335BNLT,000C,3014BBBK1316'
[    2.444560] bone_capemgr bone_capemgr: compatible-baseboard=ti,beaglebone-black - #slots=4
[    2.472449] bone_capemgr bone_capemgr: slot #0: No cape found
[    2.503510] bone_capemgr bone_capemgr: slot #1: No cape found
[    2.536190] bone_capemgr bone_capemgr: slot #2: No cape found
[    2.568917] bone_capemgr bone_capemgr: slot #3: No cape found
[    2.574810] bone_capemgr bone_capemgr: initialized OK.
[    2.577315] PM: bootloader does not support rtc-only!
[    2.578324] omap_rtc 44e3e000.rtc: setting system clock to 2017-01-30 18:48:39 UTC (1485802119)
[    2.578336] of_cfs_init
[    2.578488] of_cfs_init: OK
[    2.579006] PM: Hibernation image not present or could not be loaded.
[    2.581252] Freeing unused kernel memory: 1024K (c1200000 - c1300000)
[    2.656384] systemd-udevd[104]: starting version 215
[    3.677268] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    4.491131] systemd[1]: Configuration file /lib/systemd/system/bonescript.socket is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
[    4.493114] systemd[1]: Configuration file /lib/systemd/system/bonescript.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
[    4.544538] systemd[1]: Configuration file /etc/systemd/system/serial-getty@ttyGS0.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
[    4.554156] systemd[1]: Configuration file /lib/systemd/system/capemgr.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
[    4.555988] systemd[1]: Configuration file /lib/systemd/system/bonescript-autorun.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
[    4.560815] systemd[1]: Configuration file /lib/systemd/system/jekyll-autorun.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
[    4.588142] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[    5.438064] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
[    5.667092] systemd-udevd[186]: starting version 215
[   10.228836] net eth0: initializing cpsw version 1.12 (0)
[   10.228858] net eth0: initialized cpsw ale version 1.4
[   10.228867] net eth0: ALE Table size 1024
[   10.290226] systemd-journald[179]: Received request to flush runtime journal from PID 1
[   10.316196] SMSC LAN8710/LAN8720 4a101000.mdio:00: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=4a101000.mdio:00, irq=-1)
[   10.342260] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   10.936806] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[   12.061958] using random self ethernet address
[   12.061978] using random host ethernet address
[   12.356328] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   12.357109] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   12.363335] usb0: HOST MAC 1c:ba:8c:9b:be:b5
[   12.365172] usb0: MAC 1c:ba:8c:9b:be:b6
[   12.508392] 8021q: 802.1Q VLAN Support v1.8
[   12.508465] 8021q: adding VLAN 0 to HW filter on device eth0
[   13.046752] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[   13.491645] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[   13.503678] omap-aes 53500000.aes: will run requests pump with realtime priority
[   13.655754] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[   16.701296] bone_capemgr bone_capemgr: part_number 'univ-all', version 'N/A'
[   16.701328] bone_capemgr bone_capemgr: slot #4: override
[   16.723615] bone_capemgr bone_capemgr: Using override eeprom data at slot 4
[   16.723635] bone_capemgr bone_capemgr: slot #4: 'Override Board Name,00A0,Override Manuf,univ-all'
[   17.918093] gpio-of-helper ocp:cape-universal: ready
[   17.939822] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 185, base_baud = 3000000) is a 8250
[   17.953959] 48024000.serial: ttyS2 at MMIO 0x48024000 (irq = 186, base_baud = 3000000) is a 8250
[   17.966126] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 187, base_baud = 3000000) is a 8250
[   17.981689] 481aa000.serial: ttyS5 at MMIO 0x481aa000 (irq = 188, base_baud = 3000000) is a 8250
[   18.047749] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
[   18.073872] bone_capemgr bone_capemgr: slot #4: dtbo 'univ-all-00A0.dtbo' loaded; overlay id #0
[   19.797690] eqep 48300180.eqep: ver. 1.0
[   19.797902] eqep 48300180.eqep: count_mode:0
[   19.797913] eqep 48300180.eqep: invert_qa:1
[   19.797922] eqep 48300180.eqep: invert_qb:1
[   19.797931] eqep 48300180.eqep: invert_qi:0
[   19.797940] eqep 48300180.eqep: invert_qs:0
[   19.797948] eqep 48300180.eqep: swap_inputs:0
[   19.797958] eqep 48300180.eqep: QDECCTL:0x0180
[   19.797965] eqep 48300180.eqep: QPOSINIT:0x00000000
[   19.797973] eqep 48300180.eqep: QPOSMAX:0xffffffff
[   19.797980] eqep 48300180.eqep: QPOSCNT:0x00000000
[   19.797988] eqep 48300180.eqep: omit_interrupt:0
[   19.797996] eqep 48300180.eqep: QEINT:0x0800
[   19.798003] eqep 48300180.eqep: QUPRD:0x05f5e100
[   19.798011] eqep 48300180.eqep: QEPCTL:0x009e write
[   19.798018] eqep 48300180.eqep: QEPCTL:0x009e read
[   19.798045] eqep 48300180.eqep: irq:190, clk_rate:100000000
[   19.860142] eqep 48302180.eqep: ver. 1.0
[   19.860397] eqep 48302180.eqep: count_mode:0
[   19.860409] eqep 48302180.eqep: invert_qa:1
[   19.860418] eqep 48302180.eqep: invert_qb:1
[   19.860427] eqep 48302180.eqep: invert_qi:0
[   19.860436] eqep 48302180.eqep: invert_qs:0
[   19.860444] eqep 48302180.eqep: swap_inputs:0
[   19.860454] eqep 48302180.eqep: QDECCTL:0x0180
[   19.860462] eqep 48302180.eqep: QPOSINIT:0x00000000
[   19.860470] eqep 48302180.eqep: QPOSMAX:0xffffffff
[   19.860477] eqep 48302180.eqep: QPOSCNT:0x00000000
[   19.860485] eqep 48302180.eqep: omit_interrupt:0
[   19.860492] eqep 48302180.eqep: QEINT:0x0800
[   19.860500] eqep 48302180.eqep: QUPRD:0x05f5e100
[   19.860507] eqep 48302180.eqep: QEPCTL:0x009e write
[   19.860514] eqep 48302180.eqep: QEPCTL:0x009e read
[   19.860540] eqep 48302180.eqep: irq:191, clk_rate:100000000
[   19.920051] eqep 48304180.eqep: ver. 1.0
[   19.920277] eqep 48304180.eqep: count_mode:0
[   19.920288] eqep 48304180.eqep: invert_qa:1
[   19.920297] eqep 48304180.eqep: invert_qb:1
[   19.920306] eqep 48304180.eqep: invert_qi:0
[   19.920315] eqep 48304180.eqep: invert_qs:0
[   19.920324] eqep 48304180.eqep: swap_inputs:0
[   19.920333] eqep 48304180.eqep: QDECCTL:0x0180
[   19.920341] eqep 48304180.eqep: QPOSINIT:0x00000000
[   19.920348] eqep 48304180.eqep: QPOSMAX:0xffffffff
[   19.920356] eqep 48304180.eqep: QPOSCNT:0x00000000
[   19.920364] eqep 48304180.eqep: omit_interrupt:0
[   19.920371] eqep 48304180.eqep: QEINT:0x0800
[   19.920379] eqep 48304180.eqep: QUPRD:0x05f5e100
[   19.920386] eqep 48304180.eqep: QEPCTL:0x009e write
[   19.920394] eqep 48304180.eqep: QEPCTL:0x009e read
[   19.920420] eqep 48304180.eqep: irq:193, clk_rate:100000000
[   20.102532] CAN device driver interface
[   20.232192] c_can_platform 481cc000.can: c_can_platform device registered (regs=fa1cc000, irq=197)
[   20.232538] pruss_uio 4a300000.pruss: pins are not configured from the driver
[   20.294368] c_can_platform 481d0000.can: c_can_platform device registered (regs=fa1d0000, irq=198)
[   40.880784] random: crng init done

/sys/devices

root@beaglebone:~# find /sys/devices/ |grep eqep
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/period
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/subsystem
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/driver
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/mode
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/enabled
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/power
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/power/runtime_active_kids
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/power/runtime_suspended_time
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/power/autosuspend_delay_ms
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/power/runtime_enabled
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/power/runtime_active_time
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/power/control
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/power/async
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/power/runtime_usage
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/power/runtime_status
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/driver_override
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/modalias
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/position
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/uevent
/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/of_node
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/period
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/subsystem
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/driver
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/mode
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/enabled
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/power
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/power/runtime_active_kids
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/power/runtime_suspended_time
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/power/autosuspend_delay_ms
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/power/runtime_enabled
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/power/runtime_active_time
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/power/control
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/power/async
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/power/runtime_usage
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/power/runtime_status
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/driver_override
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/modalias
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/position
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/uevent
/sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/of_node
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/period
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/subsystem
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/driver
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/mode
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/enabled
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/power
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/power/runtime_active_kids
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/power/runtime_suspended_time
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/power/autosuspend_delay_ms
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/power/runtime_enabled
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/power/runtime_active_time
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/power/control
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/power/async
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/power/runtime_usage
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/power/runtime_status
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/driver_override
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/modalias
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/position
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/uevent
/sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/of_node

Unhandled fault: external abort on non-linefetch

root@beaglebone:~# cat /sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/position 
[  615.400669] Unhandled fault: external abort on non-linefetch (0x1028) at 0xfa304180
[  615.408497] pgd = dc470000
[  615.411260] [fa304180] *pgd=48211452(bad)
[  615.415402] Internal error: : 1028 [#1] PREEMPT SMP ARM
[  615.420707] Modules linked in: spidev uio_pruss c_can_platform c_can can_dev spi_omap2_mcspi pwm_tiecap tieqep pwm_tiehrpwm omap_aes_driver crypto_engine omap_sham 8021q garp mrp stp llc usb_f_acm u_serial usb_f_rndis u_ether libcomposite cpufreq_powersave cpufreq_userspace omap_rng cpufreq_conservative rng_core cpufreq_ondemand evdev tps65217_charger uio_pdrv_genirq uio
[  615.454633] CPU: 0 PID: 734 Comm: cat Not tainted 4.9.6-ti-r17 #1
[  615.460813] Hardware name: Generic AM33XX (Flattened Device Tree)
[  615.466995] task: dc17a700 task.stack: dc192000
[  615.471643] PC is at eqep_get_position+0x68/0x90 [tieqep]
[  615.477147] LR is at dev_attr_show+0x2c/0x58
[  615.481493] pc : [<bf0e3310>]    lr : [<c0893f1c>]    psr: 600f0013
sp : dc193e30  ip : 00000000  fp : dc193e44
[  615.493113] r10: 00000001  r9 : dc776f80  r8 : da8d5c18
[  615.498470] r7 : dc77f000  r6 : c0d855b4  r5 : dc77f000  r4 : dc430900
[  615.505122] r3 : fa304180  r2 : dc77f000  r1 : bf0e452c  r0 : da8d5c10
[  615.511777] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[  615.519045] Control: 10c5387d  Table: 9c470019  DAC: 00000051
[  615.524907] Process cat (pid: 734, stack limit = 0xdc192218)
[  615.530682] Stack: (0xdc193e30 to 0xdc194000)
[  615.535151] 3e20:                                     dc430900 bf0e452c dc193e5c dc193e48
[  615.543520] 3e40: c0893f1c bf0e32b4 dc430900 00001000 dc193e84 dc193e60 c035ffa4 c0893efc
[  615.551886] 3e60: dc430900 00000000 da814540 c130414c dc193f70 00000001 dc193e94 dc193e88
[  615.560252] 3e80: c035e954 c035ff18 dc193ef4 dc193e98 c03013dc c035e92c da6f22e0 dc193f70
[  615.568618] 3ea0: dc430930 b6ea1000 dc193eb0 00020000 00000000 00000000 00020000 da814548
[  615.576984] 3ec0: 00000004 00040906 00000000 00020000 da814540 b6ea1000 dc193f70 b6ea1000
[  615.585350] 3ee0: dc776f80 00000000 dc193f2c dc193ef8 c035f724 c0301200 dc193f3c dc193f08
[  615.593715] 3f00: c02d8fac 00020000 da814540 b6ea1000 dc193f70 b6ea1000 dc192000 00000000
[  615.602081] 3f20: dc193f3c dc193f30 c02d8290 c035f5fc dc193f6c dc193f40 c02d90ec c02d8274
[  615.610448] 3f40: 000b6ea0 c02fae4c dc193f6c da814540 c130414c da814540 00020000 b6ea1000
[  615.618815] 3f60: dc193fa4 dc193f70 c02da388 c02d905c 00000000 00000000 00000022 00040906
[  615.627180] 3f80: 00000000 00020000 00020000 b6ea1000 00000003 c01092c4 00000000 dc193fa8
[  615.635546] 3fa0: c0109100 c02da330 00020000 00020000 00000003 b6ea1000 00020000 000271c4
[  615.643912] 3fc0: 00020000 00020000 b6ea1000 00000003 7fffe000 00000000 00000000 00020000
[  615.652279] 3fe0: 00000000 bea5caa4 00013835 b6f4ac76 400f0030 00000003 7b7b33da 9e96bd2f
[  615.660717] [<bf0e3310>] (eqep_get_position [tieqep]) from [<c0893f1c>] (dev_attr_show+0x2c/0x58)
[  615.669821] [<c0893f1c>] (dev_attr_show) from [<c035ffa4>] (sysfs_kf_seq_show+0x98/0x108)
[  615.678205] [<c035ffa4>] (sysfs_kf_seq_show) from [<c035e954>] (kernfs_seq_show+0x34/0x38)
[  615.686666] [<c035e954>] (kernfs_seq_show) from [<c03013dc>] (seq_read+0x1e8/0x538)
[  615.694512] [<c03013dc>] (seq_read) from [<c035f724>] (kernfs_fop_read+0x134/0x1c0)
[  615.702358] [<c035f724>] (kernfs_fop_read) from [<c02d8290>] (__vfs_read+0x28/0x48)
[  615.710202] [<c02d8290>] (__vfs_read) from [<c02d90ec>] (vfs_read+0x9c/0x168)
[  615.717483] [<c02d90ec>] (vfs_read) from [<c02da388>] (SyS_read+0x64/0xcc)
[  615.724516] [<c02da388>] (SyS_read) from [<c0109100>] (ret_fast_syscall+0x0/0x3c)
[  615.732188] Code: e1a04003 e320f000 eafffff3 e5933004 (e5934000) 
[  615.738437] ---[ end trace 7936ced3381948b2 ]---
@pdp7
Copy link
Author

pdp7 commented Jan 30, 2017

Is this eCAP commit helpful eQEP?

commit a3133c9390b422a690635f63e0de7c4af364fdab
Author: Vignesh R <vigneshr@ti.com>
Date:   Fri Jan 20 13:17:07 2017 +0530

    pwm: pwm-tiecap: Handle context loss on runtime suspend
    
    On K2G SoC, it is observed that EACP IP can lose context when runtime
    suspended. Therefore, implement runtime_suspend() and runtime_resume()
    callbacks in the driver to save and restore ECAP IP registers.
    
    Signed-off-by: Vignesh R <vigneshr@ti.com>
    Signed-off-by: Sekhar Nori <nsekhar@ti.com>

diff --git a/drivers/pwm/pwm-tiecap.c b/drivers/pwm/pwm-tiecap.c
index 6ec342d..a912747 100644
--- a/drivers/pwm/pwm-tiecap.c
+++ b/drivers/pwm/pwm-tiecap.c
@@ -262,14 +262,12 @@ static int ecap_pwm_remove(struct platform_device *pdev)
        return pwmchip_remove(&pc->chip);
 }
 
-#ifdef CONFIG_PM_SLEEP
+#ifdef CONFIG_PM
 static void ecap_pwm_save_context(struct ecap_pwm_chip *pc)
 {
-       pm_runtime_get_sync(pc->chip.dev);
        pc->ctx.ecctl2 = readw(pc->mmio_base + ECCTL2);
        pc->ctx.cap4 = readl(pc->mmio_base + CAP4);
        pc->ctx.cap3 = readl(pc->mmio_base + CAP3);
-       pm_runtime_put_sync(pc->chip.dev);
 }

@pdp7
Copy link
Author

pdp7 commented Jan 30, 2017

Runtime power control with /sys

No more abort when read position!

root@beaglebone:~# uname -a
Linux beaglebone 4.9.6-ti-r17 #1 SMP PREEMPT Sat Jan 28 11:37:11 UTC 2017 armv7l GNU/Linux

root@beaglebone:~# config-pin p8.11 qep
root@beaglebone:~# config-pin p8.12 qep

root@beaglebone:~# echo on > /sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/power/control
root@beaglebone:~# echo on > /sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/power/control
root@beaglebone:~# echo on > /sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/power/control

root@beaglebone:~# cat /sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/power/runtime_status
active
root@beaglebone:~# cat /sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/power/runtime_status
active
root@beaglebone:~# cat /sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/power/runtime_status
active

root@beaglebone:~# cat /sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/position
0
root@beaglebone:~# cat /sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/position
0
root@beaglebone:~# cat /sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/position
-1

@pdp7
Copy link
Author

pdp7 commented Feb 1, 2017

/boot/uEnv.txt

root@beaglebone:~# cat /boot/uEnv.txt 
#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0

uname_r=4.9.6-ti-r17
#uname_r=4.4.44-ti-r85
#uname_r=4.1.30-ti-r70
#uname_r=4.4.19-bone13
#uname_r=4.4.19-bone13
#uname_r=4.1.13-ti-r35
#uname_r=4.1.13-ti-r35
#uname_r=4.4.27-bone14
#uname_r=4.4.27-bone14
#uname_r=4.1.30-ti-r69
#uname_r=4.1.30-ti-r69
#uname_r=4.1.30-ti-r69
#uuid=
#dtb=
#am335x-boneblack.dtb

##BeagleBone Black/Green dtb's for v4.1.x (BeagleBone White just works..)

##BeagleBone Black: HDMI (Audio/Video) disabled:
#dtb=am335x-boneblack-emmc-overlay.dtb

##BeagleBone Black: eMMC disabled:
#dtb=am335x-boneblack-hdmi-overlay.dtb

##BeagleBone Black: HDMI Audio/eMMC disabled:
#dtb=am335x-boneblack-nhdmi-overlay.dtb

##BeagleBone Black: HDMI (Audio/Video)/eMMC disabled:
dtb=am335x-boneblack-overlay.dtb

##BeagleBone Black: wl1835
#dtb=am335x-boneblack-wl1835mod.dtb

##BeagleBone Black: replicape
#dtb=am335x-boneblack-replicape.dtb

##BeagleBone Green: eMMC disabled
#dtb=am335x-bonegreen-overlay.dtb
#dtb=am335x-boneblack.dtb

cmdline=coherent_pool=1M quiet cape_universal=enable
#cmdline=coherent_pool=1M quiet 
#cmdline=coherent_pool=1M quiet 
#
#cmdline=coherent_pool=1M quiet fbcon=map:10

#In the event of edid real failures, uncomment this next line:
#cmdline=coherent_pool=1M quiet cape_universal=enable video=HDMI-A-1:1024x768@60e

##Example v3.8.x
#cape_disable=capemgr.disable_partno=
#cape_enable=capemgr.enable_partno=

##Example v4.1.x
#cape_disable=bone_capemgr.disable_partno=
#cape_enable=bone_capemgr.enable_partno=BB-SPIDEV0,BB-SPIDEV1

##Disable HDMI/eMMC (v3.8.x)
#cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G

##Disable HDMI (v3.8.x)
#cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN

##Disable eMMC (v3.8.x)
#cape_disable=capemgr.disable_partno=BB-BONE-EMMC-2G

##Audio Cape (needs HDMI Audio disabled) (v3.8.x)
#cape_disable=capemgr.disable_partno=BB-BONELT-HDMI
#cape_enable=capemgr.enable_partno=BB-BONE-AUDI-02


##enable Generic eMMC Flasher:
##make sure, these tools are installed: dosfstools rsync
#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh

@pdp7
Copy link
Author

pdp7 commented Feb 2, 2017

UPDATE:
Fix merged by Robert C. Nelson:
tieqep: add patch to fix unhandled fault on 4.9 kernel
RobertCNelson/ti-linux-kernel-dev@f89418b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment