SGISEEQ: use cached memory access to make driver work on IP28
Subsystems (3)
Thomas Bogendoerfer
maintainerPATCH 1/1 SGISEEQ: use cached memory access to make driver work on IP28
SGI IP28 machines would need special treatment (enable adding addtional wait states) when accessing memory uncached. To avoid this pain I changed the driver to use only cached access to memory.
---
Changes to last version:
- Use inline functions for dma_sync_* instead of macros (suggested by Ralf)
- added Kconfig change to make selection for similair SGI boxes easier
drivers/net/Kconfig | 2 +- drivers/net/sgiseeq.c | 243 ++++++++++++++++++++++++++++++++++--------------- 2 files changed, 171 insertions(+), 74 deletions(-)
drivers/net/Kconfig +1 -1
@@ -1795,7 +1795,7 @@ config DE620 config SGISEEQ tristate "SGI Seeq ethernet controller support" - depends on SGI_IP22 + depends on SGI_HAS_SEEQ help Say Y here if you have an Seeq based Ethernet network card. This is used in many Silicon Graphics machines.
drivers/net/sgiseeq.c +170 -73
456 lines not on this page · raw message
Quoted 10 lines · Thomas Bogendoerfer
SGI IP28 machines would need special treatment (enable adding addtional wait states) when accessing memory uncached. To avoid this pain I changed the driver to use only cached access to memory.
Signed-off-by Thomas Bogendoerfer <[email protected]>---
Changes to last version:
- Use inline functions for dma_sync_* instead of macros (suggested by Ralf)
- addedKconfigchange to make selection for similair SGI boxes easier
Has Ralf ACK'd this updated version?
This is for 2.6.25 (i.e. not a bug fix for 2.6.24-rc) I presume?
Ralf Baechle
Acked-byQuoted 5 lines · Jeff Garzik
Quoted 3 lines
Changes to last version:
- Use inline functions for dma_sync_* instead of macros (suggested by Ralf)
- addedKconfigchange to make selection for similair SGI boxes easierHas Ralf ACK'd this updated version?
Quoted 1 line
This is for 2.6.25 (i.e. not a bug fix for 2.6.24-rc) I presume?
Yes. IP28 support it scheduled to be merged for 2.6.25.
Ralf
Quoted 10 lines · Thomas Bogendoerfer
SGI IP28 machines would need special treatment (enable adding addtional wait states) when accessing memory uncached. To avoid this pain I changed the driver to use only cached access to memory.
Signed-off-by Thomas Bogendoerfer <[email protected]>---
Changes to last version:
- Use inline functions for dma_sync_* instead of macros (suggested by Ralf)
- addedKconfigchange to make selection for similair SGI boxes easier
hrm, could you rediff? it doesn't seem to apply
Thomas Bogendoerfer
maintainerQuoted 5 lines · Jeff Garzik
Quoted 3 lines
Changes to last version:
- Use inline functions for dma_sync_* instead of macros (suggested by Ralf)
- addedKconfigchange to make selection for similair SGI boxes easierhrm, could you rediff? it doesn't seem to apply
sure, against which tree ? I tried netdev-2.6 and it applies without fuzz...
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessary a good idea. [ RFC1925, 2.3 ]
Quoted 7 lines · Thomas Bogendoerfer
Quoted 4 lines · Jeff Garzik
Quoted 3 lines
Changes to last version:
- Use inline functions for dma_sync_* instead of macros (suggested by Ralf)
- addedKconfigchange to make selection for similair SGI boxes easierhrm, could you rediff? it doesn't seem to apply
sure, against which tree ? I tried netdev-2.6 and it applies without fuzz...
It needs to be the 'upstream' branch of netdev-2.6.
The default netdev-2.6.git branch, master, is a 100% vanilla duplicate of Linus's git repository.
(this permits a common practice of presenting logs and diffs using git's branch..branch notation)
Jeff
Thomas Bogendoerfer
maintainer- Use inline functions for dma_sync_* instead of macros
- added Kconfig change to make selection for similair SGI boxes easier
---
drivers/net/Kconfig | 2 +- drivers/net/sgiseeq.c | 64 ++++++++++++++++++++++++++----------------------- 2 files changed, 35 insertions(+), 31 deletions(-)
drivers/net/Kconfig +1 -1
@@ -1807,7 +1807,7 @@ config DE620 config SGISEEQ tristate "SGI Seeq ethernet controller support" - depends on SGI_IP22 + depends on SGI_HAS_SEEQ help Say Y here if you have an Seeq based Ethernet network card. This is used in many Silicon Graphics machines.
drivers/net/sgiseeq.c +34 -30
164 lines not on this page · raw message
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessary a good idea. [ RFC1925, 2.3 ]
Ralf Baechle
Acked-byQuoted 4 lines · Thomas Bogendoerfer
- Use inline functions for dma_sync_* instead of macros
- addedKconfigchange to make selection for similair SGI boxes easierSigned-off-by Thomas Bogendoerfer <[email protected]>
Ralf
Jeff Garzik
AppliedQuoted 9 lines · Thomas Bogendoerfer
- Use inline functions for dma_sync_* instead of macros
- addedKconfigchange to make selection for similair SGI boxes easierSigned-off-by Thomas Bogendoerfer <[email protected]>---
drivers/net/Kconfig | 2 +- drivers/net/sgiseeq.c | 64 ++++++++++++++++++++++++++----------------------- 2 files changed, 35 insertions(+), 31 deletions(-)
applied