From patchwork Tue Aug 9 12:07:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Per Forlin X-Patchwork-Id: 1049312 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p79C8csL013615 for ; Tue, 9 Aug 2011 12:08:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753621Ab1HIMIO (ORCPT ); Tue, 9 Aug 2011 08:08:14 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:57680 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753601Ab1HIMIL (ORCPT ); Tue, 9 Aug 2011 08:08:11 -0400 Received: by mail-ew0-f46.google.com with SMTP id 4so1045342ewy.19 for ; Tue, 09 Aug 2011 05:08:10 -0700 (PDT) Received: by 10.213.114.74 with SMTP id d10mr526084ebq.82.1312891690475; Tue, 09 Aug 2011 05:08:10 -0700 (PDT) Received: from localhost.localdomain (c-c37f71d5.029-82-6c756e10.cust.bredbandsbolaget.se [213.113.127.195]) by mx.google.com with ESMTPS id i3sm3004876eea.27.2011.08.09.05.08.08 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 09 Aug 2011 05:08:09 -0700 (PDT) From: Per Forlin To: Akinobu Mita , akpm@linux-foundation.org, Linus Walleij , linux-kernel@vger.kernel.org, Randy Dunlap , Chris Ball Cc: linux-doc@vger.kernel.org, linux-mmc@vger.kernel.org, linaro-dev@lists.linaro.org, linux-mm@kvack.org, Per Forlin Subject: [PATCH --mmotm v8 3/3] fault injection: add documentation on MMC IO fault injection Date: Tue, 9 Aug 2011 14:07:51 +0200 Message-Id: <1312891671-28680-4-git-send-email-per.forlin@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1312891671-28680-1-git-send-email-per.forlin@linaro.org> References: <1312891671-28680-1-git-send-email-per.forlin@linaro.org> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 09 Aug 2011 12:08:38 +0000 (UTC) Add description on how to enable random fault injection for MMC IO Signed-off-by: Per Forlin Acked-by: Akinobu Mita --- Documentation/fault-injection/fault-injection.txt | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/Documentation/fault-injection/fault-injection.txt b/Documentation/fault-injection/fault-injection.txt index 82a5d25..70f924e 100644 --- a/Documentation/fault-injection/fault-injection.txt +++ b/Documentation/fault-injection/fault-injection.txt @@ -21,6 +21,11 @@ o fail_make_request /sys/block//make-it-fail or /sys/block///make-it-fail. (generic_make_request()) +o fail_mmc_request + + injects MMC data errors on devices permitted by setting + debugfs entries under /sys/kernel/debug/mmc0/fail_mmc_request + Configure fault-injection capabilities behavior ----------------------------------------------- @@ -115,7 +120,8 @@ use the boot option: failslab= fail_page_alloc= - fail_make_request=,,, + fail_make_request= + fail_mmc_request=,,, How to add new fault injection capability -----------------------------------------