Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1203136rwb; Wed, 26 Jul 2023 09:01:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlFRmClRAgvsNVRINGmjBy0eMDB7+3KGZa5Jb6Xk6547lapq4scMpBqWkrQvVp02OUgem1Qb X-Received: by 2002:a2e:b049:0:b0:2b6:d666:bc3e with SMTP id d9-20020a2eb049000000b002b6d666bc3emr1957490ljl.39.1690387268329; Wed, 26 Jul 2023 09:01:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690387268; cv=none; d=google.com; s=arc-20160816; b=aEM6syGhOB7ACWc0f++k64z5bplTurq9mk852UhPxrBBKmQKpBCC3SR+lUjOSvh9uZ bZp5Z8HYSkHp9U74RgydKBq96QmCkye1+iIJiKzCzcroIagGpBBRFM35UIIQfBFpum3+ 2T2DqgIIvbanvFnP7yjRD1D1RYYovvulZPVRTCLwDSQ8QAcy1pQAiAxtxwX+gCN0TXN3 5zhDRtPfqOMM8xWyvyEcp0Ka8fqGPooltWuKkWzzKnpyNu4CCCwLveWYkUFx3gP36oIK qVFMqh6gDIqe6ih9IcbyE6T6f5IM1DWxEei4t1lD1imzjUUvwvc8v33i6o8ap8QgkVfq nr8Q== 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=LwegyfPqN2x+viwoAW3NR3+tYq3InnVa3VfUi2dTXg0=; fh=a4z3tiehHiY86hocbYkEXZYBvJ9Av1mKuHLBcjNuuqk=; b=v2Rmfb4XSitu93KGeHT6MqxCEsd2RfwauNRp74/xwdiP3+KUC52AAKE+A0LQCCw26D 9RixM0XL37uXVgJK95ryXI9K/MejUVXkD142XKc38+AK+Zo6LJQ2T1urtIjsTpCaVvuE Ny/MbmseSxRfTZR45ONOLVOed1rCUJN4Ksdzhex8UslL/i2v7tRsASTyfk6fsqpz5tvg nLIM8vK6piybjryhv6xaSfHqtZRYI3BdUnSdmdCBh5imRgRr5t4tEH9XB/1Mc1Z0zScK +9F6xVZ3uxRRIbQ0FJKc6gLOP92H0QiPCEv4qKNnsggAkp4K1Xuixo4KIMixrEWedUFs Cfxw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020a170906230c00b0099bcba9df15si689893eja.605.2023.07.26.09.00.40; Wed, 26 Jul 2023 09:01:08 -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 S233104AbjGZP36 (ORCPT + 99 others); Wed, 26 Jul 2023 11:29:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232641AbjGZP35 (ORCPT ); Wed, 26 Jul 2023 11:29:57 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 853FB2136; Wed, 26 Jul 2023 08:29:53 -0700 (PDT) X-QQ-mid: bizesmtp63t1690385383t5iif69s Received: from linux-lab-host.localdomain ( [61.141.78.189]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 26 Jul 2023 23:29:42 +0800 (CST) X-QQ-SSF: 01200000000000D0X000000A0000000 X-QQ-FEAT: J5JfekO1WsiL3ug9fgDy4ITrNZ0Fco01rrnYx6BE0VpZMg43YoQewkRlQLBJn hmjsVReJmsufwSNs1hcQEemS4Gi3UmrZjM2f332VOw0ctbp2I3bQ+11jvuvtO4kgHhB1Bb4 dgGHIEGSE1tH1ti5KfpuC1PJsLVA/YVixLnj6aMYZ6bf0vgvAsv1gLDot4aVJxN2aa9fLYE D6+rvyZuIvWtkwPdlPTQepiwz9uEs22TuKaaByxV6pg93K+XJ9rbwzWtaI9m8I1BFDibKhC 7AWSr78gfaqfy5Y9MO3W7CAKq/11Z9jdzhX8g/dEApdrCur/O2zk/h5CKHGRV66cIvNu5CJ gA75ep7cyJr+vfuVIyd/on06QRLMAMKwr89tP9wp2mTul2iE2UJZCTmuVdM5dw35aNaqmQg ei5hA+tkEb8= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 4160635926283433686 From: Zhangjin Wu To: w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux@weissschuh.net, thomas@t-8ch.de Subject: [PATCH v2 5/7] selftests/nolibc: add test support for ppc Date: Wed, 26 Jul 2023 23:29:38 +0800 Message-Id: <20230726152938.251649-1-falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <55603bb4aecb20561e63f9ab10563c0c470300b1.1690373704.git.falcon@tinylab.org> References: <55603bb4aecb20561e63f9ab10563c0c470300b1.1690373704.git.falcon@tinylab.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi, Willy I'm very sorry, the extra configs/powerpc.config file is missing in this patch, perhaps a failed rebase introduced this issue. Please don't merge it, to avoid manually merge another addtional patch, if no other issues in this v2 series, I will send v3 immediately, just wait for your feedbacks, no hurry. Best regards, Zhangjin > The default qemu-system-ppc g3beige machine [1] is used to run 32-bit > powerpc kernel. > > The pmac32_defconfig is used with extra PMACZILOG console options to > enable normal print. > > Note, zImage doesn't boot due to "qemu-system-ppc: Some ROM regions are > overlapping" error, so, vmlinux is used instead. > > Kernel uses ARCH=powerpc for both 32-bit and 64-bit PowerPC, here adds a > ppc variant for 32-bit PowerPC and use it as the default variant of > powerpc architecture. > > Users can pass ARCH=powerpc or ARCH=ppc to test 32-bit PowerPC. > > [1]: https://qemu.readthedocs.io/en/latest/system/ppc/powermac.html > > Reviewed-by: Thomas Weißschuh > Signed-off-by: Zhangjin Wu > --- > tools/testing/selftests/nolibc/Makefile | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile > index f04ec1cc132b..0e9abb7f3d4f 100644 > --- a/tools/testing/selftests/nolibc/Makefile > +++ b/tools/testing/selftests/nolibc/Makefile > @@ -16,10 +16,12 @@ endif > > # XARCH is used to save user-input ARCH variant > # allow configure default variant for target ARCH > +XARCH_powerpc = ppc > XARCH := $(or $(XARCH_$(ARCH)),$(ARCH)) > > # ARCH is supported by kernel > # map from user-input variant to kernel-supported > +ARCH_ppc = powerpc > override ARCH := $(or $(ARCH_$(XARCH)),$(XARCH)) > > # kernel image names by architecture > @@ -29,6 +31,7 @@ IMAGE_x86 = arch/x86/boot/bzImage > IMAGE_arm64 = arch/arm64/boot/Image > IMAGE_arm = arch/arm/boot/zImage > IMAGE_mips = vmlinuz > +IMAGE_ppc = vmlinux > IMAGE_riscv = arch/riscv/boot/Image > IMAGE_s390 = arch/s390/boot/bzImage > IMAGE_loongarch = arch/loongarch/boot/vmlinuz.efi > @@ -42,6 +45,7 @@ DEFCONFIG_x86 = defconfig > DEFCONFIG_arm64 = defconfig > DEFCONFIG_arm = multi_v7_defconfig > DEFCONFIG_mips = malta_defconfig > +DEFCONFIG_ppc = pmac32_defconfig > DEFCONFIG_riscv = defconfig > DEFCONFIG_s390 = defconfig > DEFCONFIG_loongarch = defconfig > @@ -60,6 +64,7 @@ QEMU_ARCH_x86 = x86_64 > QEMU_ARCH_arm64 = aarch64 > QEMU_ARCH_arm = arm > QEMU_ARCH_mips = mipsel # works with malta_defconfig > +QEMU_ARCH_ppc = ppc > QEMU_ARCH_riscv = riscv64 > QEMU_ARCH_s390 = s390x > QEMU_ARCH_loongarch = loongarch64 > @@ -72,6 +77,7 @@ QEMU_ARGS_x86 = -M pc -append "console=ttyS0,9600 i8042.noaux panic=-1 $( > QEMU_ARGS_arm64 = -M virt -cpu cortex-a53 -append "panic=-1 $(TEST:%=NOLIBC_TEST=%)" > QEMU_ARGS_arm = -M virt -append "panic=-1 $(TEST:%=NOLIBC_TEST=%)" > QEMU_ARGS_mips = -M malta -append "panic=-1 $(TEST:%=NOLIBC_TEST=%)" > +QEMU_ARGS_ppc = -M g3beige -append "console=ttyS0 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_loongarch = -M virt -append "console=ttyS0,115200 panic=-1 $(TEST:%=NOLIBC_TEST=%)" > -- > 2.25.1