Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1274918pxb; Thu, 24 Mar 2022 16:39:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTVIUrx1fzecGdFKmN/bFL+1ODpSAdT6PXMblAkztjVpNaMPoJa0xybiuGF95/7C7bga2w X-Received: by 2002:a17:902:6a86:b0:151:f1c5:2fa3 with SMTP id n6-20020a1709026a8600b00151f1c52fa3mr8499644plk.77.1648165180557; Thu, 24 Mar 2022 16:39:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648165180; cv=none; d=google.com; s=arc-20160816; b=pN6RT0emkGiXnjYcLQi9jtsKj8axF42r2uK3M7q23//9nu8YlIYixNV8KpKOr+ekRA aDkHFGZadrAUmT2M2Y6Q+upcvb4Ty0XRQc96xfgPMV6JwiRq1/tkbpmrwDADZg0BFISn X0RZwSewDIAP8aVmTkcZu1owimj8zLTr+UuzV0Nj9yL1h++yefide/UhX1CAc+oftYA8 d1hLUYaU/artvWDpKu2xTPcjkQboDihDpTrmAUkQ53xKeQCu4+08iVVAI9F8mBW21ylC qdw3w/DP3itysb1ObWpxVaMGpbuLurOXFnkldQX6bwY0S6G+nQwiONbWW2FdtrgW5dvc MPJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+GkM0EsIpmPEs+2fEuWOpfnSs20UxwWfYqecrAXhXLY=; b=pPYYiA0lHczVqJC1qK5UAPDqjxySRdpAO0Rf1mce0uZMiDqvq+/51OJq78Ix9TcXvX JFtApaZnFU/KVJQF32HVdWCAnTCPkKXBAmbsxbIIi1aW5u0+H7dNO0wBkmUfODOBvfad zhGl2uGFNXT6oCCR5PkXdV9h2mD5A2b9/W627Pp7OSzxdmK53mqddHZPzWjH9bpSV+MP gQg3lKxbM4y/jWn8THoDZ5yvYE44IQJlg5lw+NzXSPWY61RXRoA+WirPrgpye9OTS3ol lX3eBhhtcLdLKiA6pVExqcDUxOYU4ikPgamvHbByOK17jw/bN7u32V2m9nYexyhjagIP JA3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=QF3UUYiC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020a170902690600b00153b2d1654bsi633533plk.339.2022.03.24.16.39.26; Thu, 24 Mar 2022 16:39:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=QF3UUYiC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245411AbiCWQ3a (ORCPT + 99 others); Wed, 23 Mar 2022 12:29:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242091AbiCWQ32 (ORCPT ); Wed, 23 Mar 2022 12:29:28 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 912CD17A82 for ; Wed, 23 Mar 2022 09:27:58 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id mj15-20020a17090b368f00b001c637aa358eso6942558pjb.0 for ; Wed, 23 Mar 2022 09:27:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=+GkM0EsIpmPEs+2fEuWOpfnSs20UxwWfYqecrAXhXLY=; b=QF3UUYiCGO0ViS4CuMlDVBr4REmIM+Fg/874L9K8EsFLMZEcwyY66S3OiF/Sn8CmlN w510dTQHFNL79JLWdyeXLg8qwMWPV12BBrShW3e+KTsIvOcs7iMKTFMgTCnXuhFctgsS tKyyhZVL0h9ZmrSWpJWI0iaKhHoBy6Lm3tz6Sm2YaOSb8VWG4jZA3qjllYGm8Xbd27/7 dBKb36Brw6auML+vARie2pdIEzTRmZGcvkaX6150GSjin1Qh8gbhhGmrpIUKwRCFsaJ1 GvVRKp2/SejAxChhSj+W7RAmlSX+Mhrz3KFmuqOL5H6+dX8pNuZb/XH+oM6wM3wzWg0c 9CKA== 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:references :mime-version:content-disposition:in-reply-to; bh=+GkM0EsIpmPEs+2fEuWOpfnSs20UxwWfYqecrAXhXLY=; b=ig218wvWaWLJuKpr2rm52quljwEtu0Lue8yysCEHmgMEUyv7sdbUtNsEaJP0AF+x5j hgrc6Axey4AD36QBfGRzThMuqwM09N3C/27nbZzBDIXqg9s8tYjnC382d9ePVwp29Py6 27saXAEgEvKEAqyAIb08iGRYYn3JFsKgV30SGbxp3en1A9qQ9MKiZAWohDjq6KjCRMtv GXkeYbfkrGG3hcZQTqFB2E1CIFhmAO/8Sb0QtuDRe5ENfO/rVKv9UZxnmnB86qgWOczU dbFLBCho94YGfdtSbib8YPqArXn6uxSbvXfVqcG2k40TyxPtOXi7NkcuRgIyA7tZMhUF cojg== X-Gm-Message-State: AOAM533P61fbAbBTJxAxHkQIFQtSn0zk2uivr59vDrdTPCqLoSzl2xqw +WcFqbyZ3OEIaSItqmJeDTIBCg== X-Received: by 2002:a17:902:d48d:b0:153:a517:6ff2 with SMTP id c13-20020a170902d48d00b00153a5176ff2mr756437plg.141.1648052878061; Wed, 23 Mar 2022 09:27:58 -0700 (PDT) Received: from sunil-laptop ([49.206.7.17]) by smtp.gmail.com with ESMTPSA id r1-20020a63b101000000b00380989bcb1bsm289959pgf.5.2022.03.23.09.27.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Mar 2022 09:27:57 -0700 (PDT) Date: Wed, 23 Mar 2022 21:57:48 +0530 From: Sunil V L To: Palmer Dabbelt Cc: ardb@kernel.org, Paul Walmsley , aou@eecs.berkeley.edu, heinrich.schuchardt@canonical.com, Atish Patra , apatel@ventanamicro.com, abner.chang@hpe.com, jrtc27@jrtc27.com, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [RFC PATCH V2 0/1] RISCV_EFI_BOOT_PROTOCOL support in linux Message-ID: <20220323162748.GA55066@sunil-laptop> References: <20220303145944.307321-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 22, 2022 at 06:32:22PM -0700, Palmer Dabbelt wrote: > On Thu, 03 Mar 2022 06:59:43 PST (-0800), sunilvl@ventanamicro.com wrote: > > This patch adds support for getting the boot hart ID using new > > RISCV_EFI_BOOT_PROTOCOL in linux efi stub. While there is an existing > > solution of passing the boot hart ID through Device Tree, it doesn't work > > for ACPI. Hence an EFI protocol protocol is recommended which works for > > both DT and ACPI based platforms. > > > > The latest draft spec of this new protocol is available at > > https://github.com/riscv-non-isa/riscv-uefi/releases/download/1.0-rc2/RISCV_UEFI_PROTOCOL-spec.pdf > > This looks fine to me, but we need the spec folk to commit to this being a > stable interface before we can start using it. Historically that's been > "frozen" for RISC-V specs, but I'm not sure how that all fits together in > EFI land as IIUC we also have to follow the UEFI forum's process. Last I > checked you guys understood that better than I did, so Thank you Palmer. The specification is in frozen state now. http://lists.infradead.org/pipermail/linux-riscv/2022-March/013431.html. Thanks Sunil > > Acked-by: Palmer Dabbelt # pending spec freeze > > I had a minor comment about the error message, as well. > > Thanks! > > > This linux ptach can be found in: > > riscv_boot_protocol_rfc_v2 branch at > > https://github.com/vlsunil/linux.git > > > > This is tested in qemu with u-boot 2022.04.rc3. > > > > Changes since V1: > > - Rebased to get the "Fix get_boot_hartid_from_fdt() return value" > > patch > > - Removed mixed_mode member > > - Separated return value and status. > > > > Sunil V L (1): > > riscv/efi_stub: Add support for RISCV_EFI_BOOT_PROTOCOL > > > > drivers/firmware/efi/libstub/efistub.h | 7 ++++++ > > drivers/firmware/efi/libstub/riscv-stub.c | 29 +++++++++++++++++++---- > > include/linux/efi.h | 1 + > > 3 files changed, 32 insertions(+), 5 deletions(-)