From: Tushar Behera <tushar.behera@linaro.org>
To: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: linux-samsung-soc@vger.kernel.org,
Kyungmin Park <kyungmin.park@samsung.com>,
Kukjin Kim <kgene.kim@samsung.com>,
Angus Ainslie <angus.ainslie@linaro.org>
Subject: Re: [PATCH v3] ARM: Samsung: fix watchdog reset issue with clk_get()
Date: Fri, 19 Aug 2011 15:07:42 +0530 [thread overview]
Message-ID: <4E4E2EE6.70503@linaro.org> (raw)
In-Reply-To: <1313663117-29191-1-git-send-email-m.szyprowski@samsung.com>
Hi,
On Thursday 18 August 2011 03:55 PM, Marek Szyprowski wrote:
> clkdev framework uses global mutex to protect clock tree, so it is not
> possible to call clk_get() in interrupt context. This patch fixes this
> issue and makes system reset by watchdog call working again.
>
> Signed-off-by: Marek Szyprowski<m.szyprowski@samsung.com>
> Signed-off-by: Kyungmin Park<kyungmin.park@samsung.com>
> ---
> arch/arm/plat-samsung/clock.c | 11 +++++++++++
> arch/arm/plat-samsung/include/plat/clock.h | 3 +++
> .../arm/plat-samsung/include/plat/watchdog-reset.h | 10 +++-------
> 3 files changed, 17 insertions(+), 7 deletions(-)
>
>
> history:
> v3:
> - moved initialization to arch_initcall, cleaned the code
>
> v2:
> - added missing '__init' section modifiers
(snip)
I tried to test this patch with ORIGEN board.
I took the ORIGEN board support patch from kgene's
next-samsung-board-v3.1 branch and rebased it onto the for-next branch
for testing.
The system reboot stops at a message saying "Restarting system" and hangs.
However applying below patch reboots the system without even applying
Marek's patch.
Is there something wrong with mach-origen.c or u-boot [1]?
[1] git://git.linaro.org/people/angus/u-boot.git (origen)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
From: Tushar Behera <tushar.behera@linaro.org>
Date: Fri, 19 Aug 2011 14:47:04 +0530
Subject: [PATCH] [TEST] ARM: Disabling cache operation during system reset
On ORIGEN/SMDKV310 board, system reboot hangs during cache disabling
call in arm_machine_restart()=>cpu_proc_fin(). Applying given patch
enables the system to reboot properly.
This patch is no way a proposed solution. It is intended for further
investigation.
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
---
arch/arm/mm/proc-v7.S | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S
index a30e785..1bffc35 100644
--- a/arch/arm/mm/proc-v7.S
+++ b/arch/arm/mm/proc-v7.S
@@ -43,10 +43,12 @@ ENTRY(cpu_v7_proc_init)
ENDPROC(cpu_v7_proc_init)
ENTRY(cpu_v7_proc_fin)
+#if 0
mrc p15, 0, r0, c1, c0, 0 @ ctrl register
bic r0, r0, #0x1000 @ ...i............
bic r0, r0, #0x0006 @ .............ca.
mcr p15, 0, r0, c1, c0, 0 @ disable caches
+#endif
mov pc, lr
ENDPROC(cpu_v7_proc_fin)
--
1.7.4.1
--
Tushar Behera
next prev parent reply other threads:[~2011-08-19 9:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-18 10:25 [PATCH v3] ARM: Samsung: fix watchdog reset issue with clk_get() Marek Szyprowski
2011-08-19 9:37 ` Tushar Behera [this message]
2011-08-19 10:25 ` Marek Szyprowski
2011-08-19 10:44 ` Kyungmin Park
2011-08-22 6:57 ` Tushar Behera
2011-08-19 13:06 ` Kukjin Kim
2011-08-19 13:41 ` Marek Szyprowski
2011-08-19 14:25 ` Kukjin Kim
2011-09-05 11:32 ` Kukjin Kim
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=4E4E2EE6.70503@linaro.org \
--to=tushar.behera@linaro.org \
--cc=angus.ainslie@linaro.org \
--cc=kgene.kim@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.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.