Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp59990iof; Sun, 5 Jun 2022 21:05:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgAHqOkMK432b1cRmg+30YMrdIYK4ZTRt4RS45NnHm4wZ1PH2no4qqZbC6GPOlJQnb+5qr X-Received: by 2002:a63:2447:0:b0:3fd:b97e:7f0f with SMTP id k68-20020a632447000000b003fdb97e7f0fmr3428045pgk.516.1654488357869; Sun, 05 Jun 2022 21:05:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654488357; cv=none; d=google.com; s=arc-20160816; b=kXteFc108Zefcs/y2ifw13KbJnx7PwdT4NCvjO54Vzb5sOLhag5X1cCTX7AtOtc0iE KQ7OLNMk/SKZlfNCn0a7vr4Qqe55oJKrzmnoBbKSZtCOwsxGCeAN67u6CMQ+AREoq0Qx PTmP1ZeLXL4DMzmrDnkpKkmhMe1ML2v3mw8RRGc3ndaEoR6OaAcNW/+6E+T6Kd/qHQiF lWxJuuAQFeaYlIJ6t1oMR2mAM02vQqN33qomWzlNIDGIClJMAi4lT/EuhYoSqRbL+Oxe 6KemdwjUUtxr1PYcn7QIvhUY03IJNW8z3STtj4fM4YfcASq3HoCvdOUVQdLO038iBi8C TkBg== 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=6nwj+N0btcAhrlduVQaHIJkNfwj6bOjYkg8VFFJB53w=; b=pOUfUL2bPSiUeOhYvpkCtDN2UmXzHoYLzdRNYTRZgqtZRsHPtMnT6gpR77o7OXSVUm ggkI07kWkJ0bqhgs8zYxznpaXybqlGOeUVjWba3Zu0WGTQO/j6A5VvPFbENSeXjkY/iT +NN7Mvqfek0zZdjPy6kdM+rGRr16k+xLwp0HN6Eg6wYeJSW6BTjHp13MgbehHtsVTQwM GhyM11BpvHJzXqyUX8HeOSFMZ5aRZaZ+haqhXTFnfDjfhfJz0ju4STZlwA/VtBDl0hr5 co5n/dew9fST+9QM8bURwCDycHoOQxfIc8qx4YY0RB0a4HZUWjr5islpDm3nx9PGRPUa Cr0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HBHfhqzq; 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 z16-20020a170903019000b00163daed2483si21775904plg.313.2022.06.05.21.05.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 21:05:57 -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=HBHfhqzq; 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 1C3D149F9F; Sun, 5 Jun 2022 20:47:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240126AbiFCFOH (ORCPT + 99 others); Fri, 3 Jun 2022 01:14:07 -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-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" 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 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