Message ID | 20221209141939.3634586-1-svens@linux.ibm.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp804530wrr; Fri, 9 Dec 2022 06:21:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf73kb3uPXeRCqMD1lJJdUQo9XVtL/8wbMuZNUgSKpohW22/A7E0yvXm6OW4gOUshhALumbh X-Received: by 2002:a17:906:8456:b0:7c1:e78:1e2 with SMTP id e22-20020a170906845600b007c10e7801e2mr7452355ejy.11.1670595703623; Fri, 09 Dec 2022 06:21:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670595703; cv=none; d=google.com; s=arc-20160816; b=csBvB8fo1cS6S/m2DmEzWUCOdd5KJQrbfcCpuhraIsh7SlVObJf6iZQ6AM2ZJoXHUX 9J2rDsc9957UJYBkOded+zcHs+khy7K7Wj8spYUC3+8QQu6eGkqhGlV6ZFkg6cKkqQ6U oCowMCXs0HVACIzE9+CXaypsWGXeEUpFFISuP3y1Zes4a6QaCAdzI+Inay82hBeu24ke mzl7ZVrr7Teo5Je5iqrnMUt75QKk3EhYLg+GT9TKE4diJPNSIBYeePuNMnuQx14SExEr +ukJOD33Y9gKzAgrwYDPQEQoG8AOYdF6NZIzS+4LDZshBSy78xqlzSh2l/MH8YAVEumI Jlcg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=SWeLgeqnB0vNUWmVM+L79Y1vBkxy5zGsku/Gejs8BUc=; b=bj1lAxX+Ogh7fZRm06yjjd6Oe7UJKGk0Cl2lZBtNGmaDGA+IAFw/1Ox7ItjDiJ5Ijx SKLGYrIjrVLfqaWeAdvstgfYK4IkuwaC8dOEZDWjqgMej8EQn6iGfWwWjjp7x3ZSNfYy BtTz6DRgnApnAbAX+d0WqIMLmDK19IaWpE8kk6JtwCMY+dnHE0TtLvc3R4ikXAGk7L1Z KGY16LoGYyY0mfV6ApLgBDWKfka8jFs/26aY6ZgR+bparR7dh830erlGQPI7iARd44EU vDheem1RnNaWsM3JRfi0XYxT+lZPQgjgOyRLFcImEkaXjFC+2JZKeG2XaK8caJvWS8Ls enpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=La1DG8dK; 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 xi7-20020a170906dac700b007c090299c40si1446040ejb.351.2022.12.09.06.21.17; Fri, 09 Dec 2022 06:21:43 -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=La1DG8dK; 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 S229804AbiLIOUx (ORCPT <rfc822;sophiezhao968@gmail.com> + 99 others); Fri, 9 Dec 2022 09:20:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229720AbiLIOUd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 9 Dec 2022 09:20:33 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2056076140 for <linux-kernel@vger.kernel.org>; Fri, 9 Dec 2022 06:20:28 -0800 (PST) Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2B9DZnAM017873; Fri, 9 Dec 2022 14:19:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=SWeLgeqnB0vNUWmVM+L79Y1vBkxy5zGsku/Gejs8BUc=; b=La1DG8dKDWeUC42domLDnSAwPkM0F9nbRAQJSMS2W1IVTvJiwF5dt3XxjP4MmTmQcsvs jYxMm7BNZk1zPWvPXVgzPqkP34bjKAlWUPLZruYPdOzd+2xCQ0lfbhi/r36N0qs4pXa2 9hNduGTTeIu9X5zGF98CRql79SHK/HJsBhDfnHbjvKMRYTnqhzMyfXzkXZGKfMAO8XYs +8+QcrCztpF1865hJNq2wW1WXWAmAkSd+ajHDRbzhQFtmo69jwngzp1FL8Cv8VzFGrq8 4LREjZanE3NYvQf5YLze+WFAsLy2cImsaN401P9ETJd6g2Eh5tFzwuqo1tlsb3nhCmd2 RQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3mbxnkkep0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Dec 2022 14:19:58 +0000 Received: from m0098409.ppops.net (m0098409.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2B9DV2pL016824; Fri, 9 Dec 2022 14:19:58 GMT Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3mbxnkkenh-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 (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 2B9CD4NI016519; Fri, 9 Dec 2022 14:19:56 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma03ams.nl.ibm.com (PPS) with ESMTPS id 3m9m5y62r3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Dec 2022 14:19:55 +0000 Received: from smtpav07.fra02v.mail.ibm.com (smtpav07.fra02v.mail.ibm.com [10.20.54.106]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2B9EJrd317039924 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 9 Dec 2022 14:19:53 GMT Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 75C192004B; Fri, 9 Dec 2022 14:19:53 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6481120049; Fri, 9 Dec 2022 14:19:53 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav07.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 1EF9AE027E; Fri, 9 Dec 2022 15:19:53 +0100 (CET) From: Sven Schnelle <svens@linux.ibm.com> To: Willy Tarreau <w@1wt.eu>, "Paul E . McKenney" <paulmck@kernel.org>, Josh Triplett <josh@joshtriplett.org> Cc: Steven Rostedt <rostedt@goodmis.org>, Mathieu Desnoyers <mathieu.desnoyers@efficios.com>, Lai Jiangshan <jiangshanlai@gmail.com>, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] add s390 support to nolibc and rcutorture Date: Fri, 9 Dec 2022 15:19:34 +0100 Message-Id: <20221209141939.3634586-1-svens@linux.ibm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: or8MF2xi8ugWovdhvAn5-u6EwqsVnUOn X-Proofpoint-ORIG-GUID: 0jyPxZmyZ4Kheiq2amjG3pR5jeB2P4HS 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 suspectscore=0 spamscore=0 lowpriorityscore=0 mlxlogscore=868 mlxscore=0 bulkscore=0 adultscore=0 clxscore=1011 phishscore=0 malwarescore=0 impostorscore=0 priorityscore=1501 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751746560335315374?= X-GMAIL-MSGID: =?utf-8?q?1751746560335315374?= |
Series |
add s390 support to nolibc and rcutorture
|
|
Message
Sven Schnelle
Dec. 9, 2022, 2:19 p.m. UTC
Hi, these patches add support for the s390 architecture both to nolibc and rcutorture. Note that this only adds support for the 64 bit version, no support for 31 bit (compat) is added. For nolibc it includes one bugfix to make the fd_set datatype match the kernel type. Sven Schnelle (5): nolibc: fix fd_set type nolibc: add support for s390 selftests/nolibc: add s390 support rcutorture: add support for s390 rcutorture: build initrd for rcutorture with nolibc tools/include/nolibc/arch-s390.h | 213 ++++++++++++++++++ tools/include/nolibc/arch.h | 2 + tools/include/nolibc/sys.h | 2 + tools/include/nolibc/types.h | 53 +++-- tools/testing/selftests/nolibc/Makefile | 4 + .../selftests/rcutorture/bin/functions.sh | 6 + .../selftests/rcutorture/bin/mkinitrd.sh | 2 +- 7 files changed, 258 insertions(+), 24 deletions(-) create mode 100644 tools/include/nolibc/arch-s390.h
Comments
On Fri, Dec 09, 2022 at 03:19:34PM +0100, Sven Schnelle wrote: > Hi, > > these patches add support for the s390 architecture both to nolibc > and rcutorture. Note that this only adds support for the 64 bit > version, no support for 31 bit (compat) is added. For nolibc it > includes one bugfix to make the fd_set datatype match the kernel > type. Nice!!! The rcutorture patches look plausible to me, but I must defer to Willy Tarreau on the nolibc changes. Thanx, Paul > Sven Schnelle (5): > nolibc: fix fd_set type > nolibc: add support for s390 > selftests/nolibc: add s390 support > rcutorture: add support for s390 > rcutorture: build initrd for rcutorture with nolibc > > tools/include/nolibc/arch-s390.h | 213 ++++++++++++++++++ > tools/include/nolibc/arch.h | 2 + > tools/include/nolibc/sys.h | 2 + > tools/include/nolibc/types.h | 53 +++-- > tools/testing/selftests/nolibc/Makefile | 4 + > .../selftests/rcutorture/bin/functions.sh | 6 + > .../selftests/rcutorture/bin/mkinitrd.sh | 2 +- > 7 files changed, 258 insertions(+), 24 deletions(-) > create mode 100644 tools/include/nolibc/arch-s390.h > > -- > 2.34.1 >
On Fri, Dec 09, 2022 at 07:03:25AM -0800, Paul E. McKenney wrote: > On Fri, Dec 09, 2022 at 03:19:34PM +0100, Sven Schnelle wrote: > > Hi, > > > > these patches add support for the s390 architecture both to nolibc > > and rcutorture. Note that this only adds support for the 64 bit > > version, no support for 31 bit (compat) is added. For nolibc it > > includes one bugfix to make the fd_set datatype match the kernel > > type. > > Nice!!! indeed :-) > The rcutorture patches look plausible to me, but I must defer to Willy > Tarreau on the nolibc changes. I had a very quick glance over them and nothing shocked me. I just want to double-check the u32->long conversion with a careful eye but I'm happy to see that your rcutorture binary continues its diet on more and more architectures ;-) Cheers, Willy
On Fri, Dec 09, 2022 at 04:28:35PM +0100, Willy Tarreau wrote: > On Fri, Dec 09, 2022 at 07:03:25AM -0800, Paul E. McKenney wrote: > > On Fri, Dec 09, 2022 at 03:19:34PM +0100, Sven Schnelle wrote: > > > Hi, > > > > > > these patches add support for the s390 architecture both to nolibc > > > and rcutorture. Note that this only adds support for the 64 bit > > > version, no support for 31 bit (compat) is added. For nolibc it > > > includes one bugfix to make the fd_set datatype match the kernel > > > type. > > > > Nice!!! > > indeed :-) > > > The rcutorture patches look plausible to me, but I must defer to Willy > > Tarreau on the nolibc changes. > > I had a very quick glance over them and nothing shocked me. I just want > to double-check the u32->long conversion with a careful eye but I'm happy > to see that your rcutorture binary continues its diet on more and more > architectures ;-) Very good, and I will await your review. Thanx, Paul
On Fri, Dec 09, 2022 at 05:26:43PM -0800, Paul E. McKenney wrote: > On Fri, Dec 09, 2022 at 04:28:35PM +0100, Willy Tarreau wrote: > > On Fri, Dec 09, 2022 at 07:03:25AM -0800, Paul E. McKenney wrote: > > > On Fri, Dec 09, 2022 at 03:19:34PM +0100, Sven Schnelle wrote: > > > > Hi, > > > > > > > > these patches add support for the s390 architecture both to nolibc > > > > and rcutorture. Note that this only adds support for the 64 bit > > > > version, no support for 31 bit (compat) is added. For nolibc it > > > > includes one bugfix to make the fd_set datatype match the kernel > > > > type. > > > > > > Nice!!! > > > > indeed :-) > > > > > The rcutorture patches look plausible to me, but I must defer to Willy > > > Tarreau on the nolibc changes. > > > > I had a very quick glance over them and nothing shocked me. I just want > > to double-check the u32->long conversion with a careful eye but I'm happy > > to see that your rcutorture binary continues its diet on more and more > > architectures ;-) > > Very good, and I will await your review. So overall the series looks good to me except one occurrence of "s390x" instead of "s390" in arch.h which will prevent the build from working with the old "-include nolibc.h" mode. If Sven agrees we can fix it directly in the patch (drop the 'x' in the "#include") so that he does not need to respin the series. I'm deferring to you the final word on the part on rcutorture (but it looks trivially correct to me). Thanks! Willy