* [PATCH 1/2] sh: Drop dependence for 29bit mode of
@ 2010-06-08 2:00 Nobuhiro Iwamatsu
2010-06-08 3:10 ` [PATCH 1/2] sh: Drop dependence for 29bit mode of trigger_address_error() Paul Mundt
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2010-06-08 2:00 UTC (permalink / raw)
To: linux-sh
When CONFIG_PMB enable, ITLB is not cleared by reset of watchdog timer.
This should use trigger_address_error().
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
---
arch/sh/include/asm/system_32.h | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/arch/sh/include/asm/system_32.h b/arch/sh/include/asm/system_32.h
index 51296b3..9bd2684 100644
--- a/arch/sh/include/asm/system_32.h
+++ b/arch/sh/include/asm/system_32.h
@@ -216,13 +216,12 @@ int handle_unaligned_access(insn_size_t
instruction, struct pt_regs *regs,
static inline void trigger_address_error(void)
{
- if (__in_29bit_mode())
- __asm__ __volatile__ (
- "ldc %0, sr\n\t"
- "mov.l @%1, %0"
- :
- : "r" (0x10000000), "r" (0x80000001)
- );
+ __asm__ __volatile__ (
+ "ldc %0, sr\n\t"
+ "mov.l @%1, %0"
+ :
+ : "r" (0x10000000), "r" (0x80000001)
+ );
}
asmlinkage void do_address_error(struct pt_regs *regs,
--
1.7.0.3
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 1/2] sh: Drop dependence for 29bit mode of trigger_address_error()
2010-06-08 2:00 [PATCH 1/2] sh: Drop dependence for 29bit mode of Nobuhiro Iwamatsu
@ 2010-06-08 3:10 ` Paul Mundt
2010-06-08 4:31 ` [PATCH 1/2] sh: Drop dependence for 29bit mode of Nobuhiro Iwamatsu
2010-06-08 4:39 ` [PATCH 1/2] sh: Drop dependence for 29bit mode of trigger_address_error() Paul Mundt
2 siblings, 0 replies; 4+ messages in thread
From: Paul Mundt @ 2010-06-08 3:10 UTC (permalink / raw)
To: linux-sh
On Tue, Jun 08, 2010 at 11:00:13AM +0900, Nobuhiro Iwamatsu wrote:
> When CONFIG_PMB enable, ITLB is not cleared by reset of watchdog timer.
> This should use trigger_address_error().
>
> Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
The whole reason for the 29-bit dependence is that we have no way to
trigger an address error reset in 32-bit mode. Have you even tested this?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] sh: Drop dependence for 29bit mode of
2010-06-08 2:00 [PATCH 1/2] sh: Drop dependence for 29bit mode of Nobuhiro Iwamatsu
2010-06-08 3:10 ` [PATCH 1/2] sh: Drop dependence for 29bit mode of trigger_address_error() Paul Mundt
@ 2010-06-08 4:31 ` Nobuhiro Iwamatsu
2010-06-08 4:39 ` [PATCH 1/2] sh: Drop dependence for 29bit mode of trigger_address_error() Paul Mundt
2 siblings, 0 replies; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2010-06-08 4:31 UTC (permalink / raw)
To: linux-sh
Paul Mundt wrote:
> On Tue, Jun 08, 2010 at 11:00:13AM +0900, Nobuhiro Iwamatsu wrote:
>> When CONFIG_PMB enable, ITLB is not cleared by reset of watchdog timer.
>> This should use trigger_address_error().
>>
>> Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
>
> The whole reason for the 29-bit dependence is that we have no way to
> trigger an address error reset in 32-bit mode. Have you even tested this?
>
I tested 32bit mode on sh7785lcr.
When watchboot tigger reset was not used this board, I confirmed reset enterd.
Nobuhiro
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] sh: Drop dependence for 29bit mode of trigger_address_error()
2010-06-08 2:00 [PATCH 1/2] sh: Drop dependence for 29bit mode of Nobuhiro Iwamatsu
2010-06-08 3:10 ` [PATCH 1/2] sh: Drop dependence for 29bit mode of trigger_address_error() Paul Mundt
2010-06-08 4:31 ` [PATCH 1/2] sh: Drop dependence for 29bit mode of Nobuhiro Iwamatsu
@ 2010-06-08 4:39 ` Paul Mundt
2 siblings, 0 replies; 4+ messages in thread
From: Paul Mundt @ 2010-06-08 4:39 UTC (permalink / raw)
To: linux-sh
On Tue, Jun 08, 2010 at 01:31:25PM +0900, Nobuhiro Iwamatsu wrote:
> Paul Mundt wrote:
> >On Tue, Jun 08, 2010 at 11:00:13AM +0900, Nobuhiro Iwamatsu wrote:
> >>When CONFIG_PMB enable, ITLB is not cleared by reset of watchdog timer.
> >>This should use trigger_address_error().
> >>
> >>Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
> >
> >The whole reason for the 29-bit dependence is that we have no way to
> >trigger an address error reset in 32-bit mode. Have you even tested this?
> >
>
> I tested 32bit mode on sh7785lcr.
> When watchboot tigger reset was not used this board, I confirmed reset
> enterd.
>
The reason we limited it to 29-bit was simply because it had no effect on
SDK7786 where the 0x8... mappings don't even exist until we manualy
establish them. However, if we toggle MMUCR.TI immediately prior to that
like your other patch does, we can likely generate a reset by the MMU.
I'll test it out on my SH7785LCR and SDK7786 and see how it goes.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-06-08 4:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-08 2:00 [PATCH 1/2] sh: Drop dependence for 29bit mode of Nobuhiro Iwamatsu
2010-06-08 3:10 ` [PATCH 1/2] sh: Drop dependence for 29bit mode of trigger_address_error() Paul Mundt
2010-06-08 4:31 ` [PATCH 1/2] sh: Drop dependence for 29bit mode of Nobuhiro Iwamatsu
2010-06-08 4:39 ` [PATCH 1/2] sh: Drop dependence for 29bit mode of trigger_address_error() Paul Mundt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox