Skip to contentSkip to conversation

EV-64260-BP & GT64260 bi_recs

DISCUSSION Michael Sokolov 4 participants 4 messages Mar 20, 2002 – Mar 21, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 1 line · Mark A. Greer

Man, can I ever turn a quiet email day into a hurricane!! :)

Ever heard the term filibuster? That's what I think happening here: lots of talk, no work. Also note that so far I'm the only one who has posted a patch, the rest is verbiage.

Quoted 2 lines

Point well taken and you're right, perhaps the cmd_line is a better way to pass in hdx/fdx & speed, phy addr & is_rmii.

The PHY address and MII vs. RMII are things fixed by board circuitry and would normally be hard-coded. The only reason I added them to BI_GT64260_ETH_CFG was because I imagined the #ifdef maze that would otherwise eventually grow in the gt64260_eth driver as people add ports to different boards with these things wired differently.

As for speed, etc. no other driver I know of requires the bootloader to pass this info. It's normally set by ethconfig, miitool, etc. Please don't add that in there, I have no slightest idea what to put in those fields if they were in the bi_rec.

MS

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 9 lines
Quoted 3 lines

Point well taken and you're right, perhaps the cmd_line is a better way to pass in hdx/fdx & speed, phy addr & is_rmii.

The PHY address and MII vs. RMII are things fixed by board circuitry and would normally be hard-coded. The only reason I added them to BI_GT64260_ETH_CFG was because I imagined the #ifdef maze that would otherwise eventually grow in the gt64260_eth driver as people add ports to different boards with these things wired differently.

If we get an #ifdef maze, this is an indication we need to re-think how gt64260 is done. My suggestion is a struct that the platform/*_setup.c file can give to the eth driver somehow that specifies all this stuff.

I would really like the gt64260 eth and serial drivers to be useable on mips also.. so we need to find someone with a mips 64240 board..

FYI, the gt eth driver is completely busticated for SMP. I managed to get zuma's mpsc driver working on SMP by turning on snooping. (this may be the 'wrong' thing to do , but it works for now)

Quoted 4 lines

As for speed, etc. no other driver I know of requires the bootloader to pass this info. It's normally set by ethconfig, miitool, etc. Please don't add that in there, I have no slightest idea what to put in those fields if they were in the bi_rec.

I agree 100% on this.

The only thing we *HAVE* to find out from the firmware is the MAC address.

--
Troy Benjegerdes | master of mispeeling | 'da hozer' | [email protected] -----"If this message isn't misspelled, I didn't write it" -- Me ----- "Why do musicians compose symphonies and poets write poems? They do it because life wouldn't have any meaning for them if they didn't. That's why I draw cartoons. It's my life." -- Charles Schulz

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#2 lore raw
Quoted 3 lines · Troy Benjegerdes

FYI, the gt eth driver is completely busticated for SMP. I managed to get zuma's mpsc driver working on SMP by turning on snooping. (this may be the 'wrong' thing to do , but it works for now)

I haven't looked at the zuma version of the drivers but the ones inherited from marvell need to be dumped and completely rewritten...and made SMP-safe. Its been on my list but I haven't gotten around to do that. If/when I do, I'll look at what Nye, et. al. has done first. They may have all the issues settled already.

Mark

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#3 lore raw
Quoted 10 lines · Mark A. Greer
Quoted 3 lines · Troy Benjegerdes

FYI, the gt eth driver is completely busticated for SMP. I managed to get zuma's mpsc driver working on SMP by turning on snooping. (this may be the 'wrong' thing to do , but it works for now)

I haven't looked at the zuma version of the drivers but the ones inherited from marvell need to be dumped and completely rewritten...and made SMP-safe. Its been on my list but I haven't gotten around to do that. If/when I do, I'll look at what Nye, et. al. has done first. They may have all the issues settled already.

Mark: myself, Troy, and rex will be working on this. The serial driver is fine in SMP (although it depends on snooping, which, according to Galileo, is broken for SDMA *and* ETHDMA).

The GT's ethernet snooping is DEFINITELY broken; not sure where we will go from here for smp. I will let people smarter than me handle that..

The good news is that PCI snooping seems to be rock solid.

Troy: the question in my mind is whether the SDMA snooping is always safe or not. We will torture test the SDMA some here; but keep in mind when we first did this, the SDMA snooping seems to cause problems under severe stress testing, which is why by default the driver does explicit cache flushes. Maybe things have changed since then; it needs testing.

What I dont get is that in BOTH (SDMA and ETHDMA) situations (with CPU snooping on), if DMA snooping is off, invalidates were still required. Perhaps somebody more knowledgeable can explain why this is.

Mike S: I would also be VERY interested in any work you may have already done in the mpsc or eth drivers; especially with regards to SMP and cache coherency.

Finally, my EVB board is growing increasingly less stable by the day (i think my cpu module is very loose; if i touch the cpu, the board bombs out), so testing on that platform is becoming increasingly difficult.

The good news is that our custom board is pretty stable, but i would still like other GT EVB users lurking here to stress test the _galileo tree as best they can, since right now, I seem to be the only active developer with an EVB contributing to _gal.

--
Nye Liu
[email protected]

"Who would be stupid enough to quote a fictitious character?"
-- Don Quixote

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/