Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp964344iob; Fri, 13 May 2022 17:55:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyorFCutaRXzP9mz5iVQ2e15RAn4MvktyWD4Ilm6brEVpxraE0kK8SpNZO6HSI8DZvONlg8 X-Received: by 2002:a5d:6da4:0:b0:20c:6d76:cc54 with SMTP id u4-20020a5d6da4000000b0020c6d76cc54mr5647917wrs.317.1652489749365; Fri, 13 May 2022 17:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652489749; cv=none; d=google.com; s=arc-20160816; b=xy1+/IBGPBpHIUoxMBckyWCKkaQ372y2OK5bBaNAmI2gxBns5H+IiCriwgFZ3jSPot tRei13Fs1zRyVfDgJ6D2SB8XsbzLwqRHLDrucXAl6pNL5tKTUXXyH4bRqH02pwUYhb2o oa0msTej/rTRWd1AjbbrFMbJ/mANxOMAEdxOmXFzNYgDNGpm0x516wrpcWBOmNVZZKki 62kCl6GrSfY3eSxR49Ak3JaxH0ihxF+qVhSenyDGcax+5FDIOILxybujRAzKykzVfwiW kyFzzrsmVL2hSSuHlxEoYD1/fp654WQwZ1F0p4AjtSjHWjpXASl7ZVxPqVsJGrNhRVlo REIA== 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; bh=e9H56MVbYNXYrGzD66jJCscEFeLrkUzXZfO3K0yWIOs=; b=IFrcyWsIsPodvkeCUmY2T9K2q2J9l3/e0OIy3/NkrcEc59aSB1/D3ydvESO+nSN6/p PkgdkBCdQVNh3tOWdif6Mf3IMuDkIL4kNT2PnL7ONt7TH9Tan0hf9PFmaJWZ+iEgzEuJ KWILT3GVZGO+ymMWCByjpWYbrc0+rCq+SMb+pnlzMsgE0RHriw/jaowaC1bsIYk7CFKR afbfJt3Mdrm19ch2MXLpOP6BfI5YZ5kyT5EPEklYmaaB2btxI8GbB3UaxbPc41AvHM+P Sq1HPhWll5EPoRCqsDwUJ6lEFbrg8nyYk/RtECDMprAaEj45np+8kSnDgnLsg1v0+yAW CBNQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d3-20020a056000186300b00204107e0013si4672227wri.28.2022.05.13.17.55.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:55:49 -0700 (PDT) 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; 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DB7CC351C56; Fri, 13 May 2022 16:31:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383626AbiEMTdF (ORCPT + 99 others); Fri, 13 May 2022 15:33:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380583AbiEMTdE (ORCPT ); Fri, 13 May 2022 15:33:04 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A2805BE7B; Fri, 13 May 2022 12:33:01 -0700 (PDT) Received: from mail-yw1-f170.google.com ([209.85.128.170]) by mrelayeu.kundenserver.de (mreue109 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MV6G0-1nNaHd3SGk-00S9SR; Fri, 13 May 2022 21:33:00 +0200 Received: by mail-yw1-f170.google.com with SMTP id 00721157ae682-2ebf4b91212so100487807b3.8; Fri, 13 May 2022 12:32:59 -0700 (PDT) X-Gm-Message-State: AOAM533EJnvtWJNshrUMN/cMhiHTKD+qmQW0y38xtp7AymAdmJyKwRUF BChQ3yLjkZro08kZmNILqrvfUXCBv3IGlbPmdmo= X-Received: by 2002:a0d:fc83:0:b0:2e5:b0f4:c125 with SMTP id m125-20020a0dfc83000000b002e5b0f4c125mr7612521ywf.347.1652470378438; Fri, 13 May 2022 12:32:58 -0700 (PDT) MIME-Version: 1.0 References: <20220430090518.3127980-1-chenhuacai@loongson.cn> <20220430090518.3127980-21-chenhuacai@loongson.cn> In-Reply-To: From: Arnd Bergmann Date: Fri, 13 May 2022 21:32:41 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V9 20/24] LoongArch: Add efistub booting support To: Huacai Chen Cc: Arnd Bergmann , WANG Xuerui , Ard Biesheuvel , Huacai Chen , Andy Lutomirski , Thomas Gleixner , Peter Zijlstra , Andrew Morton , Jonathan Corbet , Linus Torvalds , linux-arch , "open list:DOCUMENTATION" , Linux Kernel Mailing List , Xuefeng Li , Yanteng Si , Guo Ren , Jiaxun Yang , Stephen Rothwell Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:sxjlWFQFhZs3joRNaNiPtLzwBQaw3DZiNtMZyNdZL4N9Nkjw+mE iy6k/NWrt1xZ9nSdoWCB1AIT/KW91SjYpgFeR6Lj7a9RXZnQZx/sAeR/BDUMHzX28hvOOHN l7m5VNIxPjWs5OKoNGqOw27BIBGQd1EHic9ZskKZGppT8OZW7B1VdUPQxMOkQzrXQjm+ZGg NorQQ2fUOehivtcs9Q85A== X-UI-Out-Filterresults: notjunk:1;V03:K0:IhdJcJuUJZY=:DKZDFjsDhyzTTZ4MolSQwL NP6YkDnm9jyTegRc22QX6EXUJO1De+OD3AHVRJrJRUbsbfb9Gr8QKRsiVN980aMCaQ+Gf4nY8 TmG/AqKTGtO0RumJaO+/Hz7bOizpP+cxJuPTSCpdkErMFoBcEOFe0bMtABYA+RWPZY053Rzm1 fRcSTPhUgSqZXpSDhGdwJBJo0frncIREpsmQAz92igcHQlHiR+ggHeDMepLi5Iz1RffiQdm99 TlOEYoP0APl2FxYsRkVGsVrVwrauth5RFl9pgJlmO8vwH95tmPkrkNsoHX4GCCUfBd87Gh5Cd 96x6KCowIHrTVv/PWkYRr5XK2z0iEq48Kz51lv5I90NfxP/yx7pgssHtgCpRRigqEPQuofT3a utfOCV75CzBwhBnhluz40PMrqIEaWFYGurBnp/wk8mi2MQk8rk3FYDSrOc/LmGwa5NSJ/Qhaj g9uKAS2ShijASCArBk436/0lEIuqO+i+dWhv2Bup5IbGiPQSIYMof6HiS+hkD5UUhcUSRDNh3 FS4OV4GROLbRf0P+tDlKtrbQ9j5/nOoJ/VCB5ub6oYgn1LOXZz2i3RBatdiSdTQLZQHQFOIbN 3XxnU0Sb9zezkrwwFuh2OlVoJipprS7YFrGpBZlRg91Tdvf1sxniblOURmL4KQt5lORs0Robh M0TMOHvH2rYsVwEOnxs3gJLnCBZuyPbJW0kbSeqD1Y9Qx/kYztgewv/O8HwB/ULxgrBI= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, 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 Fri, May 6, 2022 at 3:20 PM Huacai Chen wrote: > On Fri, May 6, 2022 at 7:41 PM Arnd Bergmann wrote: > > > > Agreed. I think there can be limited compatibility support for old > > firmware though, at least to help with the migration: As long as > > the interface between grub and linux has a proper definition following > > the normal UEFI standard, there can be both a modern grub > > that is booted using the same protocol and a backwards-compatible > > grub that can be booted from existing firmware and that is able > > to boot the kernel. > > > > The compatibility version of grub can be retired after the firmware > > itself is able to speak the normal boot protocol. > After an internal discussion, we decide to use the generic stub, and > we have a draft version of generic stub now[1]. I hope V10 can solve > all problems. :) > [1] https://github.com/loongson/linux/tree/loongarch-next-generic-stub Can you post v19 to the list? As we have resolved the question on clone() now (I hope), and you have a prototype for the boot protocol, it sounds like this can make it into v5.19 after all, but we need to be sure that the remaining points that Xuerui Wang and Ard Biesheuvel raised are all addressed, and there is not much time before the merge window. I have built a gcc-12.1 based toochain at https://mirrors.edge.kernel.org/pub/tools/crosstool/ that now includes loongarch64 suport, please point to that in the cover letter for v10 in case someone wants to start test building. I will be travelling next week, and won't be able to pull your tree into the asm-generic tree during that time, as I had originally planned. However, you can ask Stephen Rothwell (added to Cc) to add your git tree to linux-next once you think that you have addressed all of the remaining review comments, and posted the same version to the list. This will allow others to more easily test your tree in combination with the other work that has been queued for the 5.19 release. If there are no new show-stoppers, I can help you coordinate the pull request during the merge window. Arnd