From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CEB117462 for ; Tue, 20 Sep 2022 14:54:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77B9CC43142 for ; Tue, 20 Sep 2022 14:54:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663685650; bh=CaM7s7Djov6G3qBXIFRlh7mvT4+isDDpGNm0u28qY9g=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=toqFeBOQM0HvyEP+jvIiiKU5kHE2TVz2kzCTwTeAtmEd/OJ2GNULC32VLnoZ7TX0Q X9o0475d2NVhtiivfmSCnCLiDLB69Qs5MFLgFh2kIBj/ouzI1C5/mUfktORXJUyC3F QFrvm80kyxuLMAF5Hho3XFuvPXeVXZlctwJGB5HTfe8JRJRHxi8Ah9PvEB3GCws8Yt kGFGmxK/VEf+uL0Q8QDOFnY1SygJsqBTXMFMPpB+cbnwzi0LT3f7ACqVT0HKsYXWFc zu/PZKJ0EX2nokD1KiTTsJt7aQZqQWo/XIpHdIBJDIYLWwcAKJMszXxtQtavqH7D8J oV2ejtxQ2FmEg== Received: by mail-lf1-f50.google.com with SMTP id x27so4314128lfu.0 for ; Tue, 20 Sep 2022 07:54:10 -0700 (PDT) X-Gm-Message-State: ACrzQf0Q88xOP87TjE87TJRIg3ygkIzhOpMd9s5z5tvpRpwBHp5VDw1I KB3ehTJqg1wHMZzpIdjO4p+GFyY+0Po8JKSeeUA= X-Google-Smtp-Source: AMsMyM6CLpSd6Zxv69dKhdFodSrz06aukD3OG5n1an7+70s/lN+D0T9ucERS/QQiUm1N4IY+Zh5HSArxvjcdQbTZTfE= X-Received: by 2002:ac2:4431:0:b0:497:aaf5:83eb with SMTP id w17-20020ac24431000000b00497aaf583ebmr8148815lfl.228.1663685648461; Tue, 20 Sep 2022 07:54:08 -0700 (PDT) Precedence: bulk X-Mailing-List: loongarch@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20220918213544.2176249-1-ardb@kernel.org> <20220918213544.2176249-12-ardb@kernel.org> In-Reply-To: From: Ard Biesheuvel Date: Tue, 20 Sep 2022 16:53:57 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 11/12] efi/loongarch: libstub: remove dependency on flattened DT To: Huacai Chen Cc: linux-efi , loongarch@lists.linux.dev, "Russell King (Oracle)" , Arnd Bergmann , Ilias Apalodimas , Huacai Chen , Xi Ruoyao Content-Type: text/plain; charset="UTF-8" On Tue, 20 Sept 2022 at 15:12, Huacai Chen wrote: > > Hi, Ard, > > On Tue, Sep 20, 2022 at 4:04 PM Ard Biesheuvel wrote: > > > > On Tue, 20 Sept 2022 at 03:45, Huacai Chen wrote: > > > > > > Hi, Ard, > > > > > ... > > > I'm very sorry, after an offline discussion with my colleagues, > > > non-EFI DT boot is still needed (very sadly, we want to drop non-EFI > > > firmware but we can't do that). However, for non-EFI DT boot we will > > > use the same parameter passing method (a0=efi boot flag, a1=cmdline, > > > a2=systemtable), firmware will generate a simple systemtable only for > > > DT. In this way all boot methods share the same logic, and also make > > > kexec easy to implement. > > > > > > > OK, that should work. So I suppose you create a EFI system table along > > with EFI configuration tables for DT, SMBIOS, etc? In this case, I > > suggest you omit the MEMMAP config table that I am adding here, so > > that there is no ambiguity between the EFI provided memory map and the > > one provided by DT. > > > > I think that should be a clean way to implement this. > OK, thanks. > > I have merged efi-cleanups-for-v6.1-v2 to > https://github.com/loongson/linux/commits/loongarch-next. It seems > everything work well except kexec. > OK thanks for testing. I will send out a v2 today and merge the changes into efi/next tomorrow.