Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1591547yba; Sun, 21 Apr 2019 10:24:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzclj/n7sZ5yQMS3VP1V0A3nvk5ua4RNPtA/pBqn7Pi8SeNAlnBoLUVZZ+CQz1Pe5V+bLem X-Received: by 2002:a65:6210:: with SMTP id d16mr14684478pgv.110.1555867473547; Sun, 21 Apr 2019 10:24:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555867473; cv=none; d=google.com; s=arc-20160816; b=eVF5ty2RlGZ4cHlBm36GskvcvMh7RUmWAo6YGeUtW1GpWQn67FTF4YyncnHhfIHW7e w1Wc4TGDxR1W9PkdtAhQnxgXXWgbw83mQFkYXcgSCyK8W/Gk3fLcbzlZq+z9CbgYarAD vrqh7C4/4juo8vfph53RIyy8/IP4UimQLTRFhfxfI4WVxN/fe44nCUTv2eYpVf8nRBXK h9c86e6FtH/LqoRF7gR29KR0qN/J+1JMKWySPy/2s20To8X3x35O+EHFCLQV+/ThEUHO Rag3Vidz7UEWwfcoBpj6ogQhzwRqSutfbzvzFCBaVK5uXE6GcUo6nHOUj2W8vsP+c+bM qTyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=0mK5h87S150W52RwXZ/Gvez6vbcojpscz0XVtWkVcJQ=; b=gzw01Ipy2jFgT8MVyxOv7f5fPc0OQjBV5w6MCZjKXZI73/Ypjay1ulACjAJUqq7zzi +X/IcuynmvUrkYhwjcJIUtsAsoOn0yh3sj3ez0Z+rf8oSKdx+V/FSaQYT+3K3cWUwLyW cwmAGlnzVRTzwhr11iaDX40hwIFHAUtS0CaLJnhfsV11g7/SXLYqmaSBp5LnGfy+SjZd ulaZt/P2JfZhLrm4ZO5vlPsMyBxe1mcn0ItBm0x9ToVLUfB0NHU9E0WDOLmH8JLmdvP7 iK9+2SU/i42sPfszE6UyylxWos2PidubGTwQ/aLLnrB3jyQ/jfFZZQ+iGnA7gpeXp+nU stFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d37si11211102pla.97.2019.04.21.10.24.16; Sun, 21 Apr 2019 10:24:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727748AbfDURXG (ORCPT + 99 others); Sun, 21 Apr 2019 13:23:06 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:35797 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726645AbfDURXG (ORCPT ); Sun, 21 Apr 2019 13:23:06 -0400 Received: from localhost (69.249.23.93.rev.sfr.net [93.23.249.69]) (Authenticated sender: gregory.clement@bootlin.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id DE1BD100002; Sun, 21 Apr 2019 17:22:57 +0000 (UTC) From: Gregory CLEMENT To: Stefan Agner , arm@kernel.org Cc: linux@armlinux.org.uk, arnd@arndb.de, ard.biesheuvel@linaro.org, robin.murphy@arm.com, nicolas.pitre@linaro.org, f.fainelli@gmail.com, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, kgene@kernel.org, krzk@kernel.org, robh@kernel.org, ssantosh@kernel.org, jason@lakedaemon.net, andrew@lunn.ch, sebastian.hesselbarth@gmail.com, tony@atomide.com, marc.w.gonzalez@free.fr, mans@mansr.com, ndesaulniers@google.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Stefan Agner , Nicolas Pitre Subject: Re: [PATCH v3 4/4] ARM: mvebu: prefix coprocessor operand with p In-Reply-To: References: Date: Sun, 21 Apr 2019 19:22:56 +0200 Message-ID: <87a7gj8e8f.fsf@FE-laptop> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stefan, > In every other instance where mrc is used the coprocessor operand > is prefix with p (e.g. p15). Use the p prefix in this case too. > This fixes a build issue when using LLVM's integrated assembler: > arch/arm/mach-mvebu/coherency_ll.S:69:6: error: invalid operand for instruction > mrc 15, 0, r3, cr0, cr0, 5 > ^ > arch/arm/mach-mvebu/pmsu_ll.S:19:6: error: invalid operand for instruction > mrc 15, 0, r0, cr0, cr0, 5 @ get the CPU ID > ^ > > Signed-off-by: Stefan Agner > Acked-by: Nicolas Pitre Applied on mvebu/arm, as well as the previous patch. Thanks, Gregory > --- > arch/arm/mach-mvebu/coherency_ll.S | 2 +- > arch/arm/mach-mvebu/pmsu_ll.S | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/mach-mvebu/coherency_ll.S b/arch/arm/mach-mvebu/coherency_ll.S > index 8b2fbc8b6bc6..2d962fe48821 100644 > --- a/arch/arm/mach-mvebu/coherency_ll.S > +++ b/arch/arm/mach-mvebu/coherency_ll.S > @@ -66,7 +66,7 @@ ENDPROC(ll_get_coherency_base) > * fabric registers > */ > ENTRY(ll_get_coherency_cpumask) > - mrc 15, 0, r3, cr0, cr0, 5 > + mrc p15, 0, r3, cr0, cr0, 5 > and r3, r3, #15 > mov r2, #(1 << 24) > lsl r3, r2, r3 > diff --git a/arch/arm/mach-mvebu/pmsu_ll.S b/arch/arm/mach-mvebu/pmsu_ll.S > index c1fb713e9306..7aae9a25cfeb 100644 > --- a/arch/arm/mach-mvebu/pmsu_ll.S > +++ b/arch/arm/mach-mvebu/pmsu_ll.S > @@ -16,7 +16,7 @@ > ENTRY(armada_38x_scu_power_up) > mrc p15, 4, r1, c15, c0 @ get SCU base address > orr r1, r1, #0x8 @ SCU CPU Power Status Register > - mrc 15, 0, r0, cr0, cr0, 5 @ get the CPU ID > + mrc p15, 0, r0, cr0, cr0, 5 @ get the CPU ID > and r0, r0, #15 > add r1, r1, r0 > mov r0, #0x0 > -- > 2.21.0 > -- Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com