Skip to contentSkip to conversation

Fix boot on some 12" powerbooks, need testers on others

PATCH Benjamin Herrenschmidt 3 participants 3 messages Dec 8, 2005 17 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1133124018.7768.107.camel@gaston

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1133130209.7768.136.camel@gaston

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1133132287.7768.138.camel@gaston

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1133142131.7768.156.camel@gaston

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1133145863.7768.165.camel@gaston

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1133150158.7768.177.camel@gaston

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1133151191.7768.183.camel@gaston

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1133210294.7768.190.camel@gaston

A message that is not in the archive (sent off-list or not yet received): [email protected]

#17 lore raw

This patch against 2.6.15-rc5 might help fixing boot on some recent powerbooks like some 12" aluminium. However, I need urgently some testers with other models of powerbooks and mac mini to tell me if it causes any regression (that is before tomorrow) so it _might_ have a chance to make it in 2.6.15.

arch/powerpc/platforms/powermac/feature.c +11 -5
Index: linux-work/arch/powerpc/platforms/powermac/feature.c
===================================================================
@@ -1650,11 +1650,17 @@
 	 */
 
 	if (macio->type == macio_intrepid) {
-		if (enable)
-			UN_OUT(UNI_N_CLOCK_SPREADING, 2);
-		else
-			UN_OUT(UNI_N_CLOCK_SPREADING, 0);
-		mdelay(40);
+		struct device_node *clock =
+			of_find_node_by_path("/uni-n@f8000000/hw-clock");
+		if (clock && get_property(clock, "platform-do-clockspreading",
+					  NULL)) {
+			if (enable)
+				UN_OUT(UNI_N_CLOCK_SPREADING, 2);
+			else
+				UN_OUT(UNI_N_CLOCK_SPREADING, 0);
+			mdelay(40);
+		}
+		of_node_put(clock);
 	}
 
 	while (machine_is_compatible("PowerBook5,2") ||
arch/ppc/platforms/pmac_feature.c +11 -5
Index: linux-work/arch/ppc/platforms/pmac_feature.c
===================================================================
@@ -1606,11 +1606,17 @@
 	 */
 
 	if (macio->type == macio_intrepid) {
-		if (enable)
-			UN_OUT(UNI_N_CLOCK_SPREADING, 2);
-		else
-			UN_OUT(UNI_N_CLOCK_SPREADING, 0);
-		mdelay(40);
+		struct device_node *clock =
+			of_find_node_by_path("/uni-n@f8000000/hw-clock");
+		if (clock && get_property(clock, "platform-do-clockspreading",
+					  NULL)) {
+			if (enable)
+				UN_OUT(UNI_N_CLOCK_SPREADING, 2);
+			else
+				UN_OUT(UNI_N_CLOCK_SPREADING, 0);
+			mdelay(40);
+		}
+		of_node_put(clock);
 	}
 
 	while (machine_is_compatible("PowerBook5,2") ||
#18 lore raw
Quoted 2 lines

However, I need urgently some testers with other models of powerbooks and mac mini to tell me if it causes any regression [...]

Works for me on a PowerBook5,8 (15", 1.67 GHz, Oct 2005).

Greets,
Michael

#19 lore raw
In reply to Benjamin Herrenschmidt

It boots on my PowerBook6,2 (12" Oct'03).

Cheers,
dstn.

Quoted 5 lines · Benjamin Herrenschmidt

This patch against 2.6.15-rc5 might help fixing boot on some recent powerbooks like some 12" aluminium. However, I need urgently some testers with other models of powerbooks and mac mini to tell me if it causes any regression (that is before tomorrow) so it _might_ have a chance to make it in 2.6.15.