From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: Paul Mackerras From: Michael Ellerman Date: Thu, 16 Nov 2006 18:23:21 +1100 Subject: [RFC/PATCH 2/9] Show state of spus as they're stopped in Cell xmon helper In-Reply-To: <1163661800.406227.631357998554.qpush@cradle> Message-Id: <20061116072322.EC3CE67BC8@ozlabs.org> Cc: linuxppc-dev@ozlabs.org, Arnd Bergmann List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , After stopping spus in xmon I often find myself trawling through the field dumps to find out which spus were running. The spu stopping code actually knows what's running, so let's print it out to save the user some futzing. --- arch/powerpc/xmon/xmon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) Index: cell/arch/powerpc/xmon/xmon.c =================================================================== --- cell.orig/arch/powerpc/xmon/xmon.c +++ cell/arch/powerpc/xmon/xmon.c @@ -2700,7 +2700,10 @@ static void stop_spus(void) __delay(200); spu_info[i].stopped_ok = 1; - printf("Stopped spu %.2d\n", i); + + printf("Stopped spu %.2d (was %s)\n", i, + spu_info[i].saved_spu_runcntl_RW ? + "running" : "stopped"); } else { catch_memory_errors = 0; printf("*** Error stopping spu %.2d\n", i);