Re: [bisected][regression] USB Ethernet Gadget Support - Freescale 8308

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 17, 2014 at 8:47 PM, Felipe Balbi <balbi@xxxxxx> wrote:
> Hi,
> 3.10 is a pretty old kernel, you need to ask support from whoever gave
> you that kernel, unless you can try v3.16-rc1 on your board.
>

Thanks for responding.

We are just running Vanilla 3.10 from kernel.org without any "vendor" per se.

I did a quick port to 3.16-rc1 and booted off NFS so I didn't have
to port our NAND drivers.  Here is the dmesg:
Using Custom Platform machine description
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.16.0-rc1+ (barrgr@zoidberg) (gcc version 4.2.4) #2
PREEMPT Wed Jun 18 08:39:02 PDT 2014
Found legacy serial port 0 for /immr@e0000000/serial@4500
  mem=e0004500, taddr=e0004500, irq=0, clk=132000000, speed=0
Found legacy serial port 1 for /immr@e0000000/serial@4600
  mem=e0004600, taddr=e0004600, irq=0, clk=132000000, speed=0
bootconsole [udbg0] enabled
Top of RAM: 0x20000000, Total RAM: 0x20000000
Memory hole size: 0MB
Zone ranges:
  DMA      [mem 0x00000000-0x1fffffff]
  Normal   empty
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x00000000-0x1fffffff]
On node 0 totalpages: 131072
free_area_init_node: node 0, pgdat c054c700, node_mem_map c07fd000
  DMA zone: 1024 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 131072 pages, LIFO batch:31
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: root=/dev/nfs
nfsroot=192.168.1.1:/srv/nfs_powerpc
ip=192.168.1.4::192.168.1.1:255.255.255.0::eth0:off panic=10
console=ttyS0,115200 selinux=0
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Sorting __ex_table...
Memory: 514080K/524288K available (4156K kernel code, 268K rwdata,
880K rodata, 188K init, 116K bss, 10208K reserved)
Kernel virtual memory layout:
  * 0xfffdf000..0xfffff000  : fixmap
  * 0xfdffc000..0xfe000000  : early ioremap
  * 0xe1000000..0xfdffc000  : vmalloc & ioremap
Preemptible hierarchical RCU implementation.
NR_IRQS:512 nr_irqs:512 16
IPIC (128 IRQ sources) at e1000700
time_init: decrementer frequency = 33.000000 MHz
time_init: processor frequency   = 330.000000 MHz
clocksource: timebase mult[1e4d9365] shift[24] registered
clockevent: decrementer mult[872b021] shift[32] cpu[0]
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
NET: Registered protocol family 16
Registering ipic system core operations
Freescale Elo series DMA driver
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
<giometti@xxxxxxxx>
PTP clock support registered
EDAC MC: Ver: 3.0.0
Switched to clocksource timebase
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
futex hash table entries: 256 (order: -1, 3072 bytes)
audit: initializing netlink subsys (disabled)
audit: type=2000 audit(0.217:1): initialized
msgmni has been set to 1004
alg: No test for stdrng (krng)
io scheduler noop registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
console [ttyS0] disabled
serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 16, base_baud = 8250000)
is a 16550A
console [ttyS0] enabled
bootconsole [udbg0] disabled
serial8250.0: ttyS1 at MMIO 0xe0004600 (irq = 17, base_baud = 8250000)
is a 16550A
fe000000.flash: Found 1 x16 devices at 0x0 in 16-bit bank.
Manufacturer ID 0x000001 Chip ID 0x002201
Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.3.
number of CFI chips: 1
fsl_spi e0007000.spi: master is unqueued, this is deprecated
fsl_spi e0007000.spi: at 0xe10a6000 (irq = 21), CPU mode
bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
libphy: Freescale PowerQUICC MII Bus: probed
fsl-gianfar e0024000.ethernet: enabled errata workarounds, flags: 0x4
fsl-gianfar e0024000.ethernet eth0: mac: 00:30:a7:07:15:f6
fsl-gianfar e0024000.ethernet eth0: Running with NAPI enabled
fsl-gianfar e0024000.ethernet eth0: RX BD ring size for Q[0]: 256
fsl-gianfar e0024000.ethernet eth0: TX BD ring size for Q[0]: 256
fsl-gianfar e0025000.ethernet: enabled errata workarounds, flags: 0x4
fsl-gianfar e0025000.ethernet eth1: mac: 00:30:a7:07:15:f7
fsl-gianfar e0025000.ethernet eth1: Running with NAPI enabled
fsl-gianfar e0025000.ethernet eth1: RX BD ring size for Q[0]: 256
fsl-gianfar e0025000.ethernet eth1: TX BD ring size for Q[0]: 256
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
CSLIP: code copyright 1989 Regents of the University of California.
SLIP linefill/keepalive option.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
usbcore: registered new interface driver usb-storage
couldn't find an available UDC
i2c /dev entries driver
mpc-i2c e0003000.i2c: timeout 1000000 us
rtc-ds1307 0-0068: rtc core: registered ds1339 as rtc0
Freescale(R) MPC85xx EDAC driver, (C) 2006 Montavista Software
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
GACT probability on
Mirror/redirect action on
netem: version 1.3
u32 classifier
    Performance counters on
    input device check on
    Actions configured
nf_conntrack version 0.5.0 (8032 buckets, 32128 max)
ipip: IPv4 over IPv4 tunneling driver
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP: cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
NET: Registered protocol family 15
Bridge firewalling registered
Ebtables v2.0 registered
8021q: 802.1Q VLAN Support v1.8
rtc-ds1307 0-0068: setting system clock to 2014-06-18 15:43:54 UTC (1403106234)
fsl-gianfar e0024000.ethernet eth0: Link is Up - 100Mbps/Full - flow
control rx/tx
IP-Config: Complete:
     device=eth0, hwaddr=00:30:a7:07:15:f6, ipaddr=192.168.1.4,
mask=255.255.255.0, gw=192.168.1.1
     host=192.168.1.4, domain=, nis-domain=(none)
     bootserver=255.255.255.255, rootserver=192.168.1.1, rootpath=
VFS: Mounted root (nfs filesystem) readonly on device 0:11.
Freeing unused kernel memory: 188K (c04ed000 - c051c000)

Note the:
couldn't find an available UDC

Plugging the USB cable in and out results in no visible affect.

If I apply the previously shown patch that remarks the id_table in
fsl_udc_core.c,
the dmesg instead contains:
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
usbcore: registered new interface driver usb-storage
udc fsl-usb2-udc.0: registering UDC driver [g_ether]
using random self ethernet address
using random host ethernet address
using host ethernet address: 00:11:22:33:44:55
usb0: HOST MAC 00:11:22:33:44:55
usb0: MAC 62:c4:9c:ca:12:71
using random self ethernet address
using random host ethernet address
g_ether gadget: adding config #2 'RNDIS'/c054180c
rndis_register: configNr = 0
g_ether gadget: adding 'rndis'/df94b0e0 to config 'RNDIS'/c054180c
rndis_set_param_medium: 0 0
g_ether gadget: RNDIS: dual speed IN/ep1in OUT/ep1out NOTIFY/ep2in
g_ether gadget: cfg 2/c054180c speeds: high full
g_ether gadget:   interface 0 = rndis/df94b0e0
g_ether gadget:   interface 1 = rndis/df94b0e0
g_ether gadget: adding config #1 'CDC Ethernet (ECM)'/c0541760
g_ether gadget: adding 'cdc_ethernet'/df94b020 to config 'CDC Ethernet
(ECM)'/c0541760
g_ether gadget: CDC Ethernet: dual speed IN/ep1in OUT/ep1out NOTIFY/ep2in
g_ether gadget: cfg 1/c0541760 speeds: high full
g_ether gadget:   interface 0 = cdc_ethernet/df94b020
g_ether gadget:   interface 1 = cdc_ethernet/df94b020
g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
g_ether gadget: g_ether ready

And plugging in the USB cable results in an Oops:
Unable to handle kernel paging request for data at address 0x00000010
Faulting instruction address: 0xc02b3f58
Oops: Kernel access of bad area, sig: 11 [#1]
PREEMPT Custom Platform
CPU: 0 PID: 0 Comm: swapper Tainted: G        W     3.16.0-rc1+ #5
task: c051e390 ti: dfff6000 task.ti: c054e000
NIP: c02b3f58 LR: c02bc68c CTR: c02bc5c8
REGS: dfff7dd0 TRAP: 0300   Tainted: G        W      (3.16.0-rc1+)
MSR: 00001032 <ME,IR,DR,RI>  CR: 22022042  XER: 20000000
DAR: 00000010 DSISR: 20000000
GPR00: 00000000 dfff7e80 c051e390 df8ba200 1f8bb800 df8bb800 00000012 00000001
GPR08: 16030102 c0560000 00400000 00000000 22022084 10085638 00000000 00000000
GPR16: 00001032 00000001 00000000 00000000 00000000 df8ba200 00000040 c049a764
GPR24: df866220 00000000 00000000 df866254 df866220 df8ba230 df8ba200 00000000
NIP [c02b3f58] usb_gadget_map_request+0x118/0x1a4
LR [c02bc68c] fsl_ep_queue+0xc4/0x19c
Call Trace:
[dfff7ea8] [c02bc68c] fsl_ep_queue+0xc4/0x19c
[dfff7ec8] [c02b7514] composite_setup+0x1324/0x13e8
[dfff7f20] [c02bd070] fsl_udc_irq+0x5cc/0xcbc
[dfff7f78] [c004b42c] handle_irq_event_percpu+0x4c/0x150
[dfff7fa8] [c004b594] handle_irq_event+0x64/0x94
[dfff7fc0] [c004e7bc] handle_level_irq+0x138/0x15c
[dfff7fd8] [c004b118] generic_handle_irq+0x38/0x50
[dfff7fe8] [c000530c] __do_irq+0x44/0x58
[dfff7ff0] [c000c510] call_do_irq+0x24/0x3c
[c054fe98] [c0005510] do_IRQ+0x94/0xe0
[c054fec0] [c000dca4] ret_from_except+0x0/0x14
--- Exception: 501 at arch_cpu_idle+0x24/0x68
    LR = arch_cpu_idle+0x24/0x68
[c054ff80] [c054e000] 0xc054e000 (unreliable)
[c054ff88] [c0042dec] cpu_startup_entry+0x100/0x180
[c054ffa8] [c0004068] rest_init+0x84/0x9c
[c054ffc0] [c04edd18] start_kernel+0x334/0x348
[c054fff0] [00003438] 0x3438
Instruction dump:
7fff0034 57ffd97f 41a2000c 39600000 48000008 817e00bc 20070002 7c000110
7c0000d0 0f000000 3d20c056 3c854000 <816b0010> 8009f200 5484c9f4 54a5053e
---[ end trace 1e1b78a0b4f63fb8 ]---

Thanks again.  Any guidance is appreciated.

Barry
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux