All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 06/14] clocksource/drivers/c-sky: fixup qemu fail to bootup sometimes.
@ 2018-12-31 15:27 guoren
  2018-12-31 15:27 ` [PATCH 13/14] clocksource/drivers/c-sky: fixup ftrace call-graph panic guoren
  0 siblings, 1 reply; 2+ messages in thread
From: guoren @ 2018-12-31 15:27 UTC (permalink / raw)
  To: daniel.lezcano, tglx; +Cc: guoren, linux-kernel, Guo Ren

From: Guo Ren <ren_guo@c-sky.com>

Timer startup must after timer_irq_enable. For qemu, timer tick
irq hanppens but irq not enable, so it will cause qemu boot failed.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Tested-by: Liu Zhiwei <zhiwei_liu@c-sky.com>
---
 drivers/clocksource/timer-mp-csky.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clocksource/timer-mp-csky.c b/drivers/clocksource/timer-mp-csky.c
index a8acc43..3cb6dbc 100644
--- a/drivers/clocksource/timer-mp-csky.c
+++ b/drivers/clocksource/timer-mp-csky.c
@@ -79,11 +79,11 @@ static int csky_mptimer_starting_cpu(unsigned int cpu)
 
 	to->clkevt.cpumask = cpumask_of(cpu);
 
+	enable_percpu_irq(csky_mptimer_irq, 0);
+
 	clockevents_config_and_register(&to->clkevt, timer_of_rate(to),
 					2, ULONG_MAX);
 
-	enable_percpu_irq(csky_mptimer_irq, 0);
-
 	return 0;
 }
 
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 13/14] clocksource/drivers/c-sky: fixup ftrace call-graph panic
  2018-12-31 15:27 [PATCH 06/14] clocksource/drivers/c-sky: fixup qemu fail to bootup sometimes guoren
@ 2018-12-31 15:27 ` guoren
  0 siblings, 0 replies; 2+ messages in thread
From: guoren @ 2018-12-31 15:27 UTC (permalink / raw)
  To: daniel.lezcano, tglx; +Cc: guoren, linux-kernel, Guo Ren

From: Guo Ren <ren_guo@c-sky.com>

We must add notrace on sched_clock_read, because it's called
by ftrace_graph_caller.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
---
 drivers/clocksource/timer-mp-csky.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/timer-mp-csky.c b/drivers/clocksource/timer-mp-csky.c
index 3cb6dbc..183a995 100644
--- a/drivers/clocksource/timer-mp-csky.c
+++ b/drivers/clocksource/timer-mp-csky.c
@@ -97,7 +97,7 @@ static int csky_mptimer_dying_cpu(unsigned int cpu)
 /*
  * clock source
  */
-static u64 sched_clock_read(void)
+static u64 notrace sched_clock_read(void)
 {
 	return (u64)mfcr(PTIM_CCVR);
 }
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-12-31 15:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-31 15:27 [PATCH 06/14] clocksource/drivers/c-sky: fixup qemu fail to bootup sometimes guoren
2018-12-31 15:27 ` [PATCH 13/14] clocksource/drivers/c-sky: fixup ftrace call-graph panic guoren

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.