Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4738895iob; Sun, 8 May 2022 23:50:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHqsmdGMqkYUETUJIwGXDiaEFsr3JjMkBcI+WxksfO9vCrEBOwXbEkL51g4Yq35W+Bi7YV X-Received: by 2002:a17:90b:3a83:b0:1dc:b7d4:8395 with SMTP id om3-20020a17090b3a8300b001dcb7d48395mr16810350pjb.173.1652079006116; Sun, 08 May 2022 23:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652079006; cv=none; d=google.com; s=arc-20160816; b=tEgto13HTgtG4TWkioi5dEgf0oSV/oB5J6rUbShqQ5Eh8Ah7jWdCRsJqDllTg5jIpS dMgu4eVBAS4MToZ1jG5/keh/uy/CpN5GNCVol05ppvM9OltKdphsA91agR8jQNza7/1G oPjRRlzyHOlY9QcVd9igWqDF41udB3y7QOoHmFrtsK99lKvY5hlzkWr9/HLT0PTIaQct Wud8OEG8M5N6qLbaifNIAsEvmSyxvgmggSIjzLojEA2OUUpy7Xkm1ahG+3+mfkWRNTO4 Yk4UcJz+Dxx5Z7H2ZLXl8LdAczd5CH5RlQe3SLFFeGdSYFKB9D4fU75xaCLIjuFbuYFm 2DzA== 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=XIUbdmCqHTMFl9wfIoR/CzQ0auj0+SIE4ZqbMMx4IKM=; b=NRSsq5H3flQlpQIF3hRatN+E5mVRnmSaDyy+wRewQA7acsJ9XXN1clki4raRJf7kkd 6gA//f00qGbro8kCgld2fdaiGEQaAGtcmRn5W6fMqjm4n2N+/M0vIXGlzoxbqI8DiBLG kdtC0imdfhdjHH2HvmoVNgQiRa0pQ/N0RxL1ff/MAwI+DHs4fD7YMy5i1YUFLrVrMA/J 0NKRnK6s0Wko8AkvpHJMiCZOm/sqN1TfWwAySKHFjR/npDCIp9CUPUYu133FI7EYFeh9 2rCzFiySbBegfK0cQOjWfJyYS7EXVhH6+GrjxsCDn3npbU3Et4waA5LL407ts8DWuKHW 45Ig== 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 i3-20020a635843000000b003ab1d7664e8si13194942pgm.66.2022.05.08.23.50.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 23:50:06 -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 605DC37AB6; Sun, 8 May 2022 23:45:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391455AbiEFLpo (ORCPT + 99 others); Fri, 6 May 2022 07:45:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1391464AbiEFLpn (ORCPT ); Fri, 6 May 2022 07:45:43 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 146DF64708; Fri, 6 May 2022 04:41:56 -0700 (PDT) Received: from mail-yw1-f170.google.com ([209.85.128.170]) by mrelayeu.kundenserver.de (mreue010 [213.165.67.97]) with ESMTPSA (Nemesis) id 1M7aqD-1njNRn3nA5-0086j6; Fri, 06 May 2022 13:41:55 +0200 Received: by mail-yw1-f170.google.com with SMTP id 00721157ae682-2f7d19cac0bso77892637b3.13; Fri, 06 May 2022 04:41:54 -0700 (PDT) X-Gm-Message-State: AOAM531Sjh7Q45UDmZ/dNzvtvCSOV36srmPmVSs1ZzLT/GQ/8p7NsjAU gZeYQxQPAejOjygOBOJnNyoZuWeMWkbGlVwPzx4= X-Received: by 2002:a81:2305:0:b0:2f7:dadb:2162 with SMTP id j5-20020a812305000000b002f7dadb2162mr2092280ywj.42.1651837313474; Fri, 06 May 2022 04:41:53 -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, 6 May 2022 13:41:36 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V9 20/24] LoongArch: Add efistub booting support To: WANG Xuerui Cc: Ard Biesheuvel , Huacai Chen , Arnd Bergmann , Huacai Chen , Andy Lutomirski , Thomas Gleixner , Peter Zijlstra , Andrew Morton , David Airlie , Jonathan Corbet , Linus Torvalds , linux-arch , "open list:DOCUMENTATION" , Linux Kernel Mailing List , Xuefeng Li , Yanteng Si , Guo Ren , Jiaxun Yang Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:3kKuw8Z9zKIZX8wYjoygIzYKmuNhyVykuNFk32CspPPPKzWZaZ/ vZz7HsCc6h4T+l8r2NDeBOt0mALrlv0pJNaEPm0fbFc5DN0Ec7tlLl6RBAmffvmFvZ4jqhY ep3CKqyWVhpaOBxUfAN1ajsW0ByffWC/0uw1JFwQSZDdMwUOJ5tTjyALIe2YfdXT6xdJtSL hvQAIVNpZGylF2FsfVT7A== X-UI-Out-Filterresults: notjunk:1;V03:K0:NslH1lIbwxo=:Cnfd57ShCXlhhGYkGMK+HD HoAru0SImj9csa9RXP9VJwG5mzMN4eqOF54dXYFgY3IFkfLQ4UnDM/SKh/viKP86iw0wTRDwS KporuMOFJUZfO+B7qNo4LgMimx5xiEMhzpu3wV1lHoGMISrdxmCHm081LhpB3D0h1qdELPQ5a SxcwQqPDXG1NVoC06S5cIbLdR7JUhoIzZ3Jf59wRiRCAb3TMAuHhqK+yBFv8XBf6egf10tvU4 2/etMN6cKuVEA28aarV6mul/mEvMrIfy9DbUJzjutRoVJ3r00ZFCtjBbR608YBwBtUV/IkRt5 Hj+ZkxhrFDNR1IXr/azix0XQdRix2yQWqXhlk8GJK57pvygLkoFioGAjRHwBRH6f5upkepGg+ gttEH/I+nX0S8GiXy7u7MkmWLEPkLyycGNMipAUzbfu+H0c4u9jNO9UG1Oq7LDOKXO2GcJ5iu SjM4jkDknL5HrzlxHZNLb2ZSkx0b2bjDCps30BduYiJEPMXfi+psROiR5kvGQGgg63/CJgD/Q gP1wElCblVptrpiEYwDkn+7JLj1SoSPosCVyBi8DkJLeg+ilM1BoqEQn4QANuMVymH2O3oSuP eNz0giC31VdwElnGFOC5DqGocUi6uPPozbWFMSn3GgiTc4iLXmp68gpjGOOR1s8eMo9AXO1DL s1pJk2EKyYHKVOM7RxyH8H5XZ/SJxH69/fB4itmo02kkCgKsK83v98EKWjs91I/+swLY= 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 1:26 PM WANG Xuerui wrote: > On 5/6/22 16:14, Ard Biesheuvel wrote: > Or is there compatibility at all? > > It turns out that this port is already incompatible with shipped > systems, in other ways, at least since the March revision or so. I think we can treat user space compatibility separately from firmware compatibility. > So, in effect, this port is starting from scratch, and taking the chance > to fix early mistakes and oversights all over; hence my opinion is, > better do the Right Thing (tm) and give the generic codepath a chance. > > For the Loongson devs: at least, declare the struct boot_params flow > deprecated from day one, then work to eliminate it from future products, > if you really don't want to delay merging even further (it's already > unlikely to land in 5.19, given the discussion happening in LKML [3]). > It's not embarrassing to admit mistakes; we all make mistakes, and > what's important is to learn from them so we don't collectively repeat > ourselves. 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. Arnd