Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp795558pxb; Thu, 17 Feb 2022 15:08:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzm5czNHYAyg4UNsnN8f6C8Ph/pL/bnNuQ/b1pnPV3vwF6kQgnFqCCLLpuBwkBQuilXhW+p X-Received: by 2002:a65:53cb:0:b0:343:8e85:2d81 with SMTP id z11-20020a6553cb000000b003438e852d81mr4174887pgr.44.1645139316218; Thu, 17 Feb 2022 15:08:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645139316; cv=none; d=google.com; s=arc-20160816; b=yg/vaJvrq8detx3/BgUruax/w1aoguFIKZZqKuZHaY3l9V7xnfWBqAfc2J5zaoiXMz WKwLEguveF8Os4arMDSapYwmNlz9M2g210MfGEYPLmArUTn88F0F4K/lrhC5LRJmHeA1 OQpW9xjyc9a/rUXzSxZvVDPkDglmS258amawpco7TejurCyJUjbPiZLGpR/dD/dWRJzN gK1Gh9N1uradh1+MWoPKskxKvA/hv91Z5+U3u9wgCP1rT2Q/LEDvIykwhMYBtvfGc5ed qCeDbpWB+iOn68IVTYzn5Z6rrX3QrAUaWbL9rp1+tOGXzW495Lt44kw9IgYNE7xeE8yG ut6w== 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=oaFgdGApNlDvtZyiIfo82SRxAus8TF8HrqjXlvq9h8Y=; b=S4Mq5TOHsmA1iC71f7TFJ31T0Y0by+bBRzVkqLm2o7eS59fr89A7zkY9Bta4dg8s+P dWThqKSPvlgWJ3eoLqGkRGT2nBBdLlIsCmnVWl6ZcOu7TgHh1aapCAfLNhRvkrHQDLRT joRH+ioL8lFNn2uzfJtiW0xAxl2tkt0mx0SgIGxJi0H86dV7xzHYS4+6URjTockPh/ED xskb7tK8QAfAP5y1ixEdskknlfm8x65hhtUNAxcOH29xCXZEPJm/Tpio0wqB26K8ehAN mfDptd3OiUzt28T+136H39oMYgvxcLDdGVwV5nR3H++dtLk0dDxejW8NPL4PDsgT2rBv ZACA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@atishpatra.org header.s=google header.b=SuxQdh+t; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k195si9268142pgc.159.2022.02.17.15.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 15:08:36 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@atishpatra.org header.s=google header.b=SuxQdh+t; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C9094260B; Thu, 17 Feb 2022 15:01:34 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245381AbiBQTrW (ORCPT + 99 others); Thu, 17 Feb 2022 14:47:22 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:45012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231135AbiBQTrU (ORCPT ); Thu, 17 Feb 2022 14:47:20 -0500 Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 825A326549 for ; Thu, 17 Feb 2022 11:47:03 -0800 (PST) Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-2d6923bca1aso34913267b3.9 for ; Thu, 17 Feb 2022 11:47:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atishpatra.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oaFgdGApNlDvtZyiIfo82SRxAus8TF8HrqjXlvq9h8Y=; b=SuxQdh+t5+fvwh5ODRCj4O0o5dFuhnXt8wycvDS/oc9U/RxDeBZ3bX5ZeesGn6+oJY CgPo+r2zBBVKinwJc2jONuwupZkCPpbAswzez7svHTfufRM0UpnHc0JQysuQUpfg39SP AhXLqSKJ8RK3c/iQgxWFs5sMqgai7dSUoqMso= 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=oaFgdGApNlDvtZyiIfo82SRxAus8TF8HrqjXlvq9h8Y=; b=ropDwHzriT53P2XN4BMshlzuatgQ5ccSa0knnRtXmxtbhj4ChyS5Yp/CNGTKdNV7uT igPkf0HKpqWkc2CaPrN+k50YwVNWpeyTPS6bGcjTCLtqKi65bmYMoEJfaLBb2DFQ5AAn sNHrfe4ElVS50eZZ/xfdYk2scuYEszfgJupjD6pPfiuSHuCETvPs/aqxhjh5IqhcomHv S2GpokAZufg8pWJY0+dyEyEdZ58EjxKKzzb5TB6pLWx3nt6uCt7BJmGnxVNZoHV/XCwy 6IHtLxgs/sISpVOpA/FTcShL1rKUFv5IV3T6dehTUehFtp19Wp9AL1vUVO0pQ29Nh45Q +b5Q== X-Gm-Message-State: AOAM530jTQ3uqheFP7sIOehNw0s2I86YuG9Yy+wL6zGbkEbhXXmOco5M ekwIHBDqzcUBn/E+ZaFp2V6bKL7EQi6CinPBuBmh X-Received: by 2002:a81:924a:0:b0:2d6:b588:bd0e with SMTP id j71-20020a81924a000000b002d6b588bd0emr2097858ywg.402.1645127222718; Thu, 17 Feb 2022 11:47:02 -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: <20220217105450.GA20183@sunil-ThinkPad-T490> From: Atish Patra Date: Thu, 17 Feb 2022 11:46:52 -0800 Message-ID: Subject: Re: [PATCH] riscv/efi_stub: Fix get_boot_hartid_from_fdt() return value To: Sunil V L Cc: Andreas Schwab , Heinrich Schuchardt , Ard Biesheuvel , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-efi , linux-riscv , "linux-kernel@vger.kernel.org List" , Anup Patel , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, 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. > > Thanks > Sunil > > > > -- > > Andreas Schwab, schwab@linux-m68k.org > > GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 > > "And now for something completely different." -- Regards, Atish