Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp617467rda; Sun, 22 Oct 2023 02:22:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEO/KzedsrF937q2poSjmDsH+klPEdQmOn84L39JGtzXjTlnw5PONn06Me2WNhkMUfzF4c5 X-Received: by 2002:a17:90a:19c4:b0:27d:1369:515e with SMTP id 4-20020a17090a19c400b0027d1369515emr7931113pjj.22.1697966552734; Sun, 22 Oct 2023 02:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697966552; cv=none; d=google.com; s=arc-20160816; b=w7WBrzpQ/7f8VMBfuK0seudbDbq4VNNHpCUYVWmf7nn2XDTz8uKNvI4M8zh0XRa+7k 7sBIGF+MHr1V7MawzPpALjMz8mGS/PDkiatkHsWLhuX1r8QrJwu/t+EYbVGyjCkJelKo QQYhXCTgOGSA4U8Bh5Yg24UzNqRTQzILU3f3ozU0+fHRaiYLCba/Eucosuf8VnGuqY1+ ISNcnqvdRanA15TcpEWffpjKiCNlG5vSpLReMw6+6/4nmU8/ETAbj0V4n0IOfwjWhNQm z3pOHQSbG2AcG7wdNyfAYc7XggqxgRSulxzY16ES+qxEhBrq4TPI1T4CdyEPmbfpIRuh +gvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=TozougyK5U1vqSd+mmvFGbFV2SLYS89PnED8AGn32Rk=; fh=mdC1/KpK+YC4fyTYQLk7/kjwywPA+smMIoxoHlt1GXI=; b=ZgtlufCAu3WQaV0cJ6KLlGWwVg4/tH8+XkkNUhUCYSINPxPh2vojGp8bBQ9dyRppdx 4vk8pQmoEcR/DF2wdrE5RXJ6Q+ZFAolHwtEaFNFOvGQWhO9YlZEb+Gpxj62PjolxdAM7 oviawrFDwq95R/MT2voVWe9YyT6axzAv8QWgJSL7eN+bTf4PZWkSv5onM90UcinmuF3h AGaeOzXK1hC7yNqky/TakodnksaOPrzfpqttJkYiN8Z9PTZTFN4JNKpKdCCfbw3PKfgE VnfB9xrvRTXZ/c74LHq13/LJBDLKgJNFEWHpn6X2t0ecjzLeZnsHVEZ+xCKEVnaEtRG/ CYtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id nn5-20020a17090b38c500b00263eb5054f2si4716518pjb.105.2023.10.22.02.22.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 02:22:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 67DA7804DBFA; Sun, 22 Oct 2023 02:22:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231484AbjJVJVQ (ORCPT + 99 others); Sun, 22 Oct 2023 05:21:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjJVJVP (ORCPT ); Sun, 22 Oct 2023 05:21:15 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A162BF4; Sun, 22 Oct 2023 02:21:10 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 39M9KkTY003523; Sun, 22 Oct 2023 11:20:46 +0200 Date: Sun, 22 Oct 2023 11:20:46 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Shuah Khan , Zhangjin Wu , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/5] selftests/nolibc: use EFI -bios for LoongArch qemu Message-ID: <20231022092046.GC2669@1wt.eu> References: <20231010-nolibc-out-of-tree-v1-0-b6a263859596@weissschuh.net> <20231010-nolibc-out-of-tree-v1-2-b6a263859596@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231010-nolibc-out-of-tree-v1-2-b6a263859596@weissschuh.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 22 Oct 2023 02:22:30 -0700 (PDT) Hi Thomas, On Tue, Oct 10, 2023 at 02:33:57PM +0200, Thomas Wei?schuh wrote: > qemu for LoongArch does not work properly with direct kernel boot. > The kernel will panic during initialization and hang without any output. > > When booting in EFI mode everything work correctly. > > While users most likely don't have the LoongArch EFI binary installed at > least an explicit error about 'file not found' is better than a hanging > test without output that can never succeed. Agreed. Let's hope at least users will be able to figure what's missing depending on the message. There's one thing, though, you hard-coded the path to the file system, and it's unlikely to be located at the same place for everyone: -bios /usr/share/edk2/loongarch64/OVMF_CODE.fd Sure, it's also possible to force QEMU_ARGS but it's becoming complicated due to the numerous arguments. Maybe use a QEMU_BIOS_loongarch variable for this ? This way if this starts to generalize to other archs, we can later simplify it and automatically append -bios when needed. > Link: https://lore.kernel.org/loongarch/1738d60a-df3a-4102-b1da-d16a29b6e06a@t-8ch.de/ > Signed-off-by: Thomas Wei?schuh > > --- > Note: I'm wondering how this worked for anybody else. Not much surprised. As I mentioned, my qemu currently doesn't support loongarch so I didn't boot that one. Maybe Zhangjin had this one as part of his other patches. Overall, on the principle, Acked-by: Willy Tarreau Thanks! Willy