Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4327758pxb; Tue, 10 Nov 2020 13:40:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvXWuO+kHFnzbftsTVwX6DAc2kgzymgLxzwNJQS91C5NyIkjJ0uzy5nFRTb5fnYLpgZyg7 X-Received: by 2002:aa7:dd49:: with SMTP id o9mr22705441edw.143.1605044409848; Tue, 10 Nov 2020 13:40:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605044409; cv=none; d=google.com; s=arc-20160816; b=qsWzUTTABgRSlKYyDh4sfdtlsyhwSd+sqESpduX8Jby1PBHDc+MV9W/dakeBgnlvEO d6DJjY/QpV/yC00RueLqvUwQNfB72EAGx4e/KLy8RBcqF3Thry+AXXIW9Hovn7/d4Ivy CfOF3DKstZ6b5wDxLRa0bg8kmjdnO33jU1DxYMLsYoaOKCG1P9Ajasoc3dJV1jbuj3Se DGEJirQvAgU5jysGb++LNARthSAmyTKrnEHEmhx6CX0xDsCPB0Pdcr8gUXLQQ8n4eDU7 VIyVL38FPZqiejaUIzOQ0y21L9gBrLIb1qOaYKk37mdr0nqvzIya7hs73OsGsgN5vg25 xBmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ttwuWSL7bQX3ZiTCFdG/qTiwhfcSq07Wu6lKeQu2TjU=; b=TjK8jK5k4DTg3Umet4Ui0641VR8yFwR95tXnbFckO+b1pZefq5PQ0KZJCqND2zQlIO vjeqy28aeMW1vjZrM4Wlm69KW0xiVPnttgnqzeRtHMFBkPs8za9f7hfq0aJz9+KQMxqJ wSuSNQ2BfPVcmPQRyC3+C+uDFPwDiP3FEP3VsEcrb10h1MTm6kZx63r3nkeHm86e2B5T 7dPoosBNSayqCN6DaRZfdpKvNRy0eggbWJiRrJiH6ilWIwL+/ZtrHUWTl4XKoZ4H2YWE N5f4s+HNGZPWj5MiVNqB1tqWlmnVd10suzzlmkD50cHGXwKVsKOyDr2QAE/5WyGLWOwy x15A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=p0q11j1n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f1si10137193eja.366.2020.11.10.13.39.45; Tue, 10 Nov 2020 13:40:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=p0q11j1n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731818AbgKJVfc (ORCPT + 99 others); Tue, 10 Nov 2020 16:35:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:39784 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbgKJVfc (ORCPT ); Tue, 10 Nov 2020 16:35:32 -0500 Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) (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 022BE2074B for ; Tue, 10 Nov 2020 21:35:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605044132; bh=ttwuWSL7bQX3ZiTCFdG/qTiwhfcSq07Wu6lKeQu2TjU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=p0q11j1nr8QXpkwyEOL7feW0NPv6VqGiy5ZoDlRVm5sCHC6Vi4ziJJbeFsi3BsecN DzFlC8bk5YuxSc0lGLnavS9VQmMjoKpia/K2mBU5DQe64PNeyp1PkMT5HXOx0CJUka 9rnqkyfyucgIFOfypVKvmjaZtAxncFSytjwW8p0c= Received: by mail-ot1-f46.google.com with SMTP id g19so116862otp.13 for ; Tue, 10 Nov 2020 13:35:31 -0800 (PST) X-Gm-Message-State: AOAM530a11ykdhhihzFp1zXFHOsU6LsT3wFcWWmlFMyUkPrVgo12M1rK iJ3ubgt8ezGjcHjRE0lSWwsCnTLHLoJhFx9yCDY= X-Received: by 2002:a9d:62c1:: with SMTP id z1mr14939625otk.108.1605044131223; Tue, 10 Nov 2020 13:35:31 -0800 (PST) MIME-Version: 1.0 References: <20200409232728.231527-1-caij2003@gmail.com> <20201107001056.225807-1-jiancai@google.com> In-Reply-To: From: Ard Biesheuvel Date: Tue, 10 Nov 2020 22:35:27 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] Make iwmmxt.S support Clang's integrated assembler To: Arnd Bergmann Cc: Nick Desaulniers , Jian Cai , 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, 10 Nov 2020 at 21:38, Arnd Bergmann wrote: > > 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! > Thanks for the perspective. I wasn't aware of all these details, but I just wanted to confirm that .inst works as expected in all configurations.