Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1998149rda; Tue, 24 Oct 2023 09:14:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFg9yt8IFNEZBleR/CWvdY4yl23eKDML8YRu8RexeiyEPNd76veYFScEy+ivFlx9/1+qHvq X-Received: by 2002:a05:6a00:22c5:b0:6b4:c21c:8b56 with SMTP id f5-20020a056a0022c500b006b4c21c8b56mr11910864pfj.23.1698164065308; Tue, 24 Oct 2023 09:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698164065; cv=none; d=google.com; s=arc-20160816; b=M2lQsLMLnxmr614pOyUC4n3j0m648mEdYCPFFk5QwejjP4+sSBzQ3QGv8x+tiUEQfY YZX9oLjfGEbl6J8m6vj0iLSnRogjBxbFc+E1NOMiQoGeudbVh97f8DgDvgApoNWB/Cix HihqT0lm7jXxzHtd29gnR01oQZbvy3HD+iFO39HE+9rEFwon073YvX4ASM4xxSgSY/xg 1RlCMRiowytsgzg+f+rt3FQqwb+HruUD23eP4xwbFUiGGx6Rygq+jWDE8UrEuT+KTmfh fsHv5jXnYRbX8I+UFQqNYg0QcR4PQfeLtXGZhjz4fsPJgjhbS7jv8KujS4nfBgg4kZYJ OKVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=m71HgVSIqnyrHuoXQFnbnQ3H0F5q+827QjugIw8ynVI=; fh=nRPwoFP3uE2TL0wE0Us/TMwfryJ7n/9twngCg5pYxlU=; b=PuAlU0NAs6Seb4FlX6ftQauD+gc3e713G4uBJu61zeE4ZtV6EAYbLVrrwMImfzn9Ri +Yng+1tf5XiAUle16bgNeAB7T47Q8aMpufHYq28Ot1m0yq8HOjsyYG23blKqsbCV6cgu pfsQ2IeJ+G8XOSpUYVYIaS+RECehX3RP8IEl13u0TEFbNUjWv7VIEL7m3AkN/ZSCghTq ZZ6+DvTk2TpeVhSyESuoqJ6rXlV7CFgsmasmZRheY0OKHdFYhMQEN/TxfvWFFCAnVipL 5nHo3GyKaQoedhY3FB1zxJa7UZfW/ILvL/kwCMzW9BkB/9itkMNkpqqj5774SxOyMXdV EcxQ== 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:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id q8-20020a632a08000000b005b3d703ca05si8835348pgq.780.2023.10.24.09.14.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 09:14:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id E0996803DB4F; Tue, 24 Oct 2023 09:14:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234943AbjJXQOR (ORCPT + 99 others); Tue, 24 Oct 2023 12:14:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234736AbjJXQOP (ORCPT ); Tue, 24 Oct 2023 12:14:15 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B1286A1; Tue, 24 Oct 2023 09:14:13 -0700 (PDT) Received: (from willy@localhost) by mail.home.local (8.17.1/8.17.1/Submit) id 39OGDsID004135; Tue, 24 Oct 2023 18:13:54 +0200 Date: Tue, 24 Oct 2023 18:13:54 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Thomas =?iso-8859-1?Q?Wei=DFschuh?= , 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: 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> <74f121c7-5356-4e58-87ca-e93fe48ccc39@t-8ch.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <74f121c7-5356-4e58-87ca-e93fe48ccc39@t-8ch.de> 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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 24 Oct 2023 09:14:23 -0700 (PDT) On Tue, Oct 24, 2023 at 06:06:11PM +0200, Thomas Wei?schuh wrote: > Oct 22, 2023 11:21:16 Willy Tarreau : > > > 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. > > My hope was for it to be a purely temporary bandaid. > But you are right, let's do it properly from the beginning. The right way to think about temporary code is that if it's supposed to be quick to address, you don't want to introduce a temporary way of proceeding that will change later as the change will annoy some users. And if the reason for the temporary step is a temporary difficulty, you can be certain nobody will ever try to address it and that temporary will be definitive. So thinking "temporary" should generally ring a bell "am I going to annoy users for no reason or am I putting myself in a wrong corner". That's why I really try to avoid anything "temporary". (But there's no problem with making the wrong choice and regretting later, of course ;-)). Cheers, Willy