[Top] [All Lists]

[PATCH v2 0/2] MIPS: ftrace: Fix icache flush issue

Subject: [PATCH v2 0/2] MIPS: ftrace: Fix icache flush issue
From: Viller Hsiao <>
Date: Sat, 22 Feb 2014 15:46:47 +0800
Cc:,,,,, Viller Hsiao <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113; h=from:to:cc:subject:date:message-id; bh=LUlIREadiZiO4aVIruWpzlmmGRTHK/IDHIiihaMDgns=; b=HKMfVLKVb5oZ5ObU+jEj8NSiZrNyye3PyvczeUkBuQecRS1/SBb4kyC2IALeFzwgEZ iCwIpKhvcmJVSgy1cKeeylKrBWo+VIHBUL4tl89l2T8WLerj0nLr2cnHoTQzMjZ7LwKq hLCgiJ029PLZ4AEPWuA6l8Zml3otu75cIzCVw03VjjGt2HRGEV6FI0M8AXmPfDgXrfyE 5nXSIjR5rwV1XGEOShbqpfkPTK6epOmlZ1NYfXJ/c1AWsy+v1ml8RhcCO5NbZr3vVqWJ H2MK045aeuuHOD98FRh+RVH0iUTK8bd5EabluDIDW27lDKHLKUUPbhaTC2tqEQ2LLxEM jDaA==
List-archive: <>
List-help: <>
List-id: linux-mips <>
List-owner: <>
List-post: <>
List-software: Ecartis version 1.0.0
List-subscribe: <>
List-unsubscribe: <>
Original-recipient: rfc822;
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(-)


<Prev in Thread] Current Thread [Next in Thread>