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=-2.3 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED, USER_AGENT_MUTT autolearn=ham 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 2FBD7C10F13 for ; Tue, 16 Apr 2019 17:08:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 F33F720872 for ; Tue, 16 Apr 2019 17:08:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="sEGN9tFv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F33F720872 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-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=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=p+aFXFENnScEH0JTzv5WotsQOcWVSL+cpHUJcYrW54A=; b=sEGN9tFvBlSH2V 0L/BTJD3Zm8oXEjK5odYijwywzKZ1r6LYMkPDppGVKy1LPnwXZpWALNm0Bx1sDLkIIAjTcFOVLhZs YjwHf7/5HlvsbaBWyPB5+m9IslvtAAuVtxrUIBfZgtim4moAur+DmDbGNbxRNI72UHeKmWGE6oR4I JA9uiSZKuDFFMgOWeIj2q9+MtYVyliklQIHKGWl5jIZQmRVWcHYm3R3N2tCTcP0U+ZRV9eZTgSfny pmrY5kyNvrSHpRooHC0Ltg16SK2YRuKdj4xSDfT7WQykY0Uubwl4dxTjQIGChc5ZwzykohkbKhaUk YOntQK6yvAwysGiEjA4g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGRZD-0002zE-8y; Tue, 16 Apr 2019 17:08:19 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGRZ9-0002yU-Ao for linux-arm-kernel@lists.infradead.org; Tue, 16 Apr 2019 17:08:16 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 77CDA80D; Tue, 16 Apr 2019 10:08:13 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 86D6F3F59C; Tue, 16 Apr 2019 10:08:11 -0700 (PDT) Date: Tue, 16 Apr 2019 18:08:09 +0100 From: Mark Rutland To: Nick Desaulniers Subject: Re: [PATCH v3] arm64: sysreg: make mrs_s and msr_s macros work with Clang and LTO Message-ID: <20190416170808.GC54708@lakrids.cambridge.arm.com> References: <20190415143821.GA46880@beast> <20190415170604.GA44415@lakrids.cambridge.arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190416_100815_373393_560245AE X-CRM114-Status: GOOD ( 16.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kees Cook , Ard Biesheuvel , Catalin Marinas , Will Deacon , LKML , Yury Norov , Sami Tolvanen , Alex Matveev , Matthias Kaehlcke , Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Apr 15, 2019 at 10:22:27AM -0700, Nick Desaulniers wrote: > On Mon, Apr 15, 2019 at 10:06 AM Mark Rutland wrote: > > It would be nice if we could simply rely on a more recent binutils these > > days, which supports the generic S____ sysreg > > definition. That would mean we could get rid of the whole msr_s/mrs_s > > hack by turning that into a CPP macro which built that name. > > > > It looks like binutils has been able to do that since September 2014... > > > > Are folk using toolchains older than that to compile kernels? > > Do you have a link to a commit? If we can pinpoint the binutils > version, that might help. IIUC any version of binutils with commit: df7b4545b2b49572 ("[PATCH/AArch64] Generic support for all system registers using mrs and msr") ... should be sufficent. That's on gitweb at: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=df7b4545b2b49572ab63690c130df973af109615 > Also, I look forward to this patch for use of Clang's integrated > assembler (regardless of LTO). I remember getting frustrated trying > to figure out how to resolve this for both assemblers, and I had > forgotten this solution existed. Is this the only blocker for the integrated assembler? Thanks, Mark. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel