Received: by 2002:a19:651b:0:0:0:0:0 with SMTP id z27csp841607lfb; Fri, 13 May 2022 21:29:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziaOIl7hRR1ENSnZBTrcyP6WwzfZL5SEk62LMdZA5+1V7SyopYb/JTZVR/IWn46FtdOLUG X-Received: by 2002:a05:600c:1906:b0:394:5365:6720 with SMTP id j6-20020a05600c190600b0039453656720mr17752132wmq.102.1652502550518; Fri, 13 May 2022 21:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652502550; cv=none; d=google.com; s=arc-20160816; b=AjUk4hBtc1uQQPnaCJ3IsdOKv9200MOB5Sq0zDXhKXiqONS4bOigokiidwaIJvK6Ab g7Uz97/jfEjk9IcRuxNNsyoiSTIXrNwZRiSTs+uOsYF18r75AgNVEpXccVXg30NyENAo yHXHUe7PZto4M+BBDgTJbDIEnXM2t79GFjbgspIzIhz3S+KVB81mjkUAT+2gdN5KxQZl Rmaug9hICOAaapdrSas7gl2R7Btfk9wFRHmI7oTdhTYlCETNaKN2Wg+VPPa7PDTw6P/x YG9v7L7P39oFH+FqOwJBp7Qh6eMIooa4w5XV1RUlhtX3fiRl1gXyA8Fvgz+6pSfuHdYT OiKA== 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=WNRFHelHtxBF0rEo2GPFsA8KruY7+GZmvF5x2wLcg6c=; b=VEJTDhnaNV+snWBRfRJjx2HDxEuOXbZ/vPI+JK3G98t48AQOaXvG4IyP2XNqHMVRiE TbTDTbbyMqSnVIlUczz7rPx0boSv0HkFWQm0gCRzZDaPMgZfKnNYyvPRsFkRiCEVdfSV BtWIfEm/RPB53H0zBX5oWNzQAyJZfYiWgZwatWSthxtRQAatkAXambT3PKIM8IbGqFKv O3T3+J1M5P4vWfFKOFS8Ournj96SIPK+Xl5hMN2kioOSpuCRwHeYZ5QdjHqFyJjOyoqN L/8x8+htMoMibUpSzloLx2F3KGr5mXLToFfJ70IF2txnOLpoYzpXKZi58l+CZmYBjp9P 66Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GRw4EkYA; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n13-20020a7bc5cd000000b0039425a4df64si6945115wmk.111.2022.05.13.21.29.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 21:29:10 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GRw4EkYA; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D4194326E4D; Fri, 13 May 2022 19:56:38 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231580AbiENC43 (ORCPT + 99 others); Fri, 13 May 2022 22:56:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230449AbiENCzu (ORCPT ); Fri, 13 May 2022 22:55:50 -0400 Received: from mail-vs1-xe33.google.com (mail-vs1-xe33.google.com [IPv6:2607:f8b0:4864:20::e33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94CCF30D651; Fri, 13 May 2022 19:27:31 -0700 (PDT) Received: by mail-vs1-xe33.google.com with SMTP id e19so10147476vsu.12; Fri, 13 May 2022 19:27:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WNRFHelHtxBF0rEo2GPFsA8KruY7+GZmvF5x2wLcg6c=; b=GRw4EkYAQBItrod987bW6HWwYi4wC/Q2rn4j1WkpUaozWALaqNs0fx7L3bhVgU5g/7 suPSrlyvUV7JqhXrTW8orF6kteob+hoX1YJ78cE8fAg3ldRW+O1Pk3s0tuz4ZGceaPLU cxPc86dtmB74v09B7k1SC6vKuOSAzgSsUpuS61YrGhZRIENDnXidU+jHRCOX3GPD8Zvv 6Jtcf4Z6esWCmzetzCr+xZOmsfQ05/YZDbDTim4OpkeHCbZBdbN0zPjMR4ukAa+0+owR nBAYAfMD7MedLHvRfkC6xHfPjMMhJwOM8DcqtsaW3UPIcuBXmzbj4rUqfXeMtgpCegdu BfwQ== 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=WNRFHelHtxBF0rEo2GPFsA8KruY7+GZmvF5x2wLcg6c=; b=hPXn02UsQmV1YEuOlpqXaf2bsRAzPnLaDGlL4ofCtt3O6Tbi3HggGzo6/3tt7hxAGb d8wV794/1E0Yx/RPfzD4tqfKeEEk+G5kfzKnbvnte/mpdBKXdkujt+BVSB2kPU12P7tb z1/0AFwnPmrCox+/wJ+HpiVtngwZfq4rVC+KLqRqusb99IypCiaSfsNnf2aZ+sRhwXYk tH+ev9jaVK1ebYkLpBUCy/5fv4hqVRkGIs0/0OAClKYBlELayMaEyHsaggMSCr28lred y6hDULjDiSJ6kPlJWvYVcPiVnUPTWyimK+Cx4ukXmdlehWgWF6MYauMmP0W2FRY4HGPd S5Nw== X-Gm-Message-State: AOAM530nPCJFPBcrmmu3Ayov8NPcp+qf7JZ+U2dDLjd8vFRLQiSWWxme 1jP/U2sSocbUBZMLp0JOfkbgWY4cn3RvJXbP7kk= X-Received: by 2002:a67:ea4f:0:b0:328:1db4:d85c with SMTP id r15-20020a67ea4f000000b003281db4d85cmr3166447vso.20.1652495250714; Fri, 13 May 2022 19:27:30 -0700 (PDT) MIME-Version: 1.0 References: <20220430090518.3127980-1-chenhuacai@loongson.cn> <20220430090518.3127980-21-chenhuacai@loongson.cn> In-Reply-To: From: Huacai Chen Date: Sat, 14 May 2022 10:27:21 +0800 Message-ID: Subject: Re: [PATCH V9 20/24] LoongArch: Add efistub booting support To: Arnd Bergmann Cc: 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-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 Hi, Arnd, On Sat, May 14, 2022 at 3:33 AM Arnd Bergmann wrote: > > 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. > OK, thanks, I will send a new version today. Huacai > 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