All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] MIPS: ftrace: Fix icache flush issue
@ 2014-02-22  7:46 Viller Hsiao
  2014-02-22  7:46 ` [PATCH v2 1/2] MIPS: ftrace: Tweak safe_load()/safe_store() macros Viller Hsiao
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Viller Hsiao @ 2014-02-22  7:46 UTC (permalink / raw)
  To: linux-mips; +Cc: rostedt, fweisbec, mingo, ralf, Qais.Yousef, Viller Hsiao

In 32-bit mode, the start address of flushing icache is wrong because
of error address calculation. It causes system crash at boot when
dynamic function trace is enabled. This issue existed since linux-3.8.

In the patch set, I fixed the flushing range and refined the macros
used by it to pass compilation.

Patch 1 is tried to improve the usability of some macros such that
we can make patch 2 cleaner. Patch 2 fixes this issue.

This patch set is based on commit 7d3f1a5 of mips-for-linux-next branch.

Viller Hsiao (2):
  MIPS: ftrace: Tweak safe_load()/safe_store() macros
  MIPS: ftrace: Fix icache flush range error

 arch/mips/include/asm/ftrace.h | 20 ++++++++++----------
 arch/mips/kernel/ftrace.c      |  5 ++---
 2 files changed, 12 insertions(+), 13 deletions(-)

-- 
1.8.4.3

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

end of thread, other threads:[~2014-03-19 18:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-22  7:46 [PATCH v2 0/2] MIPS: ftrace: Fix icache flush issue Viller Hsiao
2014-02-22  7:46 ` [PATCH v2 1/2] MIPS: ftrace: Tweak safe_load()/safe_store() macros Viller Hsiao
2014-03-17 14:56   ` Ralf Baechle
2014-03-18  0:04     ` Viller Hsiao
2014-03-18  7:53       ` Viller Hsiao
2014-03-18 12:04         ` Ralf Baechle
2014-03-19  9:50           ` Tony Wu
2014-03-19 18:42     ` Geert Uytterhoeven
2014-02-22  7:46 ` [PATCH v2 2/2] MIPS: ftrace: Fix icache flush range error Viller Hsiao
2014-02-24  9:27 ` [PATCH v2 0/2] MIPS: ftrace: Fix icache flush issue Qais Yousef

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.