Skip to contentSkip to conversation

PS3 2.6.30 patches

PATCH New Geoff Levand 1 participant 5 messages Apr 16, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover PS3 2.6.30 patches

Hi Paul,

This is a small set of patches for 2.6.30.

(1) and (2) are simple build fixes.

(3) is a patch by Milton submitted back in October that seems to have beed missed. Could you consider it for 2.6.30?

(4) is an update to the MAINTAINERS file. Can you take it?

[patch 1/4] powerpc/ps3: Fix no SMP build error [patch 2/4] powerpc/ps3: Fix no flash build warning [patch 3/4] powerpc ps3: use smp_request_message_ipi [patch 4/4] maintainers: Fix PS3 patterns

-Geoff

#1 lore raw

PATCH 1/4 powerpc/ps3: Fix no SMP build error

A non-SMP version of smp_send_stop() is now included in smp.h. Remove the unneeded def in the PS3 smp.c.

Fixes build errors like these when CONFIG_SMP=n:

arch/powerpc/platforms/ps3/setup.c:49: error: redefinition of 'smp_send_stop' include/linux/smp.h:125: error: previous definition of 'smp_send_stop' was here

---
 arch/powerpc/platforms/ps3/setup.c |    4 ----
 1 file changed, 4 deletions(-)
arch/powerpc/platforms/ps3/setup.c +0 -4
@@ -45,10 +45,6 @@
 DEFINE_MUTEX(ps3_gpu_mutex);
 EXPORT_SYMBOL_GPL(ps3_gpu_mutex);
 
-#if !defined(CONFIG_SMP)
-static void smp_send_stop(void) {}
-#endif
-
 static union ps3_firmware_version ps3_firmware_version;
 
 void ps3_get_firmware_version(union ps3_firmware_version *v)
#2 lore raw

PATCH 2/4 powerpc/ps3: Fix no flash build warning

In reply to Geoff Levand

Fix build warnings like these when CONFIG_PS3_FLASH=n:

arch/powerpc/platforms/ps3/os-area.c: warning: 'update_flash_db' defined but not used

---
 arch/powerpc/platforms/ps3/os-area.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/ps3/os-area.c +1 -1
@@ -578,7 +578,7 @@ static void os_area_db_init(struct os_ar
  *
  */
 
-static void update_flash_db(void)
+static void __maybe_unused update_flash_db(void)
 {
 	int result;
 	int file;
#3 lore raw

PATCH 3/4 powerpc ps3: use smp_request_message_ipi

In reply to Geoff Levand

ps3 has 4 ipis per cpu and can use the new smp_request_message_ipi to reduce path length when receiving an ipi.

This has the side effect of setting IRQF_PERCPU.

arch/powerpc/platforms/ps3/smp.c +1 -15
Index: next.git/arch/powerpc/platforms/ps3/smp.c
===================================================================
@@ -32,12 +32,6 @@
 #define DBG pr_debug
 #endif
 
-static irqreturn_t ipi_function_handler(int irq, void *msg)
-{
-	smp_message_recv((int)(long)msg);
-	return IRQ_HANDLED;
-}
-
 /**
   * ps3_ipi_virqs - a per cpu array of virqs for ipi use
   */
@@ -45,13 +39,6 @@ static irqreturn_t ipi_function_handler(
 #define MSG_COUNT 4
 static DEFINE_PER_CPU(unsigned int, ps3_ipi_virqs[MSG_COUNT]);
 
-static const char *names[MSG_COUNT] = {
-	"ipi call",
-	"ipi reschedule",
-	"ipi migrate",
-	"ipi debug brk"
-};
-
 static void do_message_pass(int target, int msg)
 {
 	int result;
@@ -119,8 +106,7 @@ static void __init ps3_smp_setup_cpu(int
 		DBG("%s:%d: (%d, %d) => virq %u\n",
 			__func__, __LINE__, cpu, i, virqs[i]);
 
-		result = request_irq(virqs[i], ipi_function_handler,
-			IRQF_DISABLED, names[i], (void*)(long)i);
+		result = smp_request_message_ipi(virqs[i], i);
 
 		if (result)
 			virqs[i] = NO_IRQ;
#4 lore raw

PATCH 4/4 maintainers: Fix PS3 patterns

In reply to Geoff Levand

Correct the MAINTAINERS file patterns for PS3. Removes some PS3 patterns that were under 'CELL BROADBAND ENGINE ARCHITECTURE', and adds missing PS3 sound and RTC driver patterns.

---
 MAINTAINERS |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
MAINTAINERS +2 -3
@@ -1280,12 +1280,9 @@ L:	[email protected]
 W:	http://www.ibm.com/developerworks/power/cell/
 S:	Supported
 F:	arch/powerpc/include/asm/cell*.h
-F:	arch/powerpc/include/asm/lv1call.h
-F:	arch/powerpc/include/asm/ps3*.h
 F:	arch/powerpc/include/asm/spu*.h
 F:	arch/powerpc/oprofile/*cell*
 F:	arch/powerpc/platforms/cell/
-F:	arch/powerpc/platforms/ps3/
 
 CERTIFIED WIRELESS USB (WUSB) SUBSYSTEM:
 P:	David Vrabel
@@ -4434,7 +4431,9 @@ F:	arch/powerpc/include/asm/ps3*.h
 F:	arch/powerpc/platforms/ps3/
 F:	drivers/*/ps3*
 F:	drivers/ps3/
+F:	drivers/rtc/rtc-ps3.c
 F:	drivers/usb/host/*ps3.c
+F:	sound/ppc/snd_ps3*
 
 PS3VRAM DRIVER
 P:	Jim Paris