Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1992567rda; Tue, 24 Oct 2023 09:06:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFOwzm6w8JKAddSjRpgPX/docj0LdjIhUKUse7wpZffykR6Ate1g316IP3YocbGxU0R1FhI X-Received: by 2002:a05:6358:cd25:b0:168:e8a8:fa46 with SMTP id gv37-20020a056358cd2500b00168e8a8fa46mr4224341rwb.30.1698163599157; Tue, 24 Oct 2023 09:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698163599; cv=none; d=google.com; s=arc-20160816; b=ANAQRiqIekpsuUnTEXFG0EhZIIav24uNMI7RQkijM03UC92cXIrsSTGstvyerkhLU2 gveLyGCKyEYvaX4k6aCyBLBPyN92Ie12/G/6pRyTxyczvK5Y7S/C3iCYDjuA5/Zp4STI WL3TntRvpdZCADwjIZrwvkpxEIW4dUbhOBEhcwFpS9OYJZmCovDYwwewEskZvfuP7a6w 1EuBkI4odtEJpR97WHatSekfX/um6+3SijCxF8cPXlq8Cj//5/q2RG/T0IpZtbb7g9Qc TAU7jPJtYS1Q0o5t1zzIHxqv7kKK5G9LRQNraQxp1MRl4/jgSiqdhJiSTfupyw48aZR7 h8rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:subject :references:in-reply-to:message-id:cc:to:from:date:dkim-signature; bh=lgCmm4pAlZIdjfyCEORLh4I3sgHZhY4//gOUm6MGfDo=; fh=bCJmSql9Kz8ARgeNwvzIuC/hxbZKNlwOv2li41UyblE=; b=GGn8gC+CwWwvUztMVjyAd4rlPFUOusIyhf9LkGAQdtXve6jMvt0WDaSTwH8+xuDknW Oq0BdwuQbxOiDjiYuOPa0m1cl1xhiW3bqONja9gGePSjrlZ2+dvfI+Y7oR3psuqadLZs F/gnmp6egepOAWhj8rMJkP1Y8ylrQogXG/XBwoMGv3zFcnmCS7KgLot6t5OH4wj11DOc EH0+tpzNC0ZQP2CFD4VDZzJSBeLbS6gDjLwcsA3+qpWWZ9rFO8RrcVuaxkJqSG6cpH4h HIfmlKD5g8T3Z0nr/Viqray6SdlLSu1hey8ZrgkK1Nkch0/qj+bq1VrMYS8N5IJJZpNJ PCJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b=QciqZc1x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id 1-20020a630101000000b00573fa4cfe49si8548717pgb.166.2023.10.24.09.06.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 09:06:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b=QciqZc1x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 6FB998054D22; Tue, 24 Oct 2023 09:06:34 -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 S1343987AbjJXQG2 (ORCPT + 99 others); Tue, 24 Oct 2023 12:06:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234605AbjJXQG0 (ORCPT ); Tue, 24 Oct 2023 12:06:26 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0A8183; Tue, 24 Oct 2023 09:06:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=t-8ch.de; s=mail; t=1698163581; bh=lgCmm4pAlZIdjfyCEORLh4I3sgHZhY4//gOUm6MGfDo=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=QciqZc1x0JuSI43jAIa5a+RYt7QQqoEfZHTT45m8buUn4zNcJjSPc65/93kpgMumY E4C+4DFh699S0I4n/Vaw8VZx2Qv8HfFAorvgK0OnVd4yl0zMukc+O69gbDC4QhoGkW w7KlO5EW8QUfvxTihcFCm+w5RF7D28EiW8mchtMc= Date: Tue, 24 Oct 2023 18:06:11 +0200 (GMT+02:00) From: =?UTF-8?Q?Thomas_Wei=C3=9Fschuh_?= To: Willy Tarreau Cc: =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , Shuah Khan , Zhangjin Wu , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <74f121c7-5356-4e58-87ca-e93fe48ccc39@t-8ch.de> In-Reply-To: <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> <20231022092046.GC2669@1wt.eu> Subject: Re: [PATCH 2/5] selftests/nolibc: use EFI -bios for LoongArch qemu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Correlation-ID: <74f121c7-5356-4e58-87ca-e93fe48ccc39@t-8ch.de> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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]); Tue, 24 Oct 2023 09:06:34 -0700 (PDT) Oct 22, 2023 11:21:16 Willy Tarreau : > On Tue, Oct 10, 2023 at 02:33:57PM +0200, Thomas Wei=C3=9Fschuh 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: > > =C2=A0=C2=A0 -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. My hope was for it to be a purely temporary bandaid. But you are right, let's do it properly from the beginning. >> Link: https://lore.kernel.org/loongarch/1738d60a-df3a-4102-b1da-d16a29b6= e06a@t-8ch.de/ >> Signed-off-by: Thomas Wei=C3=9Fschuh >> >> --- >> 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!