Skip to contentSkip to conversation

: ia64/sn: Older PROM WAR for device flush code

PATCH In review Prarit Bhargava 2 participants 2 messages Jan 16, 2006 – Jan 17, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : ia64/sn: Older PROM WAR for device flush code

Work-around to temporarily support older PROMs with new flush device code.

This code allows systems running older PROMs to continue to run on the new kernel base until a new official PROM is released.

---
commit 68f8dbea53d0bd9d02bfe3665f98cbf1321114f3
tree 71b33a3aed8cfd59ecb687be52b273ec5de135b1
parent 4a8e4a270b89030bdeb09d2f8cef7cfe9a50e54d
author root <[email protected]> Mon, 16 Jan 2006 16:23:15 -0500 committer root <[email protected]> Mon, 16 Jan 2006 16:23:15 -0500

 arch/ia64/sn/include/xtalk/hubdev.h |    9 ++++++
 arch/ia64/sn/kernel/io_init.c       |   54 +++++++++++++++++++++++++++++++++--
 2 files changed, 60 insertions(+), 3 deletions(-)
arch/ia64/sn/include/xtalk/hubdev.h +9 -0
@@ -51,6 +51,15 @@ struct sn_flush_device_kernel {
 	struct sn_flush_device_common *common;
 };
 
+/* 01/16/06 This struct is the old PROM/kernel struct and needs to be included
+ * for older official PROMs to function on the new kernel base.  This struct
+ * will be removed when the next official PROM release occurs. */
+
+struct sn_flush_device_war {
+	struct sn_flush_device_common common;
+	u32 filler; /* older PROMs expect the default size of a spinlock_t */
+};
+
 /*
  * **widget_p - Used as an array[wid_num][device] of sn_flush_device_kernel.
  */
arch/ia64/sn/kernel/io_init.c +51 -3

67 lines not on this page · raw message

Acked-by on v1 1/1
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Prarit" = Prarit Bhargava <[email protected]> writes:

Prarit> Work-around to temporarily support older PROMs with new flush Prarit> device code. This code allows systems running older PROMs to Prarit> continue to run on the new kernel base until a new official Prarit> PROM is released.

Looks good, even works for me ;-) I'd say we should keep this in for a couple of months at least, say through 2.6.17 or so, to give the new PROM time to propagate out.

Prarit> Signed-off-by: Prarit Bhargava <[email protected]>

Cheers,
Jes