From patchwork Fri Dec 9 14:19:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Schnelle X-Patchwork-Id: 31775 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp805402wrr; Fri, 9 Dec 2022 06:23:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf7xkjpzDd0en2ecmngWe0+IyyzkmbU7W4FxNEy6LbmUgCLF3btVddMv2E6nKK/LfCOJ7Hht X-Received: by 2002:a17:906:6809:b0:7c0:e80e:5aed with SMTP id k9-20020a170906680900b007c0e80e5aedmr4837700ejr.16.1670595795409; Fri, 09 Dec 2022 06:23:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670595795; cv=none; d=google.com; s=arc-20160816; b=aniSIADXTqXbF8dGJdKCqrhak7hNhQI/zZBaAUjrowGV+18+zIPdJctiQAlcMQvy0Q s0IB9MtRBXsFR5mOe1CqNNoCVvVJ1eIUXMZYEyS8XgpuvowUuHPQ2ULqhRvEMWvjQazx GpUQKofbN1CremS/CXADUMLCumfhqUgbvcZlREvhJ+uGVcvfMZyJoycbXSbXqbik0gK0 umTzOyZObRWiYuoyiGHav8Pg+1e+0UP45F04KeSlgohYxjadHiFvNMQ3AHucUDOc786d ydp2/WPSCFPhmoZOjkc+LuVV3CfV4Qobjb+g6Ym7be/OlkTF+FojU5GlysT7tdvvZbOI VEqw== 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=NLY2nk/RTgGLXwvWYxIyqfEOsN9qmXgBPV44+fr+u84=; b=KF6slVTNDhgNDaRrLrpipMUpQMxHkoeA+hAyFE1St1FH0/dlhp4w58wiQj57kThMeh 51mCY6KajmFnN6alueO1HL2HVta4FquUXLUEBQgBq7ukw1nNjShLxsmH5rN1GrB4+rta s9DD3iCBMCcQcW2YCmsQh5jiLnlZR6FY6R0zyoi9RgmIuADRG6C+IIPH8Dhq4t5QGZsv 0/acW/+TsVyF0z7J0xqEK3BTS0/NqzeUtJzMDcRlNEMRl83YgkrpAQ2CJtA1e+Y3gSrp uJdahURibYCGUl8z3JFr29UKOyhOpwkJZ0p0rUpfjjO3BEfJRSCIfHjV58pVU4GQGj58 FyFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=UO+rIbBR; 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 du16-20020a17090772d000b00730aa841c5bsi1529797ejc.964.2022.12.09.06.22.49; Fri, 09 Dec 2022 06:23:15 -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=UO+rIbBR; 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 S230153AbiLIOU6 (ORCPT + 99 others); Fri, 9 Dec 2022 09:20:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229776AbiLIOUd (ORCPT ); Fri, 9 Dec 2022 09:20:33 -0500 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8D4C64D0 for ; Fri, 9 Dec 2022 06:20:27 -0800 (PST) Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2B9CFHoG013025; Fri, 9 Dec 2022 14:19:59 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=NLY2nk/RTgGLXwvWYxIyqfEOsN9qmXgBPV44+fr+u84=; b=UO+rIbBRFCOXdDPGYAWjz/40ZNYRnk51boKZ0xs5uiAlDee6oOZtbL8kQA+IyDGvQrIp m4x5kd6wWr5bd4Km9jQ/2OoeL4Cm0eg6+HNYm5pVv60CLzFY5Fa1kuT8o4uCsMOs1gAT PC0BqNJXK49sBT2PUbWcSaeAWZGtr6CbcRr++mn4j6XAQWb0E2WVAG5N+FwCOH8S123M cIxfVCZS2ojG5uyuJYPfNE00wayswj53h7pueKTMFjwkx/Gfya669yZVhEOjaHoYY1Mg nzR7vR0AYRVHQuG3cJhBt2tf4BiRjG/x3a9Yxwcdie+0XQHByPRKi6gTre1ivpQRRX7t gg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3mbh9cpjvx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Dec 2022 14:19:59 +0000 Received: from m0098421.ppops.net (m0098421.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2B9E717C029129; Fri, 9 Dec 2022 14:19:58 GMT Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3mbh9cpjv8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Dec 2022 14:19:58 +0000 Received: from pps.filterd (ppma06fra.de.ibm.com [127.0.0.1]) by ppma06fra.de.ibm.com (8.17.1.19/8.16.1.2) with ESMTP id 2B98nSr2004304; Fri, 9 Dec 2022 14:19:56 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma06fra.de.ibm.com (PPS) with ESMTPS id 3m9m6y4f9h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Dec 2022 14:19:56 +0000 Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2B9EJrFv35520968 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 9 Dec 2022 14:19:53 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 70E7E2004D; Fri, 9 Dec 2022 14:19:53 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 602E920040; Fri, 9 Dec 2022 14:19:53 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTPS; Fri, 9 Dec 2022 14:19:53 +0000 (GMT) Received: by tuxmaker.boeblingen.de.ibm.com (Postfix, from userid 55390) id 25F7DE0614; Fri, 9 Dec 2022 15:19:53 +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 Subject: [PATCH 3/5] selftests/nolibc: add s390 support Date: Fri, 9 Dec 2022 15:19:37 +0100 Message-Id: <20221209141939.3634586-4-svens@linux.ibm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221209141939.3634586-1-svens@linux.ibm.com> References: <20221209141939.3634586-1-svens@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: afVARQSgN9iijJur3VT0nw-G8teCnm7p X-Proofpoint-GUID: 0mHqzOLAkqv3ut9rNcvLu1BR2vNxeBdZ 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=2022-12-09_08,2022-12-08_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 malwarescore=0 mlxscore=0 lowpriorityscore=0 priorityscore=1501 phishscore=0 mlxlogscore=999 adultscore=0 impostorscore=0 clxscore=1015 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2212090108 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,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?1751746656504211302?= X-GMAIL-MSGID: =?utf-8?q?1751746656504211302?= Signed-off-by: Sven Schnelle Acked-by: Heiko Carstens Acked-by: Willy Tarreau --- tools/testing/selftests/nolibc/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 69ea659caca9..92d8276bc226 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