From patchwork Thu Feb 26 12:23:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Shigorin X-Patchwork-Id: 5891571 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2291D9F373 for ; Thu, 26 Feb 2015 12:32:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 284AD200FE for ; Thu, 26 Feb 2015 12:32:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BD1A020398 for ; Thu, 26 Feb 2015 12:32:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932101AbbBZMcY (ORCPT ); Thu, 26 Feb 2015 07:32:24 -0500 Received: from pegasus3.altlinux.org ([194.107.17.103]:51758 "EHLO pegasus3.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932092AbbBZMcY (ORCPT ); Thu, 26 Feb 2015 07:32:24 -0500 X-Greylist: delayed 556 seconds by postgrey-1.27 at vger.kernel.org; Thu, 26 Feb 2015 07:32:23 EST Received: from imap.altlinux.org (imap.altlinux.org [194.107.17.38]) by pegasus3.altlinux.org (Postfix) with ESMTP id 83C5480ABA; Thu, 26 Feb 2015 15:23:05 +0300 (MSK) Received: by imap.altlinux.org (Postfix, from userid 705) id 73FA2114304C; Thu, 26 Feb 2015 15:23:05 +0300 (MSK) Date: Thu, 26 Feb 2015 15:23:05 +0300 From: Michael Shigorin To: Chuanxiao Dong , Ulf Hansson , linux-mmc@vger.kernel.org, 759656@bugs.debian.org, Nell Hardcastle Subject: Re: [PATCH] mmc: card: not access RPMB partition for normal read and write Message-ID: <20150226122305.GO1186@imap.altlinux.org> Mail-Followup-To: Chuanxiao Dong , Ulf Hansson , linux-mmc@vger.kernel.org, 759656@bugs.debian.org, Nell Hardcastle References: <1407816090-7671-1-git-send-email-yunpeng.gao@intel.com> <20141001135330.GB15863@imap.altlinux.org> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <20141001135330.GB15863@imap.altlinux.org> User-Agent: Mutt/1.4.2.3i Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, T_TVD_MIME_EPI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Wed, Oct 01, 2014 at 05:53:30PM +0400, I wrote: > what is the status of this patch to cope with MMC RPMB? > http://permalink.gmane.org/gmane.linux.kernel.mmc/28281 Just in case, it's now also Tested-by: Michael Shigorin Hope to see this merged! 2 debian: please note that udev rules fixup is required, see also https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1333140 -- it's been fixed in 219 or see the patch in 218-10ubuntu1 package. From: Martin Pitt Date: Wed, 11 Feb 2015 15:26:52 +0100 Subject: rules: Fix by-path of mmc RPMB partitions and don't blkid them Linux 3.10+ exposes RPMB (Replay Protected Memory Block) partitions of MMC devices [1] ; trying to read them with blkid or other unspecific means will cause kernel buffer I/O errors and timeouts. Blacklist those to prevent creating wrong by-path links and blkid'ing those. [1] http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=090d25fe224c0 https://launchpad.net/bugs/1333140 --- rules/60-persistent-storage.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/60-persistent-storage.rules b/rules/60-persistent-storage.rules index 475b151..25b44a5 100644 --- a/rules/60-persistent-storage.rules +++ b/rules/60-persistent-storage.rules @@ -14,7 +14,7 @@ ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_ SUBSYSTEM!="block", GOTO="persistent_storage_end" # skip rules for inappropriate block devices -KERNEL=="fd*|mtd*|nbd*|gnbd*|btibm*|dm-*|md*|zram*", GOTO="persistent_storage_end" +KERNEL=="fd*|mtd*|nbd*|gnbd*|btibm*|dm-*|md*|zram*|mmcblk[0-9]*rpmb", GOTO="persistent_storage_end" # ignore partitions that span the entire disk TEST=="whole_disk", GOTO="persistent_storage_end"