From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 805F1C388F7 for ; Tue, 10 Nov 2020 20:38:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E82122064B for ; Tue, 10 Nov 2020 20:38:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="ydR4/Eir" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731407AbgKJUiU (ORCPT ); Tue, 10 Nov 2020 15:38:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:53892 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727275AbgKJUiT (ORCPT ); Tue, 10 Nov 2020 15:38:19 -0500 Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6A4452063A for ; Tue, 10 Nov 2020 20:38:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605040698; bh=dC2cst0+NehiX2IqKyhIGqMDMr6AVk93A52+2YUUDYA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ydR4/EiraONC/eDzv3t+v7EPeyfeQc1mmt2M/m+lKadnm8O1QU9H71rzaLzkKUiN8 zYyCdDCpN8vphm6svn66M1VfMUesY8cq2Fb7w8puJlZg6lEpH/BuH+pHwMosQ9/MxZ V72En7fsMYWUBX52drVvNfBuPlUjB6Obe4auUmho= Received: by mail-ot1-f50.google.com with SMTP id l36so6136ota.4 for ; Tue, 10 Nov 2020 12:38:18 -0800 (PST) X-Gm-Message-State: AOAM5318EezkBzgoA/tfEJagFmn2AIHRAK/hYpkB0ULRB2fSDaTz2kkg DHYWzlDQNDRfnDRZZwBrBMG3L4FZRbBM7GsLFsU= X-Google-Smtp-Source: ABdhPJxWsltJYzyOIUKf+sHvuw0kAUSXKj+mqDZv0jEhae06t2cIBzZfqPoE0IenaIXO6cMdDs5B/+1apE8QpJAq2GQ= X-Received: by 2002:a05:6830:22d2:: with SMTP id q18mr13918918otc.305.1605040697642; Tue, 10 Nov 2020 12:38:17 -0800 (PST) MIME-Version: 1.0 References: <20200409232728.231527-1-caij2003@gmail.com> <20201107001056.225807-1-jiancai@google.com> In-Reply-To: From: Arnd Bergmann Date: Tue, 10 Nov 2020 21:38:01 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] Make iwmmxt.S support Clang's integrated assembler To: Nick Desaulniers Cc: Jian Cai , Ard Biesheuvel , Manoj Gupta , Luis Lozano , clang-built-linux , Russell King , Nathan Chancellor , Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 10, 2020 at 9:11 PM 'Nick Desaulniers' via Clang Built Linux wrote: > > On Tue, Nov 10, 2020 at 12:10 PM Jian Cai wrote: > > > > I tried to verify with ixp4xx_defconfig, and I noticed it also used CONFIG_CPU_BIG_ENDIAN=y to enable big endianness as follows, > > > > linux$ grep ENDIAN arch/arm/configs/ixp4xx_defconfig > > CONFIG_CPU_BIG_ENDIAN=y > > > > Also it appeared arch/arm/kernel/iwmmxt.o was not built with ixp4xx_defconfig. The commands I used > > > > linux$ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make CC=clang ixp4xx_defconfig > > linux$ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j32 CC=clang > > linux$ ls arch/arm/kernel/iwmmxt.o > > ls: cannot access 'arch/arm/kernel/iwmmxt.o': No such file or directory > > > > Did I miss any steps? > > Yes, you need to manually enable CONFIG_IWMMXT in menuconfig or via > `scripts/configs -e`. To clarify: ixp4xx and pxa3xx were two platforms based on the XScale core. ixp4xx was commonly used in big-endian mode but lacked iWMMXt. pxa3xx had iWMMXt but doesn't allow enabling big-endian mode because of a Kconfig dependency, meaning that nobody has ever tried it, and it's likely broken. Later 'mvebu' parts (Armada 510) do have iWMMXt and allow big-endian mode, but those are BE8, with non-reversed byteorder for the instructions. So none of this matters in practice, but it's very satifiying to know it is finally all working with the integrated assembler in all those combinations, at least in theory! Arnd From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8BEC8C388F7 for ; Tue, 10 Nov 2020 20:39:07 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EF2832063A for ; Tue, 10 Nov 2020 20:39:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="EMuoKW9U"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="ydR4/Eir" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EF2832063A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Qmi9sCmNX1vXQwP1D8Ue/tVkq60SSlbHElUioH0JNiY=; b=EMuoKW9U7Imfu0RO8LvvDUPMX zmB2QjrSMrGyLl9F4YEoScn3c1lUy1uoDOROGbYnAbSVuwSRG6yr4KTqYYd+Zf0xEAnui6aTcIP/i 1ddn+foqYSfKr8zd0ssl24SP+u7rcV/hWMwCBbpKBBlih/KmG7ECT5famxbYKeA6NKcmnaW65MWcw 0cVDiQZJ0qUxpSrkxvHrvttaZYeRlTyRNQmtVn55ksEKFXKZA3x5Thf0dhN7A3rRX5pMwGolfdSNw L53PljE6kwkqRvF1XsEAq9KxYLUzMnhkSsN3flCJiF1BVoTcLigm0MRdPCx9upFvWN4Zn8035WDD7 BWs2zuHEg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcaPG-0006Bs-2L; Tue, 10 Nov 2020 20:38:22 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcaPD-0006BP-GY for linux-arm-kernel@lists.infradead.org; Tue, 10 Nov 2020 20:38:20 +0000 Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 76310206B5 for ; Tue, 10 Nov 2020 20:38:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605040698; bh=dC2cst0+NehiX2IqKyhIGqMDMr6AVk93A52+2YUUDYA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ydR4/EiraONC/eDzv3t+v7EPeyfeQc1mmt2M/m+lKadnm8O1QU9H71rzaLzkKUiN8 zYyCdDCpN8vphm6svn66M1VfMUesY8cq2Fb7w8puJlZg6lEpH/BuH+pHwMosQ9/MxZ V72En7fsMYWUBX52drVvNfBuPlUjB6Obe4auUmho= Received: by mail-ot1-f44.google.com with SMTP id k3so13879527otp.12 for ; Tue, 10 Nov 2020 12:38:18 -0800 (PST) X-Gm-Message-State: AOAM531pDgZR8fnQZ1CD0g0xGZdv0/tBcYduJCGXzTw1YRYkF1aOvx5k uuLh1r6bo02hzvDzS3dic3LE1KPFyP//x7qaihI= X-Google-Smtp-Source: ABdhPJxWsltJYzyOIUKf+sHvuw0kAUSXKj+mqDZv0jEhae06t2cIBzZfqPoE0IenaIXO6cMdDs5B/+1apE8QpJAq2GQ= X-Received: by 2002:a05:6830:22d2:: with SMTP id q18mr13918918otc.305.1605040697642; Tue, 10 Nov 2020 12:38:17 -0800 (PST) MIME-Version: 1.0 References: <20200409232728.231527-1-caij2003@gmail.com> <20201107001056.225807-1-jiancai@google.com> In-Reply-To: From: Arnd Bergmann Date: Tue, 10 Nov 2020 21:38:01 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] Make iwmmxt.S support Clang's integrated assembler To: Nick Desaulniers X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201110_153819_714115_8CC48019 X-CRM114-Status: GOOD ( 19.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linux Kernel Mailing List , Russell King , Jian Cai , clang-built-linux , Manoj Gupta , Luis Lozano , Nathan Chancellor , Ard Biesheuvel , Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Nov 10, 2020 at 9:11 PM 'Nick Desaulniers' via Clang Built Linux wrote: > > On Tue, Nov 10, 2020 at 12:10 PM Jian Cai wrote: > > > > I tried to verify with ixp4xx_defconfig, and I noticed it also used CONFIG_CPU_BIG_ENDIAN=y to enable big endianness as follows, > > > > linux$ grep ENDIAN arch/arm/configs/ixp4xx_defconfig > > CONFIG_CPU_BIG_ENDIAN=y > > > > Also it appeared arch/arm/kernel/iwmmxt.o was not built with ixp4xx_defconfig. The commands I used > > > > linux$ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make CC=clang ixp4xx_defconfig > > linux$ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j32 CC=clang > > linux$ ls arch/arm/kernel/iwmmxt.o > > ls: cannot access 'arch/arm/kernel/iwmmxt.o': No such file or directory > > > > Did I miss any steps? > > Yes, you need to manually enable CONFIG_IWMMXT in menuconfig or via > `scripts/configs -e`. To clarify: ixp4xx and pxa3xx were two platforms based on the XScale core. ixp4xx was commonly used in big-endian mode but lacked iWMMXt. pxa3xx had iWMMXt but doesn't allow enabling big-endian mode because of a Kconfig dependency, meaning that nobody has ever tried it, and it's likely broken. Later 'mvebu' parts (Armada 510) do have iWMMXt and allow big-endian mode, but those are BE8, with non-reversed byteorder for the instructions. So none of this matters in practice, but it's very satifiying to know it is finally all working with the integrated assembler in all those combinations, at least in theory! Arnd _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel