Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8671094rwp; Wed, 19 Jul 2023 13:29:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlEh5pOfF7fWwjT1OpQZspS5kPybOCgwgolLA47/0V5mJRayr5soMpWyUgF8O726nKWziJMZ X-Received: by 2002:a05:6a00:17a6:b0:666:e42c:d5fb with SMTP id s38-20020a056a0017a600b00666e42cd5fbmr29359265pfg.32.1689798574112; Wed, 19 Jul 2023 13:29:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689798574; cv=none; d=google.com; s=arc-20160816; b=K8vjVZNOY30XrqZH+365DXSmxUCc8FMRJr2kSOjnzvmvZdRZlhUNgYTfej4yZ0PxaK eZK84WumdMZM9oYsVXG8NrxaRcpM1bOImMGxsI6hqaEd/xl1hCdOnNC5zZ0NoNkcjYbt BetwpofOvVrY04QcMz7ZqKU8i9Iuy5EXiIRDL5wWvxKgjbUm99FlrnUWSM084HDY7Qly DCPtWY4AdlOlgsRHnLmGIi1z9wj+S7h8WmrAi8LqaNIjiTPbdsxUni7AKiuHcgHqjs1S CKmr+8uPZDVFzbr/LkV0cu3L2yJOgS0YnrLIcrLsUHcT2KOlP8I7BmPBRIDeUXKLHr2b mudg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ntS0r9odQI+8M8I0cgPkS/Ep1PiRLefqqJQgFwDnFIE=; fh=tcl19X2u8PtEELiqC9wF/fi8DNcGozPCtYGeW6FgzSg=; b=STCSBDJyNu5XNHX/INlg2meurGEv0/9piC6EZp/mwQs6WknrUqqjmHLGXiGCgLUao8 ki3SLXYMwJz4T6YaXT6USeoZc30Hx/dT5LjVdiw2tt0mnINlHCKvaRvXDMHKkb+DpUaP ZW2/LTwVHCMrzypUAw0sgNO0scjMUZENlWL7nc7drbgl3wpUb3VxpdD21JmbmFwHrT3h B83W5yv9ufBtWYVF6nS1fdRiUwqD2xci94aTDTJwElbQKN5GVXZtw90C2SOes8TQLOhR 7udvR6XOlRDyjSKFLF/7uS1gCL017Os+aQ19u1WuHOgN24ujDQcrTppZqxO64mvVbhb0 p0Og== 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 x13-20020a63b20d000000b00563484fb2b3si2729383pge.413.2023.07.19.13.29.22; Wed, 19 Jul 2023 13:29:34 -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 S230061AbjGSUZW (ORCPT + 99 others); Wed, 19 Jul 2023 16:25:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229974AbjGSUZV (ORCPT ); Wed, 19 Jul 2023 16:25:21 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 65D80171E; Wed, 19 Jul 2023 13:25:19 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 36JKP5UU006864; Wed, 19 Jul 2023 22:25:05 +0200 Date: Wed, 19 Jul 2023 22:25:05 +0200 From: Willy Tarreau To: Zhangjin Wu Cc: arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, thomas@t-8ch.de Subject: Re: [PATCH v1 3/8] selftests/nolibc: select_null: fix up for big endian powerpc64 Message-ID: <20230719202505.GA6842@1wt.eu> References: <20230719043353.GC5331@1wt.eu> <20230719064912.59792-1-falcon@tinylab.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230719064912.59792-1-falcon@tinylab.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,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 Hi Zhangjin, On Wed, Jul 19, 2023 at 02:49:12PM +0800, Zhangjin Wu wrote: > Hi, Willy > > > Hi Zhangjin, > > > > On Wed, Jul 19, 2023 at 07:56:37AM +0800, Zhangjin Wu wrote: > > > It made me recalled I have at last disabled (not enabled for tinyconfig) the following options: > > > > > > CONFIG_ALTIVEC > > > CONFIG_VSX --> This option enables kernel support for the Vector Scaler extensions > > > > > > Or we can disable the vsx instructions explicitly: > > > > > > -mno-vsx > > > > > > Both of them work well, but I prefer -mno-vsx for to get a faster build, what about you? > > > > > > +CFLAGS_powerpc64 = -m64 -mbig-endian -Wl,-EB,-melf64ppc -mno-vsx > > > +CFLAGS_powerpc64le = -m64 -mlittle-endian -Wl,-EL,-melf64ppc -mno-vsx > > > > > > So, this patch itself is wrong, let's drop it from the next revision. > > > > Better explicitly disable it in the CFLAGS (2nd option) if we want to > > make sure we don't want to rely on this, at least for portability > > purposes. > > Ok, thanks, have updated CFLAGS in these two patches locally: > > [PATCH v1 7/8] selftests/nolibc: add test support for powerpc64le > [PATCH v1 8/8] selftests/nolibc: add test support for powerpc64 > > what about the other ones? I'm ready to send v2 ;-) I have not had the time to review them yet. Please just don't send another series yet, that just adds more noise and makes it hard to distinguish all of them. I hope to be able to check these and hopefully the tinyconfig series by the week-end. Thanks, Willy