* mpc8270 & Intel 82551ER on 2.6.17.14
@ 2007-06-28 22:53 Nicholas Hickman
2007-06-29 8:12 ` Pradyumna Sampath
0 siblings, 1 reply; 5+ messages in thread
From: Nicholas Hickman @ 2007-06-28 22:53 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 3417 bytes --]
I am having trouble getting two 82551ER Ethernet controllers running in
Linux. I am able to scan the PCI bus and see the devices and I was even
able to program the EEPROM from U-boot.
In the kernel I mapped the IRQ's through /arch/ppc/m82xx_pci.c. I've
been using the e100 drive that comes with the 2.6.17.14 kernel and have
also tried the driver directly from Intel. Both give the same results.
The PCI scan shows the correct output for how the device should be
configured.
The situation is when I use the ethtool with the driver loaded and eth0
not configured with ifconfig I get this:
SCB Status Word (Lower Word) 0x0000
RU Status: Idle
CU Status: Idle
---- Interrupts Pending ----
Flow Control Pause: no
Early Receive: no
Software Generated Interrupt: no
MDI Done: no
RU Not In Ready State: no
CU Not in Active State: no
RU Received Frame: no
CU Completed Command: no
SCB Command Word (Upper Word) 0x0100
RU Command: No Command
CU Command: No Command
Software Generated Interrupt: no
---- Interrupts Masked ----
ALL Interrupts: yes
Flow Control Pause: no
Early Receive: no
RU Not In Ready State: no
CU Not in Active State: no
RU Received Frame: no
CU Completed Command: no
MDI/MDI-X Status: MDI
With eth0 configured using the command "ifconfig eth0 192.168.1.7
netmask 255.255.255.0 up" I get this:
SCB Status Word (Lower Word) 0x6450
RU Status: Ready
CU Status: Suspended
---- Interrupts Pending ----
Flow Control Pause: no
Early Receive: no
Software Generated Interrupt: yes
MDI Done: no
RU Not In Ready State: no
CU Not in Active State: yes
RU Received Frame: yes
CU Completed Command: no
SCB Command Word (Upper Word) 0x0000
RU Command: No Command
CU Command: No Command
Software Generated Interrupt: no
---- Interrupts Masked ----
ALL Interrupts: no
Flow Control Pause: no
Early Receive: no
RU Not In Ready State: no
CU Not in Active State: no
RU Received Frame: no
CU Completed Command: no
MDI/MDI-X Status: MDI
If I issue a PING out of the port and sniff the traffic on the
destination PC I see the ARP requests and I send the reply, but the
embedded machine sees nothing. If I use ethtool or even ifconfig to
view the statistics on the port they both show that there are no packets
in or out.
I have no idea where to go with this. It seems like the PCI bus is
working, but possibly not the Interrupt handler.
Nicholas Hickman
Applications Engineer
DTech Labs, Inc.
[-- Attachment #2: Type: text/html, Size: 9048 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mpc8270 & Intel 82551ER on 2.6.17.14
2007-06-28 22:53 mpc8270 & Intel 82551ER on 2.6.17.14 Nicholas Hickman
@ 2007-06-29 8:12 ` Pradyumna Sampath
2007-07-02 18:41 ` Nicholas Hickman
0 siblings, 1 reply; 5+ messages in thread
From: Pradyumna Sampath @ 2007-06-29 8:12 UTC (permalink / raw)
To: Nicholas Hickman; +Cc: linuxppc-embedded
Hi Nicholas,
On 6/29/07, Nicholas Hickman <nhickman@dtechlabs.com> wrote:
>
>
> I am having trouble getting two 82551ER Ethernet controllers running in
> Linux. I am able to scan the PCI bus and see the devices and I was even
> able to program the EEPROM from U-boot.
>
> In the kernel I mapped the IRQ's through /arch/ppc/m82xx_pci.c. I've been
> using the e100 drive that comes with the 2.6.17.14 kernel and have also
> tried the driver directly from Intel. Both give the same results. The PCI
> scan shows the correct output for how the device should be configured.
<snip..>
I have the same, exact same problem. But there are some of the
differences with the setup though. I have an MPC5200B and the other
difference is that I have a 2.6.21-rt3. However its the same ethernet
controller.
I am trying out a few things here, some of them being complete
guesses. But if I hit something, I will let this list know. Anyone
else had similar issues ? Request you to please holler.
regards
prady
--
htp://prady.livejournal.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mpc8270 & Intel 82551ER on 2.6.17.14
@ 2007-06-29 16:48 Muruga Ganapathy
2007-06-29 16:54 ` Nicholas Hickman
0 siblings, 1 reply; 5+ messages in thread
From: Muruga Ganapathy @ 2007-06-29 16:48 UTC (permalink / raw)
To: Pradyumna Sampath, Nicholas Hickman, linuxppc-embedded
1. You may want to check whether the device is configured properly by
enabling the debug statements or using the lspci command. I mean the
BAR registers.
2. Also check whether correct the interrupt is assigned to the
device using cat /proc/interrupts command under linux.
3. As far as the EEPROM is concerned, you need to enable debug to check
whether there is any check sum error. If there is a check sum error
in EEPROM, the device may not come up too. As you are using it in
powerpc platform, you need to take care of the endianess while
writing to the EEPROM.
Hope this helps!
Thanks
G.Muruganandam
> Hi Nicholas,
>
> On 6/29/07, Nicholas Hickman <nhickman@dtechlabs.com> wrote:
> >
> >
> > I am having trouble getting two 82551ER Ethernet controllers
running in
> > Linux. I am able to scan the PCI bus and see the devices and I was
even
> > able to program the EEPROM from U-boot.
> >
> > In the kernel I mapped the IRQ's through /arch/ppc/m82xx_pci.c.
I've been
> > using the e100 drive that comes with the 2.6.17.14 kernel and have
also
> > tried the driver directly from Intel. Both give the same results.
The PCI
> > scan shows the correct output for how the device should be
configured.
> <snip..>
>
> I have the same, exact same problem. But there are some of the
> differences with the setup though. I have an MPC5200B and the other
> difference is that I have a 2.6.21-rt3. However its the same ethernet
> controller.
>
> I am trying out a few things here, some of them being complete
> guesses. But if I hit something, I will let this list know. Anyone
> else had similar issues ? Request you to please holler.
>
> regards
> prady
> --
> htp://prady.livejournal.com
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
>
*************************************************************
GDA Technologies, Inc.
1010 Rincon Circle
San Jose CA, 95131
Phone (408) 432-3090
Fax (408) 432-3091
Accelerate Your Innovation
**************************************************************
=====
This message contains information from GDA Technologies Inc and
affiliates, and is intended for the sole use of the individual and
entity to whom it is addressed. It may contain information, including
any attachments, that is privileged, confidential and exempt from
disclosure under applicable law. If you are not the intended addressee,
nor authorized to receive for the intended addressee, you are hereby
notified that you may not use, copy, disclose or distribute to anyone
the message or any information contained in the message. If you have
received this electronic transmission in error, please notify the
sender immediately by a "reply to sender only" message and destroy all
electronic and hard copies of the communication, including attachments.
====
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: mpc8270 & Intel 82551ER on 2.6.17.14
2007-06-29 16:48 Muruga Ganapathy
@ 2007-06-29 16:54 ` Nicholas Hickman
0 siblings, 0 replies; 5+ messages in thread
From: Nicholas Hickman @ 2007-06-29 16:54 UTC (permalink / raw)
To: Muruga Ganapathy, Pradyumna Sampath, linuxppc-embedded
Thanks for the reply.
I believe that the EEPROM is programmed correctly. At lease the driver
seems to think so. I am still leaning towards the interrupts not being
properly initialized on the PCI bus. I am currently trying to track
this down. =20
Here's the output of what I have for one of the Ethernet controllers.
# cat /proc/interrupts
CPU0 =20
20: 0 CPM2 SIU Level eth0
24: 0 CPM2 SIU Level PQ2 PCI cascade
40: 154 CPM2 SIU Level cpm_uart
BAD: 0
# lspci -vvv
00:12.0 Ethernet controller: Intel Corporation 8255xER/82551IT Fast
Ethernet Controller (rev 10)
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=3Dmedium =
>TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 128 (2000ns min, 14000ns max), Cache Line Size 08
Interrupt: pin A routed to IRQ 20
Region 0: Memory at 00000000affff000 (32-bit, non-prefetchable)
[size=3D4K]
Region 1: I/O ports at 1ffffc0 [size=3D64]
Region 2: Memory at 00000000affc0000 (32-bit, non-prefetchable)
[size=3D128K]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=3D0mA
PME(D0+,D1+,D2+,D3hot+,D3cold-)
Status: D0 PME-Enable- DSel=3D0 DScale=3D2 PME-
ethtool -e eth0
Offset Values
------ ------
0x0000 00 50 c2 70 7a 01 80 a1 ff ff 01 02 01 47 ff ff=20
0x0010 ff ff ff ff a0 d0 00 00 00 00 ff ff ff ff ff ff=20
0x0020 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff=20
0x0030 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff=20
0x0040 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff=20
0x0050 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff=20
0x0060 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff=20
0x0070 ff ff ff ff ff ff ff ff ff ff ff ff ff ff 92 3d=20
Thanks again,
-Nick
-----Original Message-----
From: Muruga Ganapathy [mailto:gmuruga@gdatech.com]=20
Sent: Friday, June 29, 2007 12:48 PM
To: Pradyumna Sampath; Nicholas Hickman; linuxppc-embedded@ozlabs.org
Subject: Re: mpc8270 & Intel 82551ER on 2.6.17.14
1. You may want to check whether the device is configured properly by
enabling the debug statements or using the lspci command. I mean the=20
BAR registers.
2. Also check whether correct the interrupt is assigned to the=20
device using cat /proc/interrupts command under linux.=20
3. As far as the EEPROM is concerned, you need to enable debug to check=20
whether there is any check sum error. If there is a check sum error=20
in EEPROM, the device may not come up too. As you are using it in=20
powerpc platform, you need to take care of the endianess while=20
writing to the EEPROM.
Hope this helps!
Thanks
G.Muruganandam
> Hi Nicholas,
>=20
> On 6/29/07, Nicholas Hickman <nhickman@dtechlabs.com> wrote:
> >
> >
> > I am having trouble getting two 82551ER Ethernet controllers
running in
> > Linux. I am able to scan the PCI bus and see the devices and I was
even
> > able to program the EEPROM from U-boot.
> >
> > In the kernel I mapped the IRQ's through /arch/ppc/m82xx_pci.c. =20
I've been
> > using the e100 drive that comes with the 2.6.17.14 kernel and have
also
> > tried the driver directly from Intel. Both give the same results. =20
The PCI
> > scan shows the correct output for how the device should be
configured.
> <snip..>
>=20
> I have the same, exact same problem. But there are some of the=20
> differences with the setup though. I have an MPC5200B and the other=20
> difference is that I have a 2.6.21-rt3. However its the same ethernet=20
> controller.
>=20
> I am trying out a few things here, some of them being complete=20
> guesses. But if I hit something, I will let this list know. Anyone=20
> else had similar issues ? Request you to please holler.
>=20
> regards
> prady
> --
> htp://prady.livejournal.com
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>=20
>=20
*************************************************************
GDA Technologies, Inc. =09
1010 Rincon Circle
San Jose CA, 95131
Phone (408) 432-3090
Fax (408) 432-3091
Accelerate Your Innovation=09
**************************************************************
=3D=3D=3D=3D=3D
This message contains information from GDA Technologies Inc and
affiliates, and is intended for the sole use of the individual and
entity to whom it is addressed. It may contain information, including
any attachments, that is privileged, confidential and exempt from
disclosure under applicable law. If you are not the intended addressee,
nor authorized to receive for the intended addressee, you are hereby
notified that you may not use, copy, disclose or distribute to anyone
the message or any information contained in the message. If you have
received this electronic transmission in error, please notify the sender
immediately by a "reply to sender only" message and destroy all
electronic and hard copies of the communication, including attachments.
=3D=3D=3D=3D
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: mpc8270 & Intel 82551ER on 2.6.17.14
2007-06-29 8:12 ` Pradyumna Sampath
@ 2007-07-02 18:41 ` Nicholas Hickman
0 siblings, 0 replies; 5+ messages in thread
From: Nicholas Hickman @ 2007-07-02 18:41 UTC (permalink / raw)
To: Pradyumna Sampath; +Cc: linuxppc-embedded
Pradyumna,
With the help of some others I have finally figured it out. I took a
step back and read the manual over and over along with debugging my
U-boot until it worked. My issue there was with the SIUMCR. Since I now
had that working in U-boot I moved on to the kernel where I found that I
was redefining the SIUMCR here:
arch/ppc/syslib/m82xx_pci.c=20
approx line 248
#elif defined CONFIG_PQ2FADS || MYBOARD
/*
* Setting required to enable IRQ1-IRQ7 (SIUMCR [DPPC]),
* and local bus for PCI (SIUMCR [LBPC]).
*/
immap->im_siu_conf.siu_82xx.sc_siumcr =3D
I was entering this routine since I was basing my config off of the
PQ2FADS board. I removed my board definition from the elif and
everything seems to be working fine.
Good luck!
-Nick
-----Original Message-----
From: Pradyumna Sampath [mailto:pradyumna.sampath@gmail.com]=20
Sent: Friday, June 29, 2007 4:12 AM
To: Nicholas Hickman
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: mpc8270 & Intel 82551ER on 2.6.17.14
Hi Nicholas,
On 6/29/07, Nicholas Hickman <nhickman@dtechlabs.com> wrote:
>
>
> I am having trouble getting two 82551ER Ethernet controllers running=20
> in Linux. I am able to scan the PCI bus and see the devices and I was
> even able to program the EEPROM from U-boot.
>
> In the kernel I mapped the IRQ's through /arch/ppc/m82xx_pci.c. I've=20
> been using the e100 drive that comes with the 2.6.17.14 kernel and=20
> have also tried the driver directly from Intel. Both give the same=20
> results. The PCI scan shows the correct output for how the device
should be configured.
<snip..>
I have the same, exact same problem. But there are some of the
differences with the setup though. I have an MPC5200B and the other
difference is that I have a 2.6.21-rt3. However its the same ethernet
controller.
I am trying out a few things here, some of them being complete guesses.
But if I hit something, I will let this list know. Anyone else had
similar issues ? Request you to please holler.
regards
prady
--
htp://prady.livejournal.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-07-02 18:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-28 22:53 mpc8270 & Intel 82551ER on 2.6.17.14 Nicholas Hickman
2007-06-29 8:12 ` Pradyumna Sampath
2007-07-02 18:41 ` Nicholas Hickman
-- strict thread matches above, loose matches on Subject: below --
2007-06-29 16:48 Muruga Ganapathy
2007-06-29 16:54 ` Nicholas Hickman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).