From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BD0AC43334 for ; Fri, 3 Jun 2022 05:14:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240187AbiFCFOJ (ORCPT ); Fri, 3 Jun 2022 01:14:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234392AbiFCFNv (ORCPT ); Fri, 3 Jun 2022 01:13:51 -0400 Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3EB51E3CF; Thu, 2 Jun 2022 22:13:50 -0700 (PDT) Received: by mail-il1-x132.google.com with SMTP id b17so668971ilh.6; Thu, 02 Jun 2022 22:13:50 -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=6nwj+N0btcAhrlduVQaHIJkNfwj6bOjYkg8VFFJB53w=; b=HBHfhqzqLLypExTd6ahy302xLg7IurmMbEDCcYnorkVnh9POPCvzobQHDdBapvg2U8 W8ps2Z/dl+expoVMqGjQEY9Ns5EBWf6hqakUyBKv3ukd3nFUYf7+fv7xO7EWln2/O3aX /ixbWBEaxQjOlHv55SgOz/kK7v7OBUf51zcz8dmsQxusrfP+XH7SkjFIvYNrk5633C/A xM0RgrKFeWzug8KbSIzlyCQ5SRlU8hernD1BMKgUbodyy/TraaUNWq4eTj3AHLDOVOLq Rg41Zda1b22+tjHq4PzGQLv7sca/vvCyVrzFjknE511WWTvlEjwjCiun4Drk/v5V3jYH VDug== 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=6nwj+N0btcAhrlduVQaHIJkNfwj6bOjYkg8VFFJB53w=; b=Z5DVIgLKyjdD8EI/PFNUqAviyYygCcBTQo49pQUkZaFpqV6O7sGw6t4Zf3kHKDHrde slDP2IZXZJqJS6qZtG7v1FIF0Xv6pn7ySj2UK8YPINFSXRByFn65/Huupkd9b2ty+F5d urFM15Sk8uXM19qUWrhWoLOapJzo+aqJuE3hiirWZyZ007G0IDz+aVo8HndY4LEGraZY 0ioAiq2rQRnGbmSU3ZOQ1ugrGkjOm+t3/JmRvW1iIdepKLDqmY7CcL7yuMDTh4Vkc/2J jnPdAtxLu5jZ8w/zuBkKktsq6t39KiWkptTaP7XHu0xxS7ZQSborp+VU6scTKFALgEIe hRQg== X-Gm-Message-State: AOAM531YVOsO9OmUVTcpC3F4wKdxGqznPGcgoMLdpF3ftxFKN5DJ7OrF 5aVuDIINY0SNvwqvFeK6PhNAWjLHD4y0FSvHenE= X-Google-Smtp-Source: ABdhPJzLV3/h9JnimRUMzzPBUrj78Wu/O1S+cL3jrwWVQaadkihCHqwN8D4zsdFvDJsERNstWwPos9zXeCV5mJbs9vc= X-Received: by 2002:a92:194c:0:b0:2c8:2a07:74e7 with SMTP id e12-20020a92194c000000b002c82a0774e7mr4979140ilm.272.1654233230074; Thu, 02 Jun 2022 22:13:50 -0700 (PDT) MIME-Version: 1.0 References: <20220602115141.3962749-1-chenhuacai@loongson.cn> <20220602115141.3962749-12-chenhuacai@loongson.cn> In-Reply-To: From: Huacai Chen Date: Fri, 3 Jun 2022 13:13:40 +0800 Message-ID: Subject: Re: Steps forward for the LoongArch UEFI bringup patch? (was: Re: [PATCH V14 11/24] LoongArch: Add boot and setup routines) To: Arnd Bergmann Cc: Ard Biesheuvel , WANG Xuerui , Huacai Chen , linux-arch , Linux Doc Mailing List , Linux Kernel Mailing List , Xuefeng Li , Yanteng Si , Guo Ren , Jiaxun Yang , Stephen Rothwell , linux-efi , WANG Xuerui , Yun Liu , Jonathan Corbet , Andy Lutomirski , Thomas Gleixner , Peter Zijlstra , Andrew Morton , David Airlie , Linus Torvalds Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Ard and Arnd, On Fri, Jun 3, 2022 at 12:29 AM Arnd Bergmann wrote: > > On Thu, Jun 2, 2022 at 6:14 PM Ard Biesheuvel wrote: > > On Thu, 2 Jun 2022 at 16:09, WANG Xuerui wrote: > > > > > For this, I don't know if Huacai should really just leave those > > > modification in the downstream fork to keep the upstream Linux clean of > > > such hacks, because to some degree dealing with such notoriety is life, > > > it seems to me. I think at this point Huacai would cooperate and tweak > > > the patch to get rid of the SVAM and other nonstandard bits as much as > > > possible, and I'll help him where necessary too. > > > > > > > I don't want to be the one standing in your way, and I understand the > > desire to get this merged for the user space side of things. So > > perhaps it is better to merge this without the EFI support, and take > > another cycle to implement this properly across all the other > > components as well. > > I think that's ok. As of today, there is still no working interrupt controller > driver because it hasn't passed review yet, so there is little value in > merging the boot support. > > The main point of merging the port at all is of course to allow compile > testing and building userspace, and both can be done without being > able to boot it. > > If Huacai is able to produce a tree by tomorrow that still builds and > leaves out the boot support, I can send a pull request to Linus and > let him make the final decision about it, but at this point I think there > is a good chance that he prefers to let it all sit for another release. > > If the port doesn't make the cut for 5.19, we can still debate with the > libc maintainers whether they want to merge their side of it anyway, > given that the user ABI at least is now as stable as one plan for, > regardless of the upstream state. Thank you very much. It seems that the majority of our efistub design is completed (drop bootparamsinterface and use generic stub), but there are still some details that need further discussion. E.g whether to map the runtime in kernel address space, and where to call the SVAM routine. So, I agree that we should temporarily remove the efistub & efi runtime parts, in order to make other "good parts" be upstream first. I will send V15 today, as soon as possible. Huacai > > Arnd