From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61C64C433F5 for ; Mon, 11 Oct 2021 14:33:14 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A8D136023F for ; Mon, 11 Oct 2021 14:33:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A8D136023F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AEA0982DA1; Mon, 11 Oct 2021 16:33:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Az2YgPZe"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4683F83257; Mon, 11 Oct 2021 16:33:09 +0200 (CEST) Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 07BDE82006 for ; Mon, 11 Oct 2021 16:33:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-ot1-x334.google.com with SMTP id s18-20020a0568301e1200b0054e77a16651so5171437otr.7 for ; Mon, 11 Oct 2021 07:33:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lrXv7cARyi0lFYLL+7M9CyB9Zdo3TfmNDRWjeU+xqL0=; b=Az2YgPZejGBsD1a29FhxlRovwRNwhcshagr7CnoZ1OWOAfhFisGaGaBT90+iWioX3M 5wa7MaeaoiAT+o0TVqsMECWvqDjkp+eKTLSstyf5AqifxID9ceJl6Y6/2u0v1zPwHVUm ZDCs86Qq1uh+4RoXLIWBg4H+o6C9frqi1vGzQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lrXv7cARyi0lFYLL+7M9CyB9Zdo3TfmNDRWjeU+xqL0=; b=Cwz3et0HwtFq7yOiYI27EZcD60ZANF1gc8aVN3bd/vWi7/g8z3jzfsB1PqFbpLEzLY ieabpmtWi70+o0eUpcU8Nx71rOMln4J8NLhaZwhcmKevw25TSuXcxVuFcF4WT31QOoI0 5p4ww4EoOiL12uwi8etk8GTn24AAMCyPIdIJL4ts+H5yQppR/YhSxg1J8g1wGEGZ1GBt /sCYDPkCOIr716/tiqxJVBChcetIuLnSTqw0xVqnGwvBI6fiW2hP/vVGWdQWYB9+2Sg1 0r2xqi0iflPEdvp7ymsZ5RmT+TgQtlMVEJMC1AIaoLa9YA1+vh5d75f0MgKC3rSIQq9Y XzZQ== X-Gm-Message-State: AOAM5316h2Z05ewE+OBYtWPU6yxOJMIZ0tdMlncS4sF8qhLZXx5VGNey lw7GKsItoVSbDDhFry3sQO5VMyKjvQ+0mQHFgIHaRA== X-Google-Smtp-Source: ABdhPJyNZTwvDQS0ambCzHsimUk+kDIjojQ/Sou0yS244BFrE82liNzssCtasdExmivo/uvSIAwnWdW6YbOsIWp6dM0= X-Received: by 2002:a05:6830:3190:: with SMTP id p16mr21541718ots.11.1633962784338; Mon, 11 Oct 2021 07:33:04 -0700 (PDT) MIME-Version: 1.0 References: <20211001050228.55183-1-takahiro.akashi@linaro.org> <20211001050228.55183-2-takahiro.akashi@linaro.org> <26d404a1-92d0-4e03-3c7f-5a34e04464cb@gmx.de> In-Reply-To: <26d404a1-92d0-4e03-3c7f-5a34e04464cb@gmx.de> From: Simon Glass Date: Mon, 11 Oct 2021 08:32:52 -0600 Message-ID: Subject: Re: [RFC 01/22] part: call part_init() in blk_get_device_by_str() only for MMC To: Heinrich Schuchardt Cc: Peter Robinson , AKASHI Takahiro , Alex Graf , Ilias Apalodimas , U-Boot Mailing List Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi Heinrich, On Mon, 11 Oct 2021 at 04:07, Heinrich Schuchardt wrote: > > > > On 10/1/21 13:48, Peter Robinson wrote: > > On Fri, Oct 1, 2021 at 6:03 AM AKASHI Takahiro > > wrote: > >> > >> In blk_get_device_by_str(), the comment says: "Updates the partition table > >> for the specified hw partition." > >> Since hw partition is supported only on MMC, it makes no sense to do so > >> for other devices. > > > > Is it not also supported on UFS, and I believe it may also be an > > option in the NVME spec too. > > An NVMe device may expose multiple namespaces. blk_create_devicef() is > called for each namespace. > > A SCSI device may have multiple LUNs. blk_create_devicef() is called for > each LUN. > > This is what the tree shown by 'dm tree' with on NVMe namespace and one LUN. > > Class Index Driver Name > --------------------------------------------------------------------- > root 0 root_driver root_driver > simple_bus 0 simple_bus |- soc > spi 1 sifive_spi | |- spi@10050000 > mmc 0 mmc_spi | | `- mmc@0 > blk 0 mmc_blk | | `- mmc@0.blk > pci 0 pcie_sifive | |- pcie@e00000000 > pci 1 pci_bridge_drv | | `- pci_0:0.0 > pci 2 pci_bridge_drv | | `- pci_1:0.0 > pci 5 pci_bridge_drv | | |- pci_2:3.0 > ahci 0 ahci_pci | | | `- ahci_pci > scsi 0 ahci_scsi | | | `- ahci_scsi > blk 2 scsi_blk | | | `- ahci_scsi.id0lun0 > pci 6 pci_bridge_drv | | |- pci_2:4.0 > nvme 0 nvme | | | `- nvme#0 > blk 1 nvme-blk | | | `- nvme#0.blk#1 > > Namespaces and LUNs are modeled as block devices (class = 'blk'). So multiple block devices per NVMe device? I did not know that was supported. We need a sandbox driver for NVMe as it has no tests at present. Since it has no tests, I don't think we can expect people to know how to maintain whatever functionality is there. [..] Regards, Simon