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.

66AK2E05 Linux and PCIe DMA

Other Parts Discussed in Thread: 66AK2E05

Hello all,
We are developing a new board based on TI 66AK2E05 SoC. On the Arm core side we are running Arago-Daisy
Linux distribution and we are able to boot Linux without any problem.
The problem arises when we try to handle a WIFI module connected through a PCIe socket; Ath9k driver
warn us with an error about DMA capabilities:

[ 37.422766] ath9k: 32-bit DMA not available
[ 37.426945] ath9k: probe of 0001:01:00.0 failed with error -5

A further investigation shows the following:
- WIFI module is able to handle only 32-bit based addresses
- Keystone II devices use a 64bit address and map all memory in the high 32-bit memory space
(that is outside WIFI module address space)

Is there any way to overcome this limitation ?
Maybe a modified (or newer) Kernel ?

Thanks all
Pietro

  • Hi Pietro,

    Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages (for processor issues). Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics (e2e.ti.com). Please read all the links below my signature.

    We will get back to you on the above query shortly. Thank you for your patience.

  • Hi, Pietro,

    While I am investigating this, could you try something very quick? There is a u-boot env variable, mem_lpae, which is set to 1 by default to enable 64-bit addressing. Could you try to set it to 0 and to be in 32 bit addressing mode to see if it works for you?

    setenv mem_lpae 0

    saveenv

    Thanks!

     

    Rex

  • Hello Rex,

    I'd like to thank you so much.

    It seems your workaround is working fine, we could load ath9k module.

    Regards

    Pietro

  • Hello again,

    We followed Rex's suggestion to change the environment variable in the uboot. Now the init completes and the driver ath9k is successfully started.
    But, when we try to transmit something using this driver, we have continuously this error and we are not able to send anything :

    [  174.456392] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  174.516528] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  174.576664] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  174.636795] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  174.695902] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  174.756033] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  174.816170] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  174.876300] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  174.936436] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  174.996566] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  175.065662] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  175.125786] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  175.185910] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  175.246033] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  175.746191] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  175.805293] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  175.865416] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  175.925541] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  175.985664] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  176.032705] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  176.260672] ath: phy0: Failed to stop TX DMA, queues=0x001!
    [  176.471247] ath: phy0: Failed to stop TX DMA, queues=0x001!

    This claims something about DMA in TX, do you have some ideas ?
    Thank you

  • Pietro,

    The KS2 only support 32-bit peripherals and I checked the kernel code that PCIe is configured to be in 32-bit addressing mode. I had a discussion internally and there is a concern by disabling LPAE. With LPAE enabled, it should work and I am not sure why it failed in the first place. We have SATA running over PCIe on the K2E and it works fine. You may want to look in other direction.The error messages are from atheros drivers and there is something it does not like.

    Rex

     

  • Hello rex,

    As far as we can see from SATA drivers code, most devices are able to provide 64 bit addresses on DMA ( see sata_mv.c pci_go_64() function), that is, they do not require LPAE disabling; while atheros driver is able to address ONLY 32 bits (see pci.c in ath folder, pci_set_dma_mask(32)).

    Regards
    Pietro
  • Pietro,

    After I posted my reply this morning, I boot up the K2E with SATA, and as you said, it is a 64-bit device. That made me wonder the issue may occur if it is a 32-bit device. Because the only PCIe connector we have on K2E is through SATA, hence I am requesting my manager for a 32-bit SATA drive to be used to test the issue. We'll look into this issue when the drive is acquired.

    Rex

  • Helo Rex,

    Find attached our Linux boot log (maybe it helps your investigation)

    Regards

       Pietro

    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [ 0.000000] Hierarchical RCU implementation.
    [ 0.000000] NR_IRQS:16 nr_irqs:16 16
    [ 0.000000] ipc irq: irqchip registered, range 512-539
    [ 0.000000] Main PLL clk (1250000000 Hz), parent (100000000 Hz),postdiv = 2, mult = 24, prediv = 0
    [ 0.000000] Generic PLL clk (1000000000 Hz), parent (100000000 Hz),postdiv = 2, mult = 19, prediv =0
    [ 0.000000] Generic PLL clk (400000000 Hz), parent (100000000 Hz),postdiv = 4, mult = 15, prediv = 0
    [ 0.000000] Architected local timer running at 208.33MHz (phys).
    [ 0.000000] Switching to timer-based delay loop
    [ 0.000000] sched_clock: ARM arch timer >56 bits at 208333kHz, resolution 614/128ns
    [ 0.000000] keystone timer clock @208333333 MHz
    [ 0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
    [ 0.000000] Console: colour dummy device 80x30
    [ 42.518393] Calibrating delay loop (skipped), value calculated using timer frequency.. 416.66 BogoM)
    [ 42.518402] pid_max: default: 4096 minimum: 301
    [ 42.518515] Mount-cache hash table entries: 512
    [ 42.524977] CPU: Testing write buffer coherency: ok
    [ 42.525153] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [ 42.525170] Setting up static identity map for 0xc05e1dd8 - 0xc05e1e0c
    [ 42.604611] CPU1: Booted secondary processor
    [ 42.604633] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [ 42.683837] CPU2: Booted secondary processor
    [ 42.683860] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
    [ 42.763053] CPU3: Booted secondary processor
    [ 42.763077] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
    [ 42.763178] Brought up 4 CPUs
    [ 42.763195] SMP: Total of 4 processors activated (1666.66 BogoMIPS).
    [ 42.763200] CPU: All CPU(s) started in SVC mode.
    [ 42.763611] devtmpfs: initialized
    [ 42.775663] NET: Registered protocol family 16
    [ 42.776539] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 42.782685] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [ 42.782691] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [ 42.792882] bio: create slab <bio-0> at 0
    [ 42.793124] keystone-pcie: keystone_pcie_rc_init - start
    [ 42.793145] keystone2_pcie_serdes_setup for domain 0
    [ 42.795214] keystone2_pcie_serdes_setup done domain 0, en_link_train = 1
    [ 42.795241] keystone-pcie: MEM 0x0000000050000000..0x000000005fffffff -> 0x0000000050000000
    [ 42.795250] keystone-pcie: IO 0x0000000023250000..0x0000000023253fff -> 0x0000000000000000
    [ 42.795278] keystone-pcie: pcie - number of legacy irqs = 4
    [ 42.795318] keystone-pcie: pcie - number of MSI host irqs = 8, msi_irqs = 32
    [ 42.898181] keystone-pcie: Setting outbound translation for 0x50000000-0x5fffffff
    [ 42.898206] keystone-pcie: Doing PCI Setup...Done
    [ 42.898211] keystone-pcie: Starting PCI scan, nr 0...
    [ 42.898332] PCI host bridge to bus 0000:00
    [ 42.898342] pci_bus 0000:00: root bus resource [mem 0x50000000-0x5fffffff]
    [ 42.898349] pci_bus 0000:00: root bus resource [io 0x0000-0x3fff]
    [ 42.898356] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
    [ 42.898408] PCI: bus0: Fast back to back transfers enabled
    [ 42.898427] keystone-pcie: Ending PCI scan...
    [ 42.898435] keystone-pcie: keystone_pcie_rc_init - end
    [ 42.898474] keystone-pcie: keystone_pcie_rc_init - start
    [ 42.898492] keystone2_pcie_serdes_setup for domain 1
    [ 42.900561] keystone2_pcie_serdes_setup done domain 1, en_link_train = 1
    [ 42.900586] keystone-pcie: MEM 0x0000000060000000..0x000000006fffffff -> 0x0000000060000000
    [ 42.900594] keystone-pcie: IO 0x0000000023260000..0x0000000023263fff -> 0x0000000000004000
    [ 42.900621] keystone-pcie: pcie - number of legacy irqs = 4
    [ 42.900660] keystone-pcie: pcie - number of MSI host irqs = 8, msi_irqs = 32
    [ 43.008146] keystone-pcie: Setting outbound translation for 0x60000000-0x6fffffff
    [ 43.008171] keystone-pcie: Doing PCI Setup...Done
    [ 43.008176] keystone-pcie: Starting PCI scan, nr 0...
    [ 43.008285] PCI host bridge to bus 0001:00
    [ 43.008294] pci_bus 0001:00: root bus resource [mem 0x60000000-0x6fffffff]
    [ 43.008301] pci_bus 0001:00: root bus resource [io 0x4000-0x7fff]
    [ 43.008307] pci_bus 0001:00: No busn resource found for root bus, will use [bus 00-ff]
    [ 43.008559] PCI: bus0: Fast back to back transfers disabled
    [ 43.008573] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [ 43.009060] PCI: bus1: Fast back to back transfers disabled
    [ 43.009096] keystone-pcie: Ending PCI scan...
    [ 43.009103] keystone-pcie: keystone_pcie_map_irq: slot 0, pin 1
    [ 43.009108] keystone-pcie: keystone_pcie_map_irq: legacy_irq 576
    [ 43.009127] keystone-pcie: keystone_pcie_map_irq: slot 0, pin 1
    [ 43.009130] keystone-pcie: keystone_pcie_map_irq: legacy_irq 576
    [ 43.009159] pci 0001:00:00.0: BAR 8: assigned [mem 0x60000000-0x601fffff]
    [ 43.009167] pci 0001:00:00.0: BAR 9: assigned [mem 0x60200000-0x603fffff pref]
    [ 43.009174] pci 0001:00:00.0: BAR 7: assigned [io 0x4000-0x4fff]
    [ 43.009182] pci 0001:01:00.0: BAR 0: assigned [mem 0x60000000-0x6001ffff 64bit]
    [ 43.009209] pci 0001:01:00.0: BAR 6: assigned [mem 0x60200000-0x6020ffff pref]
    [ 43.009216] pci 0001:00:00.0: PCI bridge to [bus 01]
    [ 43.009223] pci 0001:00:00.0: bridge window [io 0x4000-0x4fff]
    [ 43.009231] pci 0001:00:00.0: bridge window [mem 0x60000000-0x601fffff]
    [ 43.009238] pci 0001:00:00.0: bridge window [mem 0x60200000-0x603fffff pref]
    [ 43.009248] PCI: enabling device 0001:00:00.0 (0140 -> 0143)
    [ 43.009261] keystone-pcie: keystone_pcie_rc_init - end
    [ 43.009464] vgaarb: loaded
    [ 43.009738] SCSI subsystem initialized
    [ 43.010285] usbcore: registered new interface driver usbfs
    [ 43.010360] usbcore: registered new interface driver hub
    [ 43.010451] usbcore: registered new device driver usb
    [ 43.011584] pps_core: LinuxPPS API ver. 1 registered
    [ 43.011590] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 43.011646] PTP clock support registered
    [ 43.011801] keystone-hwqueue hwqueue.6: qmgr start queue 0, number of queues 8192
    [ 43.011875] keystone-hwqueue hwqueue.6: added qmgr start queue 0, num of queues 8192, reg_peek f0040
    [ 43.012611] keystone-hwqueue hwqueue.6: qos: sched port @8096, drop sched @8000
    [ 43.013528] keystone-hwqueue hwqueue.6: qos: sched port @6496, drop sched @6400
    [ 43.014429] keystone-hwqueue hwqueue.6: added pool pool-rio: 128 descriptors of size 256
    [ 43.014438] keystone-hwqueue hwqueue.6: added pool pool-xge: 1024 descriptors of size 128
    [ 43.014447] keystone-hwqueue hwqueue.6: added pool pool-crypto: 1024 descriptors of size 128
    [ 43.014455] keystone-hwqueue hwqueue.6: added pool pool-net: 15360 descriptors of size 128
    [ 43.014463] keystone-hwqueue hwqueue.6: added pool pool-udma: 240 descriptors of size 256
    [ 43.016032] keystone-hwqueue hwqueue.6: registered queues 0-8191
    [ 43.016290] keystone-hwqueue hwqueue.6: qos version 0x2000108, magic valid
    [ 43.016772] keystone-hwqueue hwqueue.6: qos version 0x2000108, magic valid
    [ 43.024620] cfg80211: Calling CRDA to update world regulatory domain
    [ 43.024705] cfg80211: World regulatory domain updated:
    [ 43.024711] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [ 43.024717] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (2000 mBi, 0 mBm)
    [ 43.024723] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (2000 mBi, 0 mBm)
    [ 43.024727] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (2000 mBi, 0 mBm)
    [ 43.024732] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (2000 mBi, 0 mBm)
    [ 43.024737] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz), (2000 mBi, 0 mBm)
    [ 43.024742] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (2000 mBi, 0 mBm)
    [ 43.024746] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (2000 mBi, 0 mBm)
    [ 43.024751] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm)
    [ 43.025683] keystone-pktdma 2a08000.pktdma: registered 4 logical channels, flows 32, tx chans: 32, k
    [ 43.030126] keystone-pktdma 24186000.pktdma: registered 44 logical channels, flows 128, tx chans: 21
    [ 43.030619] keystone-pktdma 2fa1000.pktdma: registered 4 logical channels, flows 32, tx chans: 16, 6
    [ 43.030739] Switching to clocksource arch_sys_counter
    [ 43.054130] NET: Registered protocol family 2
    [ 43.054469] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    [ 43.054575] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [ 43.054680] TCP: Hash tables configured (established 8192 bind 8192)
    [ 43.054722] TCP: reno registered
    [ 43.054731] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [ 43.054754] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [ 43.054924] NET: Registered protocol family 1
    [ 43.055073] RPC: Registered named UNIX socket transport module.
    [ 43.055079] RPC: Registered udp transport module.
    [ 43.055083] RPC: Registered tcp transport module.
    [ 43.055087] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 43.055240] Unpacking initramfs...
    [ 43.712744] Initramfs unpacking failed: junk in compressed archive
    [ 43.726415] Freeing initrd memory: 32768K (c2000000 - c4000000)
    [ 43.726655] hw perfevents: enabled with ARMv7 Cortex-A15 PMU driver, 7 counters available
    [ 43.807686] bounce pool size: 64 pages
    [ 43.814458] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
    [ 43.814617] NTFS driver 2.1.30 [Flags: R/O].
    [ 43.814836] jffs2: version 2.2. (NAND) B) 2001-2006 Red Hat, Inc.
    [ 43.815109] msgmni has been set to 1475
    [ 43.816034] NET: Registered protocol family 38
    [ 43.816223] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
    [ 43.816229] io scheduler noop registered
    [ 43.816235] io scheduler deadline registered
    [ 43.816342] io scheduler cfq registered (default)
    [ 43.816869] keystone-udma udma0.7: registered udma device udma0
    [ 43.868919] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [ 43.870192] 2530c00.serial: ttyS0 at MMIO 0x2530c00 (irq = 309) is a 16550A
    [ 44.789112] console [ttyS0] enabled
    [ 44.793130] 2531000.serial: ttyS1 at MMIO 0x2531000 (irq = 312) is a 16550A
    [ 44.802817] loop: module loaded
    [ 44.806067] at24 0-0050: 131072 byte 24c1024 EEPROM, writable, 1 bytes/write
    [ 44.814245] Generic platform RAM MTD, (c) 2004 Simtec Electronics
    [ 44.899549] No NAND device found
    [ 44.904650] tun: Universal TUN/TAP device driver, 1.6
    [ 44.909701] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
    [ 44.959518] davinci_mdio 24200f00.mdio: davinci mdio revision 1.7
    [ 44.965597] libphy: 24200f00.mdio: probed
    [ 44.972043] davinci_mdio 24200f00.mdio: phy[1]: device 24200f00.mdio:01, driver Marvell 88E1111
    [ 44.981008] keystone-netcp 24000000.netcp: Missing cpts_clock_mult property in the DT.
    [ 44.988910] keystone-netcp 24000000.netcp: Missing cpts_clock_shift property in the DT.
    [ 44.996908] keystone-netcp 24000000.netcp: Missing cpts_clock_div property in the DT.
    [ 45.005632] keystone-netcp 24000000.netcp: Created interface "eth0"
    [ 45.011902] keystone-netcp 24000000.netcp: dma_chan_name nettx0
    [ 45.018533] keystone-netcp 24000000.netcp: Created interface "eth1"
    [ 45.024804] keystone-netcp 24000000.netcp: dma_chan_name nettx1
    [ 45.031445] keystone-netcp 24000000.netcp: Created interface "eth2"
    [ 45.037704] keystone-netcp 24000000.netcp: dma_chan_name nettx2
    [ 45.044347] keystone-netcp 24000000.netcp: Created interface "eth3"
    [ 45.050615] keystone-netcp 24000000.netcp: dma_chan_name nettx3
    [ 45.057255] keystone-netcp 24000000.netcp: Created interface "eth4"
    [ 45.063523] keystone-netcp 24000000.netcp: dma_chan_name nettx4
    [ 45.070176] keystone-netcp 24000000.netcp: Created interface "eth5"
    [ 45.076436] keystone-netcp 24000000.netcp: dma_chan_name nettx5
    [ 45.083086] keystone-netcp 24000000.netcp: Created interface "eth6"
    [ 45.089346] keystone-netcp 24000000.netcp: dma_chan_name nettx6
    [ 45.096014] keystone-netcp 24000000.netcp: Created interface "eth7"
    [ 45.102285] keystone-netcp 24000000.netcp: dma_chan_name nettx7
    [ 45.108483] XGE serdes config:
    [ 45.111535] ref_clk=156.25MHz, link_rate=10.3125G, lanes=2
    [ 45.117180] c1=2, c2=0, cm=2, tx_att=12, tx_vreg=4
    [ 45.122137] eq flags: vreg=1, cdfe=1, offset=1
    [ 45.126744] XGE: serdes reset
    [ 46.358642] XGE: timeout waiting for serdes link up
    [ 46.363892] keystone-netcp 2f00000.netcp: Created interface "eth8"
    [ 46.370076] keystone-netcp 2f00000.netcp: dma_chan_name xgetx0
    [ 46.375900] XGE: serdes reset
    [ 47.607787] XGE: timeout waiting for serdes link up
    [ 47.613000] keystone-netcp 2f00000.netcp: Created interface "eth9"
    [ 47.619185] keystone-netcp 2f00000.netcp: dma_chan_name xgetx1
    [ 47.625008] XGE: serdes reset
    [ 48.856907] XGE: timeout waiting for serdes link up
    [ 48.861826] keystone-netcp 24000000.netcp: pdsp 0 firmware: keystone/pa_in0_pdsp0.fw
    [ 48.869562] keystone-netcp 24000000.netcp: pdsp 1 firmware: keystone/pa_in0_pdsp1.fw
    [ 48.877298] keystone-netcp 24000000.netcp: pdsp 2 firmware: keystone/pa_in1_pdsp0.fw
    [ 48.885026] keystone-netcp 24000000.netcp: pdsp 3 firmware: keystone/pa_in1_pdsp1.fw
    [ 48.892761] keystone-netcp 24000000.netcp: pdsp 4 firmware: keystone/pa_in2_pdsp0.fw
    [ 48.900496] keystone-netcp 24000000.netcp: pdsp 5 firmware: keystone/pa_in3_pdsp0.fw
    [ 48.908230] keystone-netcp 24000000.netcp: pdsp 6 firmware: keystone/pa_in4_pdsp0.fw
    [ 48.915959] keystone-netcp 24000000.netcp: pdsp 7 firmware: keystone/pa_in4_pdsp1.fw
    [ 48.923696] keystone-netcp 24000000.netcp: pdsp 8 firmware: keystone/pa_post_pdsp0.fw
    [ 48.931518] keystone-netcp 24000000.netcp: pdsp 9 firmware: keystone/pa_post_pdsp1.fw
    [ 48.939340] keystone-netcp 24000000.netcp: pdsp 10 firmware: keystone/pa_eg0_pdsp0.fw
    [ 48.947161] keystone-netcp 24000000.netcp: pdsp 11 firmware: keystone/pa_eg0_pdsp1.fw
    [ 48.954977] keystone-netcp 24000000.netcp: pdsp 12 firmware: keystone/pa_eg0_pdsp2.fw
    [ 48.962798] keystone-netcp 24000000.netcp: pdsp 13 firmware: keystone/pa_eg1_pdsp0.fw
    [ 48.970620] keystone-netcp 24000000.netcp: pdsp 14 firmware: keystone/pa_eg2_pdsp0.fw
    [ 48.978809] keystone-netcp 24000000.netcp: could not find interface 2 node in device tree
    [ 48.986980] keystone-netcp 24000000.netcp: Attach of module keystone-qos declined with -19
    [ 48.995230] keystone-netcp 24000000.netcp: could not find interface 3 node in device tree
    [ 49.003399] keystone-netcp 24000000.netcp: Attach of module keystone-qos declined with -19
    [ 49.011655] keystone-netcp 24000000.netcp: could not find interface 4 node in device tree
    [ 49.019823] keystone-netcp 24000000.netcp: Attach of module keystone-qos declined with -19
    [ 49.028080] keystone-netcp 24000000.netcp: could not find interface 5 node in device tree
    [ 49.036241] keystone-netcp 24000000.netcp: Attach of module keystone-qos declined with -19
    [ 49.044497] keystone-netcp 24000000.netcp: could not find interface 6 node in device tree
    [ 49.052665] keystone-netcp 24000000.netcp: Attach of module keystone-qos declined with -19
    [ 49.060921] keystone-netcp 24000000.netcp: could not find interface 7 node in device tree
    [ 49.069089] keystone-netcp 24000000.netcp: Attach of module keystone-qos declined with -19
    [ 49.077358] keystone-netcp 24000000.netcp: Attach of module keystone-sa declined with -19
    [ 49.085520] keystone-netcp 24000000.netcp: Attach of module keystone-sa declined with -19
    [ 49.093688] keystone-netcp 24000000.netcp: Attach of module keystone-sa declined with -19
    [ 49.101857] keystone-netcp 24000000.netcp: Attach of module keystone-sa declined with -19
    [ 49.110025] keystone-netcp 24000000.netcp: Attach of module keystone-sa declined with -19
    [ 49.118193] keystone-netcp 24000000.netcp: Attach of module keystone-sa declined with -19
    [ 49.126468] PCI: enabling device 0001:01:00.0 (0140 -> 0142)
    [ 49.132125] XXXXXXXXXXXXXXXXXXXXX dev->dma_mask=ee01b840
    [ 49.137428] XXXXXXXXXXXXXXXXXXXXX dma_mask=ffffffff
    [ 49.142378] XXXXXXXXXXXXXXXXXXXXX arm_dma_limit=ffffffff
    [ 49.272519] cfg80211: Calling CRDA for country: US
    [ 49.277426] ieee80211 phy0: Atheros AR9300 Rev:4 mem=0xf0400000, irq=576
    [ 49.277680] usbcore: registered new interface driver ath9k_htc
    [ 49.277750] usbcore: registered new interface driver ar5523
    [ 49.278618] keystone-dwc3 2690000.dwc: usbss revision 47914b00
    [ 49.278636] keystone-dwc3 2690000.dwc: mapped irq 184 to virq 612
    [ 49.307634] cfg80211: Regulatory domain changed to country: US
    [ 49.313451] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [ 49.321618] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (3000 mBi, 0 mBm)
    [ 49.329178] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (1700 mBi, 0 mBm)
    [ 49.336736] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz), (2300 mBi, 0 mBm)
    [ 49.344289] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (3000 mBi, 0 mBm)
    [ 49.351848] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (4000 mBi, 0 mBm)
    [ 49.560933] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [ 49.566411] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
    [ 49.574107] XXXXXXXXXXXXXXXXXXXXX dev->dma_mask= (null)
    [ 49.579410] XXXXXXXXXXXXXXXXXXXXX dma_mask=ffffffffffffffff
    [ 49.585053] XXXXXXXXXXXXXXXXXXXXX arm_dma_limit=ffffffff
    [ 49.590928] xhci-hcd xhci-hcd.0.auto: irq 612, io mem 0x02690000
    [ 49.596995] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 49.603768] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 49.610983] usb usb1: Product: xHCI Host Controller
    [ 49.615848] usb usb1: Manufacturer: Linux 3.10.10-svn50 xhci-hcd
    [ 49.621847] usb usb1: SerialNumber: xhci-hcd.0.auto
    [ 49.627105] hub 1-0:1.0: USB hub found
    [ 49.630849] hub 1-0:1.0: 1 port detected
    [ 49.634924] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [ 49.640407] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
    [ 49.648055] XXXXXXXXXXXXXXXXXXXXX dev->dma_mask= (null)
    [ 49.653352] XXXXXXXXXXXXXXXXXXXXX dma_mask=ffffffffffffffff
    [ 49.659002] XXXXXXXXXXXXXXXXXXXXX arm_dma_limit=ffffffff
    [ 49.664453] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
    [ 49.671232] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 49.678445] usb usb2: Product: xHCI Host Controller
    [ 49.683310] usb usb2: Manufacturer: Linux 3.10.10-svn50 xhci-hcd
    [ 49.689307] usb usb2: SerialNumber: xhci-hcd.0.auto
    [ 49.694522] hub 2-0:1.0: USB hub found
    [ 49.698275] hub 2-0:1.0: 1 port detected
    [ 49.702493] usbcore: registered new interface driver usb-storage
    [ 49.708736] mousedev: PS/2 mouse device common for all mice
    [ 49.714478] i2c /dev entries driver
    [ 49.718505] watchdog 22f0080.wdt: heartbeat 60 sec
    [ 49.725774] keystone-crypto 24080000.crypto: crypto accelerator enabled
    [ 49.732726] usbcore: registered new interface driver usbhid
    [ 49.738293] usbhid: USB HID core driver
    [ 49.742202] rproc-user 2620844.dsp0: kick gpio
    [ 49.746838] remoteproc0: 2620844.dsp0 is available
    [ 49.751703] remoteproc0: Note: remoteproc is still under development and considered experimental.
    [ 49.760653] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't .
    [ 49.771005] remoteproc0: no firmware found
    [ 49.775288] rproc-user 2620844.dsp0: registered misc device dsp0
    [ 49.781308] rproc-user dspmem.9: kick gpio
    [ 49.785502] rproc-user dspmem.9: registered misc device dspmem
    [ 49.791605] oprofile: using arm/armv7-ca15
    [ 49.795791] ipip: IPv4 over IPv4 tunneling driver
    [ 49.800906] gre: GRE over IPv4 demultiplexor driver
    [ 49.805771] ip_gre: GRE over IPv4 tunneling driver
    [ 49.811234] TCP: cubic registered
    [ 49.814538] Initializing XFRM netlink socket
    [ 49.819191] NET: Registered protocol family 10
    [ 49.824871] NET: Registered protocol family 17
    [ 49.829326] NET: Registered protocol family 15
    [ 49.833801] Bridge firewalling registered
    [ 49.837810] 8021q: 802.1Q VLAN Support v1.8
    [ 49.843639] sctp: Hash tables configured (established 65536 bind 65536)
    [ 49.850457] NET: Registered protocol family 41
    [ 49.855004] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [ 49.862667] Registering SWP/SWPB emulation handler
    [ 49.870530] Freeing unused kernel memory: 392K (c0876000 - c08d8000)
    INIT: version 2.88 booting
    Calculating module dependencies ...
    depmod: ERROR: could not open directory /lib/modules/3.10.10-svn50: No such file or directory
    depmod: WARNING: -e needs -E or -F
    depmod: [ 50.005735] wiphw: disagrees about version of symbol device_create_file
    ERROR: could not[ 50.013390] wiphw: Unknown symbol device_create_file (err -22)
    open directory [ 50.020577] wiphw: disagrees about version of symbol device_create
    /lib/modules/3.1[ 50.028122] wiphw: Unknown symbol device_create (err -22)
    0.10-svn50: No s[ 50.034910] wiphw: disagrees about version of symbol device_destroy
    uch file or dire[ 50.042524] wiphw: Unknown symbol device_destroy (err -22)
    ctory
    depmod: F[ 50.049392] wiphw: disagrees about version of symbol device_remove_file
    ATAL: could not [ 50.057361] wiphw: Unknown symbol device_remove_file (err -22)
    search modules: No such file or directory
    Loading modules: /lib/modules/3.10.10/kernel/drivers/wiphw.ko Starting udev
    [ 50.108730] udevd[1350]: starting version 182
    Starting Bootlog daemon: bootlogd.
    Populating dev cache
    rm: can't remove '/var/run': Directory not empty
    ALSA: Restoring mixer settings...
    /usr/sbin/alsactl: load_state:1729: No soundcards found...
    Configuring network interfaces... done.
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    Thu Sep 10 16:48:00 UTC 2015
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    INIT: Entering runlevel: 5
    Starting telnet daemon.
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    Starting syslogd/klogd: done
    Starting thttpd.
    "Unable" is invalid lladdr.
    ifup: don't seem to have all the variables for eth0/inet
    udhcpc (v1.21.1) started
    Sending discover...
    Sending discover...
    Sending discover...

  • Hi, Pietro,

    Is this log from mem_lpae=1? if not, could you also provide the logs using mem_lpae=1? If possible, the pcie configuration in the device tree too. thanks!

    Rex

  • And this is log with mem_lpae=1

    Regards
    Pietro

    Created: 2015-09-23 8:08:18 UTC
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 4647200 Bytes = 4.4 MiB
    Load Address: 80008000
    Entry Point: 80008000
    Verifying Checksum ... OK
    ## Flattened Device Tree blob at 87000000
    Booting using the fdt blob at 0x87000000
    Loading Kernel Image ... OK
    OK
    Using Device Tree in place at 87000000, end 8700ceac

    Starting kernel ...

    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [ 0.000000] Hierarchical RCU implementation.
    [ 0.000000] NR_IRQS:16 nr_irqs:16 16
    [ 0.000000] ipc irq: irqchip registered, range 512-539
    [ 0.000000] Main PLL clk (1250000000 Hz), parent (100000000 Hz),postdiv = 2, mult = 24, prediv = 0
    [ 0.000000] Generic PLL clk (1000000000 Hz), parent (100000000 Hz),postdiv = 2, mult = 19, prediv = 0
    [ 0.000000] Generic PLL clk (400000000 Hz), parent (100000000 Hz),postdiv = 4, mult = 15, prediv = 0
    [ 0.000000] Architected local timer running at 208.33MHz (phys).
    [ 0.000000] Switching to timer-based delay loop
    [ 0.000000] sched_clock: ARM arch timer >56 bits at 208333kHz, resolution 614/128ns
    [ 0.000000] keystone timer clock @208333333 MHz
    [ 0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
    [ 0.000000] Console: colour dummy device 80x30
    [ 39.581109] Calibrating delay loop (skipped), value calculated using timer frequency.. 416.66 BogoMIPS (lpj=2083333)
    [ 39.581119] pid_max: default: 4096 minimum: 301
    [ 39.581232] Mount-cache hash table entries: 512
    [ 39.587758] CPU: Testing write buffer coherency: ok
    [ 39.587931] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [ 39.587948] Setting up static identity map for 0xc05e1dd8 - 0xc05e1e0c
    [ 39.667391] CPU1: Booted secondary processor
    [ 39.667414] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [ 39.746611] CPU2: Booted secondary processor
    [ 39.746635] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
    [ 39.825828] CPU3: Booted secondary processor
    [ 39.825851] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
    [ 39.825952] Brought up 4 CPUs
    [ 39.825969] SMP: Total of 4 processors activated (1666.66 BogoMIPS).
    [ 39.825973] CPU: All CPU(s) started in SVC mode.
    [ 39.826380] devtmpfs: initialized
    [ 39.838453] NET: Registered protocol family 16
    [ 39.839337] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 39.845601] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [ 39.845607] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [ 39.855790] bio: create slab <bio-0> at 0
    [ 39.856030] keystone-pcie: keystone_pcie_rc_init - start
    [ 39.856051] keystone2_pcie_serdes_setup for domain 0
    [ 39.858120] keystone2_pcie_serdes_setup done domain 0, en_link_train = 1
    [ 39.858146] keystone-pcie: MEM 0x0000000050000000..0x000000005fffffff -> 0x0000000050000000
    [ 39.858156] keystone-pcie: IO 0x0000000023250000..0x0000000023253fff -> 0x0000000000000000
    [ 39.858183] keystone-pcie: pcie - number of legacy irqs = 4
    [ 39.858223] keystone-pcie: pcie - number of MSI host irqs = 8, msi_irqs = 32
    [ 39.960902] keystone-pcie: Setting outbound translation for 0x50000000-0x5fffffff
    [ 39.960927] keystone-pcie: Doing PCI Setup...Done
    [ 39.960932] keystone-pcie: Starting PCI scan, nr 0...
    [ 39.961057] PCI host bridge to bus 0000:00
    [ 39.961067] pci_bus 0000:00: root bus resource [mem 0x50000000-0x5fffffff]
    [ 39.961074] pci_bus 0000:00: root bus resource [io 0x0000-0x3fff]
    [ 39.961081] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
    [ 39.961133] PCI: bus0: Fast back to back transfers enabled
    [ 39.961152] keystone-pcie: Ending PCI scan...
    [ 39.961160] keystone-pcie: keystone_pcie_rc_init - end
    [ 39.961200] keystone-pcie: keystone_pcie_rc_init - start
    [ 39.961218] keystone2_pcie_serdes_setup for domain 1
    [ 39.963287] keystone2_pcie_serdes_setup done domain 1, en_link_train = 1
    [ 39.963312] keystone-pcie: MEM 0x0000000060000000..0x000000006fffffff -> 0x0000000060000000
    [ 39.963320] keystone-pcie: IO 0x0000000023260000..0x0000000023263fff -> 0x0000000000004000
    [ 39.963347] keystone-pcie: pcie - number of legacy irqs = 4
    [ 39.963386] keystone-pcie: pcie - number of MSI host irqs = 8, msi_irqs = 32
    [ 40.070866] keystone-pcie: Setting outbound translation for 0x60000000-0x6fffffff
    [ 40.070890] keystone-pcie: Doing PCI Setup...Done
    [ 40.070895] keystone-pcie: Starting PCI scan, nr 0...
    [ 40.071004] PCI host bridge to bus 0001:00
    [ 40.071013] pci_bus 0001:00: root bus resource [mem 0x60000000-0x6fffffff]
    [ 40.071020] pci_bus 0001:00: root bus resource [io 0x4000-0x7fff]
    [ 40.071026] pci_bus 0001:00: No busn resource found for root bus, will use [bus 00-ff]
    [ 40.071276] PCI: bus0: Fast back to back transfers disabled
    [ 40.071289] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [ 40.071774] PCI: bus1: Fast back to back transfers disabled
    [ 40.071811] keystone-pcie: Ending PCI scan...
    [ 40.071818] keystone-pcie: keystone_pcie_map_irq: slot 0, pin 1
    [ 40.071822] keystone-pcie: keystone_pcie_map_irq: legacy_irq 576
    [ 40.071842] keystone-pcie: keystone_pcie_map_irq: slot 0, pin 1
    [ 40.071846] keystone-pcie: keystone_pcie_map_irq: legacy_irq 576
    [ 40.071875] pci 0001:00:00.0: BAR 8: assigned [mem 0x60000000-0x601fffff]
    [ 40.071882] pci 0001:00:00.0: BAR 9: assigned [mem 0x60200000-0x603fffff pref]
    [ 40.071889] pci 0001:00:00.0: BAR 7: assigned [io 0x4000-0x4fff]
    [ 40.071897] pci 0001:01:00.0: BAR 0: assigned [mem 0x60000000-0x6001ffff 64bit]
    [ 40.071923] pci 0001:01:00.0: BAR 6: assigned [mem 0x60200000-0x6020ffff pref]
    [ 40.071930] pci 0001:00:00.0: PCI bridge to [bus 01]
    [ 40.071937] pci 0001:00:00.0: bridge window [io 0x4000-0x4fff]
    [ 40.071946] pci 0001:00:00.0: bridge window [mem 0x60000000-0x601fffff]
    [ 40.071954] pci 0001:00:00.0: bridge window [mem 0x60200000-0x603fffff pref]
    [ 40.071964] PCI: enabling device 0001:00:00.0 (0140 -> 0143)
    [ 40.071976] keystone-pcie: keystone_pcie_rc_init - end
    [ 40.072182] vgaarb: loaded
    [ 40.072455] SCSI subsystem initialized
    [ 40.072995] usbcore: registered new interface driver usbfs
    [ 40.073069] usbcore: registered new interface driver hub
    [ 40.073163] usbcore: registered new device driver usb
    [ 40.074294] pps_core: LinuxPPS API ver. 1 registered
    [ 40.074300] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 40.074357] PTP clock support registered
    [ 40.074515] keystone-hwqueue hwqueue.6: qmgr start queue 0, number of queues 8192
    [ 40.074588] keystone-hwqueue hwqueue.6: added qmgr start queue 0, num of queues 8192, reg_peek f0040000, reg_status f0006000, reg_config f0008000, reg_region f000a000, reg_push f0080000, reg_pop f00c0000
    [ 40.075312] keystone-hwqueue hwqueue.6: qos: sched port @8096, drop sched @8000
    [ 40.076233] keystone-hwqueue hwqueue.6: qos: sched port @6496, drop sched @6400
    [ 40.077133] keystone-hwqueue hwqueue.6: added pool pool-rio: 128 descriptors of size 256
    [ 40.077143] keystone-hwqueue hwqueue.6: added pool pool-xge: 1024 descriptors of size 128
    [ 40.077152] keystone-hwqueue hwqueue.6: added pool pool-crypto: 1024 descriptors of size 128
    [ 40.077160] keystone-hwqueue hwqueue.6: added pool pool-net: 15360 descriptors of size 128
    [ 40.077168] keystone-hwqueue hwqueue.6: added pool pool-udma: 240 descriptors of size 256
    [ 40.078198] keystone-hwqueue hwqueue.6: registered queues 0-8191
    [ 40.078454] keystone-hwqueue hwqueue.6: qos version 0x2000108, magic valid
    [ 40.078934] keystone-hwqueue hwqueue.6: qos version 0x2000108, magic valid
    [ 40.082638] cfg80211: Calling CRDA to update world regulatory domain
    [ 40.082723] cfg80211: World regulatory domain updated:
    [ 40.082729] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [ 40.082735] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (2000 mBi, 0 mBm)
    [ 40.082740] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (2000 mBi, 0 mBm)
    [ 40.082745] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (2000 mBi, 0 mBm)
    [ 40.082750] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (2000 mBi, 0 mBm)
    [ 40.082754] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz), (2000 mBi, 0 mBm)
    [ 40.082759] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (2000 mBi, 0 mBm)
    [ 40.082764] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (2000 mBi, 0 mBm)
    [ 40.082769] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm)
    [ 40.083701] keystone-pktdma 2a08000.pktdma: registered 4 logical channels, flows 32, tx chans: 32, rx chans: 32, loopback
    [ 40.088144] keystone-pktdma 24186000.pktdma: registered 44 logical channels, flows 128, tx chans: 21, rx chans: 91
    [ 40.088638] keystone-pktdma 2fa1000.pktdma: registered 4 logical channels, flows 32, tx chans: 16, rx chans: 16
    [ 40.088757] Switching to clocksource arch_sys_counter
    [ 40.111556] NET: Registered protocol family 2
    [ 40.111893] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    [ 40.112000] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [ 40.112104] TCP: Hash tables configured (established 8192 bind 8192)
    [ 40.112147] TCP: reno registered
    [ 40.112155] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [ 40.112179] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [ 40.112348] NET: Registered protocol family 1
    [ 40.112491] RPC: Registered named UNIX socket transport module.
    [ 40.112497] RPC: Registered udp transport module.
    [ 40.112501] RPC: Registered tcp transport module.
    [ 40.112505] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 40.112659] Unpacking initramfs...
    [ 40.772035] Initramfs unpacking failed: junk in compressed archive
    [ 40.785727] Freeing initrd memory: 32768K (c2000000 - c4000000)
    [ 40.785965] hw perfevents: enabled with ARMv7 Cortex-A15 PMU driver, 7 counters available
    [ 40.867022] bounce pool size: 64 pages
    [ 40.873782] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
    [ 40.873934] NTFS driver 2.1.30 [Flags: R/O].
    [ 40.874145] jffs2: version 2.2. (NAND) B) 2001-2006 Red Hat, Inc.
    [ 40.874419] msgmni has been set to 1475
    [ 40.875457] NET: Registered protocol family 38
    [ 40.875638] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
    [ 40.875645] io scheduler noop registered
    [ 40.875650] io scheduler deadline registered
    [ 40.875758] io scheduler cfq registered (default)
    [ 40.876278] keystone-udma udma0.7: registered udma device udma0
    [ 40.926767] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [ 40.928039] 2530c00.serial: ttyS0 at MMIO 0x2530c00 (irq = 309) is a 16550A
    [ 41.846896] console [ttyS0] enabled
    [ 41.850911] 2531000.serial: ttyS1 at MMIO 0x2531000 (irq = 312) is a 16550A
    [ 41.860525] loop: module loaded
    [ 41.863771] at24 0-0050: 131072 byte 24c1024 EEPROM, writable, 1 bytes/write
    [ 41.871942] Generic platform RAM MTD, (c) 2004 Simtec Electronics
    [ 41.957567] No NAND device found
    [ 41.962653] tun: Universal TUN/TAP device driver, 1.6
    [ 41.967701] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
    [ 42.017537] davinci_mdio 24200f00.mdio: davinci mdio revision 1.7
    [ 42.023615] libphy: 24200f00.mdio: probed
    [ 42.030062] davinci_mdio 24200f00.mdio: phy[1]: device 24200f00.mdio:01, driver Marvell 88E1111
    [ 42.039031] keystone-netcp 24000000.netcp: Missing cpts_clock_mult property in the DT.
    [ 42.046935] keystone-netcp 24000000.netcp: Missing cpts_clock_shift property in the DT.
    [ 42.054932] keystone-netcp 24000000.netcp: Missing cpts_clock_div property in the DT.
    [ 42.063639] keystone-netcp 24000000.netcp: Created interface "eth0"
    [ 42.069907] keystone-netcp 24000000.netcp: dma_chan_name nettx0
    [ 42.076551] keystone-netcp 24000000.netcp: Created interface "eth1"
    [ 42.082818] keystone-netcp 24000000.netcp: dma_chan_name nettx1
    [ 42.089499] keystone-netcp 24000000.netcp: Created interface "eth2"
    [ 42.095758] keystone-netcp 24000000.netcp: dma_chan_name nettx2
    [ 42.102403] keystone-netcp 24000000.netcp: Created interface "eth3"
    [ 42.108670] keystone-netcp 24000000.netcp: dma_chan_name nettx3
    [ 42.115316] keystone-netcp 24000000.netcp: Created interface "eth4"
    [ 42.121584] keystone-netcp 24000000.netcp: dma_chan_name nettx4
    [ 42.128243] keystone-netcp 24000000.netcp: Created interface "eth5"
    [ 42.134503] keystone-netcp 24000000.netcp: dma_chan_name nettx5
    [ 42.141153] keystone-netcp 24000000.netcp: Created interface "eth6"
    [ 42.147413] keystone-netcp 24000000.netcp: dma_chan_name nettx6
    [ 42.154078] keystone-netcp 24000000.netcp: Created interface "eth7"
    [ 42.160345] keystone-netcp 24000000.netcp: dma_chan_name nettx7
    [ 42.166527] XGE serdes config:
    [ 42.169577] ref_clk=156.25MHz, link_rate=10.3125G, lanes=2
    [ 42.175222] c1=2, c2=0, cm=2, tx_att=12, tx_vreg=4
    [ 42.180179] eq flags: vreg=1, cdfe=1, offset=1
    [ 42.184784] XGE: serdes reset
    [ 43.416576] XGE: timeout waiting for serdes link up
    [ 43.421800] keystone-netcp 2f00000.netcp: Created interface "eth8"
    [ 43.427983] keystone-netcp 2f00000.netcp: dma_chan_name xgetx0
    [ 43.433807] XGE: serdes reset
    [ 44.665585] XGE: timeout waiting for serdes link up
    [ 44.670793] keystone-netcp 2f00000.netcp: Created interface "eth9"
    [ 44.676976] keystone-netcp 2f00000.netcp: dma_chan_name xgetx1
    [ 44.682799] XGE: serdes reset
    [ 45.914634] XGE: timeout waiting for serdes link up
    [ 45.919552] keystone-netcp 24000000.netcp: pdsp 0 firmware: keystone/pa_in0_pdsp0.fw
    [ 45.927287] keystone-netcp 24000000.netcp: pdsp 1 firmware: keystone/pa_in0_pdsp1.fw
    [ 45.935020] keystone-netcp 24000000.netcp: pdsp 2 firmware: keystone/pa_in1_pdsp0.fw
    [ 45.942749] keystone-netcp 24000000.netcp: pdsp 3 firmware: keystone/pa_in1_pdsp1.fw
    [ 45.950484] keystone-netcp 24000000.netcp: pdsp 4 firmware: keystone/pa_in2_pdsp0.fw
    [ 45.958217] keystone-netcp 24000000.netcp: pdsp 5 firmware: keystone/pa_in3_pdsp0.fw
    [ 45.965951] keystone-netcp 24000000.netcp: pdsp 6 firmware: keystone/pa_in4_pdsp0.fw
    [ 45.973679] keystone-netcp 24000000.netcp: pdsp 7 firmware: keystone/pa_in4_pdsp1.fw
    [ 45.981413] keystone-netcp 24000000.netcp: pdsp 8 firmware: keystone/pa_post_pdsp0.fw
    [ 45.989233] keystone-netcp 24000000.netcp: pdsp 9 firmware: keystone/pa_post_pdsp1.fw
    [ 45.997054] keystone-netcp 24000000.netcp: pdsp 10 firmware: keystone/pa_eg0_pdsp0.fw
    [ 46.004869] keystone-netcp 24000000.netcp: pdsp 11 firmware: keystone/pa_eg0_pdsp1.fw
    [ 46.012689] keystone-netcp 24000000.netcp: pdsp 12 firmware: keystone/pa_eg0_pdsp2.fw
    [ 46.020510] keystone-netcp 24000000.netcp: pdsp 13 firmware: keystone/pa_eg1_pdsp0.fw
    [ 46.028330] keystone-netcp 24000000.netcp: pdsp 14 firmware: keystone/pa_eg2_pdsp0.fw
    [ 46.036513] keystone-netcp 24000000.netcp: could not find interface 2 node in device tree
    [ 46.044675] keystone-netcp 24000000.netcp: Attach of module keystone-qos declined with -19
    [ 46.052931] keystone-netcp 24000000.netcp: could not find interface 3 node in device tree
    [ 46.061099] keystone-netcp 24000000.netcp: Attach of module keystone-qos declined with -19
    [ 46.069354] keystone-netcp 24000000.netcp: could not find interface 4 node in device tree
    [ 46.077521] keystone-netcp 24000000.netcp: Attach of module keystone-qos declined with -19
    [ 46.085776] keystone-netcp 24000000.netcp: could not find interface 5 node in device tree
    [ 46.093938] keystone-netcp 24000000.netcp: Attach of module keystone-qos declined with -19
    [ 46.102193] keystone-netcp 24000000.netcp: could not find interface 6 node in device tree
    [ 46.110360] keystone-netcp 24000000.netcp: Attach of module keystone-qos declined with -19
    [ 46.118615] keystone-netcp 24000000.netcp: could not find interface 7 node in device tree
    [ 46.126781] keystone-netcp 24000000.netcp: Attach of module keystone-qos declined with -19
    [ 46.135049] keystone-netcp 24000000.netcp: Attach of module keystone-sa declined with -19
    [ 46.143211] keystone-netcp 24000000.netcp: Attach of module keystone-sa declined with -19
    [ 46.151378] keystone-netcp 24000000.netcp: Attach of module keystone-sa declined with -19
    [ 46.159546] keystone-netcp 24000000.netcp: Attach of module keystone-sa declined with -19
    [ 46.167713] keystone-netcp 24000000.netcp: Attach of module keystone-sa declined with -19
    [ 46.175880] keystone-netcp 24000000.netcp: Attach of module keystone-sa declined with -19
    [ 46.184154] PCI: enabling device 0001:01:00.0 (0140 -> 0142)
    [ 46.189812] XXXXXXXXXXXXXXXXXXXXX dev->dma_mask=ee01b840
    [ 46.195116] XXXXXXXXXXXXXXXXXXXXX dma_mask=ffffffff
    [ 46.200065] XXXXXXXXXXXXXXXXXXXXX arm_dma_limit=87fffffff
    [ 46.205541] ath9k: 32-bit DMA not available
    [ 46.209720] ath9k: probe of 0001:01:00.0 failed with error -5
    [ 46.215695] usbcore: registered new interface driver ath9k_htc
    [ 46.221579] usbcore: registered new interface driver ar5523
    [ 46.227966] keystone-dwc3 2690000.dwc: usbss revision 47914b00
    [ 46.233799] keystone-dwc3 2690000.dwc: mapped irq 184 to virq 612
    [ 46.441254] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [ 46.446747] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
    [ 46.454433] XXXXXXXXXXXXXXXXXXXXX dev->dma_mask=ed73e0c0
    [ 46.459736] XXXXXXXXXXXXXXXXXXXXX dma_mask=ffffffffffffffff
    [ 46.465384] XXXXXXXXXXXXXXXXXXXXX arm_dma_limit=87fffffff
    [ 46.471374] xhci-hcd xhci-hcd.0.auto: irq 612, io mem 0x02690000
    [ 46.477450] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 46.484224] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 46.491439] usb usb1: Product: xHCI Host Controller
    [ 46.496309] usb usb1: Manufacturer: Linux 3.10.10-svn50 xhci-hcd
    [ 46.502301] usb usb1: SerialNumber: xhci-hcd.0.auto
    [ 46.507543] hub 1-0:1.0: USB hub found
    [ 46.511288] hub 1-0:1.0: 1 port detected
    [ 46.515374] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [ 46.520852] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
    [ 46.528503] XXXXXXXXXXXXXXXXXXXXX dev->dma_mask=ed73e0c0
    [ 46.533799] XXXXXXXXXXXXXXXXXXXXX dma_mask=ffffffffffffffff
    [ 46.539448] XXXXXXXXXXXXXXXXXXXXX arm_dma_limit=87fffffff
    [ 46.544985] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
    [ 46.551758] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 46.558970] usb usb2: Product: xHCI Host Controller
    [ 46.563835] usb usb2: Manufacturer: Linux 3.10.10-svn50 xhci-hcd
    [ 46.569832] usb usb2: SerialNumber: xhci-hcd.0.auto
    [ 46.575044] hub 2-0:1.0: USB hub found
    [ 46.578787] hub 2-0:1.0: 1 port detected
    [ 46.582997] usbcore: registered new interface driver usb-storage
    [ 46.589236] mousedev: PS/2 mouse device common for all mice
    [ 46.594990] i2c /dev entries driver
    [ 46.599005] watchdog 22f0080.wdt: heartbeat 60 sec
    [ 46.605787] keystone-crypto 24080000.crypto: crypto accelerator enabled
    [ 46.612681] usbcore: registered new interface driver usbhid
    [ 46.618251] usbhid: USB HID core driver
    [ 46.622164] rproc-user 2620844.dsp0: kick gpio
    [ 46.626816] remoteproc0: 2620844.dsp0 is available
    [ 46.631682] remoteproc0: Note: remoteproc is still under development and considered experimental.
    [ 46.640635] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [ 46.651010] remoteproc0: no firmware found
    [ 46.655401] rproc-user 2620844.dsp0: registered misc device dsp0
    [ 46.661417] rproc-user dspmem.9: kick gpio
    [ 46.665635] rproc-user dspmem.9: registered misc device dspmem
    [ 46.671752] oprofile: using arm/armv7-ca15
    [ 46.675971] ipip: IPv4 over IPv4 tunneling driver
    [ 46.681049] gre: GRE over IPv4 demultiplexor driver
    [ 46.685926] ip_gre: GRE over IPv4 tunneling driver
    [ 46.691474] TCP: cubic registered
    [ 46.694790] Initializing XFRM netlink socket
    [ 46.699477] NET: Registered protocol family 10
    [ 46.705158] NET: Registered protocol family 17
    [ 46.709602] NET: Registered protocol family 15
    [ 46.714075] Bridge firewalling registered
    [ 46.718149] 8021q: 802.1Q VLAN Support v1.8
    [ 46.723982] sctp: Hash tables configured (established 65536 bind 65536)
    [ 46.730816] NET: Registered protocol family 41
    [ 46.735381] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [ 46.743035] Registering SWP/SWPB emulation handler
    [ 46.750942] Freeing unused kernel memory: 392K (c0876000 - c08d8000)
    INIT: version 2.88 booting
    Calculating module dependencies ...
    depmod: ERROR: could not open directory /lib/modules/3.10.10-svn50: No such file or directory
    depmod: WARNING: -e needs -E or -F
    depmod: [ 46.883724] wiphw: disagrees about version of symbol device_create_file
    ERROR: could not[ 46.891374] wiphw: Unknown symbol device_create_file (err -22)
    open directory [ 46.898574] wiphw: disagrees about version of symbol device_create
    /lib/modules/3.1[ 46.906119] wiphw: Unknown symbol device_create (err -22)
    0.10-svn50: No s[ 46.912908] wiphw: disagrees about version of symbol device_destroy
    uch file or dire[ 46.920522] wiphw: Unknown symbol device_destroy (err -22)
    ctory
    depmod: F[ 46.927390] wiphw: disagrees about version of symbol device_remove_file
    ATAL: could not [ 46.935359] wiphw: Unknown symbol device_remove_file (err -22)
    search modules: No such file or directory
    Loading modules: /lib/modules/3.10.10/kernel/drivers/wiphw.ko Starting udev
    [ 46.987421] udevd[1339]: starting version 182
    Starting Bootlog daemon: bootlogd.
    Populating dev cache
    rm: can't remove '/var/run': Directory not empty
    ALSA: Restoring mixer settings...
    /usr/sbin/alsactl: load_state:1729: No soundcards found...
    Configuring network interfaces... done.
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    Thu Sep 10 16:48:00 UTC 2015
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    INIT: Entering runlevel: 5
    Starting telnet daemon.
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    Starting syslogd/klogd: done
    Starting thttpd.
    "Unable" is invalid lladdr.
    ifup: don't seem to have all the variables for eth0/inet
    udhcpc (v1.21.1) started
    Sending discover...
    Sending discover...
    Sending discover...
    Sending discover...
    Sending select for 172.168.1.21...
    Lease of 172.168.1.21 obtained, lease time 86400
    "Unable" is invalid lladdr.
    udhcpc (v1.21.1) started
    Sending discover...
    Sending discover...
  • Hi, Pietro,

    The dma_mask looks fine because the keystone2 is 64-bit machine, but I think your wifi module is 64-bit. In your logs, the pcie configuration shows:

    [ 40.071811] keystone-pcie: Ending PCI scan...
    [ 40.071818] keystone-pcie: keystone_pcie_map_irq: slot 0, pin 1
    [ 40.071822] keystone-pcie: keystone_pcie_map_irq: legacy_irq 576
    [ 40.071842] keystone-pcie: keystone_pcie_map_irq: slot 0, pin 1
    [ 40.071846] keystone-pcie: keystone_pcie_map_irq: legacy_irq 576
    [ 40.071875] pci 0001:00:00.0: BAR 8: assigned [mem 0x60000000-0x601fffff]
    [ 40.071882] pci 0001:00:00.0: BAR 9: assigned [mem 0x60200000-0x603fffff pref]
    [ 40.071889] pci 0001:00:00.0: BAR 7: assigned [io 0x4000-0x4fff]
    [ 40.071897] pci 0001:01:00.0: BAR 0: assigned [mem 0x60000000-0x6001ffff 64bit]
    [ 40.071923] pci 0001:01:00.0: BAR 6: assigned [mem 0x60200000-0x6020ffff pref]
    [ 40.071930] pci 0001:00:00.0: PCI bridge to [bus 01]
    [ 40.071937] pci 0001:00:00.0: bridge window [io 0x4000-0x4fff]
    [ 40.071946] pci 0001:00:00.0: bridge window [mem 0x60000000-0x601fffff]
    [ 40.071954] pci 0001:00:00.0: bridge window [mem 0x60200000-0x603fffff pref]
    [ 40.071964] PCI: enabling device 0001:00:00.0 (0140 -> 0143)
    [ 40.071976] keystone-pcie: keystone_pcie_rc_init - end

    But Keystone-2 only supports 32-bit device. As I mentioned earlier that we have a SATA device connected to the K2E EVM, and it turns out the SATA controller is a 32-bit device shown in lspci. the controller capacity is shown being 64bit- (minus, not plus + as in TI PCI bridge).

    k2e-evm login: root
    root@k2e-evm:~# lspci -v
    0001:00:00.0 PCI bridge: Texas Instruments Device 8888 (rev 01) (prog-if 00 [Normal decode])
            Flags: bus master, fast devsel, latency 0
            Memory at <ignored> (32-bit, non-prefetchable)
            Memory at <ignored> (32-bit, prefetchable)
            Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
            I/O behind bridge: 00004000-00004fff
            Memory behind bridge: 60000000-600fffff
            Prefetchable memory behind bridge: 60100000-601fffff
            Capabilities: [40] Power Management version 3
            Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
            Capabilities: [70] Express Root Port (Slot-), MSI 00
            Capabilities: [100] Advanced Error Reporting
            Kernel driver in use: pcieport

    0001:01:00.0 SATA controller: Marvell Technology Group Ltd. Device 9182 (rev 12) (prog-if 01 [AHCI 1.0])
            Subsystem: Marvell Technology Group Ltd. Device 9182
            Flags: bus master, fast devsel, latency 0, IRQ 612
            I/O ports at 4010 [size=8]
            I/O ports at 4020 [size=4]
            I/O ports at 4018 [size=8]
            I/O ports at 4024 [size=4]
            I/O ports at 4000 [size=16]
            Memory at 60000000 (32-bit, non-prefetchable) [size=512]
            Expansion ROM at 60100000 [disabled] [size=64K]
            Capabilities: [40] Power Management version 3
            Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit-
            Capabilities: [70] Express Legacy Endpoint, MSI 00
            Capabilities: [100] Advanced Error Reporting
            Kernel driver in use: ahci

     If you configure the wifi module as 32-bit device, it should work.

    Rex

     

  • I'm waiting for a different mini-PCIe WIFI module (broadcomm BCM4322 based); looking at linux driver source it should support DMA mask which is compatible with Keystone II linux.

    Pietro
  • Hello Rex,

    I've just received new WIFI modules.

    WiFi module is based on broadcomm BCM4322 chip with type-N PHY.

    Looking at Linux boot:

    [ 1275.767034] b43-phy0: Broadcom 4322 WLAN found (core revision 16)
    [ 1275.773156] ssb: Error: ssb_pci_xtal() could not access PCI config space!
    [ 1275.779946] ssb: Bus powerup failed
    [ 1275.783429] b43-phy0 ERROR: Bus powerup failed
    [ 1275.787881] b43: probe of ssb0:0 failed with error -16
    [ 1275.793066] Broadcom 43xx driver loaded [ Features: PN ]

    we see PHY Bus is not powered up

    A further analysis show that the problem may be inside the kernel

    wireless.wiki.kernel.org/.../b43

    which says : "N-PHY: 5 GHz support requires kernel 3.17+"

    I'm running a 3.10.10 TI modified Kernel (Arago distribution).

    Is there any newer release (>= 3.17)?
    when will a newer release be available ?

    Regards
    Pietro
  • Hi, Pietro,

    Next release for Keystone-2 will be Processor SDK 2.0.1 which targeted at 4Q15. It will be Kernel v4.1.

    Rex