From patchwork Sun Jun 25 16:12:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112624 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp6996653vqr; Sun, 25 Jun 2023 09:28:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6HiP4y2f8I1oGNvvYWE8zhD/PTAvdJrS50UcidB4LOCHn2EdBO5JTBuUBZEeGU4xs+hkvY X-Received: by 2002:a17:907:36c2:b0:987:5761:2868 with SMTP id bj2-20020a17090736c200b0098757612868mr18990182ejc.11.1687710535511; Sun, 25 Jun 2023 09:28:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687710535; cv=none; d=google.com; s=arc-20160816; b=i1w8ib1V66xX7lomtnh+jk7nBlJnZ4yQH6CQQbU621Vv+asZTndPLzxu5DEgc9hZEX 4ycHIanZDupYOkXmklgJm6IIPe2zX0IC8KreZfTPczEdWAG4aXe6cLP+56JVIJ1zBiQf gCl4odkIL0mm8ykcE5xIXPzESiikORbRUxzw5VjDtjyksU74Y1X3xd4vZps2vjQc9Vlk W2z6EW0uHs3xHyBYGRQGChz/NQrpyQs11Fb3i/EEzIFBzYxLMNQCGj0bBuxEon8llG5X FlAizDZBFflXuAx1xCLB8b/vA0l7WNes9viftrVBpdFvl5x1zeZ2G+e5hpO7k8eI2d2/ Zwog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=TX5D3lj73j+ZfHMMpt467K8T7d54Rvm/s7bAC4djOb4=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=HzukbpanH5UxBMQ10mL3JPM2P7yUE07T4iLFN51lQZuoVdNnlUAT97HhJdC4bU2nWj X43Uuns8o99m0XU8tQPh6LlgRlflbwXyhxtieKyeL21GGcLoDZvzbVm6EkpV/HHkTHti alMFFutv375Z2nXWzYzkjehncDZ3UmCBZvSSyGOuDZ34OYH0Gh/L8lhvUiDWxy6H++1K SZ/7mwZrUVn2IxiJ1aU+ANCTvdU0H+IWEahgupwhLILBIBiVxck4pVRuOsGToY/WBt4M RLBOgLiRr8mdrNLm9borPccpa2923EhS6B2MTPqdqIPOdqbZazc1CKgYvuDCJ1dmVWsC Afgg== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t6-20020a1709066bc600b0098e2edf7479si929874ejs.858.2023.06.25.09.28.29; Sun, 25 Jun 2023 09:28:55 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230092AbjFYQMY (ORCPT + 99 others); Sun, 25 Jun 2023 12:12:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbjFYQMW (ORCPT ); Sun, 25 Jun 2023 12:12:22 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2791D18D; Sun, 25 Jun 2023 09:12:20 -0700 (PDT) X-QQ-mid: bizesmtp85t1687709530tsvfo8pm Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:12:09 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: XBN7tc9DADJ/OcMdENJaOzWBkZLGnIpxol5HU5eHhMJPihloFMK4nV8tycOqP HcFbWitRT8ddnSgIxB4OEtcz18ioeAnXfZ/MrBw4IpHZfmtCgWRpTgqxkPqh0g72G187XBG FBxsQ2+M1egZBKQKwY+g8lqoc/5WHoHP2t7aZUQuOLiB643WygQ27rWCZ6T/8cgN29l5DaG EcF9AjMPzwmnUmCEc0CulnMK1nfUeR+Bp7UMx8LCV5GJcYxQ/P5TzVexQWbEERiTWMbyDm5 P9yDZVUU3EoY3HD1BSRnFTFnBLHyPyunUd3s1RkxhHMPz/U5jCHY27tlTa9cA5pNbdN4z9U +iX6V2Hsgg+we5SNg2ilRyctvtMS61cx8HrbAIJ+kGfYUsx4cg= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 15070065792118708961 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 01/22] selftests/nolibc: add test for -include /path/to/nolibc.h Date: Mon, 26 Jun 2023 00:12:00 +0800 Message-Id: <149d51ee77cdd4936de4a02ee8b2cff239fd8253.1687706332.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769692762199815973?= X-GMAIL-MSGID: =?utf-8?q?1769692762199815973?= As the head comment of nolibc-test.c shows, it can be built in 3 ways: The program may be built in 3 ways: $(CC) -nostdlib -include /path/to/nolibc.h => NOLIBC already defined $(CC) -nostdlib -I/path/to/nolibc/sysroot => _NOLIBC_* guards are present $(CC) with default libc => NOLIBC* never defined Only last two of them are tested currently, let's allow test the first one too. This may help to find issues about using nolibc.h to build programs. it derives from this change: commit 3a8039e289a3 ("tools/nolibc: Fix build of stdio.h due to header ordering") Usage: // test with sysroot $ make run-user SYSROOT=1 // test without sysroot, using nolibc.h directly $ make run-user SYSROOT=0 Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 848884204a84..0b66b7a79cea 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -102,6 +102,9 @@ REPORT ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{f++;print} /\[SKIPPED\][\ END{ printf("%d test(s) passed, %d skipped, %d failed.\n", p, s, f); \ printf("See all results in %s\n", ARGV[1]); }' +# allow switch nolibc headers include method: 1 for sysroot, 0 for nolibc.h +SYSROOT ?= 1 + help: @echo "Supported targets under selftests/nolibc:" @echo " all call the \"run\" target below" @@ -139,9 +142,15 @@ sysroot/$(ARCH)/include: $(Q)$(MAKE) -C ../../../include/nolibc ARCH=$(ARCH) OUTPUT=$(CURDIR)/sysroot/ headers_standalone $(Q)mv sysroot/sysroot sysroot/$(ARCH) +ifeq ($(SYSROOT), 1) nolibc-test: nolibc-test.c sysroot/$(ARCH)/include $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ \ -nostdlib -static -Isysroot/$(ARCH)/include $< -lgcc +else +nolibc-test: nolibc-test.c + $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ \ + -nostdlib -static -include ../../../include/nolibc/nolibc.h $< -lgcc +endif libc-test: nolibc-test.c $(QUIET_CC)$(CC) -o $@ $< From patchwork Sun Jun 25 16:13:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112623 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp6993617vqr; Sun, 25 Jun 2023 09:20:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/nU1lkj/73aNpm34Q34Fi69h7prjd9ikYqROqsQSBMZbeL8E/hAPHiuSx5iDQHnNMDafm X-Received: by 2002:a05:6a20:3d92:b0:11d:38ea:7586 with SMTP id s18-20020a056a203d9200b0011d38ea7586mr35271434pzi.9.1687710054767; Sun, 25 Jun 2023 09:20:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687710054; cv=none; d=google.com; s=arc-20160816; b=vYkC4QNEb/A54GJjpTnhLxBbqFavhcNsJF/I7BjxtxhCkpf7hc1px0/2BoWMhh7iEZ N9SUdVdZVl76fMPCH3pU918ARHB+fsZwe2X+ze+I/6DDCzKBdkqNdmby0xnCTPwONA3u vE6JfcLGY2W4lQXZ708sA/Yhz6NU0fhVzjWlhg+QgOkI9+I8qvJ18M99NSYgAMYWIp8a gW7KW4q7TZTvOjUq7U/ThUEKxZWN8cbs6BTYm+Gzz5g0fdpx8CMgd7lVFklWZ2JTn4NS dCNT2KEydFSGiqhGkqxNqCFv8JeFGfK2vqlw8l3vfyf1FIwCDZcU8XCwHx/fkHxGmezw ba7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=ntEOPQ8Nv4W09U0DgG89hN1JHU9aQ/yLbCIqr9vcXb4=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=lAQYx019TSlKSFJJXivvfFODfPQUCyKOIocA23xoi8RB8UbByAWA+2Zsk7zyyglsE7 Pw2AT50Rz/a9oRaP2M+PW5ryaZuQPgIYk1tm7NTIxkHFfcrh3Z8iV627PJhMr0DUJG+0 3kz7GZy2e8curZa2GQJZQmNp05Tb7jEOzANUz7qQlIqnb6p4wD+5j1WhwC6EuovU3YEe 4xB8NxPSFkBC68EFSBQvvwTYmsVOcePUvqpZJcvv73iqmTUKcRA1y5c9PkeKDaas+Tva SFL0fAN3fr26qDb3Fw8zTVstnlc0Jwg7rjLMSFO49m7xksvuzl3DO/b4BOIXzPfoYyUl YK2g== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f3-20020a056a00228300b0066d45f035a5si2682062pfe.320.2023.06.25.09.20.41; Sun, 25 Jun 2023 09:20:54 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230358AbjFYQNu (ORCPT + 99 others); Sun, 25 Jun 2023 12:13:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbjFYQNs (ORCPT ); Sun, 25 Jun 2023 12:13:48 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5BF418D; Sun, 25 Jun 2023 09:13:45 -0700 (PDT) X-QQ-mid: bizesmtp62t1687709616tzy4rqig Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:13:34 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: IV30oiqrgAbOfnJiGwL0dLz5UNsInBixLxruPzcz1JdYKW91p3ui4yAH+JKDY HQKHcMsMzV7Nrt2LT0lOsKzUTJ0H9bt/KtrowcD3Pfllvf6wEiJnFhxCUg9KKvLIKIyFTpZ Qc7xqQfgMj13ozkOMYLJkvEmyX8wmvWwF48GzR2LQHHHVpjLN3vSx+h1LcsT5iWoGFVPXoJ RvNpGhcDVu0px1OGCdiLeqj6wUYSomUpNfUkyCIqAisVI0JthFgsE4ylvqwrwVCDLndbNYR o3JXtkq+Lp+rbXJ4NW0V0ORgwNEh/lv2+GFWOJMzmqPNUW/A4kN5ir6l6Edo/IVLSFqaWlD p6W0vN+6xNVMrW/NhLD/dL57AyXiA9bIMyEfb9iLvINukdCZso= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 15177638908459309453 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 02/22] selftests/nolibc: print result to the screen too Date: Mon, 26 Jun 2023 00:13:14 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769692258205152544?= X-GMAIL-MSGID: =?utf-8?q?1769692258205152544?= printing the running log to the screen helps users to learn what happens, especially to find potential issues immediately. If want to silence a lot, simply pass a QUIET_RUN=1 is enough. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 0b66b7a79cea..3300b5ab7de3 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -98,6 +98,14 @@ CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 \ $(CFLAGS_$(ARCH)) $(CFLAGS_STACKPROTECTOR) LDFLAGS := -s +# allow silence the running test log +QUIET_RUN ?= 0 +ifeq ($(QUIET_RUN),0) +LOG_OUTPUT = | tee "$(CURDIR)/run.out" +else +LOG_OUTPUT = > "$(CURDIR)/run.out" +endif + REPORT ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{f++;print} /\[SKIPPED\][\r]*$$/{s++} \ END{ printf("%d test(s) passed, %d skipped, %d failed.\n", p, s, f); \ printf("See all results in %s\n", ARGV[1]); }' @@ -157,7 +165,7 @@ libc-test: nolibc-test.c # qemu user-land test run-user: nolibc-test - $(Q)qemu-$(QEMU_ARCH) ./nolibc-test > "$(CURDIR)/run.out" || : + $(Q)qemu-$(QEMU_ARCH) ./nolibc-test $(LOG_OUTPUT) || : $(Q)$(REPORT) $(CURDIR)/run.out initramfs: nolibc-test @@ -173,12 +181,12 @@ kernel: initramfs # run the tests after building the kernel run: kernel - $(Q)qemu-system-$(QEMU_ARCH) -display none -no-reboot -kernel "$(srctree)/$(IMAGE)" -serial stdio $(QEMU_ARGS) > "$(CURDIR)/run.out" + $(Q)qemu-system-$(QEMU_ARCH) -display none -no-reboot -kernel "$(srctree)/$(IMAGE)" -serial stdio $(QEMU_ARGS) $(LOG_OUTPUT) $(Q)$(REPORT) $(CURDIR)/run.out # re-run the tests from an existing kernel rerun: - $(Q)qemu-system-$(QEMU_ARCH) -display none -no-reboot -kernel "$(srctree)/$(IMAGE)" -serial stdio $(QEMU_ARGS) > "$(CURDIR)/run.out" + $(Q)qemu-system-$(QEMU_ARCH) -display none -no-reboot -kernel "$(srctree)/$(IMAGE)" -serial stdio $(QEMU_ARGS) $(LOG_OUTPUT) $(Q)$(REPORT) $(CURDIR)/run.out clean: From patchwork Sun Jun 25 16:14:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112631 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp6997006vqr; Sun, 25 Jun 2023 09:29:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7e/CFcnu29VvUV1Rb7/mEpgc8cVc3Hb1t/jHXqqfTISJCw/xmcY3djGq9/d5mcCY3oNnf8 X-Received: by 2002:a17:907:9450:b0:989:3928:8a3b with SMTP id dl16-20020a170907945000b0098939288a3bmr12570858ejc.69.1687710588072; Sun, 25 Jun 2023 09:29:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687710588; cv=none; d=google.com; s=arc-20160816; b=ib3I0JbDdixz9nNF7EsQzXMJgS9eVYIEOn43uSKy8Lq9ItbKkYA8s6l+vqUzLCYWXn 7u2Ct91U1dnoxcTYY/9I8+rApupfFKzsywJQHPaHoUKjnfyQWPOVQoEYKBMQo339UXDv bGlEh45TcvHWG+6pwiecc/rE3thr+PDn3HEjPFxmgyxHIWZEECb89JDr2rsSLoqMIMeX /c0EiaTRAX9M0gpq12Ec41U7RfriNwPzvrc6SwJt7LtYHv0G9fTmXYgvcQlWX8wwZfLr gxXioULYk8Vv+AVEDseAYotRjbE+1qX6F9PAt3RJFh/WQzDv+YmWtFfy0ZT4pdyMOE5Y rYhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=90q2jUWB1ETqesBfph2URHr6t30gn8oPS/pswYVQXvo=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=Oubedi8d87xkXgok5BVp7+Gwn0/CZZWXojNvaeZPLBjVbyxeJGaxII2n35i87r156H 7tKDcQYDdWzGfFsIDICm2qgZ/ja69vIkZh/a/fr023fYGX9cizURO1m5Tn41Yt6BfTlh n5VZ7afsDKVYyCzY1+On+iCnuZ2GitYE+ndVV9i9P82WgJl4HikejMKtSZA4iit5fiNh KdkwTHrwNstmRdPdikCqRZH1vj3BTFyxzskoo8VaQ9qTQ24/GXjk3hZqdFV8YpdtCs3s n49WHUiTDqrxJ11h5JmR/pUIcIJHO2Nrsz3w6injFY/kCF5NeyUfkf9/4UOBp9+hUDTA a+IQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y8-20020a50e608000000b0051a362bb4dbsi1761300edm.543.2023.06.25.09.29.24; Sun, 25 Jun 2023 09:29:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230411AbjFYQPI (ORCPT + 99 others); Sun, 25 Jun 2023 12:15:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbjFYQPF (ORCPT ); Sun, 25 Jun 2023 12:15:05 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BE7318E; Sun, 25 Jun 2023 09:15:04 -0700 (PDT) X-QQ-mid: bizesmtp71t1687709694tuoksfxz Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:14:53 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: 3M0okmaRx3i2MOPnCI0DZtGYFOuu7wfpxwOZApJIBL9P6JET0xdK3TkWYCaDq ma+xXXNKIgM7SvfXg+wmihzPEHOJacQkejX+xsKp9znG3mfWK0KAlGIYOIWJ76861t6BE2X Ko59kt50r7bMB27RqUSdNnNcM3N99bI8UFDG+sfgKr6CYTw/QgS2RlZ5b3Mzvob6uY80tWx ufISYGlQFCsmji0qqnp5I6z+upiWdKU/Jk9plVPzzTsQpK/q/LGmHVNRBK1zIcpmdrYzuCi DC7sh1y9WihwxneGyHQVukRQR6g3egva+EcA/l1JukSC3ccQguTx95qM8ot8TKi6alBRTVy h+fyUFviFcdWz4uq1XSx+LPbjVr0CO8BzvYqPUsTmcI63JmyrE= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 3414960781867070073 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 03/22] selftests/nolibc: allow use x86_64 toolchain for i386 Date: Mon, 26 Jun 2023 00:14:39 +0800 Message-Id: <57f6d5abddf5b126589faedefbf25556939b093a.1687706332.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769692817724215540?= X-GMAIL-MSGID: =?utf-8?q?1769692817724215540?= Add extra '-m32 -Wl,-melf_i386' flags to tell x86_64 toolchains to generate i386 executable. This allows to use the same x86_64 toolchain for i386 architecture. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 3300b5ab7de3..f8be0de0ce0e 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -89,6 +89,7 @@ else Q=@ endif +CFLAGS_i386 = -m32 -Wl,-melf_i386 CFLAGS_riscv32 = -march=rv32im -mabi=ilp32 CFLAGS_s390 = -m64 CFLAGS_mips = -EL From patchwork Sun Jun 25 16:15:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112634 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp6997091vqr; Sun, 25 Jun 2023 09:30:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5xHq3K9NnNjYgWG4CalrjGGtHOl2dO3EWSj5MnKg7SV42uieVGzn4Au6iSJHGmPDAPEQg/ X-Received: by 2002:a17:906:9b84:b0:989:5aad:ebce with SMTP id dd4-20020a1709069b8400b009895aadebcemr15540070ejc.13.1687710604681; Sun, 25 Jun 2023 09:30:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687710604; cv=none; d=google.com; s=arc-20160816; b=TlryMi7ls7sqRTnqLmjLNDQxOaJkn6kBQpdBR06i9XGPzFARwLeuUMv5mXCzjzVu7r gMtJ33e5IuPV74gIuTKRd6wj2yvtRIO22Ow6ug+aa+XKOFTygefgU4XuAyhOrU6ryt/o TvMdQGo0ll3VRs6NWxl21wOUkrGBTA31t3KiqcE9NVlEeCw1YXGyHWsojp/pICjiKlyo BieRFKQRXDpviE8K/GrnH6OVx3ixXvHwyP/nhy+qbSMdUn3B+kJ8CQKKq+JiCaQQQlVU j7n2bIoWT0PpRRSxgMY2ewuzOjPsBVSfRKMMZ0JbXKbHfxAWDtnhkGiJjZ34GMGIobrw Xqdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=vEX586AbeXiTlIYfeKGPVWrYyNNpWZM6zk7JDEIX+lM=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=qaKr58aG4o3m3hLi5QU2JU+llFcRcVL/4j9tNsSO8wdpP1mVxObWNKk/NTmKQSRklq 5Y0peKrllAdSl+ZBSMzfAyDerEgXld/AUvl0O26je5rOXKs/MQ5lZaAGKjcaM06FUVFp y8Cq3KDlqmwJDnWnq9R1cQ3kH7Lq9YssURE6BTIAsmP58yInKvaF+tI5UWRpoHAPZ0d1 qlZPORPR0m2UiPypcqLogILZS/qt38VrV1hYL2qhSNkW2UpMXQZMcD9ta+qeIVU4jowZ gsdw/KX843vEmQM2D37pGXM69CbL+5FhlF5es47rZS/Dpn92WHxfKl9Y6utOXha+8xcq Mavg== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s18-20020aa7d792000000b005164372d51esi1662476edq.140.2023.06.25.09.29.40; Sun, 25 Jun 2023 09:30:04 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230482AbjFYQSe (ORCPT + 99 others); Sun, 25 Jun 2023 12:18:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbjFYQSd (ORCPT ); Sun, 25 Jun 2023 12:18:33 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97A8B18D; Sun, 25 Jun 2023 09:18:31 -0700 (PDT) X-QQ-mid: bizesmtp79t1687709901tb2iajrv Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:18:20 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: 3M0okmaRx3hcF+S99Fpw/jxjR7hoHB1tjQPBUK8gngnJMi+HZ2VtCebvgRwRp y9Rc5husLEZJxYSNuJLBiqv1VvbA7z4Bh5k9x6oCWZR3j+I7wa/PncQEDZKTcOuuBOLOlWo s3+XSH5JiK0/PzxZVKyhmUAVuYOZk4hKY8a6RhTkte4JjGcXsjcZleXt0Wy8BKMWe14H/Rr oKGXxweT29IeiZuEWTl+VZUaGonZWfGCEdaoKk7TiPbIG6lnm/gP9v3ciVxPpDNWGJo5R1x ZF8MtgZemdf0EdEqLGD/wtVaP7sQIaoJZ4KRn8f5DpkWXj9fhmayPJOCLDWHNMieCuh0IGM aXQuZTofIvKITjgkBAMFI3lvaF8wTV+A2UVr846ThvApEtSUHfYc2Ij9KJfAw== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 10532903300621852071 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 04/22] selftests/nolibc: add menuconfig target for manual config Date: Mon, 26 Jun 2023 00:15:58 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769692834695285004?= X-GMAIL-MSGID: =?utf-8?q?1769692834695285004?= The default DEFCONFIG_ may not really work for all architectures, let's allow users to tune some configs with 'menuconfig'. This is important when porting nolibc to a new architecture, it also allows to speed up nolibc 'run' target testing via manually disabling tons of unnecessary configs. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index f8be0de0ce0e..10579396e60e 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -177,6 +177,9 @@ initramfs: nolibc-test defconfig: $(Q)$(MAKE) -C $(srctree) ARCH=$(KARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) mrproper $(DEFCONFIG) prepare +menuconfig: + $(Q)$(MAKE) -C $(srctree) ARCH=$(KARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) menuconfig + kernel: initramfs $(Q)$(MAKE) -C $(srctree) ARCH=$(KARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) $(IMAGE_NAME) CONFIG_INITRAMFS_SOURCE=$(CURDIR)/initramfs From patchwork Sun Jun 25 16:19:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112653 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7000214vqr; Sun, 25 Jun 2023 09:36:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5pSmBG12Ch+suLD//H7PE2KIcZ1L+2ySnylraPvlf4ClgYTOBUsZ0rtsoze2MfTINO5vUy X-Received: by 2002:aa7:d296:0:b0:51d:96f0:9012 with SMTP id w22-20020aa7d296000000b0051d96f09012mr899962edq.10.1687711011677; Sun, 25 Jun 2023 09:36:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687711011; cv=none; d=google.com; s=arc-20160816; b=nyiNmyX4lYnasDfIxxdOPjM0y2sgMuHrU871WiX6i4+tP5FbUbLzSl7H4CSOT8jR0m R98Ird8ByFny+rJmKbFSF3fkmdv+MoeNGE+MbYqWOY7CLeKxvJhBctpU2JDo62XlmNss gDyAiBQ39ZmxhAVk186mrLXAaS1T4Z8QBboHc272Rwq3w5u3aR+/8NKUpMt668GaKvFo JKrK1ZqmvvvRBGkpw/gDMWOKS1e5EqXS36A5uwGR9/wFNn0m7BjMgS+NgKqd4NtMLLFW +RM0JV7onW+paEod22OESTsQPs4kSpsp0gyn3Z6JXqJNQD3YYzrfC/fdzgoST8yref5f 3nMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=Fze8+puLiq/o4NXbsgDO/8fwmRftsS4rUqdPpex0Is8=; fh=F5il0f38/OnR+6Lk4jyRbQDcrSTey2kQnNpdmJYq5RU=; b=EN5+cIl/0qEGyBifxOYXwzSgmrxooOUfKlhmZ+7h3b2jyVAys0/qZ3ANEsX1EgaVwC CJFLLI6L0SY+Mmex49/+Ls3QHB2uobBxPNQ2KgorpziuHW/FQiiMcWrWPgax2mc66YMb +bkukr0O7tXIiRNcwbrBT1LlPcsimYt3xc3FWOxtls0X7dlNNRmbx3tgAnx+JfSf4PFK xg9k5QMNBcBHLPzdwXxx5h8P91ohJb6/iH1J+f89qIiX4m4sQ8m3KinGozop1p7/AUcp e7Qz6xfNUZJ1SeBvOxdPKe+XAugGwrTGQrmTyX4Fs7o+mzwh1k74W5prtRdHC6P7d/SR ss0w== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q25-20020a056402033900b0051a39411fd3si1779083edw.356.2023.06.25.09.36.26; Sun, 25 Jun 2023 09:36:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229586AbjFYQU1 (ORCPT + 99 others); Sun, 25 Jun 2023 12:20:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjFYQUZ (ORCPT ); Sun, 25 Jun 2023 12:20:25 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2B95196; Sun, 25 Jun 2023 09:20:23 -0700 (PDT) X-QQ-mid: bizesmtp71t1687710014tpfmvubo Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:20:13 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: jXjag1m6xl6R91bDdyf1kEZlGAuEgRHMqwEDnc6K0vRXlfiEBLwMKYD92YoTN pjBT+ISlgvbX0swP/T8UItt1HmbMqxTkrdMjG0NeRlSMeCZB2iprXG8R93kuvFWk9Nqun1c ok2HuytLUklY/iTjypQ1RAszOxis1N60KzDTHVQaPd0TT3W8qUSql2jbeG5EIIMCIeqMW62 qbkLaecm3oKftgevIaIy4LwjvOigmvKTdBNAXkljZX1RlC3Flc+OsmHH/iqSrCfCCaAR268 iT/BZaVryHiHDJ3++DkT2xsMVASigy6QTOQ9BMhOW29RFJCySflN0kE4xnkwAMQT8J4buXx XWv3ZXOkiW1iKOwtLtkpv8IXoTwoL3vdtEXxozeINhRJg6xkBlJ2rO06i+1BQ== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 10052516696424218847 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Subject: [PATCH v1 05/22] selftests/nolibc: add tinyconfig target Date: Mon, 26 Jun 2023 00:19:25 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769693261886341366?= X-GMAIL-MSGID: =?utf-8?q?1769693261886341366?= The default DEFCONFIG_ enables too many options, the kernel building with such options is very slow. To speed up the 'run' target, in parallel with the 'defconfig' target, another 'tinyconfig' target is added to allow only enable necessary options to just let nolibc-test pass. Note, this 'tinyconfig' target is not enough to let qemu really boot and print, the coming patches will add more options to let nolibc-test be able to run, print the results and let all tests pass. Suggested-by: Thomas Weißschuh Link: https://lore.kernel.org/lkml/bc635c4f-67fe-4e86-bfdf-bcb4879b928d@t-8ch.de/ Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 10579396e60e..5caf3e7023d7 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -177,6 +177,9 @@ initramfs: nolibc-test defconfig: $(Q)$(MAKE) -C $(srctree) ARCH=$(KARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) mrproper $(DEFCONFIG) prepare +tinyconfig: + $(Q)$(MAKE) -C $(srctree) ARCH=$(KARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) mrproper tinyconfig prepare + menuconfig: $(Q)$(MAKE) -C $(srctree) ARCH=$(KARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) menuconfig From patchwork Sun Jun 25 16:21:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112630 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp6996980vqr; Sun, 25 Jun 2023 09:29:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7B+TA9FD3IUg8oDJ3vCF7ut/Im9NMxBVGp753ah0PeZjczFW3MF9TG+gy9gsWbR3n9yxCP X-Received: by 2002:a17:907:c18:b0:98d:2dc7:9411 with SMTP id ga24-20020a1709070c1800b0098d2dc79411mr10760275ejc.14.1687710584441; Sun, 25 Jun 2023 09:29:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687710584; cv=none; d=google.com; s=arc-20160816; b=mxsR8JCf3BLBtmRwPj0H9XqMa4xyaepsP/KAxL8dlUA+tMWSEsJaksNNKFoMEkq5pF WPoYyXhEd65N8MRG5IudeHVHIDiSPler0y8WdkgqyPpQlN0yuFJFs3mLveCAeZI7/Pmi M7gPulv1X7g+gUHYMBs1w44UnVUOHJ4LBns+qnZRb36DFwj4K5JwgvDTX404bsPjVVEq Qnvq3vsnbVwhGEiGvfbNSNxBSs+U0d2n7OA0pL0StF6HGG8G+Lf92RjMrSQGJx0A+6MQ BKJNHoNPeVc8yFPwJgLQes/SIa8twzw8UWEcpJ4VXBMer4AAlZc+Lq85NYMRtJQ1Ui2r QHbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=SgGQq+Tcj9aADWXlURp4hyBIvBuZ0GNHHGacJXCxuRg=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=D1sQf3g4dSMc57PAQEu/rAYD8MdEOd9DRzXpkCw2GlJCa8ntrZUCnenBryQa6++glb hKLsE8euJAnPqdizJ01RM/gTXyS6xp5WDQ76YLKQDOD1s+di9AhdRMG8ddBDMDDvwFxd 3vmpO0hat7hEqeoaVWfQC32+UscnAE/py3qFM5HmZZwoOojtwPKqcdAjUFLit0fV6vIT 6iGeJbukJv3jLG1eoqbUqTX/maxgM0CFsnWGjQXX4PdLSukBE9r2FqjZqv4jKcA1hQKX /M0FYdvmb78GlwjaXThua/7THqJ3XBebFl+G6zHIEFRZ6kBP9tDu3KSDJjBOyxD1zyjW ay9Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a12-20020aa7d90c000000b0051d95d83358si630007edr.402.2023.06.25.09.29.20; Sun, 25 Jun 2023 09:29:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229777AbjFYQVv (ORCPT + 99 others); Sun, 25 Jun 2023 12:21:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjFYQVt (ORCPT ); Sun, 25 Jun 2023 12:21:49 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4656A8; Sun, 25 Jun 2023 09:21:46 -0700 (PDT) X-QQ-mid: bizesmtp87t1687710097tb0hug14 Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:21:36 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: xwvWJGGFd7OpckdxdG9LSdgq7u/95vEIQ4fFtJ7ibMS131dQf/iSj19Z7iyZB LPUobVEaAbpGncd4a28NvNHDXa4p514cbGVK4Pfbg5ou4M8S18404GherJ8BriFkhEsA+cc oL4JAFEmm+AxUxofALbjSu8MNrA/5DurqmnWKlTDB5ADkhfNI/YVUxCLDO2PAMQTM33og0c xPf00HBJxozyti9AGEnVpESan5ViGLVv0Wzc2VlmzDpXFOk0hGYKYC8pzYSwEEHWBox3GjF WVXgPkl+t886mLVlIHJVBplw0vlKxbB5gIpVZuekWPw4M/WcfTKUntap1DhJ7jDXo8Xlwgh pVc5uuzJZtKWffJAKjd7UipxbhH9x66h+FmsMbGFwR7VgdzLEY= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 14215416064968937971 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 06/22] selftests/nolibc: allow customize extra kernel config options Date: Mon, 26 Jun 2023 00:21:18 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769692813882120463?= X-GMAIL-MSGID: =?utf-8?q?1769692813882120463?= The default DEFCONFIG_ may not really work for all architectures, tuning it with the 'menuconfig' target is good for development stage, but not enough for the default compile. Since both of the 'defconfig' and 'tinyconfig' targets may not meet our requirement, just like the 'CONFIG_INITRAMFS_SOURCE' we added, some architectures may require to add extra configs, this adds a new 'extconfig' target to unify such requirement. It allows to customize extra config options by architecture and then trigger 'allnoconfig' to let them take effect and with missing configs as disabled. The old common 'CONFIG_INITRAMFS_SOURCE' setting from the 'kernel' target is moved to this target too. It is safe enough to share this 'extconfig' between 'defconfig' and 'tinyconfig', because 'extconfig' is often a subset of 'defconfig' or an additions of 'defconfig' and 'tinyconfig'. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 5caf3e7023d7..0b810681547b 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -48,6 +48,15 @@ DEFCONFIG_s390 = defconfig DEFCONFIG_loongarch = defconfig DEFCONFIG = $(DEFCONFIG_$(ARCH)) +# extra kernel configs shared among architectures +EXTCONFIG_COMMON = --set-str CONFIG_INITRAMFS_SOURCE $(CURDIR)/initramfs + +# extra kernel configs by architecture +EXTCONFIG_ARCH = $(EXTCONFIG_$(ARCH)) + +# extra kernel configs, include common + architecture specific +EXTCONFIG = $(EXTCONFIG_ARCH) $(EXTCONFIG_COMMON) + # optional tests to run (default = all) TEST = @@ -183,8 +192,12 @@ tinyconfig: menuconfig: $(Q)$(MAKE) -C $(srctree) ARCH=$(KARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) menuconfig -kernel: initramfs - $(Q)$(MAKE) -C $(srctree) ARCH=$(KARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) $(IMAGE_NAME) CONFIG_INITRAMFS_SOURCE=$(CURDIR)/initramfs +extconfig: + $(Q)$(srctree)/scripts/config --file $(srctree)/.config $(EXTCONFIG) + $(Q)$(MAKE) -C $(srctree) ARCH=$(KARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) KCONFIG_ALLCONFIG=$(srctree)/.config allnoconfig + +kernel: initramfs extconfig + $(Q)$(MAKE) -C $(srctree) ARCH=$(KARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) $(IMAGE_NAME) # run the tests after building the kernel run: kernel From patchwork Sun Jun 25 16:22:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112633 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp6997082vqr; Sun, 25 Jun 2023 09:30:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4R+Id+aL8+TbEh/tAsLutcfai5AmiqhsyLYag3Eeqr50APd2Yb117o4sENNdiD0QgAVWxH X-Received: by 2002:a17:907:72c2:b0:991:b2a2:e424 with SMTP id du2-20020a17090772c200b00991b2a2e424mr600675ejc.76.1687710602415; Sun, 25 Jun 2023 09:30:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687710602; cv=none; d=google.com; s=arc-20160816; b=iErf7B19YXHnyW65y731WhfjVUgFuayY56g5dahlRtaqFbAzBS4ci/BYTv8YI/X+Ic FcFxSZaYyeRWHKJUdc88wFxCRgQFepBupXOMu2+/0OPiZJPxvpHey6qPNcp72JgPjVhn Ze3vfEXvkBqptp7AonV1YN6uiqC+8XyuBcY7mexeoVg8V5XVXDryHuEPVeF7fsxO3WKh qU0/MbyGNn4EOiMJv+BC1Ey906XEEYcBo7WFeYminNi3U+JZ09ab/YYh4iG56TqC3TvG FNaK2DkVHXdrvutbCatySYFlDPp8wqEsAxyPmc7I4IjL+5jJeikQmRt3bG0KE18+bC0O ACzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=l0IPO2cCgCWOZTo9fObhgay9MiyOLHrisvs/JhP8WoY=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=oTtlCToW8vSMp7ziWD3UNVE8niAERHv9QZpiMMxzet6c8G/puJIuNrM5720xuAc5on L/HX4HRn1b1ZneSXKhOVsCCFXzsbz7td9rdtXxYfPvTnTNBbUGtorXCCJd9Ex8LA7VDV lh73Ke9E6hHx5XPFVXijAdaa844AMCCzegHu1Qe6bzaWHtTFVzYr5Q/6DTKcIwi8Kn02 h4BsAwjGFWTTLA3TcG+fncXTDiL1PuPIpgVg0mM4CjD/2hiIAw/lcdm6Ikl0cb9VknYt RNt+Vk/U7+/juEDUQ2hzpcjerBZ2mSurA12lUyL7le510j3EUlOlm2j3/wR/aCln9mRm NXQQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n7-20020a170906840700b00988ac1314absi1919081ejx.648.2023.06.25.09.29.38; Sun, 25 Jun 2023 09:30:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229941AbjFYQXK (ORCPT + 99 others); Sun, 25 Jun 2023 12:23:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbjFYQXH (ORCPT ); Sun, 25 Jun 2023 12:23:07 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5420EF7; Sun, 25 Jun 2023 09:23:05 -0700 (PDT) X-QQ-mid: bizesmtp75t1687710174trrepom4 Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:22:53 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: znfcQSa1hKYSewel9R5tfK6iXWL0tG+7XzUCS2dRMwYgVkTzq+dnMLaN0SZdd KsHYnCbiyvVHTBeIzWRqb8bviJBXXxVYzlfu/Om2L6rc3PHQKwooqGWi+zqIfThXS6Dygc3 WwkE3aWak9gg+eo3ddAO6C3qsX3MPEs+JoyzlUprXf84p3nQiUBXkvMjRNPw3TWJLyqILmG JO/YbLUK870quZTewdQq9dfIbi590Lk8nEDkN/agMayfvxS+cgcS5XpbronNLem/armSCfW FnsFRrtHGzfkuU5V26Me6cYIWZvM0rvrs3OHJm+42uVvr8Tr0861JBI+aG3d4ibT3XzibwY 5oV5+sNF+xT1otht/uwHo5ZcTu4vDaAN04QmE6Z0cbUA+o34hw= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 13042838406856188047 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 07/22] selftests/nolibc: add common extra config options Date: Mon, 26 Jun 2023 00:22:41 +0800 Message-Id: <8eec688082dc5c3fde88748600b3763d13b0ba09.1687706332.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769692832527043556?= X-GMAIL-MSGID: =?utf-8?q?1769692832527043556?= This adds config options required by all of the architectures. * for initrd -e BLK_DEV_INITRD --set-str CONFIG_INITRAMFS_SOURCE $(CURDIR)/initramfs * for init executable -e BINFMT_ELF * for test result print -e PRINTK -e TTY * for panic reset instead of hang --set-val PANIC_TIMEOUT 1 Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 0b810681547b..147c2db49635 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -49,7 +49,10 @@ DEFCONFIG_loongarch = defconfig DEFCONFIG = $(DEFCONFIG_$(ARCH)) # extra kernel configs shared among architectures -EXTCONFIG_COMMON = --set-str CONFIG_INITRAMFS_SOURCE $(CURDIR)/initramfs +EXTCONFIG_COMMON = -e BLK_DEV_INITRD --set-str INITRAMFS_SOURCE $(CURDIR)/initramfs +EXTCONFIG_COMMON += --set-val PANIC_TIMEOUT 1 +EXTCONFIG_COMMON += -e PRINTK -e TTY +EXTCONFIG_COMMON += -e BINFMT_ELF # extra kernel configs by architecture EXTCONFIG_ARCH = $(EXTCONFIG_$(ARCH)) From patchwork Sun Jun 25 16:23:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112627 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp6996864vqr; Sun, 25 Jun 2023 09:29:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6YCjeT/KJa8LIx0H4QZXcoCoSqfth5PhK8AqTTUDkwcAaIFs4my3GRWrdzQOijGvUDN1nQ X-Received: by 2002:aa7:d9d7:0:b0:51d:914a:9f43 with SMTP id v23-20020aa7d9d7000000b0051d914a9f43mr1936502eds.36.1687710566765; Sun, 25 Jun 2023 09:29:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687710566; cv=none; d=google.com; s=arc-20160816; b=XUNEBi7DHkuPQpTuJ1aRIX1LYTVOZXnARvXRzuohhyO+xpHD+cEQSc2zgdwqA1UpMZ ckNRHWy3Rt0C0olHqbwTfUe6qzDQYE+861Z/Ym2wxCcGI5aAiZfPTejlm/nuwQFW73R6 zOEunDgBxmmfE0ro13wyy5UFgtzhwrgYKDw4CVTXh4d99LKt1Et4n1HYrP651vrWMyK1 SiPpXsNYmdUsufsYXkDFPxic6qHXMGqiyGVT8DMvraWnVncx3oMyZ2Z2lDLLLnqlo0IO T9QFeAjUC+aDClV7f5Uuiapf4IQs0qtDoz5MlaoCsZWtGQVHa7+0iH4rZ8KNmhGZeUFL Tvrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=nN5cv9hvuybrpq+116XFex9e6Fms9XAZxyKGC34isy0=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=znSbLuM2hs3l+GJ5oxHscFTW7kRBsEp/p9XiGNjfD4etcke5MQ94qvPVOchIc34DtG mThlUY4RtLIduEbWs2Jxk7hJPk93dCQCLSyXXxChDoflN7u+TjBv6qI97uP8d60xRbEC VckNe0oMF9n+pY4SupZagCU3p42n5Uya+gmk8anQTXTZ8/nmyeTQFV5zdgMeCydSqQE6 oakoboEy0e7ovQdwsiZceYDh7MsrVczTF/f3p4jye0Y9WiCHoNhPxFtan7gyHWt8g93p fCgI5/pgc7xDwE9PFAOfMXUIDjem4q6XiXNd5MNh//AqT2PcV1U/ZnTlOy+JfedjMXIm ChFQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o9-20020a170906774900b00988839e5435si1648117ejn.522.2023.06.25.09.29.03; Sun, 25 Jun 2023 09:29:26 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230021AbjFYQYQ (ORCPT + 99 others); Sun, 25 Jun 2023 12:24:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjFYQYN (ORCPT ); Sun, 25 Jun 2023 12:24:13 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F8D0FB; Sun, 25 Jun 2023 09:24:12 -0700 (PDT) X-QQ-mid: bizesmtp91t1687710243tcm1mhg6 Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:24:01 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: LE7C6P2vL8RGulXWTTLakwGCbDFVogyRym+KcgI8bU6ETz331jXlzFM5MTin9 CA+sFl4YVEPL6MSq+ixvxplRIFqOTDkDC5NKXwsqkB9WPq2xjlElrvw84ep+MC8DFb0vwk7 XZPPcIQtMJJglM+j+fwH2oTrJNysRCScR8Y5Use/Lw9XL44i3wyj2Amq+DF1Ym1Fxvx4aOj rOwhCL5FZnaqXZPJDQ34+PEMkz3VHEi4/2po95wETckplOa1BVBG1yvZZn5dlHp2xi1lRVp uaArzlPWpSRTPVuMQbOh8gNMafrGTw6SarbAUIQcOvzraSWHZCbFEnJwYdfKqbnZAA6AQeQ zQrGhTt9pjUN8UL5DCwPEVxQSK25U8bH79V1EYU0jnXRCD5ZVodR4ESDAdQkA== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 8067436170865169837 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 08/22] selftests/nolibc: add power reset control support Date: Mon, 26 Jun 2023 00:23:58 +0800 Message-Id: <7b9dd1d0b70de3917ee3d375187a5cb572303e7c.1687706332.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769692795171138105?= X-GMAIL-MSGID: =?utf-8?q?1769692795171138105?= Some boards require the power reset control options, they should have no side effect, enable them for all. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 147c2db49635..ae8519fb1b49 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -53,6 +53,7 @@ EXTCONFIG_COMMON = -e BLK_DEV_INITRD --set-str INITRAMFS_SOURCE $(CURDIR)/in EXTCONFIG_COMMON += --set-val PANIC_TIMEOUT 1 EXTCONFIG_COMMON += -e PRINTK -e TTY EXTCONFIG_COMMON += -e BINFMT_ELF +EXTCONFIG_COMMON += -e POWER_RESET -e POWER_RESET_SYSCON # extra kernel configs by architecture EXTCONFIG_ARCH = $(EXTCONFIG_$(ARCH)) From patchwork Sun Jun 25 16:25:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112658 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7002927vqr; Sun, 25 Jun 2023 09:44:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4EWsUEqKDHb6O5Rr+tqVSjkEDejXXe9Se1t/k+g5O5h49N2KTo64N2HVXU3g7/MrqY6ZdX X-Received: by 2002:a17:907:d26:b0:977:d468:827 with SMTP id gn38-20020a1709070d2600b00977d4680827mr28014476ejc.17.1687711459535; Sun, 25 Jun 2023 09:44:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687711459; cv=none; d=google.com; s=arc-20160816; b=SH6x5XI/5AZZ1WgW5mRSH4g+rN1FvHQUz2DrLrRfOfXxqP4r0IdpLnpAMJ+sJZAcIB Xk36DJWTiXM6anR2KwW48UxrRuZRp6HcISV0dnjo3glvBp3E+Zz55vw6HcFziS8InH8Z rLkgrAE6y/NAyfnj/CtV+t6dZYSi5WDGvdEsde+Y7S4hVt3KNpH9P284vpGHi8L/MGmQ hOravdP50dU5U2nzCjiqnztsfZ4/KyljCA4hTTZ9jdiY2ZWuNQccNoW8pjqmfqRspc81 jOtwhKhHRUQ/dNsifK660vOGZ9KpCOXdfY2Kcu7rwArRw/27Gxq3dZKMAtNmHL+ChDgU P+1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=CeCRV9kq11FBQsyf9r7sVXiADB55MIciotVTbvOhfuk=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=USrJyI6GXnVemlJP3UcTPyb1RCCxq0bbo1MGLONve0UJVyJMXV9pCwnoHurHRyqw3p bJeFevUFobQGcdbG3uuSWzyEGYR7pZ7eYN9V6bSBxeZFKFQ38ElvlO/iv5fBHo2Uohwb O/rGEacDgvV3KFK51cGvUHDJpEz4sFYNKSbjTNxkoj+mWmJgauYzkCkxpgNPXLK2ppPK +BTdNw6O5xwZQ6r80Rxn6z1lCXUeWL+DR1EnQD0Kr3r2160032PJY5/wn7OCHyoeloVH LrhufSrXHToulqF232n6lwcgte0xDPFapuJYxMIjrqbcBcOKllKZJjX0MaP0esWbsoaA NdbQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q19-20020a170906b29300b00988890b13fcsi1970160ejz.139.2023.06.25.09.43.54; Sun, 25 Jun 2023 09:44:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229566AbjFYQZk (ORCPT + 99 others); Sun, 25 Jun 2023 12:25:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjFYQZi (ORCPT ); Sun, 25 Jun 2023 12:25:38 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFCA4A8; Sun, 25 Jun 2023 09:25:36 -0700 (PDT) X-QQ-mid: bizesmtp64t1687710327t7nggopr Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:25:25 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: LE7C6P2vL8T0B3PKGrZcHQ0BTeQiRu2DlqZ7sGIG0uR51RWmpLUTcegpB6InK CCVs7YfKvpjQoKPFVDpuimCYFIVaewN3N15vb+WlMFVzP5OiTYDHzymJeYhIXO/DJiqtCGy EUxD4V59l44dI/wgm/siwof/WJNJsY7oXoF/7KEX1lyPqOL/H1pL5HSmA3T4s8JgSytC6un LxZfNJTm+aAgmGA6mzz2/1HgZ9YYnp/le4VtYuidOs9SrQ8GsrwcR2DwLHWHoEP3t0ey9uW vIiiSZPaNybdwX2APMlAWicvsu2dBHZX0bCcn8Y4KhT1nqW84ZWyW2mA1iYEWTpdoa5e+pG DRe5Tz3qlokEDuW+AaaHy+FJ214aDN/3iEU+Swc X-QQ-GoodBg: 0 X-BIZMAIL-ID: 6478744900005020789 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 09/22] selftests/nolibc: add procfs, shmem and tmpfs Date: Mon, 26 Jun 2023 00:25:07 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769693731638997493?= X-GMAIL-MSGID: =?utf-8?q?1769693731638997493?= Some test cases want to use procfs and tmpfs, let's enable them. Because tmpfs depends on shmem, let's enable it too. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index ae8519fb1b49..1cddacbeb95e 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -54,6 +54,8 @@ EXTCONFIG_COMMON += --set-val PANIC_TIMEOUT 1 EXTCONFIG_COMMON += -e PRINTK -e TTY EXTCONFIG_COMMON += -e BINFMT_ELF EXTCONFIG_COMMON += -e POWER_RESET -e POWER_RESET_SYSCON +EXTCONFIG_COMMON += -e PROC_FS +EXTCONFIG_COMMON += -e SHMEM -e TMPFS # extra kernel configs by architecture EXTCONFIG_ARCH = $(EXTCONFIG_$(ARCH)) From patchwork Sun Jun 25 16:26:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112656 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7001815vqr; Sun, 25 Jun 2023 09:41:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5gNrccQzTxtgFcx1dTY26tmSsNqgOEVMTYsQPKbb1cPQVg8AMBELOn0PJy41x6InjAglE+ X-Received: by 2002:a17:907:6d23:b0:988:6526:beaa with SMTP id sa35-20020a1709076d2300b009886526beaamr20526668ejc.40.1687711276121; Sun, 25 Jun 2023 09:41:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687711276; cv=none; d=google.com; s=arc-20160816; b=zsmTGGeFa+AAX8J0rGPC5q05Fyp5mUsWJlQRY2VaQnSG0X0qWlkhlB95uLMFb6h7Zg Ws+b3I11vUxxSxkcRTf1R+n8f2weUs+1vnVUDXbBZNG+E5Z/0q8KjKAcgpZgDgLV31kD XxJp7f7cWrLlZNUtcNu3ok1qPIt2S7LfqFINn+Aqp7VQ1luaTBFv8B4b0rDy9xerFoku O1UHy/PjSBVQcWsG/OudL1JVuYS+3CphWXQvtdZUxjFWuGuWZr/wR+uv6znyW1Zl1q7v rQf93SecWW8jtWfRmVYSO3jY57kt5FiqjHYPTtZA9t2JGFWgYdkgvtX4zFXOcnATC2q7 IZNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=7WdMbg+L9OtxJljGMFJ48v8fshg48udkxJRpD6Pt0Oc=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=TVbnkYiiwiXbmhllK8lYCUcB2XE+NUMHI/rTA9WRadSGVAhE9DbtIr2eDg/AT9OENF BqC25IMhVD/YyPtzfqSgF1f3yng9OmdaF6P4vqkoQHCUrAooAyJdq4wd18/rsv8tH3Vc uqHDhwwKsdAq2ZN947v6kh8nd8AKNVh12h0n9fPoioBnjvFy4Z2ccze332sDAjaGCwDc GFVzKAU16auMn8YnpKe9X8pB8xSbct1hn4qLTaf5tYIXftH8sdTooDDNaDlEExULUmJq QbzJXKY1Rj1J0t34Vid8r2vkYk7NO0WY3F4lDU5aNxqfhqKvEA3fUTiMUZuLErvJg1eS sP3w== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s3-20020a170906500300b00977d0db2c6asi1801061ejj.63.2023.06.25.09.40.52; Sun, 25 Jun 2023 09:41:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229452AbjFYQ1f (ORCPT + 99 others); Sun, 25 Jun 2023 12:27:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbjFYQ1e (ORCPT ); Sun, 25 Jun 2023 12:27:34 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C361F7; Sun, 25 Jun 2023 09:27:32 -0700 (PDT) X-QQ-mid: bizesmtp77t1687710441t3hpzh77 Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:27:16 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: 3M0okmaRx3jfv+GrddGy/h732CQmxjaLBuw5R7mVsFbalvzaON6GtUk2EqZiu yil084Xx27fPqRjLobtwWVFo7IvOvFlhslNa8GzceazCMbcUhHFNrHC+lwMzVUiL4S2kSdH K9GOr0sgynSUm8WOXFab3g+7Zqi50/2Q8GI01zDu8jAbco2urpJCZF/xr7VzbboZhI/wLUj 32v2kQDpnY2unmncRMtucZo5zAitwlV00cV5ZqDTaqvE3AVp+TZkxIs24rcvNsmRF6Vu7Up Iy1qAwPGCUY9flOO0FZOYzO9y3j6tOPyFav11bCRDIagzJODzej/cfOEflphlq5/v79G/OG QyyL9ocHaYXR3JfV347eLsFMZZKUnqWjcMJoCDrESycuacsjR4= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 986414869022069346 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 10/22] selftests/nolibc: add extra configs for i386 Date: Mon, 26 Jun 2023 00:26:31 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769693539477694739?= X-GMAIL-MSGID: =?utf-8?q?1769693539477694739?= Enable CONFIG_COMPAT_32BIT_TIME for the poll test cases. Add 8250 console for test result print. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 1cddacbeb95e..16bfb6f9644a 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -58,6 +58,7 @@ EXTCONFIG_COMMON += -e PROC_FS EXTCONFIG_COMMON += -e SHMEM -e TMPFS # extra kernel configs by architecture +EXTCONFIG_i386 = -e COMPAT_32BIT_TIME -e SERIAL_8250 -e SERIAL_8250_CONSOLE EXTCONFIG_ARCH = $(EXTCONFIG_$(ARCH)) # extra kernel configs, include common + architecture specific From patchwork Sun Jun 25 16:28:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112670 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7009424vqr; Sun, 25 Jun 2023 10:02:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5CaKYrwv38exofEc6KJRFSbBMBvCP1QSOEs9qWweo0enSUW6yHAlK2ZLnwpDxrAg9y/HtP X-Received: by 2002:a05:6a20:9389:b0:122:20c:fbb3 with SMTP id x9-20020a056a20938900b00122020cfbb3mr23407124pzh.39.1687712534426; Sun, 25 Jun 2023 10:02:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687712534; cv=none; d=google.com; s=arc-20160816; b=dm0TsGIzIPpAcVV89pSur0kNQUXTbesy3DtOTTDZLLQzzPA2SEE57ED9dNq4JxCG5+ alEcBaiOiY1cA0TnCxbMQWJ1IGhH12PahMIwtO+SNEzd/zxzI2dEG/AEcVP7mIMz0Rdt B38Z4XhK6b4RG/YUSC1h+9GWi1LmY9urPqfELpHFSRLU6L5uoV8Nbqx2pmiYYwluUEkx nZfQ13UytbTAHP4wjy/ZL7FoxBHz8PHyM56sRIMo4OOBVlauhsJ989EwtZ0LC0yNP/Hh IbHaTMVvHmSk8P3ufITptATQ5YWYSRD0nq6LEuxnbLD76p5vhz5+lyK1El69yvHby571 dGkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=po8h4Pd7xd24LPRw6Z+Ku0VBGrixm6ekjeIE72VcPtc=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=R/LZ1bKDfsZ7MhMUiZlIINNYs+I7Qb+LQJg9V0t2mTrFg04+Sb/tcKwvI+wncrIWJw IyLBOliC+XTr+J+RazraP3zPsRFLcYJ/0LnPQXiCr/NwQ/a0eOWsXW423lSFPhFTv6rt 9piWTpsKF/NCbh3pRHEPGT117FseiNL+OEGzKgVwULS/rde24H9CAcND4U9KxLbKLbje hs58gKQ2RgkRF+JjC4470DYOtWVhDHydOA6Dq3G0VEQUjycpANkq+XG0fNA1bk/wD1Xb t1draMu59HUQDKA1YlPavkNqn7zCwwjmPAnvBN48meW0oe5OUc5E2rkQS3X+BhcYXl5S a9CQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds5-20020a056a004ac500b00668873710ddsi3140610pfb.315.2023.06.25.10.02.02; Sun, 25 Jun 2023 10:02:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231197AbjFYQft (ORCPT + 99 others); Sun, 25 Jun 2023 12:35:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbjFYQfp (ORCPT ); Sun, 25 Jun 2023 12:35:45 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83180D2; Sun, 25 Jun 2023 09:35:27 -0700 (PDT) X-QQ-mid: bizesmtp65t1687710553t98ik04m Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:29:12 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: 3M0okmaRx3jAAyOIuYctrEAjhb6lfe3FzB4NnUfK8VafOKQE7HZhtdj4uDGS+ 1W00RXUROLI+idPD0bhJrNaGXY12br/ovI2SbZ7XL0oyCPVpVDMC/PGb/MshT2mM3Bv8G6V Yq4Jsio/H2+5DbAvbgUXDjZGAsdmVKeUwVcYMoafnUtjcXkTWbK5kZTAL27NYh5dQcEABaG NVXtVp51mAfJbZ+vMl3/Ja7EpiaPJywcET9lwTrfb16YsP3QcUGy9J5wv/F3DT+Oqea9z3d UdPwSsJgcXT4edZ58GD9Oi7nLGD/i7yzQLBS0mZZlQGjqaz6Je+nVfZ55ssegksEk6HAaJ4 gBGUstM9JmOQDP/E28rvhGrgsuwIHaiDU2VLu3s6LrJxq07BEg= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 15685378674173329080 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 11/22] selftests/nolibc: add extra configs for x86_64 Date: Mon, 26 Jun 2023 00:28:26 +0800 Message-Id: <3a29bf1052f72703ec4fca867164ae13fa6c90c7.1687706332.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769694858505813412?= X-GMAIL-MSGID: =?utf-8?q?1769694858505813412?= Enable CONFIG_64BIT for x86_64 and x86. Add 8250 console for test result print. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 16bfb6f9644a..d45454f86ae1 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -59,6 +59,8 @@ EXTCONFIG_COMMON += -e SHMEM -e TMPFS # extra kernel configs by architecture EXTCONFIG_i386 = -e COMPAT_32BIT_TIME -e SERIAL_8250 -e SERIAL_8250_CONSOLE +EXTCONFIG_x86_64 = -e 64BIT -e SERIAL_8250 -e SERIAL_8250_CONSOLE +EXTCONFIG_x86 = -e 64BIT -e SERIAL_8250 -e SERIAL_8250_CONSOLE EXTCONFIG_ARCH = $(EXTCONFIG_$(ARCH)) # extra kernel configs, include common + architecture specific From patchwork Sun Jun 25 16:30:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112651 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp6998878vqr; Sun, 25 Jun 2023 09:33:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4GBKcp7AfChKhwYpgBJJ3MV3pKctEatPrCbMnYDMKzMdfYrQTDeNYOQ+NjX2Oh9gdr3aX+ X-Received: by 2002:aa7:cd5b:0:b0:51b:e4c7:410f with SMTP id v27-20020aa7cd5b000000b0051be4c7410fmr5316083edw.6.1687710820779; Sun, 25 Jun 2023 09:33:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687710820; cv=none; d=google.com; s=arc-20160816; b=dA3TWmvEyXbeLK9CpwVlMXBoxQFtkxrIj6e7sp90LpHr/L6k41W7kuq081CHD25K1Z 3Gwc7J588wfeq8gGDzdFVlNkpNi2V2FNCq/WEQkP3yLbeGKgD3nue4Wh+liV9QjKpTH5 YN9DDzLdksn+RCk7d2mbQb+OxUP6o6Mng/hUIH660ppFV7DE8m0FsKuLoEAwHiZcyetf 2ZECbINGbEZUqW2Y+xmAKnEapYj7z+cLi05lKxvnRGS1F+NclioiEQ/BNjAcQ0EGf8u7 K4UP+ScEqpFZpl9VK6qhjpyIwx1aZlDwPvCvz5fhDcEph7D15KLjVPcIJwKn+SgQ07F+ oXgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=eW5zfZklsRMtWC05BBX44Aln+ShUAzSOQuGtkfebrP4=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=YV1nP6YAJhJaCxAyYzz7aN6rAyZnjWA7gKOGIRJDSWals+LrIrHFhLFa7Qabe6sWAo S+VGzx/xTewBXMRD6hcxXvhrMHtlMsKuqQ4bKHpjKtx+L5bD/AX/1RN67/Nox5DQjZXf G8qFeRkZYaNhskFCmd4cZXiNu5hiMhYDY6BFm0dqVqPAuH1zzskZieCiI2i60PaopdHz uqLwxPI7cgbRqPtlLG1R0IwdMw3iL3kdaf+zHp6dlts5J+o2a0mZi7vjt26NXOi5+o6D 8GoukhEwcFw6QfUtaVz7UtsoDj+gLPP1NTXM/FfvtFwu2bXaQakL4xn/ham5QlJZoY+t /Gxg== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d13-20020a50fe8d000000b0051beec1b3f3si1637769edt.500.2023.06.25.09.33.16; Sun, 25 Jun 2023 09:33:40 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229820AbjFYQcV (ORCPT + 99 others); Sun, 25 Jun 2023 12:32:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231806AbjFYQcG (ORCPT ); Sun, 25 Jun 2023 12:32:06 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59D412728; Sun, 25 Jun 2023 09:31:30 -0700 (PDT) X-QQ-mid: bizesmtp85t1687710626t7jbsr0w Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:30:25 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: CR3LFp2JE4mpAf5y1pCIlD9ZuX5yZ9/MFjh9Rx/IYCq+dZVYGNuGoTwWI2/cU 7y7AqL44Pdv4fR6BRFE2lKIGGIqoK7WSllgvTCbiF7Pt8YiUDmgoWHuaE8vvDnY+kob8aD4 rcRFHrAWameWRiSQXD4QKc6YlPDfxIzaySY1pj4n91YVobq79egaQIPRAOBoL2w6xj1KX90 rbJYg/39ozxNvpn0O7+NW9mQyyWrrN6yhBjt3CXXQboXTRbjlGk8sl0/6rjRnvp1w9Lbgiu Qwvd0ki0gNaYVTUHb1oNuJoIv0UZODB0/WFuM31AGbiFatgymF9gTMwqsJboJt+o6sISVp8 R0T37t5eMjeoZHVqoaRHxNNYneZp41r5cY9m6ZV691Y9P+tG1s= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 16565260553308252172 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 12/22] selftests/nolibc: add extra configs for arm64 Date: Mon, 26 Jun 2023 00:30:17 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769693061219534456?= X-GMAIL-MSGID: =?utf-8?q?1769693061219534456?= Add AMBA PL011 console for test result print. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index d45454f86ae1..6e59a694096d 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -61,6 +61,7 @@ EXTCONFIG_COMMON += -e SHMEM -e TMPFS EXTCONFIG_i386 = -e COMPAT_32BIT_TIME -e SERIAL_8250 -e SERIAL_8250_CONSOLE EXTCONFIG_x86_64 = -e 64BIT -e SERIAL_8250 -e SERIAL_8250_CONSOLE EXTCONFIG_x86 = -e 64BIT -e SERIAL_8250 -e SERIAL_8250_CONSOLE +EXTCONFIG_arm64 = -e SERIAL_AMBA_PL011 -e SERIAL_AMBA_PL011_CONSOLE EXTCONFIG_ARCH = $(EXTCONFIG_$(ARCH)) # extra kernel configs, include common + architecture specific From patchwork Sun Jun 25 16:31:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112659 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7003055vqr; Sun, 25 Jun 2023 09:44:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4z462oOeQ8ohGksY08cjd0KFcAp3TXPr4C0K4KTEGr90Tsb0NJRJCFlN9Bf7C0GIGdeG8M X-Received: by 2002:a17:907:318b:b0:978:9e92:f903 with SMTP id xe11-20020a170907318b00b009789e92f903mr22392603ejb.46.1687711484688; Sun, 25 Jun 2023 09:44:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687711484; cv=none; d=google.com; s=arc-20160816; b=y//aJcYaJWzNz/WfGlMlNG5GY25kc8zw2dUpLljKZVh+Ek07pjnCV3I9Qhy9YY1A/V URiBh2gsMRFPr15VJgRBQ/R2hG4OZ+gB3g3H681yTa3tzPPFcBWPsPSCDaqyVEcdlXx5 1qHKlAwIE/NPg+ysEgIXOeQ5MIrIY/Ab5HxfptomO3GfraisM6EQj/wRa5FB4xHd1xuZ wI/BJF634FiTGuEIUEnOtbminsKtaK0n4sfAHJENkTTEm3ZpGOQ79bQCXKnEO05G306B fkErjzDnyDMGUPgEf2GFFNbnoRefYyefWLPMq5QfqZY7aZ8/srD7B0NCPkBdtsKbi5T0 7hbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=XcP0kiUzcQ1jrEwfW5ur/d1mwzCyzU+DvFjTHH5bQLg=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=bOHHh7bZp+uHwChYDTufxTHujSsOnaIUx0asaBfPr09g/v+czc5uKcDcHgMNZKFP9p B5dyoAGRQxXCZnCUlJZk5vZqziBvLLQrAm9QjzMfHxinxhzuZJXq4pIF6ey5Ax4mahw+ tCDTaRKSy9PS3ss6clPKToIbXoFRR8cmP+xlcUMGUckPdo3mPWO5jxgVGhYwAyCVbKYb RrFZKV6JT0DYZ03055sm0ILqY0ga0sgGj+ysLT5QHCuI6syIOw6fx6Scfw/qXlJB1YoR +mlkd6CNW4Yjsx3KOED1Ka8lOj4ByOZv65fBclK383VuTip0pInmVgdOCuSWzYd1Kz90 rApA== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b10-20020a170906490a00b009875697d993si1934011ejq.555.2023.06.25.09.44.21; Sun, 25 Jun 2023 09:44:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231466AbjFYQdj (ORCPT + 99 others); Sun, 25 Jun 2023 12:33:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231288AbjFYQd2 (ORCPT ); Sun, 25 Jun 2023 12:33:28 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AEDA1BE4; Sun, 25 Jun 2023 09:33:05 -0700 (PDT) X-QQ-mid: bizesmtp66t1687710716t7j8m98e Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:31:55 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: LE7C6P2vL8RGulXWTTLak4tKHmM9RyxNo4MpbhA1cetkjXVlxD7BfmIkGgBxZ Ucd2qvMGnBiNEi1gt8gFRG/QB4iuakqK4bLQWTHiXz1IFwr0pOKNSipi+OQqDhF0Xlr1Erx YjmmGzMcDzYy5AeV9+gNwwrympcxJjWnFXHhFjuQCcKDNm76J/5XjOVV+mce7JRpYWu5t7h 6oynNPEO+ZTpgOFIBwTo5o0vPxK3IFg2rh6vYk3RQG9dDPAv7S67oy4ZdlgYzahE/ppOHyz vjDr8orwmf4JL47UyysQnYEeHvjyV+jojY+XvtHZCdTb1609MzK+3yXbnVp9QMHWeszl11t KU0+RkddaxiUciiOajhmc54aRNxd1T5qnX7/jvvTmjghBGlEOY= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 7069103967638041911 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 13/22] selftests/nolibc: add extra configs for arm Date: Mon, 26 Jun 2023 00:31:30 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769693757779997389?= X-GMAIL-MSGID: =?utf-8?q?1769693757779997389?= Enable minimal configs for the arm virt board of qemu. Enable CONFIG_COMPAT_32BIT_TIME for the poll test cases. Add AMBA PL011 console for test result print. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 6e59a694096d..79983ddc1584 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -62,6 +62,7 @@ EXTCONFIG_i386 = -e COMPAT_32BIT_TIME -e SERIAL_8250 -e SERIAL_8250_CONSOL EXTCONFIG_x86_64 = -e 64BIT -e SERIAL_8250 -e SERIAL_8250_CONSOLE EXTCONFIG_x86 = -e 64BIT -e SERIAL_8250 -e SERIAL_8250_CONSOLE EXTCONFIG_arm64 = -e SERIAL_AMBA_PL011 -e SERIAL_AMBA_PL011_CONSOLE +EXTCONFIG_arm = $(addprefix -e ,COMPAT_32BIT_TIME MMU ARCH_MULTIPLATFORM ARCH_MULTI_V7 ARM_PATCH_PHYS_VIRT ARCH_VIRT SERIAL_AMBA_PL011 SERIAL_AMBA_PL011_CONSOLE) EXTCONFIG_ARCH = $(EXTCONFIG_$(ARCH)) # extra kernel configs, include common + architecture specific From patchwork Sun Jun 25 16:32:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112669 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7008999vqr; Sun, 25 Jun 2023 10:01:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7pf67f6FR5W93EDSTjCEqMwFRPyP7h4ucYIGaZdTolFagZAqCFAHIZEAp2GomIa5A3IgoU X-Received: by 2002:a05:6a20:840f:b0:112:5404:88cd with SMTP id c15-20020a056a20840f00b00112540488cdmr22572988pzd.60.1687712492697; Sun, 25 Jun 2023 10:01:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687712492; cv=none; d=google.com; s=arc-20160816; b=Wdn6wliif0LVqElwgYJAa9kcC1l9wF3HEoDHYyUIAbVwaYi11HMe2d9IC5xGZAobsZ 4s5Cstb206AffeF9Ee3Tr2EbOo7dA1lT+ulEO9twlyhzJ0MdDBpi+nlV9MpMl6pvQPW7 KszAw4Oq3nmlDkByQXAPXZMxwZcstrlavEogQyBy2Hpx+es2m+nxJIJ3n1T0aa3q26ka kPIAb6p/h07YpJiVnIEMf5PGnkxKJcwCyUemeauRbLO/ouus4nwVO2aGmB/CJ8UyQ1qz kFINKBWfz419TTseRZDGH5Ry6dTTtEaB0a1jNvBbxaBSCE89Xs5oMAIQi+TDAce2Wi9T kPVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=irqIeHUN9jIYdUGmKCw33jPlFhZo30KGfCZtt4jufaY=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=pnfIun2PYdFGXjLjoIdFQxbzbS+QCtV2Po68CMP/im5eamyeXHg5fOQl+Vcd4VmDMf wxeqCXpf2X3aiuKldQm6p2FeVwhmvwnyBb1izKsDGOf/mtkIv9BzywDhlxjdSWwWiTLw Jmq3dENGEcZlgbbcynQNsb09OMr/j1QzvsNy6LRtNsFQuyQkYzkSgga/GRwHhoQCdCfZ 1clasXWREkR3TFUx3ALOFA8C7LCgfMDYXTESs4wrVR1TJ3RT8vKHm8YOd5jI4eHOQCbv XaxD43XpM2pRPHakImyZX5hh3LuZbfZboqcBhbsqNMFnVUmSeECHncrtzhn/NS+ymz2e ubmg== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id be7-20020a056a001f0700b0066022ba7f10si3209692pfb.100.2023.06.25.10.01.20; Sun, 25 Jun 2023 10:01:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231277AbjFYQeR (ORCPT + 99 others); Sun, 25 Jun 2023 12:34:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231288AbjFYQeN (ORCPT ); Sun, 25 Jun 2023 12:34:13 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B90EFBB; Sun, 25 Jun 2023 09:33:45 -0700 (PDT) X-QQ-mid: bizesmtp87t1687710788t6lq8x2e Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:33:07 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: rZJGTgY0+YNWjHTNB7Dh56ShOV2PiCWCmyfgKvezs6NaTZuHDGAZg/4YPbaHK PtaaTRTEkNvLKXw1sBjG4HMF8CnGnG26BlT3rUYAFk4uF5IVWgqHgL0QmYfdWSl4ehu96hG 5h6/oS7JkFmnotsk3I5ym2OYZMxiGs4Cg/Vy4S8fukcz0cd8RrbSme60jYuquP8xWYeHu7z yb3syMYnI8NTnrJjlq9XGrW+ILtIIoF/ND79VkXZyIfb89B7Fu2FQE7MwCytyv7Ar4dJVNG Ol3BCS/796y0UtJmP9ETQyERpR9vAbhNZ5vPPHnigMwM6wRhu9qImtlMMZfJoSyKMfUFvSV oBHqBBWoGNxyrkBSK3A1QF6XO5pPDoXtebCZ3ICHU9Mp85U48U= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 6973877681573296904 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 14/22] selftests/nolibc: add extra configs for mips Date: Mon, 26 Jun 2023 00:32:59 +0800 Message-Id: <335d7f5a0091878da56fae1d3a20bdf28c77d888.1687706332.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769694814971808420?= X-GMAIL-MSGID: =?utf-8?q?1769694814971808420?= Enable minimal configs for the mips malta board of qemu. Enable CONFIG_COMPAT_32BIT_TIME for the poll test cases. Add 8250 console for test result print. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 79983ddc1584..234abf54cac5 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -63,6 +63,7 @@ EXTCONFIG_x86_64 = -e 64BIT -e SERIAL_8250 -e SERIAL_8250_CONSOLE EXTCONFIG_x86 = -e 64BIT -e SERIAL_8250 -e SERIAL_8250_CONSOLE EXTCONFIG_arm64 = -e SERIAL_AMBA_PL011 -e SERIAL_AMBA_PL011_CONSOLE EXTCONFIG_arm = $(addprefix -e ,COMPAT_32BIT_TIME MMU ARCH_MULTIPLATFORM ARCH_MULTI_V7 ARM_PATCH_PHYS_VIRT ARCH_VIRT SERIAL_AMBA_PL011 SERIAL_AMBA_PL011_CONSOLE) +EXTCONFIG_mips = $(addprefix -e ,COMPAT_32BIT_TIME MIPS_MALTA CPU_LITTLE_ENDIAN CPU_MIPS32_R2 SERIAL_8250 SERIAL_8250_CONSOLE) EXTCONFIG_ARCH = $(EXTCONFIG_$(ARCH)) # extra kernel configs, include common + architecture specific From patchwork Sun Jun 25 16:34:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112672 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7012676vqr; Sun, 25 Jun 2023 10:08:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4G2nnQ8FDfF0QYPLxEySNWKfFdjjcmbi5X/l8ccf6TfMQP13MpV3UBwdXc0SZWXvTIa/fp X-Received: by 2002:a17:90a:7f95:b0:262:ed62:d23d with SMTP id m21-20020a17090a7f9500b00262ed62d23dmr607803pjl.13.1687712913726; Sun, 25 Jun 2023 10:08:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687712913; cv=none; d=google.com; s=arc-20160816; b=Tx7xDvx92YYsvhxkCRGAVf3j1p0BFWpem9Q/Unh4n6sORHxYmMwtBBWbCZ6Q6MkX1b o2Vsv+0xLuClvaZeS0IcK9K0xc20fJQ0LUdHzCudhNmvRl2cgAB9netaO9bIKgHpBCQ4 w6ZTJbNkowWnm3oLPOQ9xbcpKzbHWiPP6vRGn3ZiZOe5SSK+X6UkwjuLz4sE1JyQuqxj a2+4tikHyE7ORC59D3vbeTyj+6us6vHnJ3ikSZCZlDRyDyyV/+k8ps/F9wngsR9lkQMu RP18pjoNwkx2/b18wdlfmlq28booC3huPFTjy5xPmjA17hE6SUVFIrtJjBizktQhHwHf d4fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=SP18KLRiDwYAiBiP6DJXQGKw3F/od2Dyvh+84W2BaLc=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=iEYIEjVsAhcgjf9awLyNQYR6JK8JvGVsh6cl5B4Q9um1PB5WrE9OxiCaMA3grFSiu1 OeKe8iXjn03zl6THJ69eXgbK6XUX1QQzvNNpOyZPh86oVEP/xfLyPPvfe2WIpoLAPs/z 8tjNQbdT3Qy7MjW9GL8ouKPhnL6JSxjv7Dtkf2vwalfddw0+GdnP4zvOXkO2VQdnCM0d b6FlURfd4LWf6JourF+4sQjdd89eJo7I8hCBMe+ytvwwNrc81lv5NRvdIMYvewjqSl84 lKBRjkDZaetwnoBQtAzkpS580fj9dqn5W3DdR19tgV8dB5ARMuZMk4Py/mRViP2BcDeA PH5Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg16-20020a17090b301000b0025667be94f0si5653962pjb.77.2023.06.25.10.08.20; Sun, 25 Jun 2023 10:08:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230179AbjFYQfg (ORCPT + 99 others); Sun, 25 Jun 2023 12:35:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230192AbjFYQfc (ORCPT ); Sun, 25 Jun 2023 12:35:32 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AC7F119; Sun, 25 Jun 2023 09:35:09 -0700 (PDT) X-QQ-mid: bizesmtp79t1687710859tqxiqm8q Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:34:18 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: k0mQ4ihyJQOTuhpss9scD3ORA7HKx+iDT2vgzMbOMHbCOBVM+4lja0YIoyg57 mGvpXZCoXiOqeclB7d/EcpYmus7bMLSlYJ1eE/eKkh/qjwS09IAIsVQ2wRLmZzRF7/dFNr2 oZCbeqr+xhAGQyHU2YJ8b2BlykzXaME7H09r8es2lfMeDwwUsDLFvWknZq/yuRqSfSINUqA xvDCGR45cEsV3By50UOGQB+HG8M7F6e+B/Ao4PwV/1bDP2zivVn+XPL2dqBzWPU9HwQPEsQ JR8h+bAe/pOvbatOxNWnHrmGaevw0Erj9mn0H9mOlg+vFnmXjrWkliSyKtlccRK8zn363mQ ORbWVVBnVidFO2QvJCOxQaRmhje8MrZ4pt7FrLPQMz8umtgxQyPO+35kkx/fQ== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 4357656909882141855 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 15/22] selftests/nolibc: add extra configs for riscv32 Date: Mon, 26 Jun 2023 00:34:12 +0800 Message-Id: <4937593aec1f39fbc44231a874a787eb29d7a47f.1687706332.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769695256012200002?= X-GMAIL-MSGID: =?utf-8?q?1769695256012200002?= Enable minimal configs for the riscv32 virt board of qemu. Add 8250 console for test result print. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 234abf54cac5..3ba2c25eaa8e 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -64,6 +64,7 @@ EXTCONFIG_x86 = -e 64BIT -e SERIAL_8250 -e SERIAL_8250_CONSOLE EXTCONFIG_arm64 = -e SERIAL_AMBA_PL011 -e SERIAL_AMBA_PL011_CONSOLE EXTCONFIG_arm = $(addprefix -e ,COMPAT_32BIT_TIME MMU ARCH_MULTIPLATFORM ARCH_MULTI_V7 ARM_PATCH_PHYS_VIRT ARCH_VIRT SERIAL_AMBA_PL011 SERIAL_AMBA_PL011_CONSOLE) EXTCONFIG_mips = $(addprefix -e ,COMPAT_32BIT_TIME MIPS_MALTA CPU_LITTLE_ENDIAN CPU_MIPS32_R2 SERIAL_8250 SERIAL_8250_CONSOLE) +EXTCONFIG_riscv32 = $(addprefix -e ,MMU ARCH_RV32I NONPORTABLE SERIAL_8250 SERIAL_8250_CONSOLE SERIAL_OF_PLATFORM) EXTCONFIG_ARCH = $(EXTCONFIG_$(ARCH)) # extra kernel configs, include common + architecture specific From patchwork Sun Jun 25 16:35:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112666 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7008229vqr; Sun, 25 Jun 2023 10:00:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4cF3QyUAC12gzVz3M82cErOtv2RH62NByajOmDDyADYFuo9JhsOudr3Q7b1QxxNYRFWfHL X-Received: by 2002:a05:6a00:a1b:b0:668:7090:bf15 with SMTP id p27-20020a056a000a1b00b006687090bf15mr30902446pfh.6.1687712422631; Sun, 25 Jun 2023 10:00:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687712422; cv=none; d=google.com; s=arc-20160816; b=TzGM7lV4kn9SpN4iDyToiwQMqu9Udvc0cBXFJwOWQ/L+ue+jyHiN52QzZgr5+O57aS r4IA6ETDDls+WvzIKr9SBaRCFOYKksPmj0AYCFINR6hlayL5B8mjV4BhkjxIxQNdDnQV 8mXnu0ptiCNLCKXxYQLb48rjbsdypArMPkXp82XKqVAuelOzwPpMPhE/8GrFpGnbd7Ce wYMB5yhNTqUO28zUuDZdO4N0oRxpTVD8Flz762kQlQ3SOjpxNLsou8NSEDQpgdbLEe8E tomdyefC5GTD0pBU3PTGuj002ZdG+7TOuAPSWEmS6Pq0OA1oTlt+cisXoS4+0gQUGUwM S30A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=JTQBjdyihkOEnOFFfZTsOfnkvnfVIaX56AuLJVhTxBM=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=CJO+iH9W35P9oIkHGhcI5Ik3BmZa7uKyNM73OrUKbFqGHidJGxLfIlhs78dlbkNZ4L 6jyGTUOk0g0p3CiSRYBbSaZvwTvango+jWtyi7aJvaEpDSeFrRPPl/B1rDnGxvxQF73r DtXYCxMLMGW0cVOz9g8EuZ8eT/2eK+UdqE5MtLiHJIM1CxJjiGQdBR+lLMhoYqlBltTC 7Bh/HW5QoS8eAV8wTn/g4xeI/Zi+KkchVeh3CL1/66JWwj2+damONsT5f+frrfGcOeNb jsi5CfrLp80uXFMTDXfR4cvurTuhOsHTl5IUFVqehry2MeiXNTT4m2rn/4gclY4WJoth Uqcw== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds5-20020a056a004ac500b00668873710ddsi3140610pfb.315.2023.06.25.10.00.08; Sun, 25 Jun 2023 10:00:22 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231295AbjFYQgT (ORCPT + 99 others); Sun, 25 Jun 2023 12:36:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230389AbjFYQgJ (ORCPT ); Sun, 25 Jun 2023 12:36:09 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 523C210E7; Sun, 25 Jun 2023 09:35:53 -0700 (PDT) X-QQ-mid: bizesmtp91t1687710943ty5a4ucc Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:35:42 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: QHkcO4X2U8hovBxPmn/3fLiGx7agNworDtGVv7Cb7ihBg5UWBCc18OSIeh6Le IUaG7oTsKmsWdN1jJ/6vOl4WQLNgLuIDGG/hDmNprRW4tddA/UyU3VrCx+lV/TrEcfe2toy 3THX4LXODQSQIUcCLGglclpDWQmf6kaxY2P3Yh57UDj8LCOzSUewZDs0oJxvSl2Ij4LPVIX /C5rzPXH5Om7hLdMuQyXxaG5h0x6GtzMKzNTt+vV1nToUxls/iqBOi2FHxnGesLy3V0hb0t 35tnaExf9PXCWSBfW4hYoeu+6Xbs+ieFNMKQhl6dBm2B+Z9oVw4ZRbGMI7gQZaUV3Hw05fg Igf18mJeZsxb0XR233Xhfd0qNd85MZP7Epeo46AKIPmMCO/VVk= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 13129285188948517709 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 16/22] selftests/nolibc: add extra configs for riscv64 Date: Mon, 26 Jun 2023 00:35:23 +0800 Message-Id: <0bea7430b0c9e1fbc77ddbdbd91d698634726e3d.1687706332.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769694741042519080?= X-GMAIL-MSGID: =?utf-8?q?1769694741042519080?= riscv implies riscv64, so, the same config options added for riscv and riscv64. Add 8250 console for test result print. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 3ba2c25eaa8e..8f9cb118cefe 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -65,6 +65,8 @@ EXTCONFIG_arm64 = -e SERIAL_AMBA_PL011 -e SERIAL_AMBA_PL011_CONSOLE EXTCONFIG_arm = $(addprefix -e ,COMPAT_32BIT_TIME MMU ARCH_MULTIPLATFORM ARCH_MULTI_V7 ARM_PATCH_PHYS_VIRT ARCH_VIRT SERIAL_AMBA_PL011 SERIAL_AMBA_PL011_CONSOLE) EXTCONFIG_mips = $(addprefix -e ,COMPAT_32BIT_TIME MIPS_MALTA CPU_LITTLE_ENDIAN CPU_MIPS32_R2 SERIAL_8250 SERIAL_8250_CONSOLE) EXTCONFIG_riscv32 = $(addprefix -e ,MMU ARCH_RV32I NONPORTABLE SERIAL_8250 SERIAL_8250_CONSOLE SERIAL_OF_PLATFORM) +EXTCONFIG_riscv64 = -e SERIAL_8250 -e SERIAL_8250_CONSOLE -e SERIAL_OF_PLATFORM +EXTCONFIG_riscv = -e SERIAL_8250 -e SERIAL_8250_CONSOLE -e SERIAL_OF_PLATFORM EXTCONFIG_ARCH = $(EXTCONFIG_$(ARCH)) # extra kernel configs, include common + architecture specific From patchwork Sun Jun 25 16:36:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112664 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7005278vqr; Sun, 25 Jun 2023 09:51:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4yeg404YHqeo0BhRGipe7E9vuWR+iR7HYwbwOT0KVP4JG/Xhdlfx4/tBeAjcdJ1GD2JUzB X-Received: by 2002:a17:907:7294:b0:988:c97b:8973 with SMTP id dt20-20020a170907729400b00988c97b8973mr15413862ejc.6.1687711882835; Sun, 25 Jun 2023 09:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687711882; cv=none; d=google.com; s=arc-20160816; b=EDwpOXJovzOV40pGRdSwutFfLO2R7C5CIS9MncyDYWn5qXLTZl/n9VNx8T2IMKKlkz t2y7nMW/mM0KWdaaKSDAsTuR9o5DU0uJJazhBjFS+3ibDwdaVqLFJu7V5anjCnuVwoaE 2xzQCHlBmMoD34Gkv1d/xeSrsfyzCXs+V+F1jBe2UwjnG8zNok8Z0ycxQr7j+0Bas5ry +j9fAS+gFftTlQCi/dBL7t4tgnuBMc8ffyFHSXm26OWoBRpECvd4A7GT1OX/oCJXETNZ e+RJu6jV1uiB4pDOxj3COWlKBPV401cSwpCUiofncnfZnLDe0lOA/fT0pmU0ddA0Iwbq o1zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=8KHo9W+tpnQkZv5RXOiEX/TS0zFTC3s+iLsWr+1BaDs=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=jySvpw0pKWUUOFGiK9Dd+vyMus51eMDxPhF8x6UFhQowzuYajtbYUunYrAwXs7HduZ ZCwkmevarxxvQniP+gdTU4OPHtBug0953JwcWQkPtQlVfTGIOSNPqoIDFgiBoeLUs3k0 a8G146HPLSa8mesgmv0vf8VpmQtDUJdvozfrmjn0B7vSVvb6pT/RbCJGxxbaFS+YQgYi nIxgoVCRF8beXAyz5R70XqAIt9JHCTZHm0svFurc0h4fhjHVgQE69tBdaL9W3alCFgFL EKlaZbR/d1meYhYxXHlnvjKurrhil59q9NFNNqwLSyRioap3+btW9ZEvNZ0HpxjRiFy8 Cfhg== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt24-20020a170906b79800b0098e296a0aa5si1021310ejb.416.2023.06.25.09.50.49; Sun, 25 Jun 2023 09:51:22 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229662AbjFYQhK (ORCPT + 99 others); Sun, 25 Jun 2023 12:37:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjFYQhI (ORCPT ); Sun, 25 Jun 2023 12:37:08 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98294119; Sun, 25 Jun 2023 09:37:06 -0700 (PDT) X-QQ-mid: bizesmtp75t1687711017tppn3g8b Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:36:56 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: D2GZf6M6C/jnrzaM/7cYWsO2GcCj0igagDr7PV1z4cEq6WN6WlYwJodtMIHN/ Hnl1tikDNdJv3IbomWQz1ZAijLcfpKiglb9dlWrzBRDFn5I9vZgyMZBV6+FZoRHObY+a66H KK+Fa/wCuOTydHQ7SiXwDZdqgJTPW9izf5tJSZL76NI9AZcA6EUvEl+vTCr35/6EnPsR4nw XXLRcx4ALagiODjy7XnWeht6FzgUZUModD+/50YD1iqY7CJNkop8BZnI1DuRAoFRse3vtfk hc0wjmmWj28BgedMdnxM6xlQDRD6VooQPRjHFL23hkCfXhRLZEBW5YLEFIf0FA7jO3BgpRG eEvWHnfpyup5Y4kZ9SzesC4vNIL8NbLZQUYSQvVnMwRb36gXa8= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 17452886390884145354 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 17/22] selftests/nolibc: add extra configs for s390x Date: Mon, 26 Jun 2023 00:36:46 +0800 Message-Id: <0a9d0c36a9332409b63691a49f4f629285e82372.1687706332.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769694175237643444?= X-GMAIL-MSGID: =?utf-8?q?1769694175237643444?= Add SCLP VT220 console for test result print. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 8f9cb118cefe..4d0de9e90d86 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -67,6 +67,7 @@ EXTCONFIG_mips = $(addprefix -e ,COMPAT_32BIT_TIME MIPS_MALTA CPU_LITTLE_E EXTCONFIG_riscv32 = $(addprefix -e ,MMU ARCH_RV32I NONPORTABLE SERIAL_8250 SERIAL_8250_CONSOLE SERIAL_OF_PLATFORM) EXTCONFIG_riscv64 = -e SERIAL_8250 -e SERIAL_8250_CONSOLE -e SERIAL_OF_PLATFORM EXTCONFIG_riscv = -e SERIAL_8250 -e SERIAL_8250_CONSOLE -e SERIAL_OF_PLATFORM +EXTCONFIG_s390 = -e SCLP_VT220_TTY -e SCLP_VT220_CONSOLE EXTCONFIG_ARCH = $(EXTCONFIG_$(ARCH)) # extra kernel configs, include common + architecture specific From patchwork Sun Jun 25 16:38:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112673 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7013809vqr; Sun, 25 Jun 2023 10:11:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5zpYalfKktlHs9k85OH9YI5PMkdcGQEpMOpHKvFPXjoSa2ccE2ojLFj3HwFuGcWWEmjNwq X-Received: by 2002:a17:90a:c213:b0:262:ad7b:2310 with SMTP id e19-20020a17090ac21300b00262ad7b2310mr3418420pjt.30.1687713077711; Sun, 25 Jun 2023 10:11:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687713077; cv=none; d=google.com; s=arc-20160816; b=WEycftYWMayz5YjtzAnR11CJ3ZEIGEnFczbV2u3qrppmNRI6F8LzLK/WwsLxNnE8h0 0njSld9Gj2av8wbPI5BLlsmwBJ1a//d4NqLtzNt/rOfalorzAn0XJJDjkSOvUDUHxJV4 m+wwNo3bb1LoH20B0exMNINpjSX0ghks3TvOwtVpJa+f5sEBhJOdWqU4xzgj7xP2FR2i exjtDoXottrDTLpUUZEtYjmNFCOpPLVLe6H3NQWdwrnm8ohttS0muSNlXV+IsP3bVbn7 atZEjLeKoKRMgt5YGSitbAlK/kWKaCGnAQPmB2CtcFVDJzKj/Nar6Y0rZGaZH3bWU5TC s/7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=j4hnszQM/45lJGvn/19GMMr9C2H9umEu+H/2rF8g9vs=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=ozAlnM3WQslFQv6ErsQsTbrxXSNmWY+4BozoYli765A4ldQwdb+VPK/4oVAsmFn8FT gWDGUZ07zvKblhiJ0bBox8lwe+OICnuJMT8vyL4ie49yTh1eMxSjoKV4br3pX0Auu5Il LGKHlZBRe3oe97fDK/gY/3olxGDdoYhlp4BYY026LWN4bxFtRvGkns6gaNpzVIF8xZ02 TZ8UwhUlg+S957TCy3wKZQjpkLfMBSz3og3jtSfTPslTFwe6pfETM27UO+rWq2sovWYa Q8qPdY/FMCpbMZHTmoSm6NXCVqFVTS23StM0GRMm3IDDSk8fmoyzC/YDdwKOdHFai5ag S/nA== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg16-20020a17090b301000b0025667be94f0si5653962pjb.77.2023.06.25.10.11.04; Sun, 25 Jun 2023 10:11:17 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230058AbjFYQiu (ORCPT + 99 others); Sun, 25 Jun 2023 12:38:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjFYQis (ORCPT ); Sun, 25 Jun 2023 12:38:48 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9FDEB9; Sun, 25 Jun 2023 09:38:46 -0700 (PDT) X-QQ-mid: bizesmtp73t1687711115t4rohu2l Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:38:34 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: 2d9G4llBGh4DhBoewQkeqNdbGbShZj+bIjJtuorGsg9cHW2fmzqLOFLxYqvxw pEqO5rq3507HWCbQcfrPUIMZINYQMoOtFqdx41gYZGHTemgu4FSZIrkqKqDysRj8Q0wlxvE 2XSwxmPS/dZv978bg86pm8FzAbz9mng4G+DHzgUSY/JvlBYs1OWdeUK1+KJC7lEPOCSzW/z S9ENACer8nmXJJTVVwA+so5Y+avPCzbhXhpdOPcDRQ4mHhOlBMtPwGpHqDMaKERVve+OqHp DPCQiiRT+1bFE3S6QjMXlEaRH6N668GgmhKH2TFBJqjlpOi/YIEfvJ8JjlEebaAEopQqgxj BwqaA01EvQ4uXoaFNmwpP0ocbQE3SwLJFTo9HU8eZ8Eo9q/Kxj3FrSZGP/+zA== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 6002407721714959409 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 18/22] selftests/nolibc: add extra configs for loongarch Date: Mon, 26 Jun 2023 00:38:01 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769695427800428356?= X-GMAIL-MSGID: =?utf-8?q?1769695427800428356?= Enable efi support for vmlinuz.efi boot. Add 8250 console for test result print. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 4d0de9e90d86..9092d209ebd0 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -68,6 +68,7 @@ EXTCONFIG_riscv32 = $(addprefix -e ,MMU ARCH_RV32I NONPORTABLE SERIAL_8250 SE EXTCONFIG_riscv64 = -e SERIAL_8250 -e SERIAL_8250_CONSOLE -e SERIAL_OF_PLATFORM EXTCONFIG_riscv = -e SERIAL_8250 -e SERIAL_8250_CONSOLE -e SERIAL_OF_PLATFORM EXTCONFIG_s390 = -e SCLP_VT220_TTY -e SCLP_VT220_CONSOLE +EXTCONFIG_loongarch = $(addprefix -e ,EFI_STUB EFI_ZBOOT SERIAL_8250 SERIAL_8250_CONSOLE SERIAL_8250_PNP) EXTCONFIG_ARCH = $(EXTCONFIG_$(ARCH)) # extra kernel configs, include common + architecture specific From patchwork Sun Jun 25 16:39:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112667 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7008409vqr; Sun, 25 Jun 2023 10:00:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6cgsngM11IfmzJgQnnaqXj/mpXsC2wfuKWtkMv4PwLyAQg9zjTgf7fN2otnbrCVc686frj X-Received: by 2002:a17:902:d4c7:b0:1b6:9de1:eae5 with SMTP id o7-20020a170902d4c700b001b69de1eae5mr2611473plg.20.1687712439587; Sun, 25 Jun 2023 10:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687712439; cv=none; d=google.com; s=arc-20160816; b=xnPO20a1YrS9Hg+xQ2SgyE3uPjTL2id+07Ty7lKq702VQlvLgPT99akBbUAV9hBwx8 HxOIVIeyx1oe3obAPc09HdpHjAI6K1IulU6z6aVM1Zt5FWCm64N06YEt9XAPEppOUaQ4 9hJLLE56tJ9nCTFbXc/ilS5j7ood5lbDSAVeMnC4Oe6OMULkwJUHnB198M5lg90tgjZ7 YF9+5apjsTtnf+RED/3OeKg10nE7UPfPign6vZSCu56NIBE4HJy/lcur8qwClbf4E9bs Eg5CbL3em5Cy+Oz+HdgRchW8faF/ZDwPGdhIF6JFkThw1cYsP2tr+FM9jiMl/3enDUSx 0uZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=+dujPQKZdAjU0dsN3luSGz5UmeSwMZyulJvPFOPSlWo=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=zTkdpYBRF5G4AXXGT+z3G+bUP0uDHrvDpDDr8Ezn7a0NOBO6ZS0qkskPkFaw4xb5sx KP4wlSNoSCrmNiydRC4/lMQtzPD3sr17cbCAc1+fGPnn3lolmGk+/KDXf2RmC/vTmMBB 8G9a4abrWrNoUbDRitwd1QTJJUdWSzHJbM67ddBXbxBjoRieetlkU8QmuTMEEwnzvITp blQPC6NpYzMQmi0t3DxYvxn/o34QvRBfXvXYY5bb6H/cWRIZnIB9TDiyy+u93XFQYGol 1/aErhOja4JuKVbO5wHRAlwIRAnamw7jq89CjaCe6dE681AFcokmS7XgoJKnId2mI47P Nrog== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e13-20020a17090301cd00b001ab29e16b3asi3560888plh.286.2023.06.25.10.00.27; Sun, 25 Jun 2023 10:00:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230169AbjFYQkc (ORCPT + 99 others); Sun, 25 Jun 2023 12:40:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjFYQkb (ORCPT ); Sun, 25 Jun 2023 12:40:31 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8F27B9; Sun, 25 Jun 2023 09:40:29 -0700 (PDT) X-QQ-mid: bizesmtp83t1687711219tx6hnmn1 Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:40:18 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: znfcQSa1hKZqkmvXmtk4w2PqRZkl6g8YSFZFLRaCCD2Q9Qr0cKHfrxz1j5Oc7 qrqCMPwRHqHkl11Msd8LYesoCQIlP+Q+Fx9dLpcPU0/07y9SlF9d34z/l9arx1QkrsLh6S5 eylyhUe0Ulm9cHjqbtDv2QGbH1VT0l5qF0x1Q1EqLZj6ShuaRRhdWDduoBADK40lNAS5aKE QjdPqx9LmVcpGN6iGbzxbTXpv8eArmXIRy+CvdTWOPiMz8+S7TSsjByBKz1ca90xi9mNJ68 L3kF6gi1mMxDtXCQKY39ncXHB3pOtFQ3oxpVbrhFwnR7HKp6kfFxkE9oyaOpKEC0d3doxqg Sk+p/1Ci+XA1QZSMlhDDPo750RP2Zigg/olwBCAVUXFdUrOTvvWqMrIIDHZ7A== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 6776819239009598717 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 19/22] selftests/nolibc: config default CROSS_COMPILE Date: Mon, 26 Jun 2023 00:39:39 +0800 Message-Id: <0ef9f42e04b8b62b8d53c0f3106f5e50629e01d5.1687706332.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769694758997217916?= X-GMAIL-MSGID: =?utf-8?q?1769694758997217916?= This further simplify the 'make' commands, only require an ARCH now. Almost all distributions provide toolchains for i386, x86_64, arm64, arm, mips, riscv32, riscv64 and s390x. If can not find toolchains from the distribution repositories, we can download them from https://mirrors.edge.kernel.org/pub/tools/crosstool/ and then customize CROSS_COMPILE_ for the testing. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 9092d209ebd0..a847a2264fed 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -74,6 +74,25 @@ EXTCONFIG_ARCH = $(EXTCONFIG_$(ARCH)) # extra kernel configs, include common + architecture specific EXTCONFIG = $(EXTCONFIG_ARCH) $(EXTCONFIG_COMMON) +# CROSS_COMPILE by architecture +CROSS_COMPILE_i386 ?= x86_64-linux-gnu- +CROSS_COMPILE_x86_64 ?= x86_64-linux-gnu- +CROSS_COMPILE_x86 ?= x86_64-linux-gnu- +CROSS_COMPILE_arm64 ?= aarch64-linux-gnu- +CROSS_COMPILE_arm ?= arm-linux-gnueabi- +CROSS_COMPILE_mips ?= mipsel-linux-gnu- +CROSS_COMPILE_riscv32 ?= riscv64-linux-gnu- +CROSS_COMPILE_riscv64 ?= riscv64-linux-gnu- +CROSS_COMPILE_riscv ?= riscv64-linux-gnu- +CROSS_COMPILE_s390 ?= s390x-linux-gnu- +CROSS_COMPILE_loongarch ?= loongarch64-linux- +CROSS_COMPILE ?= $(CROSS_COMPILE_$(ARCH)) + +# Make sure CC has $(CROSS_COMPILE) prefix +ifneq ($(CC),$(CROSS_COMPILE)$(CC)) +CC := $(CROSS_COMPILE)$(CC) +endif + # optional tests to run (default = all) TEST = From patchwork Sun Jun 25 16:41:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112665 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7005573vqr; Sun, 25 Jun 2023 09:52:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7wCUb8FL+ZZiCk3sn1V4HVsRX4odNF9DbPz/r/WFQKs2HTixsEkxtp42y6/rE7s75bZwKN X-Received: by 2002:a17:907:6e87:b0:987:86b8:9cdf with SMTP id sh7-20020a1709076e8700b0098786b89cdfmr25326393ejc.8.1687711952991; Sun, 25 Jun 2023 09:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687711952; cv=none; d=google.com; s=arc-20160816; b=T+BBXOkZH7vGhp/EyEoaI+avgLsBcFl/Wnj0QoAJTYjTXq/0s+P/Y5TnjkY5qczQYB 3JL93Cd2r31D8E8/cELUCJWkvQfO5AHsub3usOwi6TBW5b+H5J+ubGcsWFnIyF3NeV8X syGFayQ0AoKHzvua7f+YCNUc8YdMoJnqskvs07GJKbRNtHWFnnrSaeddspbHUIPoWn71 M5M+vpJ3uC8o/7akU4omnMim/s/ugOAzKe1sxO6C+4eZTtUjJm5FaHBziSAWNOeISbj8 YMAvcrPZIqWBKaE02KWeprhAR90pwHOJ6+ecjujx86PJVb9p6JiZpgTki2ZI2FHtbak/ ESkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=f+puTmXJWtuihg8V05yUVfjCzIdJghWECyE3L4ab3YY=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=nH8BlXeDsaubc3D3d//P0oFA2WnubDYSasCCH/a9aDsvEuY57ziJ1xuNqbPR0Uv/m+ JPlQzq30ySOitSseH9RTJHRr45b/tika8q0qG5wZTGV/rOTzRQnWQjTJaLgHT9CJjSIW ZBAg4d8OjP2NYB5xMlcI6pK2Ad0qiU/TtxqXKNluddNANT6+Fdqu1WyEOQ+htasD/0Gm 0zTUciAbYxuKhsWlZW2TCoTgAhAxh7Z6IjnEe8ny1IHw0C5N+FrRpumqQAczU36YOQAI 8oGiIQlN8jT4oQU+w/7iERIBQ7gNCihJv6WDjcEQ86nFnsXg0lOyQcfHw/cbcaR98QjB tqsg== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt24-20020a170906b79800b0098e296a0aa5si1021310ejb.416.2023.06.25.09.52.08; Sun, 25 Jun 2023 09:52:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230189AbjFYQm5 (ORCPT + 99 others); Sun, 25 Jun 2023 12:42:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjFYQmz (ORCPT ); Sun, 25 Jun 2023 12:42:55 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7620B9; Sun, 25 Jun 2023 09:42:53 -0700 (PDT) X-QQ-mid: bizesmtp68t1687711364tfahxxx2 Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:42:43 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: znfcQSa1hKZz5eb5VjrwTSUMnFub5FvDyyA4AG4JS/NVFi6m4xL1PtTDGgki7 SnsDQs5vU8T2xxkzc/oQqnSLaM+Eb1dLFNj38am5/Wsi7PonpRZPJLPoSX7a3tMDRZLk/pV 71pkSdtf97HRjCdyV3yJW9/Dydg25/CNLggbKiBiZmd5B/Dz6F8hkfadC1zK8vAdTd8jtBL kxsqr/munTIt4/beyvN1G7SHWaLcUKzcqMcrvv+x6q7ntH0mgrZeMwEk6TTDdV7uicaBSbv r65823BCKd6NGoenKBL68UpMVikNP1JDO2ZkWo4EtJ4O0FzjR5q80g9NjOSaS2qhIVjv7nH J6GTuwkFT1S3q6lNOQeiOMy3m1bCOW7k52mr0noySIBSO43zao= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 11765547641019653024 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 20/22] selftests/nolibc: add run-tiny and run-default Date: Mon, 26 Jun 2023 00:41:23 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769694248817626682?= X-GMAIL-MSGID: =?utf-8?q?1769694248817626682?= These two targets allow to do config and run together. - run-tiny: do tinyconfig, extconfig and then run. - run-default: do defconfig, extconfig and then run. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index a847a2264fed..3e7e51bd7082 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -156,6 +156,14 @@ REPORT ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{f++;print} /\[SKIPPED\][\ END{ printf("%d test(s) passed, %d skipped, %d failed.\n", p, s, f); \ printf("See all results in %s\n", ARGV[1]); }' +# allow run with a config target together: run-tiny = tinyconfig + run; run-default = defconfig + run +ifeq (run-tiny, $(MAKECMDGOALS)) +AUTOCONFIG ?= tinyconfig +endif +ifeq (run-default, $(MAKECMDGOALS)) +AUTOCONFIG ?= defconfig +endif + # allow switch nolibc headers include method: 1 for sysroot, 0 for nolibc.h SYSROOT ?= 1 @@ -228,7 +236,7 @@ tinyconfig: menuconfig: $(Q)$(MAKE) -C $(srctree) ARCH=$(KARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) menuconfig -extconfig: +extconfig: $(AUTOCONFIG) $(Q)$(srctree)/scripts/config --file $(srctree)/.config $(EXTCONFIG) $(Q)$(MAKE) -C $(srctree) ARCH=$(KARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) KCONFIG_ALLCONFIG=$(srctree)/.config allnoconfig @@ -240,6 +248,8 @@ run: kernel $(Q)qemu-system-$(QEMU_ARCH) -display none -no-reboot -kernel "$(srctree)/$(IMAGE)" -serial stdio $(QEMU_ARGS) $(LOG_OUTPUT) $(Q)$(REPORT) $(CURDIR)/run.out +run-tiny run-default: run + # re-run the tests from an existing kernel rerun: $(Q)qemu-system-$(QEMU_ARCH) -display none -no-reboot -kernel "$(srctree)/$(IMAGE)" -serial stdio $(QEMU_ARGS) $(LOG_OUTPUT) From patchwork Sun Jun 25 16:43:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112671 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7009878vqr; Sun, 25 Jun 2023 10:03:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ59RINy9KG30gHVK17Lo1PZT+egRiAkWa2ltKfFwrTq9Wu4vbXbm5R3BrirwSdZwSZFzIL6 X-Received: by 2002:a05:6a20:6a1e:b0:114:7637:3459 with SMTP id p30-20020a056a206a1e00b0011476373459mr14477803pzk.4.1687712583712; Sun, 25 Jun 2023 10:03:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687712583; cv=none; d=google.com; s=arc-20160816; b=rHPTrEqQ0IkN3UN+NP7YsgD1QURI0B/MCBKz1bosVF40qS53OWWXXrt/bSIO1cApPs Se7Ps14zSOOBoAVPM/00/RIsPkRHPFSXc0LZfPvZ13g8gDlONpWu2+gF0XfQ6cQeUvhH zBjR/XuTSUaX6+sk79MGzqvJtlPEO5q/MIj40TSVVVsFDttv2c2UW0APmJQEisUtm5SS 9xQwkk8hVLKUcKlQzIimtjLiiRLypdnEDoiAmh6abg21iaR47uK4s56V6lkxbb0JwsxM kOkY6p8Zgsfj1KVWR6dIr7LgNlqpMRKLt/O9T+8zsVgOb1hPnVY0f3KfCTpAkN7WiLcL AOwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=BuSWmQhlHabWPKw1PCxhC9sAHHgtNbA5hJ5L21GU+do=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=uoTuYhgjgWe3ScYI6SHjNzgUmI9n4AKXFF3HIwgQmMCD7/hD0UVxD7G4dS8ZrO0Jes wKwthmb4Gkwmqg793rCOu3IbH5m/tcfdaDgK2aqk5z+zg19bVNaYo06eQTrb8M+IRSxh X21AMdccl/t1tksjYM2xL6+eymTM1Swon7Ca5bcBB1vxPiVJuT1a6BcqiFkZwhneeKPk IrWtOrcH3iGd8SRdvFJVJPac/E7i/eGPlntKksAEVCxR56O4J3Yg9jZGKjgVS6cKfnuA QtSPPYpC8fAytz+dw9QrO9/czIKJmNYvDO2AV4+VelG0lyj2Qt8/GrtEHzC3N6MIo3+E V+sg== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds5-20020a056a004ac500b00668873710ddsi3140610pfb.315.2023.06.25.10.02.51; Sun, 25 Jun 2023 10:03:03 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230101AbjFYQoY (ORCPT + 99 others); Sun, 25 Jun 2023 12:44:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjFYQoW (ORCPT ); Sun, 25 Jun 2023 12:44:22 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EB80B9; Sun, 25 Jun 2023 09:44:19 -0700 (PDT) X-QQ-mid: bizesmtp78t1687711448t7y8lnvs Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:44:07 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: 3M0okmaRx3jkxQ1nfJIDUjtpCEo7hFHklIWcIzySUOaPurOu8rwjLO/y2+NUO W93KshJtFv7+VMr/QSSxuIHeHKMJciFIpJD22TFiR/mDO7IAKpBt3Aat95kyxQPfY1k2XvN lGtpzVqYYKxbkWqZkaIKhwtf/g3AyjEUxhpw0zIZsyWJ9f+pRVx5g2Lz2H2oTc4JBITSyxk QkCRCrmVpE+12c9DWpZIGBhmzubclG5C6Jo1xwuTDZwQ6+hxClW1060y6JB3/mZK3I17r/F Q/Zlv6OAzOeFDMBEtgfzXniU4GYvqXEtMVATn0SAc44gAaFSMV5wSBx/QN6JmZd0vBE3Y4O zAsgT7eZlE8eefnLAISYwteNq3qhcqfjE3sj3S9MQNgNv54YLNyF6CGBEPhUQ== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 11520936945867067429 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 21/22] selftests/nolibc: allow run tests on all targets Date: Mon, 26 Jun 2023 00:43:48 +0800 Message-Id: <49a3c3f75e2f433f42112a246b20488bf7c9e7f4.1687706332.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769694910296850483?= X-GMAIL-MSGID: =?utf-8?q?1769694910296850483?= This lists all of the supported architectures and allow testing for all of them. These targets are supported: - run-user-all: testing run-user for all architectures - run-all / run-default-all: testing run-default for all architectures - run-tiny-all: testing run-tiny for all architectures Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 3e7e51bd7082..470923dc10e1 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -164,6 +164,18 @@ ifeq (run-default, $(MAKECMDGOALS)) AUTOCONFIG ?= defconfig endif +# allow run tests on all architectures: run-user-all, run-all (=run-default-all), run-tiny-all +ARCHS ?= $(shell sed -ne 's/^DEFCONFIG_\([^ ]*\) .*/\1/p' $(CURDIR)/Makefile) +GOALS ?= run-user run-tiny run-default +RUN_ALL ?= _t=$@; t=$${_t%-all}; [ "$$t" = "run" ] && t=run-default; \ + if echo $(GOALS) | grep -wq "$$t"; then \ + for a in $(ARCHS); do echo "Testing $$t for $${a}:"; make $$t ARCH=$$a; cp $(CURDIR)/run.out $(CURDIR)/run-$$a.out; done; \ + echo "\n\nTesting summary of $$t:\n"; \ + for a in $(ARCHS); do echo $${a}:; echo; $(REPORT) $(CURDIR)/run-$$a.out; echo; done; \ + else \ + echo "Ignoring unknown target: $$t, available targets: $(GOALS)"; \ + fi + # allow switch nolibc headers include method: 1 for sysroot, 0 for nolibc.h SYSROOT ?= 1 @@ -255,6 +267,10 @@ rerun: $(Q)qemu-system-$(QEMU_ARCH) -display none -no-reboot -kernel "$(srctree)/$(IMAGE)" -serial stdio $(QEMU_ARGS) $(LOG_OUTPUT) $(Q)$(REPORT) $(CURDIR)/run.out +# test for all architectures +%-all: + $(Q)$(RUN_ALL) + clean: $(call QUIET_CLEAN, sysroot) $(Q)rm -rf sysroot From patchwork Sun Jun 25 16:45:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112674 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7018730vqr; Sun, 25 Jun 2023 10:23:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5VoG7zIQ10LK/iiC6vxfxgWRQGRNtezkk2wltdFI8EYvWLaeUDuwpTgSGqq4vT++NwLT9S X-Received: by 2002:aa7:8893:0:b0:676:8fac:37 with SMTP id z19-20020aa78893000000b006768fac0037mr1494453pfe.4.1687713825202; Sun, 25 Jun 2023 10:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687713825; cv=none; d=google.com; s=arc-20160816; b=AzYrchaAewpiivO9KqIvqhjzO9UXnmcu2DkPiZBNgPcRRzWGsrj7Rvd7Kv9BeLqMD1 aoCooiAmkqJIuE0vfGN1y0MQHJnkSMXhqG1qbyvigeIZtA6ZxrT3vrSVaDkXALCPtK/Y 3jNHasC7RK3YQ2IqadEL3lpOhg0qEt/7itsYdc7EJwzYH6fVbVySPwHWM+le82Cn+buz ccY7Ts1Mtsvnm2RsjiZlXPaceOqIfEJSW8yYkkHYzb17p6FLiUuB8/hcflfUQ6iAmji+ AYJZlF8srxZKvko730b/isgGkLwktf3swFmCMqIIW95yWzdisAKVdcOat1wV90FT67gr aCdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=qz7jWgF6QtVUav2vHr4/JLRiEuYE5u3uWEwzn1wJwPU=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=Cv2BzlM1XzAG63MVTQVhMXTCfDioIZRKzTy9jC2doJefzTcb24ImwnFD1SwBowwMBt J0iIHZHVCwiFhxc9j+pEVcnRtRnjXgthrs9GfzLFfy8Rz6Z3/KSx9ZJ5s4ca4rXhP2m4 eN9YXOMZzyUqJQTw3UyZYVnj3QUmPk/8X1xEaJ42XpmC5QDhaf5ScqYMM6DOh+5CQN7O cAmmcMOPqGEglfT/CaJh+BRA2jjFfD5QwMBIdCzxWk0XbOtu0z5kChqXpnuekJ+/G7/L qIe1Io7sEw1BRvikht7eWEXbEaUAFWA3JN886omU66Lq+J2J/51ZU7HL46A2JM4qHIdy Wmmw== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q23-20020a635c17000000b00540102a876csi3451852pgb.73.2023.06.25.10.23.27; Sun, 25 Jun 2023 10:23:45 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231234AbjFYQqR (ORCPT + 99 others); Sun, 25 Jun 2023 12:46:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230406AbjFYQqP (ORCPT ); Sun, 25 Jun 2023 12:46:15 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D827B9; Sun, 25 Jun 2023 09:46:13 -0700 (PDT) X-QQ-mid: bizesmtp73t1687711564t4chllr1 Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:46:03 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: ao4JQgu0M3+P2mO/XdPQo3WMzS7AkUKvL5kFRZNSONL5c40x0ZX0LVB9bEsvW DlsKdmb+/rhmOhIqe+gdnrJxqGLJMYQee9Pen0KN20fqgNIo5wNfahNXi3Wyq6OSvfMW1ld GiQjMHOd4Qnp++RZ+a/NFg+/IPYfyUf8g/GLkjpUmQzoExt8XBn+S3ZM4xTx5GARdZhsLoi Zy1LNrxN2OfgSjd/3GsGsebmo8WcGJburzcOPtE1wgRAR1lGsi0xzZs5l7vv36loWeF4DDY Uuhu6PZwpjzVCvLj0KT+/iJ2sWr5XQ+0fhcj+fl91ChGrgJCBry4aiA/GThHOEWV+uKsJQN JDYHBPrtXQ4KagFeWiwMXI/mbvLrjUMN3+eY+swcaIT7jW5XhCXVtsKoZ/GBg== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 3366391044335302866 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v1 22/22] selftests/nolibc: detect bios existing to avoid hang Date: Mon, 26 Jun 2023 00:45:12 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769696211633385431?= X-GMAIL-MSGID: =?utf-8?q?1769696211633385431?= Without a right -bios option, riscv32 and loongarch will hang during boot and therefore block the whole testing, this adds necessary detection. Before testing, the required bios should be downloaded at first, for a future working qemu (without a manual -bios), we can simply clear the QEMU_BIOS_ to stop the detection. By default, the bios should be downloaded and put into tools/testing/selftests/nolibc/, otherwise, users should specify the path via QEMU_BIOS_. Without this patch, it is not possible to directly run tests for all architectures, otherwise, we should pass our own 'ARCHS' and remove the unsupported ones explicitly, which is not convenient. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 470923dc10e1..b529bb40444a 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -110,6 +110,14 @@ QEMU_ARCH_s390 = s390x QEMU_ARCH_loongarch = loongarch64 QEMU_ARCH = $(QEMU_ARCH_$(ARCH)) +# QEMU_BIOS: bios used by qemu +# https://github.com/loongson/Firmware/raw/main/LoongArchVirtMachine/edk2-loongarch64-code.fd +QEMU_BIOS_loongarch ?= edk2-loongarch64-code.fd +# https://gitlab.com/qemu-project/qemu/-/blob/master/pc-bios/opensbi-riscv32-generic-fw_dynamic.bin +QEMU_BIOS_riscv32 ?= opensbi-riscv32-generic-fw_dynamic.bin +QEMU_BIOS = $(QEMU_BIOS_$(ARCH)) +QEMU_ARGS_BIOS = $(if $(QEMU_BIOS),-bios $(QEMU_BIOS)) + # 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=%)" @@ -122,7 +130,7 @@ QEMU_ARGS_riscv64 = -M virt -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_T 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_$(ARCH)) $(QEMU_ARGS_EXTRA) +QEMU_ARGS = $(QEMU_ARGS_$(ARCH)) $(QEMU_ARGS_BIOS) $(QEMU_ARGS_EXTRA) # OUTPUT is only set when run from the main makefile, otherwise # it defaults to this nolibc directory. @@ -167,9 +175,15 @@ endif # allow run tests on all architectures: run-user-all, run-all (=run-default-all), run-tiny-all ARCHS ?= $(shell sed -ne 's/^DEFCONFIG_\([^ ]*\) .*/\1/p' $(CURDIR)/Makefile) GOALS ?= run-user run-tiny run-default +export $(foreach a, $(ARCHS), QEMU_BIOS_$a) RUN_ALL ?= _t=$@; t=$${_t%-all}; [ "$$t" = "run" ] && t=run-default; \ if echo $(GOALS) | grep -wq "$$t"; then \ - for a in $(ARCHS); do echo "Testing $$t for $${a}:"; make $$t ARCH=$$a; cp $(CURDIR)/run.out $(CURDIR)/run-$$a.out; done; \ + for a in $(ARCHS); do \ + echo "Testing $$t for $${a}:"; \ + eval bios=\$${QEMU_BIOS_$$a}; \ + if [ -n "$${bios}" -a ! -f "$${bios}" ]; then echo "\nIgnoring $$a test, no bios: $${bios} found."; exit 0; fi; \ + make $$t ARCH=$$a; cp $(CURDIR)/run.out $(CURDIR)/run-$$a.out; \ + done; \ echo "\n\nTesting summary of $$t:\n"; \ for a in $(ARCHS); do echo $${a}:; echo; $(REPORT) $(CURDIR)/run-$$a.out; echo; done; \ else \