Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp838266pxb; Thu, 17 Feb 2022 16:13:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCzOEgG6EjO5kpVWn+Ds5uHTiyqPVtwgqWFX9tDcKStbkufkGn9z1Wi/XQYA26YBtELgQn X-Received: by 2002:a17:902:8306:b0:14d:ca2a:192e with SMTP id bd6-20020a170902830600b0014dca2a192emr5086908plb.47.1645143236940; Thu, 17 Feb 2022 16:13:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645143236; cv=none; d=google.com; s=arc-20160816; b=FQ5mhW3E70h+IRMZ5toxSnowefWgWepNnF0EwH/mqYyuDOdG9b6UtwTzdMK5v078ch FN4Da2e9ZOe4iApL482Oyqeb/jI0cf+3z5kAdTsnNAcEfChZ9lRDMR2JKNJQ96wOe9rd SwS1LXkJMFEgnG/yDJar4coLWCQNK3jTnZkN397a1vFQZAa08M2zE8P0uUjk+DYEO18A PVHJHMZhUvPWSTMHbcqWbN5KZGisLo7tF9nqT/EjMWId8gMuP5wfoT2rGSqfPuuj4f23 u/cBClmj14pWznmhFg9mn5+GznxPExOUmDIEYvCaRCjAS9pRzLAhaxIiafRT9Prj+jFP Ys/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ZhQxF0tPXMlYqWyHKU+1EFwIzt/X85cBfMSyiNtLNwc=; b=eSCw+NsKkftkawzGy7EjU830b/M0c0XejWPZcevx3BkUnZnBXpJHXBUMvEKS9ot/bo 4UNY1PXPUK0qRy48H2MKQCyChTOuDIBnIDChvZJ2SfyT1RYtAndURm8KYpwgbbB8m7zH WCIj0212uIZr5RNli4VpUd8aq8vXezVBLaq3hrmcFLXaWpgmiqcoeykrVcj41M9FEHRs 8DJofLS6czzCD2PfAgC2QJmspjNOihjh9f/8S9vd1zuJB2Rc02UyDF303VmI6N2XEXOa WQK2AqZ5LAP/41Uj/LYhJShhhJSCiZrKtpPCMgs8KnHm/VWa25msO4/f12nf7+BEYq1b LO9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N3q7ZHzE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x2si3330088plv.202.2022.02.17.16.13.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 16:13:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N3q7ZHzE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A9C53350B79; Thu, 17 Feb 2022 15:38:49 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244039AbiBQTxB (ORCPT + 99 others); Thu, 17 Feb 2022 14:53:01 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:43154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231487AbiBQTw7 (ORCPT ); Thu, 17 Feb 2022 14:52:59 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3749F12E150; Thu, 17 Feb 2022 11:52:45 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CC6CC61D6F; Thu, 17 Feb 2022 19:52:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 438EDC340F5; Thu, 17 Feb 2022 19:52:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645127564; bh=ZhQxF0tPXMlYqWyHKU+1EFwIzt/X85cBfMSyiNtLNwc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=N3q7ZHzEir/9IK/PGW+3dMKawSKM3KHTVB0REMnWpIEazeg1BTxuWepTpRprIRKPI XmGpqTE40xrLD8tJkBKCJxDJFOHcr6iYvTnjlBsBBXMj3UbckzYkxN/7wU5Ygx5mrk ETE3YbdvQqT8R06yoKVRu6kMzrbvehESqHsLVNuR42qsb7LAj9NnFT2oA+kvsCETGt ox0NZV2AZw2DzmW07UuMa2RituDxee7maP037UT/LVLYS5cSaVkI4fklqI2IhpP5+V klEOQqAFRD7lzuSKdAr9w41EjgBa5tjoYjjyu/4ZNQJCNIfaK81rkYX9NflqCMGKSz ykTJRqwak3lzA== Received: by mail-wm1-f53.google.com with SMTP id k127-20020a1ca185000000b0037bc4be8713so7014976wme.3; Thu, 17 Feb 2022 11:52:44 -0800 (PST) X-Gm-Message-State: AOAM532172Lvk3f61e6H4Kx+ki0RC9qGprFMPFkmCPjvClzyy/VJixoa VlI5RHr/tjrzpsbppEDs3iZozS4McH4D8f4BAhk= X-Received: by 2002:a05:600c:3d06:b0:37b:a5ea:a61b with SMTP id bh6-20020a05600c3d0600b0037ba5eaa61bmr4183906wmb.32.1645127562557; Thu, 17 Feb 2022 11:52:42 -0800 (PST) MIME-Version: 1.0 References: <20220128045004.4843-1-sunilvl@ventanamicro.com> <877d9xx14f.fsf@igel.home> <9cd9f149-d2ea-eb55-b774-8d817b9b6cc9@gmx.de> <87tud1vjn4.fsf@igel.home> <49d3aeab-1fe6-8d17-bc83-78f3555109c7@gmx.de> <87pmnpvh66.fsf@igel.home> <20220217105450.GA20183@sunil-ThinkPad-T490> In-Reply-To: From: Ard Biesheuvel Date: Thu, 17 Feb 2022 20:52:30 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] riscv/efi_stub: Fix get_boot_hartid_from_fdt() return value To: Atish Patra Cc: Sunil V L , Andreas Schwab , Heinrich Schuchardt , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-efi , linux-riscv , "linux-kernel@vger.kernel.org List" , Anup Patel , "# 3.4.x" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Thu, 17 Feb 2022 at 20:47, Atish Patra wrote: > > On Thu, Feb 17, 2022 at 2:55 AM Sunil V L wrote: > > > > On Mon, Feb 14, 2022 at 12:09:05PM +0100, Andreas Schwab wrote: > > > On Feb 14 2022, Heinrich Schuchardt wrote: > > > > > > > On 2/14/22 11:15, Andreas Schwab wrote: > > > >> On Feb 14 2022, Heinrich Schuchardt wrote: > > > >> > > > >>> set_boot_hartid() implies that the caller can change the boot hart ID. > > > >>> As this is not a case this name obviously would be a misnomer. > > > >> > > > >> initialize_boot_hartid would fit better. > > > >> > > > > > > > > Another misnomer. > > > > > > But the best fit so far. > > > > Can we use the name init_boot_hartid_from_fdt()? While I understand > > Heinrich's point, I think since we have "_from_fdt", this may be fine. > > > > init_boot_hartid_from_fdt or parse_boot_hartid_from_fdt > > are definitely much better than the current one. > > > I didn't rename the function since it was not recommended to do multiple > > things in a "Fix" patch. If we can consider this as not very serious > > issue which needs a "Fix" patch, then I can combine this patch with the > > RISCV_EFI_BOOT_PROTOCOL patch series. > > > > IMHO, it is okay to include this in the RISCV_EFI_BOOT_PROTOCOL series > as we are not going to have hartid U32_MAX in a few months :) > > > > Hi Ard, let me know your suggestion on how to proceed with this. > > The patch is fine as it is. I agree that naming is important, but for a helper function that is only used a single time right in the same source file, it doesn't matter that much. I have queued this up now. Thanks, Ard.