* PCI support under 2.6.11.4 on MPC8272ADS ???
@ 2005-03-24 22:53 Wimer, Walt
2005-03-25 12:11 ` Andrei Konovalov
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Wimer, Walt @ 2005-03-24 22:53 UTC (permalink / raw)
To: ML linuxppc-embedded
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/12060c=
e8/pq2-pci.bin
--=20
Walter L. Wimer III <walt.wimer@timesys.com>
TimeSys Corporation
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: PCI support under 2.6.11.4 on MPC8272ADS ??? 2005-03-24 22:53 PCI support under 2.6.11.4 on MPC8272ADS ??? Wimer, Walt @ 2005-03-25 12:11 ` Andrei Konovalov 2005-03-25 14:07 ` Vitaly Bordug 2005-03-29 8:38 ` Clemens Koller 2 siblings, 0 replies; 7+ messages in thread From: Andrei Konovalov @ 2005-03-25 12:11 UTC (permalink / raw) To: Wimer, Walt; +Cc: ML linuxppc-embedded Hi Walt, It may have nothing to do with your case, but once I've seen incorrect data from lspci when PCI clock was 66MHz and the card was 3COM 3C905 which is not 66MHz-capable. And for MPC8272ADS boards we have the HRCW (read from CPLD) defaults to 66MHz PCI clock. Best regards, Andrei 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 > > > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PCI support under 2.6.11.4 on MPC8272ADS ??? 2005-03-24 22:53 PCI support under 2.6.11.4 on MPC8272ADS ??? Wimer, Walt 2005-03-25 12:11 ` Andrei Konovalov @ 2005-03-25 14:07 ` Vitaly Bordug 2005-03-25 14:32 ` Andrey Volkov 2005-03-29 16:01 ` Walter L. Wimer III 2005-03-29 8:38 ` Clemens Koller 2 siblings, 2 replies; 7+ messages in thread From: Vitaly Bordug @ 2005-03-25 14:07 UTC (permalink / raw) To: Wimer, Walt; +Cc: linuxppc-embedded [-- Attachment #1: Type: text/plain, Size: 2483 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 3062 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PCI support under 2.6.11.4 on MPC8272ADS ??? 2005-03-25 14:07 ` Vitaly Bordug @ 2005-03-25 14:32 ` Andrey Volkov 2005-03-29 16:01 ` Walter L. Wimer III 1 sibling, 0 replies; 7+ messages in thread From: Andrey Volkov @ 2005-03-25 14:32 UTC (permalink / raw) To: Vitaly Bordug; +Cc: linuxppc-embedded Hi Vitaly Same bug, as I describe early ( for MPC5200 ) + /* Enable PCI */ + immap->im_pci.pci_gcr = cpu_to_le32(PCIGCR_PCI_BUS_EN); + { + /* give it some time */ + int i; + for(i=0;i<100;i++) + udelay(100); + } Delay must be up to 1 sec (if you follow PCI standart :), not 10 msec. -- Regards Andrey Volkov Vitaly Bordug wrote: > 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 > > > ------------------------------------------------------------------------ > > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PCI support under 2.6.11.4 on MPC8272ADS ??? 2005-03-25 14:07 ` Vitaly Bordug 2005-03-25 14:32 ` Andrey Volkov @ 2005-03-29 16:01 ` Walter L. Wimer III 2005-03-29 16:41 ` Andrei Konovalov 1 sibling, 1 reply; 7+ messages in thread From: Walter L. Wimer III @ 2005-03-29 16:01 UTC (permalink / raw) To: linuxppc-embedded Thanks to all who offered suggestions regarding PCI on the MPC8272ADS. I too suspected that the PCI bus frequency may have been the problem, and even spent some time looking at the clock configuration in the Freescale documentation before I posted my message. The documentation seemed very confusing, so I decided to pursue a few different avenues in parallel, including posting to the list. Since Andrei and Vitaly further implicated the bus frequency, I went back and took a closer look at it. After much staring at the documentation, dumping registers, trying a 66MHz-capable card, etc. I can report that this was indeed the problem. A 66MHz-capable Promise IDE controller card does seem to work. I'd like to change the bus speed to <= 33MHz, but this still looks non- trivial. If I understand things properly, it looks like my best bet is to modify the Hard Reset Configuration Word in flash to set the PCI_MODCK bit to "low range" (25 to 50 MHz, instead of 50 to 66 MHz). Can anyone confirm my understanding? Thanks again! Walt On Fri, 2005-03-25 at 17:07 +0300, Vitaly Bordug wrote: > 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PCI support under 2.6.11.4 on MPC8272ADS ??? 2005-03-29 16:01 ` Walter L. Wimer III @ 2005-03-29 16:41 ` Andrei Konovalov 0 siblings, 0 replies; 7+ messages in thread From: Andrei Konovalov @ 2005-03-29 16:41 UTC (permalink / raw) To: Walter L. Wimer III; +Cc: linuxppc-embedded Walter L. Wimer III wrote: > Thanks to all who offered suggestions regarding PCI on the MPC8272ADS. > I too suspected that the PCI bus frequency may have been the problem, > and even spent some time looking at the clock configuration in the > Freescale documentation before I posted my message. The documentation > seemed very confusing, so I decided to pursue a few different avenues in > parallel, including posting to the list. > > Since Andrei and Vitaly further implicated the bus frequency, I went > back and took a closer look at it. After much staring at the > documentation, dumping registers, trying a 66MHz-capable card, etc. I > can report that this was indeed the problem. A 66MHz-capable Promise > IDE controller card does seem to work. > > I'd like to change the bus speed to <= 33MHz, but this still looks non- > trivial. If I understand things properly, it looks like my best bet is > to modify the Hard Reset Configuration Word in flash to set the > PCI_MODCK bit to "low range" (25 to 50 MHz, instead of 50 to 66 MHz). > > Can anyone confirm my understanding? Yes, we've used HRCW of 0x0c72361a. BTW, I guess it sould be rather simple to modify the CPLD to set the PCI_MODCK to "low range" if at least one of the PCI cards inserted is not 66MHz capable. Something like CfgByte3 = [0,0,0,!BCSR4.M66EN,ModckH0,ModckH1,ModckH2,ModckH3]; (this is not the correct code for the CPLD, but illustrates the idea). Thanks, Andrei > Thanks again! > > Walt > > > > On Fri, 2005-03-25 at 17:07 +0300, Vitaly Bordug wrote: > >>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 > > > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PCI support under 2.6.11.4 on MPC8272ADS ??? 2005-03-24 22:53 PCI support under 2.6.11.4 on MPC8272ADS ??? Wimer, Walt 2005-03-25 12:11 ` Andrei Konovalov 2005-03-25 14:07 ` Vitaly Bordug @ 2005-03-29 8:38 ` Clemens Koller 2 siblings, 0 replies; 7+ messages in thread From: Clemens Koller @ 2005-03-29 8:38 UTC (permalink / raw) To: Wimer, Walt, linuxppc-embedded Hi Walt! > 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. Check your ADx-IDSEL connections (resistors, 220 Ohms) on the PCI Bus. I had _two_ AD lines connected to _one_ IDSEL which means that two AD lines are 'shorted' over 440Ohm which lead to data corruption on the PCI bus. Check your schematics and the boards. Maybe one of your card's PCI pad drive strength (like with the SM501 Voyager GX (where it is programmable)) isn't strong enough to drive against the resistors in between the AD lines (which would explain that the problems get worse with 'more' cards plugged in). > 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... Smells like data corruption on the bus... the behaviour you describe is exactly as on mine system. (MPC8540 with SM501 Graphics Board and Promise IDE Ctrl. on PCI) Best greets, -- Clemens Koller _______________________________ R&D Imaging Devices Anagramm GmbH Rupert-Mayer-Str. 45/1 81379 Muenchen Germany http://www.anagramm.de Phone: +49-89-741518-50 Fax: +49-89-741518-19 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-03-29 16:35 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2005-03-24 22:53 PCI support under 2.6.11.4 on MPC8272ADS ??? Wimer, Walt 2005-03-25 12:11 ` Andrei Konovalov 2005-03-25 14:07 ` Vitaly Bordug 2005-03-25 14:32 ` Andrey Volkov 2005-03-29 16:01 ` Walter L. Wimer III 2005-03-29 16:41 ` Andrei Konovalov 2005-03-29 8:38 ` Clemens Koller
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).