* [PATCH] OMAP: don't trace functions called from sched_clock
@ 2011-05-08 9:21 Rabin Vincent
2011-05-27 15:33 ` Rabin Vincent
2011-05-27 20:39 ` Kevin Hilman
0 siblings, 2 replies; 7+ messages in thread
From: Rabin Vincent @ 2011-05-08 9:21 UTC (permalink / raw)
To: linux-arm-kernel
omap_readl() is used from the sched_clock() implementations and so must
be marked notrace to avoid recursion in ftrace. Same thing with
mpu_read() for OMAP1.
Signed-off-by: Rabin Vincent <rabin@rab.in>
---
arch/arm/mach-omap1/io.c | 2 +-
arch/arm/mach-omap1/time.c | 2 +-
arch/arm/mach-omap2/io.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-omap1/io.c b/arch/arm/mach-omap1/io.c
index 870886a..36ec2d7 100644
--- a/arch/arm/mach-omap1/io.c
+++ b/arch/arm/mach-omap1/io.c
@@ -158,7 +158,7 @@ u16 omap_readw(u32 pa)
}
EXPORT_SYMBOL(omap_readw);
-u32 omap_readl(u32 pa)
+u32 notrace omap_readl(u32 pa)
{
return __raw_readl(OMAP1_IO_ADDRESS(pa));
}
diff --git a/arch/arm/mach-omap1/time.c b/arch/arm/mach-omap1/time.c
index 6885d2f..88c5c5e 100644
--- a/arch/arm/mach-omap1/time.c
+++ b/arch/arm/mach-omap1/time.c
@@ -203,7 +203,7 @@ static struct irqaction omap_mpu_timer2_irq = {
.handler = omap_mpu_timer2_interrupt,
};
-static cycle_t mpu_read(struct clocksource *cs)
+static cycle_t notrace mpu_read(struct clocksource *cs)
{
return ~omap_mpu_timer_read(1);
}
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
index 441e79d..f1987b1 100644
--- a/arch/arm/mach-omap2/io.c
+++ b/arch/arm/mach-omap2/io.c
@@ -441,7 +441,7 @@ u16 omap_readw(u32 pa)
}
EXPORT_SYMBOL(omap_readw);
-u32 omap_readl(u32 pa)
+u32 notrace omap_readl(u32 pa)
{
return __raw_readl(OMAP2_L4_IO_ADDRESS(pa));
}
--
1.7.4.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH] OMAP: don't trace functions called from sched_clock
2011-05-08 9:21 [PATCH] OMAP: don't trace functions called from sched_clock Rabin Vincent
@ 2011-05-27 15:33 ` Rabin Vincent
2011-05-31 11:49 ` Tony Lindgren
2011-05-27 20:39 ` Kevin Hilman
1 sibling, 1 reply; 7+ messages in thread
From: Rabin Vincent @ 2011-05-27 15:33 UTC (permalink / raw)
To: linux-arm-kernel
Tony,
On Sun, May 8, 2011 at 14:51, Rabin Vincent <rabin@rab.in> wrote:
> omap_readl() is used from the sched_clock() implementations and so must
> be marked notrace to avoid recursion in ftrace. ?Same thing with
> mpu_read() for OMAP1.
>
> Signed-off-by: Rabin Vincent <rabin@rab.in>
Comments on this patch? This is a bugfix; the function graph tracer
will crash and burn on OMAP without this.
> ---
> ?arch/arm/mach-omap1/io.c ? | ? ?2 +-
> ?arch/arm/mach-omap1/time.c | ? ?2 +-
> ?arch/arm/mach-omap2/io.c ? | ? ?2 +-
> ?3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/mach-omap1/io.c b/arch/arm/mach-omap1/io.c
> index 870886a..36ec2d7 100644
> --- a/arch/arm/mach-omap1/io.c
> +++ b/arch/arm/mach-omap1/io.c
> @@ -158,7 +158,7 @@ u16 omap_readw(u32 pa)
> ?}
> ?EXPORT_SYMBOL(omap_readw);
>
> -u32 omap_readl(u32 pa)
> +u32 notrace omap_readl(u32 pa)
> ?{
> ? ? ? ?return __raw_readl(OMAP1_IO_ADDRESS(pa));
> ?}
> diff --git a/arch/arm/mach-omap1/time.c b/arch/arm/mach-omap1/time.c
> index 6885d2f..88c5c5e 100644
> --- a/arch/arm/mach-omap1/time.c
> +++ b/arch/arm/mach-omap1/time.c
> @@ -203,7 +203,7 @@ static struct irqaction omap_mpu_timer2_irq = {
> ? ? ? ?.handler ? ? ? ?= omap_mpu_timer2_interrupt,
> ?};
>
> -static cycle_t mpu_read(struct clocksource *cs)
> +static cycle_t notrace mpu_read(struct clocksource *cs)
> ?{
> ? ? ? ?return ~omap_mpu_timer_read(1);
> ?}
> diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
> index 441e79d..f1987b1 100644
> --- a/arch/arm/mach-omap2/io.c
> +++ b/arch/arm/mach-omap2/io.c
> @@ -441,7 +441,7 @@ u16 omap_readw(u32 pa)
> ?}
> ?EXPORT_SYMBOL(omap_readw);
>
> -u32 omap_readl(u32 pa)
> +u32 notrace omap_readl(u32 pa)
> ?{
> ? ? ? ?return __raw_readl(OMAP2_L4_IO_ADDRESS(pa));
> ?}
> --
> 1.7.4.1
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] OMAP: don't trace functions called from sched_clock
2011-05-08 9:21 [PATCH] OMAP: don't trace functions called from sched_clock Rabin Vincent
2011-05-27 15:33 ` Rabin Vincent
@ 2011-05-27 20:39 ` Kevin Hilman
2011-05-28 0:32 ` Kevin Hilman
1 sibling, 1 reply; 7+ messages in thread
From: Kevin Hilman @ 2011-05-27 20:39 UTC (permalink / raw)
To: linux-arm-kernel
Rabin Vincent <rabin@rab.in> writes:
> omap_readl() is used from the sched_clock() implementations and so must
> be marked notrace to avoid recursion in ftrace. Same thing with
> mpu_read() for OMAP1.
>
> Signed-off-by: Rabin Vincent <rabin@rab.in>
Acked-by: Kevin Hilman <khilman@ti.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] OMAP: don't trace functions called from sched_clock
2011-05-27 20:39 ` Kevin Hilman
@ 2011-05-28 0:32 ` Kevin Hilman
2011-05-31 11:50 ` Tony Lindgren
0 siblings, 1 reply; 7+ messages in thread
From: Kevin Hilman @ 2011-05-28 0:32 UTC (permalink / raw)
To: linux-arm-kernel
Kevin Hilman <khilman@ti.com> writes:
> Rabin Vincent <rabin@rab.in> writes:
>
>> omap_readl() is used from the sched_clock() implementations and so must
>> be marked notrace to avoid recursion in ftrace. Same thing with
>> mpu_read() for OMAP1.
>>
>> Signed-off-by: Rabin Vincent <rabin@rab.in>
>
> Acked-by: Kevin Hilman <khilman@ti.com>
I also meant to suggest this should probably queue for .40-rc series.
Kevin
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] OMAP: don't trace functions called from sched_clock
2011-05-27 15:33 ` Rabin Vincent
@ 2011-05-31 11:49 ` Tony Lindgren
0 siblings, 0 replies; 7+ messages in thread
From: Tony Lindgren @ 2011-05-31 11:49 UTC (permalink / raw)
To: linux-arm-kernel
* Rabin Vincent <rabin@rab.in> [110527 08:36]:
> Tony,
>
> On Sun, May 8, 2011 at 14:51, Rabin Vincent <rabin@rab.in> wrote:
> > omap_readl() is used from the sched_clock() implementations and so must
> > be marked notrace to avoid recursion in ftrace. ?Same thing with
> > mpu_read() for OMAP1.
We should rather ioremap the 32KSYNCT_BASE in omap_init_clocksource_32k
and then use __raw_readl. That allows us to get rid of omap_read usage
here and simplifies the code.
Regards,
Tony
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] OMAP: don't trace functions called from sched_clock
2011-05-28 0:32 ` Kevin Hilman
@ 2011-05-31 11:50 ` Tony Lindgren
2011-05-31 16:13 ` Kevin Hilman
0 siblings, 1 reply; 7+ messages in thread
From: Tony Lindgren @ 2011-05-31 11:50 UTC (permalink / raw)
To: linux-arm-kernel
* Kevin Hilman <khilman@ti.com> [110527 17:28]:
> Kevin Hilman <khilman@ti.com> writes:
>
> > Rabin Vincent <rabin@rab.in> writes:
> >
> >> omap_readl() is used from the sched_clock() implementations and so must
> >> be marked notrace to avoid recursion in ftrace. Same thing with
> >> mpu_read() for OMAP1.
> >>
> >> Signed-off-by: Rabin Vincent <rabin@rab.in>
> >
> > Acked-by: Kevin Hilman <khilman@ti.com>
>
> I also meant to suggest this should probably queue for .40-rc series.
Took a quick look and we should get rid of the omap_readl usage instead
like I commented in another mail.
Tony
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] OMAP: don't trace functions called from sched_clock
2011-05-31 11:50 ` Tony Lindgren
@ 2011-05-31 16:13 ` Kevin Hilman
0 siblings, 0 replies; 7+ messages in thread
From: Kevin Hilman @ 2011-05-31 16:13 UTC (permalink / raw)
To: linux-arm-kernel
Tony Lindgren <tony@atomide.com> writes:
> * Kevin Hilman <khilman@ti.com> [110527 17:28]:
>> Kevin Hilman <khilman@ti.com> writes:
>>
>> > Rabin Vincent <rabin@rab.in> writes:
>> >
>> >> omap_readl() is used from the sched_clock() implementations and so must
>> >> be marked notrace to avoid recursion in ftrace. Same thing with
>> >> mpu_read() for OMAP1.
>> >>
>> >> Signed-off-by: Rabin Vincent <rabin@rab.in>
>> >
>> > Acked-by: Kevin Hilman <khilman@ti.com>
>>
>> I also meant to suggest this should probably queue for .40-rc series.
>
> Took a quick look and we should get rid of the omap_readl usage instead
> like I commented in another mail.
Agreed, that's a better approach.
Kevin
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-05-31 16:13 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-08 9:21 [PATCH] OMAP: don't trace functions called from sched_clock Rabin Vincent
2011-05-27 15:33 ` Rabin Vincent
2011-05-31 11:49 ` Tony Lindgren
2011-05-27 20:39 ` Kevin Hilman
2011-05-28 0:32 ` Kevin Hilman
2011-05-31 11:50 ` Tony Lindgren
2011-05-31 16:13 ` Kevin Hilman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).