* [patch 1/4] powerpc/ps3: Fix no SMP build error
2009-04-16 19:05 [patch 0/4] PS3 2.6.30 patches Geoff Levand
@ 2009-04-16 19:05 ` Geoff Levand
2009-04-16 19:05 ` [patch 2/4] powerpc/ps3: Fix no flash build warning Geoff Levand
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Geoff Levand @ 2009-04-16 19:05 UTC (permalink / raw)
To: Paul Mackerras; +Cc: Subrata Modak, linuxppc-dev
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
Reported-by: Subrata Modak <subrata@linux.vnet.ibm.com>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---
arch/powerpc/platforms/ps3/setup.c | 4 ----
1 file changed, 4 deletions(-)
--- a/arch/powerpc/platforms/ps3/setup.c
+++ b/arch/powerpc/platforms/ps3/setup.c
@@ -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)
--
^ permalink raw reply [flat|nested] 5+ messages in thread* [patch 2/4] powerpc/ps3: Fix no flash build warning
2009-04-16 19:05 [patch 0/4] PS3 2.6.30 patches Geoff Levand
2009-04-16 19:05 ` [patch 1/4] powerpc/ps3: Fix no SMP build error Geoff Levand
@ 2009-04-16 19:05 ` Geoff Levand
2009-04-16 19:05 ` [patch 3/4] powerpc ps3: use smp_request_message_ipi Geoff Levand
2009-04-16 19:05 ` [patch 4/4] maintainers: Fix PS3 patterns Geoff Levand
3 siblings, 0 replies; 5+ messages in thread
From: Geoff Levand @ 2009-04-16 19:05 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev
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
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---
arch/powerpc/platforms/ps3/os-area.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/arch/powerpc/platforms/ps3/os-area.c
+++ b/arch/powerpc/platforms/ps3/os-area.c
@@ -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;
--
^ permalink raw reply [flat|nested] 5+ messages in thread* [patch 3/4] powerpc ps3: use smp_request_message_ipi
2009-04-16 19:05 [patch 0/4] PS3 2.6.30 patches Geoff Levand
2009-04-16 19:05 ` [patch 1/4] powerpc/ps3: Fix no SMP build error Geoff Levand
2009-04-16 19:05 ` [patch 2/4] powerpc/ps3: Fix no flash build warning Geoff Levand
@ 2009-04-16 19:05 ` Geoff Levand
2009-04-16 19:05 ` [patch 4/4] maintainers: Fix PS3 patterns Geoff Levand
3 siblings, 0 replies; 5+ messages in thread
From: Geoff Levand @ 2009-04-16 19:05 UTC (permalink / raw)
To: Paul Mackerras; +Cc: Milton Miller, linuxppc-dev
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.
Signed-off-by: Milton Miller <miltonm@bga.com>
Acked-by: Geoff Levand <geoffrey.levand@am.sony.com>
Index: next.git/arch/powerpc/platforms/ps3/smp.c
===================================================================
--- next.git.orig/arch/powerpc/platforms/ps3/smp.c 2008-10-05 00:20:41.000000000 -0500
+++ next.git/arch/powerpc/platforms/ps3/smp.c 2008-10-05 00:22:50.000000000 -0500
@@ -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;
--
^ permalink raw reply [flat|nested] 5+ messages in thread* [patch 4/4] maintainers: Fix PS3 patterns
2009-04-16 19:05 [patch 0/4] PS3 2.6.30 patches Geoff Levand
` (2 preceding siblings ...)
2009-04-16 19:05 ` [patch 3/4] powerpc ps3: use smp_request_message_ipi Geoff Levand
@ 2009-04-16 19:05 ` Geoff Levand
3 siblings, 0 replies; 5+ messages in thread
From: Geoff Levand @ 2009-04-16 19:05 UTC (permalink / raw)
To: Paul Mackerras; +Cc: Arnd Bergmann, linuxppc-dev
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.
CC: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---
MAINTAINERS | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1280,12 +1280,9 @@ L: cbe-oss-dev@ozlabs.org
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
--
^ permalink raw reply [flat|nested] 5+ messages in thread