Received: by 10.223.185.111 with SMTP id b44csp1345942wrg; Sat, 10 Mar 2018 04:00:29 -0800 (PST) X-Google-Smtp-Source: AG47ELt5mrY2/1eEHTOJBDrd6JTxy5TgjnuTykiuPm3aO4cYzexvanPZqCfpE2TZm/tRJb/oS5iz X-Received: by 10.101.97.139 with SMTP id c11mr1487037pgv.435.1520683229267; Sat, 10 Mar 2018 04:00:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520683228; cv=none; d=google.com; s=arc-20160816; b=FGDqEptHyZlELsnTbt5ZeQ7w9vhU2WFbMwNEsO5E+MrqJ6x5WW1ggiglCQyDbep0Jz 5n/D6xwuOT/ZfoNlydEJGkQ/YUgNvU6x1hmV/BU/LlVbkL5hwo0R2D5iKhsxFM/1QodH +78NGzueRLdPAsBql+4sEvwTghvC1XIBxHtwIlu52TocwsT7dFRHPD9Fuv2xoAlJKS4I tkRUsj4rfXgyr51PE0ABx0uOClItELtv1gaUMWIdS8tZx9CJfzltd1bMK7v2PL8kEw3Q Jvvc2r7iHTFLIrZGMoJZlcfdfjN0bn/gZHJIRLMFcUcZR5iRsRK3dtbWt0sJKEhDnZyo VYLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=aa1hBM93vritv2RDoB9ID5FfwA6qOHI14icQk2Wsy3Q=; b=lOAagJ9XYkV1gXftCM/F+f4elYDzBzbpDmOKe806nqRhNf4+Sr384uvetTVhNLO3XB Uv06OYXycL6cACWT1x2xxLu4gHKNH8RZ3SK2kMV9v7oIcCvgd7Dl66Q9bUsXbr8S62/f lJWBpGjgZR63nA80oC4NgPh7dtYHfUmoc6DQ83Xn7AHQyRbZyaKL7utFJa7K3hUnblIE fLAIS9Bd1yO3Vq43YEPWPW9h+ZR6j1sKpn5t/z9QcMRPkekXiEubfUg0xwSi1zEjfy94 uXqy/Cmca/lmaI0IRZaKyEsvIr7dismRDpPWUfxalThyD+AzMCNDpAJ50cfqDE7rhgqo a0KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Kaq3YQt4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a15si2569311pff.139.2018.03.10.04.00.12; Sat, 10 Mar 2018 04:00:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Kaq3YQt4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752173AbeCJL7L (ORCPT + 99 others); Sat, 10 Mar 2018 06:59:11 -0500 Received: from mail-io0-f173.google.com ([209.85.223.173]:45004 "EHLO mail-io0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752079AbeCJL7J (ORCPT ); Sat, 10 Mar 2018 06:59:09 -0500 Received: by mail-io0-f173.google.com with SMTP id h23so6360472iob.11 for ; Sat, 10 Mar 2018 03:59:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=aa1hBM93vritv2RDoB9ID5FfwA6qOHI14icQk2Wsy3Q=; b=Kaq3YQt485iFOX+ZzHJEPmpMC3i8VPl6CtmKM0wu4FURSDkgiwgnrEjjCjosMT6X9K C6dhWocD1Bl4R0banNgaVNAGkF//leR9FzzCmrsyKMho22+Q94A41Ghi2OTYBhGPt0CA 60q5s88XAMv6qZ+wJ/fVkAZQfN1YSE8at479A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=aa1hBM93vritv2RDoB9ID5FfwA6qOHI14icQk2Wsy3Q=; b=FFcgTnoc8MHKgLk2LZqppME5KWdycbKk1PDSgnXZbdREPshu1GyhyBX25Tk1sf6ulu Bwb7uF+9xt+7VFUeVmOEGrXT9ZWK7NWRbqKv+MI32ObvXQKeB6y/9PkxEXJQ6Nau0+yY DnEoOKwoR87sUvCTyjovtr+PcVUF8N6KRT5cc53Uf7NpXXbM20QwnzgcY0tbxmKxm3+U eE0nFJO3ZWtIKdRDtwU+yWT1bf21+VsQ59aO4RtEf0PMi7c+3k2pT/wWtgB/ANFeK8q6 S5x48LSYXRDpypgucAHNV2jsPS3KvikL9Vqw2Hptqc4H3cBKjaq8RsAlMca8VDdk+UZj OF8g== X-Gm-Message-State: AElRT7F58zkvq4L1WtRVPUgJy/Fq29uoRxxSyvS/A/ieOgq2KUs6OfKG w1khy72L84Sjzj2+Nd1QIUil9WSz9k65lG5Ww3izFA== X-Received: by 10.107.139.77 with SMTP id n74mr1919425iod.109.1520683149004; Sat, 10 Mar 2018 03:59:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.230.25 with HTTP; Sat, 10 Mar 2018 03:59:08 -0800 (PST) In-Reply-To: <67491d8c-7eb3-e8c5-7eb0-3006ff668a60@wdc.com> References: <1519731229-19141-1-git-send-email-harish_kandiga@mentor.com> <67491d8c-7eb3-e8c5-7eb0-3006ff668a60@wdc.com> From: Linus Walleij Date: Sat, 10 Mar 2018 12:59:08 +0100 Message-ID: Subject: Re: [PATCH] mmc: card: Don't show eMMC RPMB and BOOT areas in /proc/partitions To: Alex Lemberg Cc: Harish Jenny K N , Ulf Hansson , Adrian Hunter , Shawn Lin , linux-mmc , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 8, 2018 at 9:36 PM, Alex Lemberg wrote: > On 3/2/18 4:53 AM, Linus Walleij wrote: >> What we need to do is make the "special partitions" part of the >> main block device and stop spawning these special block >> devices for each boot partions or general partitions. In addition, >> each of these boot partitions or general partitions will get their >> own block queue and state container which is not cheap in >> runtime memory footprint terms. >> >> So what I want to do (unless someone beats me to it) it to come >> up with some way making boot and general partitions part >> of the main block device. Possibly the core kernel partitioning >> code needs to be augmented. The tentative idea is to just >> put the sectors representing these partitions after the main >> block device and access them from there, with an offset. > > I don't think that hiding the Boot and RPMB will resolve the problem > described above. Me neither. I'm just trying to discuss the problem lurking behind these partitions. > Boot partition (same as RPMB) in eMMC device is a separate > "physical" partition. > It has its own logical address range and different from general > partition characteristics. Yep. > From the protocol - the access to this partition it requires switch > partition command. Yeah I saw that as well... it's a bit funny. > From the device side - it can be managed in totally different manner > (SLC vs. MLC blocks, etc.) > I think it completely makes sense to allow access to Boot partition from the > user space. For example - to allow R/W the boot image. But this patch doesn't hide the partition from userspace does it? They will still appear in /dev/mmcblk0boot1 etc. Just not reported as "real" partitions in /proc/partitions. Or do I misunderstand it? > AFAIK, in case of SCSI/UFS devices - Boot LUN's are represented as > separate block > device partitions (/dev/sdb, dev/sdc...). > Shouldn't we have the same for eMMC? I think we should, but we have the problem with the boot partitions and general partitions that they do not work anything like SCSCI LUNs. On a SCSI device dd from the whole device will copy all data on the device, the partition table and contents of all partitions. For say /dev/mmcblk0 this is not true of the device contains boot or general partitions, those other partitions will not be copied. Yours, Linus Walleij