From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.dev.rtsoft.ru (RT-soft-2.Moscow.itn.ru [80.240.96.70]) by ozlabs.org (Postfix) with SMTP id 7205B67A6D for ; Sat, 26 Mar 2005 01:07:17 +1100 (EST) Message-ID: <42441B13.7080703@ru.mvista.com> Date: Fri, 25 Mar 2005 17:07:15 +0300 From: Vitaly Bordug MIME-Version: 1.0 To: "Wimer, Walt" References: <1111705036.15834.29.camel@excalibur.timesys.com> In-Reply-To: <1111705036.15834.29.camel@excalibur.timesys.com> Content-Type: multipart/alternative; boundary="------------040009010501070804030307" Cc: linuxppc-embedded@ozlabs.org Subject: Re: PCI support under 2.6.11.4 on MPC8272ADS ??? List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. --------------040009010501070804030307 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Walt, Well, the incorrect VendorID almost clearly points to the incompatible PCI bus frequency - try to set it to 33Mhz. AFAIR, I saw my network card as video adapter in the lspci output. The 2.4 stuff was tested rather thoroughly. The current 2.6.11 support is examined with HPT370 and PDC20268 PCI IDE. You may also try my latest patch to the stock linux 2.5. Wimer, Walt wrote: >Using Vitaly's 2.4-based patch below as a starting point, I've been >adding PCI support to 2.6.11.4 for the MPC8272ADS board. > >The good news is that I think I have PCI interrupts pretty well sorted >out, and I see *something* half-way reasonable from "lspci". > >The bad news is that neither of the ethernet cards that I'm trying will >actually work, and I see some very weird behavior with PCI configuration >space: > > Card 1: Some Realtek RTL8139D-based card > Card 2: NETGEAR FA311 (National Semi DP83815 chip) > >With either card installed alone, both U-Boot and my kernel identify the >cards correctly in PCI configuration space. > >With *both* cards installed, both U-Boot and my kernel see the Realtek- >based card correctly, but the NETGEAR card has a corrupted Vendor ID >(e.g. 0x1000 or 0x1003 instead of the correct 0x100b). This happens >regardless of which PCI slots I use for the cards (I've tried virtually >every combination). This smells of a power problem or something to me. > >And again, even with either card alone, the drivers have serious >problems talking to the cards. I get various error messages from >the drivers and I see badly mangled packets on the wire. It's also >not uncommon for the whole system to freeze... > >Has anyone else seen similar behavior? > >Has anyone had success with PCI on this board (under any kernel >version)? > > >Any ideas / data points are appreciated. > > >Thanks!!! > >Walt Wimer > > > > > >>This patch adds PCI bridge support for MPC8272 and PQ2FADS to the >>current linuxppc-2.4 tree. Actually it has been tested with 8272, but >>PQ2 _should_ also work, though it will complain that host bridge ID is >>unrecognized. >> >>Signed-off-by: Vitaly Bordug >> >>-- >>Sincerely, Vitaly >> >>-------------- next part -------------- >>A non-text attachment was scrubbed... >>Name: pq2-pci.patch >>Type: text/x-patch >>Size: 20111 bytes >>Desc: not available >>Url : http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050218/12060ce8/pq2-pci.bin >> >> > > > > -- Sincerely, Vitaly --------------040009010501070804030307 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Walt,

Well, the incorrect VendorID almost clearly points to the incompatible PCI bus frequency - try to set it to 33Mhz.
AFAIR, I saw my network card as video adapter in the lspci output.

The 2.4 stuff was tested rather thoroughly. The current 2.6.11 support is examined with HPT370 and PDC20268 PCI IDE.

You may also try my latest patch to the stock linux 2.5.

Wimer, Walt wrote:
Using Vitaly's 2.4-based patch below as a starting point, I've been
adding PCI support to 2.6.11.4 for the MPC8272ADS board.

The good news is that I think I have PCI interrupts pretty well sorted
out, and I see *something* half-way reasonable from "lspci".

The bad news is that neither of the ethernet cards that I'm trying will
actually work, and I see some very weird behavior with PCI configuration
space:

  Card 1:  Some Realtek RTL8139D-based card
  Card 2:  NETGEAR FA311 (National Semi DP83815 chip)

With either card installed alone, both U-Boot and my kernel identify the
cards correctly in PCI configuration space.

With *both* cards installed, both U-Boot and my kernel see the Realtek-
based card correctly, but the NETGEAR card has a corrupted Vendor ID
(e.g. 0x1000 or 0x1003 instead of the correct 0x100b).  This happens
regardless of which PCI slots I use for the cards (I've tried virtually
every combination).  This smells of a power problem or something to me.

And again, even with either card alone, the drivers have serious
problems talking to the cards.  I get various error messages from
the drivers and I see badly mangled packets on the wire.  It's also
not uncommon for the whole system to freeze...

Has anyone else seen similar behavior?

Has anyone had success with PCI on this board (under any kernel
version)?


Any ideas / data points are appreciated.


Thanks!!!

Walt Wimer



  
This patch adds PCI bridge support for MPC8272 and PQ2FADS to the
current linuxppc-2.4 tree. Actually it has been tested with 8272, but
PQ2 _should_ also work, though it will complain that host bridge ID is
unrecognized.

Signed-off-by: Vitaly Bordug <vbordug at ru.mvista.com>

--
Sincerely, Vitaly

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pq2-pci.patch
Type: text/x-patch
Size: 20111 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050218/12060ce8/pq2-pci.bin
    


  

-- 
Sincerely, 
Vitaly
--------------040009010501070804030307--