Skip to contentSkip to conversation

SGISEEQ: use cached memory access to make driver work on IP28

PATCH Applied Thomas Bogendoerfer 3 participants 9 messages Dec 2, 2007 – Jan 12, 2008

Subsystems (3)
lore
Share & tools
lore

Thomas Bogendoerfer

author maintainer
#0 lore raw

PATCH 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
index 7a55bc1..9cbd5de 100644
@@ -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

#1 lore raw
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.

---

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

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?

Acked-by
#2 lore raw
Quoted 5 lines · Jeff Garzik
Quoted 3 lines

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

Has 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

#3 lore raw
In reply to Thomas Bogendoerfer
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.

---

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

hrm, could you rediff? it doesn't seem to apply

author maintainer
#4 lore raw
Quoted 5 lines · Jeff Garzik
Quoted 3 lines

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

hrm, 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 ]
#5 lore raw
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)
- added Kconfig change to make selection for similair SGI boxes easier

hrm, 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

author maintainer
#6 lore raw

- 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
index 84df799..f816798 100644
@@ -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 ]
Applied
#8 lore raw
In reply to Thomas Bogendoerfer
Quoted 9 lines · Thomas Bogendoerfer

- 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(-)

applied