This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
PXA255, SMSC 91C111, interrupt only fires twice.
- From: "Joe Porthouse" <jporthouse at toptech dot com>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Fri, 21 Jul 2006 16:59:00 -0400
- Subject: [ECOS] PXA255, SMSC 91C111, interrupt only fires twice.
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=toptech.com; s=MDaemon; t=1153515544; x=1154707144; q=dns; h=DomainKey-Signature: Received:Reply-To:From:To:Subject:Date:Organization:MIME-Version: Content-Type:Content-Transfer-Encoding:thread-index:In-Reply-To: Message-ID; b=OZk22iEYRGjyJ1kBC52SgfF3lRuoWqh5rcsbBHDgDLFXB8ZdG1 YSkR5NMbX8CnjV+pJL70mrMKK1VNgCm9VPE5qynsl27ty6bIEwbiKOe2+q4EKq1S rYjmcrCkHgfaE5dsFIwmQKquS3YL7jmvIu2L3o4sB99xZCqGQheE2GgUs=
- Reply-to: <jporthouse at toptech dot com>
All,
Using the devs_eth_smsc_lan91cxx on a PXA255, I can send and receive
packets with ping under Redboot without a problem (poll mode).
When including the devs_eth_smsc_lan91cxx driver in my application
code (interrupt mode I assume) I can not receive any packets and the receive
interrupt only fires twice during startup.
I can see 4 ARP packets being transmitted when the driver starts.
After several seconds I stop the code and can see that my interrupt count is
at two. I also can examine my edge detected register, interrupt mask, and
interrupt enable and they are all in a start that should be firing another
Ethernet interrupt, but it does not seem to occur.
Any ideas where to look next?
I also don't understand why I am logging "[eth_drv_ioctl] Warning:
Driver can't set multi-cast mode". This did not occur under redboot.
Any help would be greatly appreciated.
Thanks,
Here's my trace
ABCDBA98754300002[cyg_net_init] Init: mbinit(0x00000000)
[cyg_net_init] Init: cyg_net_init_devs(0x00000000)
Init device 'lan91cxx_eth0'
smsc_lan91cxx_init
LAN91CXX - supposed BankReg @ 800030e = 3300
LAN91CXX - type: 9, rev: 2
LAN91CXX - status: 0000
Got ESA from cpd
LAN91CXX - ESA: 00:80:66:ff:ff:ff
[cyg_net_init] Init: loopattach(0x00000000)
[cyg_net_init] Init: ifinit(0x00000000)
[cyg_net_init] Init: domaininit(0x00000000)
[cyg_net_init] Init: cyg_net_add_domain(0x0005073c)
New domain internet at 0x00000000
[cyg_net_init] Init: cyg_net_add_domain(0x0004fecc)
New domain route at 0x00000000
[cyg_net_init] Init: call_route_init(0x00000000)
[cyg_net_init] Done
1Start Main
Start NET test
BOOTP[eth0] op: REPLY
htype: Ethernet
hlen: 6
hops: 0
xiä: 0x0
secs: 0
flags: 0x0
hw_addr: 00:80:66:nf:ff:ff
client IP: 172.16.8.111
my IP: 172.16.8.q11
server IP: 172.16.8.109
gateway IP: 172.1 IP broadcast: 172>16.1.255
gateway: 172.1>.0.1
lan91cxx_start
lan91cxx_can_send
lan91cxx_send
lan91cxx_send: allocated packet 0000
#####Tx packet allocated 0 (previous 0)
lan91cxx_isr
lan91cxx_send:END: ints at TX: 030c
lan91cxx_can_send
lan91cxx_TxEvent
lan91cxx_TxEvent:START: fifo 8000 ints 0100
#####Tx packet freed 0 (expected 0)
lan91cxx_TxEvent:END: fifo 8080 ints 010c
lan91cxx_deliver
lan91cxx_control
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
lan91cxx_start
lan91cxx_control
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
lan91cxx_can_send
lan91cxx_send
lan91cxx_send: allocated packet 0000
#####Tx packet allocated 0 (previous 0)
llan91cxx_isr
an91cxx_send:END: ints at TX: 030c
lan91cxx_can_send
lan91cxx_TxEvent
lan91cxx_TxEvent:START: fifo 8000 ints 0100
#####Tx packet freed 0 (expected 0)
lan91cxx_TxEvent:END: fifo 8080 ints 010c
lan91cxx_deliver
lan91cxx_stop
lan91cxx_start
lan91cxx_control
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
Start SERVER test
lan91cxx_start
lan91cxx_control
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
lan91cxx_can_send
lan91cxx_send
lan91cxx_send: allocated packet 0000
#####Tx packet allocated 0 (previous 0)
lan91cxx_send:END: ints at TX: 030c
lan91cxx_can_send
lan91cxx_TxEvent
lan91cxx_TxEvent:START: fifo 8000 ints 0100
#####Tx packet freed 0 (expected 0)
lan91cxx_TxEvent:END: fifo 8080 ints 010c
lan91cxx_start
lan91cxx_control
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
lan91cxx_can_send
lan91cxx_send
lan91cxx_send: allocated packet 0000
#####Tx packet allocated 0 (previous 0)
lan91cxx_send:END: ints at TX: 030c
lan91cxx_can_send
lan91cxx_TxEvent
lan91cxx_TxEvent:START: fifo 8000 ints 0100
#####Tx packet freed 0 (expected 0)
lan91cxx_TxEvent:END: fifo 8080 ints 010c
lan91cxx_stop
lan91cxx_start
lan91cxx_control
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
Route - dst: 0.0.0.0, mask: 0.0.0.0, gateway: 172.16.0.1
Joe Porthouse
Toptech Systems, Inc.
Longwood, FL 32750
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss