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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 7DDC1C433F5 for ; Mon, 25 Apr 2022 23:44:35 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EDCF182116; Tue, 26 Apr 2022 01:44:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="BnzJqe0T"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 729CD83B5C; Tue, 26 Apr 2022 01:44:31 +0200 (CEST) Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) (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 04A5A807DF for ; Tue, 26 Apr 2022 01:44:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pf1-x431.google.com with SMTP id a15so16280186pfv.11 for ; Mon, 25 Apr 2022 16:44:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=fDTxdCM5K9o97koPlkG/T3gcpFyat4m6/UO9OlQyWVQ=; b=BnzJqe0ToSV6p4xXpYdrCpqfncEPWpH3K91cxW3ifWBLDdmSZjRNIwtknTOc5047sp iVlb06q4TCbDC7Dr7V5jtSTKJPdjphO3pdVGWgOC8ZjTz8BRQ9HnwaWyd5v1FrLBmt7/ /TMpCzKS+xWwEjKvnDB+fS/nRwDZ6EsJ1G2TaJx+AIGAOMUzTxUQve68Xupmr7NjCvAE LD0WG9RorkZSJ1RqCfBqpIBx/nyWwCO3LHZpAkNQDiXgGjkBOaK8fHGQskvQx0PGQbx4 A8DMdfl5vHXxwFczFOXPeder+45hG04vXkJSdpYS6xAjyDM7AjWuE0FY7SagZZ3oOpxm d1nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=fDTxdCM5K9o97koPlkG/T3gcpFyat4m6/UO9OlQyWVQ=; b=jG1fSy0YWmf8nTeDdxET9pw2DkMM1Lzvr05+RPkt3HykugaBH2s+Dz+P6JUl/1U3WU 8VhkLgLHyOBjzeM6RBV1/xhHNDW0Nmf1nIWiSDfnlr+9DXcBkjNtHphuNPOnOzqqChFk qvxfI4yVDJ5SGFLySWGOaFIFoo0pKfOqlNUhzlRFD3EceoIu8hwcHLuZazZ9xsHxoqVA fCNCs6JoZX7tHwbxSfopM6wTICIz3RYyu6FMCUI4IAfphQfTQw2d/kyuWW8bX0lOJw8K vHkg2ByxJZDk+IoSTCXidwP+pYT7sNJQfHQfpvZp1pVVKuVwEM/3kmwhpvRYT+Y+Q1I1 hbiw== X-Gm-Message-State: AOAM531nCpMHmkp45sV0azS61fAnVucNRhxRhj4Vz+Po7xvSJtNis3jq ejU0sNGdu1AjVYc5m7hNLLwM0g== X-Google-Smtp-Source: ABdhPJx4KIUoOW/PH/F6nRR1r9ypFyVcdX77vc+p39mjpRhXmNWhqNLmTvgc7VPUhJxZiKvwMbiTEQ== X-Received: by 2002:a65:414a:0:b0:3ab:84c3:3beb with SMTP id x10-20020a65414a000000b003ab84c33bebmr1447018pgp.369.1650930266322; Mon, 25 Apr 2022 16:44:26 -0700 (PDT) Received: from laputa ([2400:4050:c3e1:100:1478:7fee:797:d232]) by smtp.gmail.com with ESMTPSA id d1-20020a17090a628100b001cd4989fec6sm440489pjj.18.2022.04.25.16.44.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Apr 2022 16:44:25 -0700 (PDT) Date: Tue, 26 Apr 2022 08:44:21 +0900 From: AKASHI Takahiro To: Heinrich Schuchardt Cc: masami.hiramatsu@linaro.org, u-boot@lists.denx.de, sjg@chromium.org, ilias.apalodimas@linaro.org, Tom Rini Subject: Re: [PATCH v5 00/12] efi_loader: more tightly integrate UEFI disks to driver model Message-ID: <20220425234421.GA35191@laputa> Mail-Followup-To: AKASHI Takahiro , Heinrich Schuchardt , masami.hiramatsu@linaro.org, u-boot@lists.denx.de, sjg@chromium.org, ilias.apalodimas@linaro.org, Tom Rini References: <20220419010517.47175-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean On Mon, Apr 25, 2022 at 10:43:44PM +0200, Heinrich Schuchardt wrote: > On 4/19/22 03:05, AKASHI Takahiro wrote: > > With this patch set[1] applied, UEFI subsystem maintains a list of its > > disk objects dynamically at runtime based on block device's probing. > > (See "issues" and "prerequisite" below.) > > > > [1] https://github.com/t-akashi/u-boot/tree/efi/dm_disk > > > > For instance, > > => dm tree > > Class Index Probed Driver Name > > ----------------------------------------------------------- > > root 0 [ + ] root_driver root_driver > > ... > > pci 0 [ + ] pci_generic_ecam |-- pcie@10000000 > > ... > > ahci 0 [ ] ahci_pci | |-- ahci_pci > > scsi 0 [ ] ahci_scsi | | `-- ahci_scsi > > usb 0 [ ] xhci_pci | `-- xhci_pci > > ... > > => efi devices > > Missing RNG device for EFI_RNG_PROTOCOL > > No EFI system partition > > Unable to find TPMv2 device > > Device Device Path > > ================ ==================== > > 000000013eee88d0 /VenHw(..) > > 000000013ffeb798 /VenHw(..)/Uart(0,0,D,D) > > 000000013eeeb810 /VenHw(..)/MAC(525252525252,1) > > => scsi rescan > > > With the series binding block devices after initializing the UEFI > sub-system works fine. Also unbinding is reflected in the EFI devices. > > But this series breaks UEFI compliance. I don't think so. > All block devices must be probed > before booting. This (not enumerating all the devices) is also true even before my patch. > Without this GRUB will not be able to read the boot > partition with vmlinuz and initrd. I'm not sure what you expect here, but is it enough to define "preboot" variables with any number of enumerating commands, like "scsi rescan", "usb start" and so on? # Again, this method can also be applied even without my patch. -Takahiro Akashi > Will you provide the missing patch? > > Best regards > > Heinrich