Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp230747rdb; Thu, 2 Nov 2023 01:50:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGoMDRh9aTf2hMIKPm5X2KpHOngTqzxeUlVkuv4d/N/mS+ktgi5FToec80i55hql/PrrUAZ X-Received: by 2002:a05:6a21:7185:b0:180:e2b8:3b0e with SMTP id wq5-20020a056a21718500b00180e2b83b0emr9099355pzb.50.1698915029675; Thu, 02 Nov 2023 01:50:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698915029; cv=none; d=google.com; s=arc-20160816; b=gwWbUXPfUpq25+yJARrw4zLVCfUk7vMOHrx2W+GJf+AyncImvQKDyoF1d4nkTqevtx viR5NiIOPrJykZedlmZJi4X0dRgBP6lQhdnS2Zn4Hnpz1+IvYPy/1qvIMoTfdIdE6M6E o0uPowG5/UNmiqElHnTBdwmD5RwOBfhRdo/c59yjwCkpYxuODSv+SbYaGKpsaj7Y2yRw GsJzu3J1z8fLtkOa1Omh54pDvMNVNKRZTSN4RmpwfWBcZEsrogHhDCvEGYKDrG7JIwnc mbwwBPVZjxlSZTkxZ9MK96OX0kjqu6ZUHZEj8EExXzJ3zdrqf6y2IYqoUFeIjN0OeHEi 7WJQ== 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=55ulPfZxXENWex0loIQg73GGNsH5LjC0WA2EY/yZUQ4=; fh=mdC1/KpK+YC4fyTYQLk7/kjwywPA+smMIoxoHlt1GXI=; b=EFq9vHPHE0ae0G28MLO/Ir7W5mDna/zDuHrW4ACJduff74zmBnAywQ07jZ5BCHHnt2 K8fPG0Slje/f56BJaZWO6wHCeC5JuJaG16KU1HAgOaSxPe7cwV6oyU8tgNFInHtekooJ 2ApTQ/59L6H78M3tBkG3iZZto2bquyKtzvWV3VhOciODXi3dW/GYtIoOKD7l7rAParbO b6VnKxJLrzab9uGn2NtQtMvJzyCIRCi31Z50guc0XNx9NP5WhWwV3fBoTBjyAA3v+bfW owy4J961i8PkTJNcGPcnjmTcvfdFlNs5WwQ2ktwpaK2xStbIuTFdICScRzn/+oGw0r3F 6Hwg== 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:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id cl20-20020a056a02099400b0058a4883e6casi1845685pgb.225.2023.11.02.01.50.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 01:50:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 5308D8106F45; Thu, 2 Nov 2023 01:50:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230097AbjKBIuG (ORCPT + 99 others); Thu, 2 Nov 2023 04:50:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbjKBIuF (ORCPT ); Thu, 2 Nov 2023 04:50:05 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 96004128; Thu, 2 Nov 2023 01:50:01 -0700 (PDT) Received: (from willy@localhost) by mail.home.local (8.17.1/8.17.1/Submit) id 3A28nUV0005974; Thu, 2 Nov 2023 09:49:30 +0100 Date: Thu, 2 Nov 2023 09:49:30 +0100 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 1/3] selftests/nolibc: use EFI -bios for LoongArch qemu Message-ID: References: <20231031-nolibc-out-of-tree-v1-0-47c92f73590a@weissschuh.net> <20231031-nolibc-out-of-tree-v1-1-47c92f73590a@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231031-nolibc-out-of-tree-v1-1-47c92f73590a@weissschuh.net> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Thu, 02 Nov 2023 01:50:17 -0700 (PDT) On Tue, Oct 31, 2023 at 09:36:58PM +0100, 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. > > Link: https://lore.kernel.org/loongarch/1738d60a-df3a-4102-b1da-d16a29b6e06a@t-8ch.de/ > Signed-off-by: Thomas Wei?schuh > --- > tools/testing/selftests/nolibc/Makefile | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile > index a0fc07253baf..eb258ae1d948 100644 > --- a/tools/testing/selftests/nolibc/Makefile > +++ b/tools/testing/selftests/nolibc/Makefile > @@ -88,6 +88,13 @@ QEMU_ARCH_s390 = s390x > QEMU_ARCH_loongarch = loongarch64 > QEMU_ARCH = $(QEMU_ARCH_$(XARCH)) > > +QEMU_BIOS_DIR = /usr/share/edk2/ > +QEMU_BIOS_loongarch = $(QEMU_BIOS_DIR)/loongarch64/OVMF_CODE.fd > + > +ifneq ($(QEMU_BIOS_$(XARCH)),) > +QEMU_ARGS_BIOS = -bios $(QEMU_BIOS_$(XARCH)) > +endif > + > # QEMU_ARGS : some arch-specific args to pass to qemu > QEMU_ARGS_i386 = -M pc -append "console=ttyS0,9600 i8042.noaux panic=-1 $(TEST:%=NOLIBC_TEST=%)" > QEMU_ARGS_x86_64 = -M pc -append "console=ttyS0,9600 i8042.noaux panic=-1 $(TEST:%=NOLIBC_TEST=%)" > @@ -101,7 +108,7 @@ QEMU_ARGS_ppc64le = -M powernv -append "console=hvc0 panic=-1 $(TEST:%=NOLIBC > QEMU_ARGS_riscv = -M virt -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=%)" > QEMU_ARGS_s390 = -M s390-ccw-virtio -m 1G -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=%)" > QEMU_ARGS_loongarch = -M virt -append "console=ttyS0,115200 panic=-1 $(TEST:%=NOLIBC_TEST=%)" > -QEMU_ARGS = $(QEMU_ARGS_$(XARCH)) $(QEMU_ARGS_EXTRA) > +QEMU_ARGS = $(QEMU_ARGS_$(XARCH)) $(QEMU_ARGS_BIOS) $(QEMU_ARGS_EXTRA) > > # OUTPUT is only set when run from the main makefile, otherwise > # it defaults to this nolibc directory. Looks much nicer this way, thanks ;-) Acked-by: Willy Tarreau Willy