Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2951763ioo; Tue, 24 May 2022 09:31:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyS1mybYi+sg9zFSz8/QtNdSvwkq+c+X7bWEYiRT6aTWSw80e0HDmJaTwUGO1mXjPP4FmaF X-Received: by 2002:a17:907:1b19:b0:6f0:1022:1430 with SMTP id mp25-20020a1709071b1900b006f010221430mr25458282ejc.13.1653409861935; Tue, 24 May 2022 09:31:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653409861; cv=none; d=google.com; s=arc-20160816; b=eymVLeLaWzmGwNkaPuLknPVRxp6nEgo0BOvqCZQrsHPo75PyXl7BArYfiLsXHQuSzv rTzSUZjNdfacBvfcU3E6KXnXrotrv7/H7axfqQrKc6lrAE6dO4/heeBcE7iabjPTR5NI c6Gf8nnUtFn5ez8yiRr+y70tSB/IiLXrdQgRoipNd+nhG4KpCFif2rrdhwjMvUBs4Lbf 9Y9GI6UMTXqyHOeGjuTpZlxwRUpX7FqjRom2uc72VApv+fzMdgaJhl5JVP18kr80SGg2 hekPovnlTxJl6KszyHCYj7ICo5HeRTqRbENtIEsfqX58BDfzcmDxOV/jfA9u8fDdGTor aIrA== 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=OyNGMzB8eRzvXkgcGkGr6qv15WPNXqDuFiVrIoJC1xE=; b=seeqT2lmSyDOwzSnrpT3c8OLZ/GgKBc6F1KA125Fq5BQJ3B6TqKRNBJpQMvn5J6qKr 39b6WqBSBteX+I+dK6TGsnDAwJ1CXIUErzJIvHsJQ98ygfqpv0Z3Df+btjrxa78HS0g7 Nm8tCIWyUBaPypOMIjD5mXgiWerVlIavO1/1DU9iQ+fQU54YnfqKAyNsjZ95wkfeDOMU Mfs0zS/ezHxgajgndCNFEanP4lMrYYn+KioyOHEAMBhfEsT+u7GSZQLXwTPReCZDJkE5 JKiAbnLnm3IgnS+AW79X3xZfrSrBoc/mHptWnPiol5ooTbXTBSzVLJtEd7A6NsR/mknO zCzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hl+MbcoL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gj19-20020a170907741300b006f8947581b5si16317704ejc.656.2022.05.24.09.30.35; Tue, 24 May 2022 09:31:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hl+MbcoL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236447AbiEXLAA (ORCPT + 99 others); Tue, 24 May 2022 07:00:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233493AbiEXK76 (ORCPT ); Tue, 24 May 2022 06:59:58 -0400 Received: from mail-ua1-x92d.google.com (mail-ua1-x92d.google.com [IPv6:2607:f8b0:4864:20::92d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2FF76FA39; Tue, 24 May 2022 03:59:57 -0700 (PDT) Received: by mail-ua1-x92d.google.com with SMTP id k13so3578976uad.0; Tue, 24 May 2022 03:59:57 -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=OyNGMzB8eRzvXkgcGkGr6qv15WPNXqDuFiVrIoJC1xE=; b=hl+MbcoLRG5p6f0tyPfx9hEebKnCInbyfKFlgIhrxiMaZxGo75slJlOpukMI+qmtY4 vKs6XkrY6enhD9LKHO5yaO5a0YSYrFD8s/80jGcTSCC7zmgoGrXDXaJNVa4gpvJ/DQvk DB0DDXIkGH3Oc5mRDsPmISjVD6gCQ0S2fZXivHEKGv/ccLLdlQ6CoX/2cASy2OKUOMoi z0LF9lDmcO39Z7WoVQTxyPUk0SMPgoo4VZj0YbXMDaGNwyLLQvqIc1xH5UNs8Gt8TJPw PImI4UvFCmWNvCjQbvPp0d0c802Bq6aHQpZ4xcpuupIgfwrXENlxhvuCQjAywT2pxv/A 3cWg== 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=OyNGMzB8eRzvXkgcGkGr6qv15WPNXqDuFiVrIoJC1xE=; b=0XnFRP9du1+hNVfTPdU+uei3hKlS+DHjOKZqSLxDwqZfuAw5BVTMg2VbyA1IW9Ex7M dSyg62ZljkKGnmsX01TofECUFHE4fxUA9FU4GPjebegxclDu2RCvktYaXD5hTwy5IXWC 8027Pwt9VJCikJvHnxpyx1qmAfYJTO37Hov2lmyuxpJX6zZ9X1v9Sbt04h5cTJtA31ml ReZCLJQjKidbpgsL5mPeRfB4ebijXaodedbP2H+t0v1H6vbEX2/8fFhB/8EVcbvpKrhD 5lyZ6EV86QqOVsGwKWGlZ+gRsfmI/AqslB+gWK3wRwxI66Pu6W8k9kwfDIYhg1ANpor2 k8kQ== X-Gm-Message-State: AOAM530m1N4+gQpfgZ5I3B0W3hlITLYxFgTg++2JSmtCSUJvunndMhAZ qL0Knt1xDGmSje8kaa6bMGIAp6D1pujVvdtPEWg8tfAl8IC9t/RH X-Received: by 2002:ab0:6999:0:b0:368:a1e8:74c9 with SMTP id t25-20020ab06999000000b00368a1e874c9mr8496825uaq.21.1653389996991; Tue, 24 May 2022 03:59:56 -0700 (PDT) MIME-Version: 1.0 References: <20220518092619.1269111-1-chenhuacai@loongson.cn> <20220518092619.1269111-10-chenhuacai@loongson.cn> <14f922495a09898017e4db3baed5b434acadac12.camel@xry111.site> In-Reply-To: <14f922495a09898017e4db3baed5b434acadac12.camel@xry111.site> From: Huacai Chen Date: Tue, 24 May 2022 18:59:50 +0800 Message-ID: Subject: Re: [PATCH V11 09/22] LoongArch: Add boot and setup routines To: Xi Ruoyao , lichao@loongson.cn Cc: Huacai Chen , Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Peter Zijlstra , Andrew Morton , David Airlie , Jonathan Corbet , Linus Torvalds , linux-arch , "open list:DOCUMENTATION" , LKML , Xuefeng Li , Yanteng Si , Guo Ren , Xuerui Wang , Jiaxun Yang , Stephen Rothwell , linux-efi , Ard Biesheuvel Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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, Ruoyao, On Tue, May 24, 2022 at 4:27 PM Xi Ruoyao wrote: > > On Wed, 2022-05-18 at 17:26 +0800, Huacai Chen wrote: > > Currently an existing interface between the kernel and the bootloader > > is implemented. Kernel gets 2 values from the bootloader, passed in > > registers a0 and a1; a0 is an "EFI boot flag" distinguishing UEFI and > > non-UEFI firmware, while a1 is a pointer to an FDT with systable, > > memmap, cmdline and initrd information. > > If I understand this correctly, we can: > > - set a0 to 0 > - set a1 a pointer (virtual address or physical address?) to the FDT > with these information > > in the bootloader before invoking the kernel, then it will be possible > to boot this kernel w/o firmware update? Unfortunately, there is no released firmware for you since we recently changed the interface again and again. :( You can contact with Li Chao (lichao@loongson.cn), I think he can provide help as much as possible (at least provide temporary firmwares for developers). We will also provide qemu-system and virtual machine's firmware as soon as possible. Huacai > > I'd prefer to receive a firmware update anyway, but we need an > alternative if some vendor just say "no way, our customized distro works > fine and you should use it". (I'm not accusing LoongArch: such annoying > behavior is common among vendors of all architectures, and even worse > with x86 because they often say "just use Windoge".) > -- > Xi Ruoyao > School of Aerospace Science and Technology, Xidian University