All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org, sibyte-users@bitmover.com
Subject: Re: [PATCH 1/7] MIPS: sibyte: Fix build for SIBYTE_BW_TRACE
Date: Wed, 19 Jun 2013 19:32:07 +0200	[thread overview]
Message-ID: <20130619173207.GA741@linux-mips.org> (raw)
In-Reply-To: <1371477641-7989-2-git-send-email-markos.chandras@imgtec.com>

On Mon, Jun 17, 2013 at 03:00:35PM +0100, Markos Chandras wrote:

> The M_BCM1480_SCD_TRACE_CFG_FREEZE macro removed in
> 8deab1144b553548fb2f1b51affdd36dcd652aaa
> "[MIPS] Updated Sibyte headers"
> 
> This broke the build for the sibyte platfrom when
> SIBYTE_BW_TRACE is enabled:
> arch/mips/mm/cerr-sb1.c:186:2: error: 'M_BCM1480_SCD_TRACE_CFG_FREEZE'
> undeclared (first use in this function)
> 
> We fix this by replacing it with the M_BCM1480_SYS_RESERVED4 macro
> 
> Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
> Acked-by: Steven J. Hill <Steven.Hill@imgtec.com>
> Cc: sibyte-users@bitmover.com
> ---
>  arch/mips/mm/cerr-sb1.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/mips/mm/cerr-sb1.c b/arch/mips/mm/cerr-sb1.c
> index 576add3..1a24534 100644
> --- a/arch/mips/mm/cerr-sb1.c
> +++ b/arch/mips/mm/cerr-sb1.c
> @@ -183,7 +183,7 @@ asmlinkage void sb1_cache_error(void)
>  #ifdef CONFIG_SIBYTE_BW_TRACE
>  	/* Freeze the trace buffer now */
>  #if defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80)
> -	csr_out32(M_BCM1480_SCD_TRACE_CFG_FREEZE, IOADDR(A_SCD_TRACE_CFG));
> +	csr_out32(M_BCM1480_SYS_RESERVED4, IOADDR(A_SCD_TRACE_CFG));
>  #else
>  	csr_out32(M_SCD_TRACE_CFG_FREEZE, IOADDR(A_SCD_TRACE_CFG));
>  #endif

I think this is the correct solution.

Unfortunately nobody at Broadcom seems to care about the Sibyte SOCs
these days though they're still very important for a bunch of Linux
distributions.

  Ralf

  CC      arch/mips/mm/cerr-sb1.o
arch/mips/mm/cerr-sb1.c: In function ‘sb1_cache_error’:
arch/mips/mm/cerr-sb1.c:186:98: error: ‘M_BCM1480_SCD_TRACE_CFG_FREEZE’ undeclared (first use in this function)
arch/mips/mm/cerr-sb1.c:186:98: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [arch/mips/mm/cerr-sb1.o] Error 1

This happens because 8deab1144b553548fb2f1b51affdd36dcd652aaa [[MIPS]
Updated Sibyte headers] changed the headers but not all the users.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Reported-by: Markos Chandras <markos.chandras@imgtec.com>
---
 arch/mips/mm/cerr-sb1.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/mips/mm/cerr-sb1.c b/arch/mips/mm/cerr-sb1.c
index 576add3..ee5c1ff 100644
--- a/arch/mips/mm/cerr-sb1.c
+++ b/arch/mips/mm/cerr-sb1.c
@@ -182,11 +182,7 @@ asmlinkage void sb1_cache_error(void)
 
 #ifdef CONFIG_SIBYTE_BW_TRACE
 	/* Freeze the trace buffer now */
-#if defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80)
-	csr_out32(M_BCM1480_SCD_TRACE_CFG_FREEZE, IOADDR(A_SCD_TRACE_CFG));
-#else
 	csr_out32(M_SCD_TRACE_CFG_FREEZE, IOADDR(A_SCD_TRACE_CFG));
-#endif
 	printk("Trace buffer frozen\n");
 #endif
 

  reply	other threads:[~2013-06-19 17:32 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-17 14:00 [PATCH 0/7] MIPS: sibyte build fixes Markos Chandras
2013-06-17 14:00 ` Markos Chandras
2013-06-17 14:00 ` [PATCH 1/7] MIPS: sibyte: Fix build for SIBYTE_BW_TRACE Markos Chandras
2013-06-17 14:00   ` Markos Chandras
2013-06-19 17:32   ` Ralf Baechle [this message]
2013-06-17 14:00 ` [PATCH 2/7] MIPS: sibyte: Declare the cfe_write() buffer as constant Markos Chandras
2013-06-17 14:00   ` Markos Chandras
2013-06-17 14:00 ` [PATCH 3/7] MIPS: sibyte: Add missing sched.h header Markos Chandras
2013-06-17 14:00   ` Markos Chandras
2013-06-17 16:44   ` Ralf Baechle
2013-06-17 18:33     ` Peter Zijlstra
2013-06-17 14:00 ` [PATCH 4/7] MIPS: sibyte: Amend dependencies for SIBYTE_BUS_WATCHER Markos Chandras
2013-06-17 14:00   ` Markos Chandras
2013-06-19 18:27   ` Ralf Baechle
2013-06-17 14:00 ` [PATCH 5/7] drivers: watchdog: sb_wdog: Fix 32bit linking problems Markos Chandras
2013-06-17 14:00   ` Markos Chandras
2013-06-17 17:03   ` Ralf Baechle
2013-06-18 13:17     ` Markos Chandras
2013-06-17 14:00 ` [PATCH 6/7] drivers: ssb: Kconfig: Amend SSB_EMBEDDED dependencies Markos Chandras
2013-06-17 14:00   ` Markos Chandras
2013-06-27 11:30   ` Ralf Baechle
2013-06-17 14:00 ` [PATCH 7/7] MIPS: sibyte: Remove unused variable Markos Chandras
2013-06-17 14:00   ` Markos Chandras

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130619173207.GA741@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=linux-mips@linux-mips.org \
    --cc=markos.chandras@imgtec.com \
    --cc=sibyte-users@bitmover.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.