From patchwork Mon Jan 2 10:51:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Schnelle X-Patchwork-Id: 38082 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4106722wrt; Mon, 2 Jan 2023 02:53:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXt9wUELGJq4QCs+yKEtDq+h5SX0bvDgDGLFP2e5+87RpTCVDUmOpUQUlXinURp7gA4xoNk6 X-Received: by 2002:a05:6a20:499d:b0:a3:2244:1d2d with SMTP id fs29-20020a056a20499d00b000a322441d2dmr44624501pzb.52.1672656787089; Mon, 02 Jan 2023 02:53:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672656787; cv=none; d=google.com; s=arc-20160816; b=i1ysw5Hl/49wfMEGI8vnGZs//ZWKW9U0rTOIb+PL9HZPN5UVAZj8+9STjHYZUFzm1D O5qbclBtg8fHUXKD/kkaFasfTpdbpiW86HmqIl5u90qY6D+LfevihgP+8tK7QuT1aa/W qrN45GV+86aXHG1e6xhREULz6XpncVE1tneLS9GpD9s/aF/QZ7N0Nqu2mqHDi/KsCDVx y5YTBdDAly4g5YJxbSOzP2pbzubWPUMDxvPC9FhcS3ooL/aUq4nS+57Vkl2ZQ8tU+QIy ql1/7woaxLYj/B/BY8s/ckIm5Om/Y0uXuXwVHMZnrQ/ydfMNEuTVGZU9n5Yiya0JJiZQ LLHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0WI9esVpndro8n3pvm3y/FeUtSxwl2+r+I4pJj3DJ9U=; b=oBBJYXpx6bifIYA3okPivgA9Uco6qcNHDixWQhndEwXqRv2nm/5EhNDqKxgln4g9R9 X6dA7OGDQBEpMr94amgRTsnJ8c78h0LqD2v9GrMzGyLRVInp19GzIoZXOyFQ+N5psntK tz5k2b+kQX5Z0LgmIuRvjGhrE2aTKczdRWBN1MfEAQIFsx2ImO3qioS/Hn3NuX+P/zlG beXuqP1Dj3ZkvIAj45kldm8ATVnp/fbwWlhqJ3kLkYrqrIuTfrloC0SarR5NiFAC+NZF e/MCk2qN1iXtJIbi6x7HWi97lFRmOAR0IbWcOaORmY5BQpG8ehT7yHk7IdWYJGBeEPiC xhMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=dNbgR148; 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; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v29-20020a63b95d000000b0049d55f8b9fbsi14189385pgo.12.2023.01.02.02.52.55; Mon, 02 Jan 2023 02:53:07 -0800 (PST) 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; dkim=pass header.i=@ibm.com header.s=pp1 header.b=dNbgR148; 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; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232884AbjABKw2 (ORCPT + 99 others); Mon, 2 Jan 2023 05:52:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232859AbjABKwH (ORCPT ); Mon, 2 Jan 2023 05:52:07 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFA29F34; Mon, 2 Jan 2023 02:52:05 -0800 (PST) Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3026milS025196; Mon, 2 Jan 2023 10:51:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=0WI9esVpndro8n3pvm3y/FeUtSxwl2+r+I4pJj3DJ9U=; b=dNbgR148MzviHmY/ntaFnuoMlY95OMUATD7plfbM4QUDmsgY2mErqL80KFpn2vzewG09 XxoRwqImM2LeBjqWNaMpBVWwOTbFwfpNXWoMQqNZxuc9PPSWU1Yc2TsUax1vxmKdYdnN wF/mvh3pMBpCIjUD3mnhswliZX8/mIo1pPJ7EggooibVXAKUnux6k1BB+Pz3JDWo6fY6 fp5pUROW9q4D4YABRmzWpV6yzUF1GLx70pEKCrjSR2DTAnhdk2QFSYWqnHzU8H/Xm2T+ 3q6t6HXJmhpfLIlgFk/W3AipjUn7sdZNTufoA5Xo1jGIdocxldFE/DpVLzmzZOzJ6RiQ FA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3mtxwr6tx9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 02 Jan 2023 10:51:36 +0000 Received: from m0098396.ppops.net (m0098396.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 302ANcM0010021; Mon, 2 Jan 2023 10:51:35 GMT Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3mtxwr6twj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 02 Jan 2023 10:51:35 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 301NsPHu001030; Mon, 2 Jan 2023 10:51:33 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma06ams.nl.ibm.com (PPS) with ESMTPS id 3mtcbfaa5w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 02 Jan 2023 10:51:33 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 302ApVtI52887818 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 2 Jan 2023 10:51:31 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EA43320043; Mon, 2 Jan 2023 10:51:30 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D6A192004E; Mon, 2 Jan 2023 10:51:30 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTPS; Mon, 2 Jan 2023 10:51:30 +0000 (GMT) Received: by tuxmaker.boeblingen.de.ibm.com (Postfix, from userid 55390) id 8B7DCE091C; Mon, 2 Jan 2023 11:51:30 +0100 (CET) From: Sven Schnelle To: Willy Tarreau , "Paul E . McKenney" , Josh Triplett Cc: Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: [PATCH v2 3/5] selftests/nolibc: add s390 support Date: Mon, 2 Jan 2023 11:51:10 +0100 Message-Id: <20230102105112.1661651-4-svens@linux.ibm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230102105112.1661651-1-svens@linux.ibm.com> References: <20230102105112.1661651-1-svens@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: ZCButfgBNVqrpVsgIbAPLw4fwDSkngHP X-Proofpoint-ORIG-GUID: BcUpe2GXEWwX7vGXnztMn02sBscJZQaT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-02_06,2022-12-30_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 malwarescore=0 mlxscore=0 lowpriorityscore=0 mlxlogscore=999 suspectscore=0 priorityscore=1501 phishscore=0 impostorscore=0 clxscore=1015 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301020096 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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?1753907763433538689?= X-GMAIL-MSGID: =?utf-8?q?1753907763433538689?= Signed-off-by: Sven Schnelle Acked-by: Heiko Carstens --- tools/testing/selftests/nolibc/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 22f1e1d73fa8..2bf613ee363d 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -19,6 +19,7 @@ IMAGE_arm64 = arch/arm64/boot/Image IMAGE_arm = arch/arm/boot/zImage IMAGE_mips = vmlinuz IMAGE_riscv = arch/riscv/boot/Image +IMAGE_s390 = arch/s390/boot/bzImage IMAGE = $(IMAGE_$(ARCH)) IMAGE_NAME = $(notdir $(IMAGE)) @@ -29,6 +30,7 @@ DEFCONFIG_arm64 = defconfig DEFCONFIG_arm = multi_v7_defconfig DEFCONFIG_mips = malta_defconfig DEFCONFIG_riscv = defconfig +DEFCONFIG_s390 = defconfig DEFCONFIG = $(DEFCONFIG_$(ARCH)) # optional tests to run (default = all) @@ -41,6 +43,7 @@ QEMU_ARCH_arm64 = aarch64 QEMU_ARCH_arm = arm QEMU_ARCH_mips = mipsel # works with malta_defconfig QEMU_ARCH_riscv = riscv64 +QEMU_ARCH_s390 = s390x QEMU_ARCH = $(QEMU_ARCH_$(ARCH)) # QEMU_ARGS : some arch-specific args to pass to qemu @@ -50,6 +53,7 @@ QEMU_ARGS_arm64 = -M virt -cpu cortex-a53 -append "panic=-1 $(TEST:%=NOLIBC_TE QEMU_ARGS_arm = -M virt -append "panic=-1 $(TEST:%=NOLIBC_TEST=%)" QEMU_ARGS_mips = -M malta -append "panic=-1 $(TEST:%=NOLIBC_TEST=%)" 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 = $(QEMU_ARGS_$(ARCH)) # OUTPUT is only set when run from the main makefile, otherwise @@ -62,7 +66,8 @@ else Q=@ endif -CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables +CFLAGS_s390 = -m64 +CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables $(CFLAGS_$(ARCH)) LDFLAGS := -s help: