Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4832896iob; Mon, 9 May 2022 02:42:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZAWpxZm8efd8Mzp6CghT5tsnBTaRXdP9r6xX7Z3d9bnJ0Z5mFgwOTDijlsaRsTm751ToW X-Received: by 2002:a17:902:f605:b0:14f:5d75:4fb0 with SMTP id n5-20020a170902f60500b0014f5d754fb0mr15535553plg.101.1652089375494; Mon, 09 May 2022 02:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652089375; cv=none; d=google.com; s=arc-20160816; b=WynnrNC4nd9aWFQXLS9WmJAyMivU1Qo/ZlrAsZDeciUVdwNPkWIODSYjkXqtNTb54r 5zXLU4GO13cpMnowPVINhKiJZ+qykZQ6HVyNAWahhk+YeqMHpAzLMuTmWckDC5pnU/5T ioFh6MW8aBWfd1bhaTNULz4ZSKgdXmvnhzQ14t0fzzp7/+4O/AHOl/qDA6MaQZsWRYBT ASaJe71EH8uuX9NHdikggZwvCfvTn15xOVtsu5fJA0W3ZzDH3aVuzysu9TbX1ULHPx4S VrudPGr7awuY71PLLTi85Z/jIb2yyOaNrRCI8ecb6Y0wXl7tQHCT9TZTHpmH2I3MnNK2 nkoA== 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=Ov/2s8L5gt/KlpinanE/9NpBhE3fk6VnsmvlXmdq/tA=; b=X5OopT88M71FuJ1yxlWUG6n6xfnuVkYicDxny9sg4+1KGtaquzed6K41Ort4yR5GrO IIKWLfI+Uql0L4NaLAiYZJugVDDsUW1c7DUD3pXuZb0A1rNaCbufVSEkL/fnKuhh3m2L t18eGLR3FQIMrQNdSXAEZ3EB72/RA1UCU2qL5QNkSddg14bH6jgONQhW6Cvuuims4Ed+ 8uiH6okWXXLzY4DHu5ns+t+UJ9hNM0MkxT+8YS0PMWMh5lxJ/Hg3s20VgcGdCNB7hNNG KT/LAZTyAwKMqY3Y6SlUV0Y3LBUlM14k1FGF6k762qfwikPF3eSpFrwUsTjfSmtCJoiD 1v1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HVOjmBsa; 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 q6-20020a170902f78600b0015d18032e23si11233960pln.103.2022.05.09.02.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 02:42:55 -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=HVOjmBsa; 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 8E4661D676D; Mon, 9 May 2022 02:27:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1392400AbiEFNY7 (ORCPT + 99 others); Fri, 6 May 2022 09:24:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1392347AbiEFNYr (ORCPT ); Fri, 6 May 2022 09:24:47 -0400 Received: from mail-vs1-xe30.google.com (mail-vs1-xe30.google.com [IPv6:2607:f8b0:4864:20::e30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28E2366FBB; Fri, 6 May 2022 06:21:01 -0700 (PDT) Received: by mail-vs1-xe30.google.com with SMTP id v139so7173642vsv.0; Fri, 06 May 2022 06:21:01 -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=Ov/2s8L5gt/KlpinanE/9NpBhE3fk6VnsmvlXmdq/tA=; b=HVOjmBsa8kBJNSGcp8KgsSBEbZqqaI7zDGE7jxIHn5y9/M+EbLZT05sakERciInCNa bpaf948KuVtXAbBuuHvpV52Qi5sRvPZ8OEpfvZFfwSa/DrFo9xViw9bWDmh3MB/eX1zN WjYq2uaw1JL80Q+PE92wayWOwBLlQqWF7OZ3/64idHgI3i+GXC7MVA3Y0DmRDgrbLarU xsTJxgXi7BDnMn4KKSkW+bZTu1Sp2ffaWt7CxmTnXfofBTeJgU0jEX/z8DhkxSbQ7gMP 5ZwUcRF7izU535xyZ9K6wyWuDmUDY/pYs67HlhgvufmetPivMYncaOghg2KFMKtsxciZ KB/w== 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=Ov/2s8L5gt/KlpinanE/9NpBhE3fk6VnsmvlXmdq/tA=; b=sPlV8bPUGQvbTcgB6eC/MbirSuAg6X/Hb5dv8or3z/tShnBv/3AXPggBSZiCltshuo 6pAFJE7/fV9KKwVcaJFwbno+Zl9nHndl98OfZRdZm8SkXHYYVBde+2E1aNcSlsKwFyC2 qARmth1urZgEi1GtAVTRbZs8MNQqh9Cy47cdCqpq+cSmWQ1YQ63E6nrRpYyS1dePGfBt BbswgWV8xDxF5yQDoLjOCUFW0ERmJLR7ccKTeOvUEPPUJHaPVobKEjYvb+17iHMzNFAZ ohUEGkR/hpPjcUrhLLcEA929KA1u0iOR/+Yj9QT4RygYzb2EPuPzx7XrYeBPtQjMcHu5 I2Hg== X-Gm-Message-State: AOAM5320curBc33DnTfDxhuggdk4S8SCr+UdjbRMUoZUJWd5Sw0yQaWy MrkBhw7ENk2ZLD0b4kvwzZ+3GeL0FP10pNU6s4E= X-Received: by 2002:a67:2e91:0:b0:32c:df82:9ad3 with SMTP id u139-20020a672e91000000b0032cdf829ad3mr955748vsu.40.1651843260252; Fri, 06 May 2022 06:21:00 -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: Fri, 6 May 2022 21:20:49 +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 , 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-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, Ard, Arnd and Xuerui, On Fri, May 6, 2022 at 7:41 PM Arnd Bergmann wrote: > > 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. 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 Huacai > > Arnd