Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp1265493imc; Sun, 17 Mar 2019 08:47:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1ntbc4EQ10vhFsRH5yYWMqzPj/9AEXGzqNkakGcgxYyUj169Xrj0Q2zsCkJbHpFrFzbnM X-Received: by 2002:a62:449b:: with SMTP id m27mr14738639pfi.79.1552837647956; Sun, 17 Mar 2019 08:47:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552837647; cv=none; d=google.com; s=arc-20160816; b=rXlk9la8uTVpU8JFORjJ0+oJQ2l2CjlqhulCy0s4uj5VlNPUyeAG8mrKG9RBW/mIZk +uerrdXJRlu9azfg6E0iSCKaBq0V5FTfqpGT1CvoRMcEhbioZLWzZZLHqm+wuKr3G4cs gjFeNVe6LSMX7yzkb9Kj4PiQWRgsqksCP6PwQ0Rzxdm2z3skdW8r5jUNdW3wmUP5U9Ay 6vhSRVHFEUxNGkaJ8x5Nl0lHYYU0HuuiieLld6bsrk6OTFxvqP1a6Rv3x03SJ6QZUj8U DeOTjswf2T2L3MmbMDIQqdniplP6HuZyhFe2paW7AOix7Wg9T8qUmEtjEVxHtpTCUF7v cDlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=1Kpro2NFMAD0NxEc2llmKLzygnZGmnEvQNupn985gnY=; b=O1r1fGPV9sMSyNbTBBo8RF0bpvwdRKch8DSrACanbIljSoJyOsnGaBqYRXivjkvWo0 QXHdl9ZBXKjTtXkroJ9Y+trZjWorUwP/o/o/csmlxFnrrQ929m8f31JxUOerwkiaEuQc NWGsJtCcvhHx2n0gMm7xpKGVdSSKucp6jciXlrJaS19fWWckF33hcDRfThpr2m+FRafS 6jQQfUidt/MoKeEGuXaseNpWM706od6vhl6T+xdZBPxQ5tX+xDdh6j3ywTysc6SsxTRW 0Scnt/LVQO7Jj0hS2L8i7meXF3DlrB+JdoQOdt92FllX4IQxOwP3NGycGYDJnKGqUg/l 7n+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=uitkFEjt; 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 q17si6693462pgq.392.2019.03.17.08.47.12; Sun, 17 Mar 2019 08:47:27 -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; dkim=pass header.i=@agner.ch header.s=dkim header.b=uitkFEjt; 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 S1727390AbfCQPor (ORCPT + 99 others); Sun, 17 Mar 2019 11:44:47 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:54922 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727043AbfCQPoq (ORCPT ); Sun, 17 Mar 2019 11:44:46 -0400 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 540675C2373; Sun, 17 Mar 2019 16:44:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1552837484; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1Kpro2NFMAD0NxEc2llmKLzygnZGmnEvQNupn985gnY=; b=uitkFEjtDC4ABFjtaYDlGf3AtNpYqPhMuWaQwGswv4XwrpC7eb7VpPIuQRKMOi0S7tSTn+ Pl8449HSu2pGG10ByG8ncWXk+xunPX79YexbSxqvFIpKbCroMicJakAyVfRjIfvihmcUbL T300wdwHpZ7YMyj3uO2PBXnbnPNeH2w= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Sun, 17 Mar 2019 16:44:44 +0100 From: Stefan Agner To: Nick Desaulniers Cc: Robin Murphy , Russell King , Nicolas Pitre , Mark Rutland , Arnd Bergmann , Ard Biesheuvel , Will Deacon , julien.thierry@arm.com, LKML , Thierry Reding , Nathan Chancellor , Linux ARM , Kristof Beyls , Peter Smith Subject: Re: [PATCH 1/2] ARM: drop unnecessary WASM In-Reply-To: References: <13835555f8ef44b21d1b7ddfe1c4203d0981f77e.1551824161.git.stefan@agner.ch> Message-ID: X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.7 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06.03.2019 01:47, Nick Desaulniers wrote: > On Tue, Mar 5, 2019 at 3:39 PM Robin Murphy wrote: >> >> Hi Stefan, >> >> On 2019-03-05 10:18 pm, Stefan Agner wrote: >> > The W macro for generating wide instructions when targeting Thumb-2 >> > is not required for the preload data instructions (pld, pldw) since >> > they are only available as wide instructions. The GNU assembler seems >> > to work with or without the .w appended when compiling an Thumb-2 >> > kernel. However, Clang's integrated assembler does not consider the >> > .w variants as valid instructions: >> > >> > ./arch/arm/include/asm/processor.h:133:5: error: invalid instruction >> > "pldw.w\t%a0 \n" >> > ^ >> > :2:1: note: instantiated into assembly here >> > pldw.w [r0] >> > ^ >> > 1 error generated. >> >> Have you filed a bug against Clang for that? Something like "pldwal.w" > > Yes; please. For each deficiency you find, please file a bug. We're > working on identifying what's missing from Clang's integrated > assembler support. Given the list of issues, it's easier to estimate > how much effort is needed, which helps us allocate resources towards > fixing those issues better. > > It would be good to know if pldw.w is valid under UAL or not. As far as I understand the Arm ARM it is valid under UAL. Reported a bug in LLVM's bug tracker: https://bugs.llvm.org/show_bug.cgi?id=40972 Will send a v2 patch mentioning this is really a work around for LLVM and link to the bug report. > > Hopefully, the ARM kernel team can stress the importance of assembler > support for their ISA to their LLVM team. -- Stefan