Received: by 10.223.164.202 with SMTP id h10csp466903wrb; Wed, 8 Nov 2017 20:49:00 -0800 (PST) X-Google-Smtp-Source: ABhQp+Q5+I1asPoeaS8I+umfi0MiWrddwxc8YK4NOvBfbyqEwo8icFlVsaVTkuiiVI0v9pDQ0MH+ X-Received: by 10.99.150.2 with SMTP id c2mr2663635pge.386.1510202940867; Wed, 08 Nov 2017 20:49:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510202940; cv=none; d=google.com; s=arc-20160816; b=ArrvUHuDX3aa2oc/2NTT9BfpKq8Jq9f3AeRl4shQ8Todf1ZosEW6JFl+x1KYntbTN5 /PJkBL/0fG8Mj/pblGu+s3nICljE5bK7YGNccD59YVX77F5EaerqVgz1WFqmx0c8RN1I Ek91evw0P5NIgqdRG6UorgjuyLe7dda46LHmlJOtibupGfgZCCoTbqE3gOpx6g15jdKq 0z5Maw+v7QW9Nne8w54aNSjvCUMSPkY6cwMJ7W2+NnjBw8sTZGJkEPpt6cCXNzTscaRs VRgZjQv7qH7cTRtrWcr+nkYqvbqvkk2cAePSbFDqHFPs/SWOCIoL5gNm21LoiYJOoswW R17w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:arc-authentication-results; bh=IDPhr1M3y4tLq0LfhHOGRFLnoy5NriswPa8P76ldy1M=; b=tXlFAGWAz81V80332NIEESjgWDoq3ITBZkpkZaTX0BScPithrhdlHwZ585l8NLMjav 81JOTS/GHRkJVwxCiRdKRSjUAHkK3ga3rS1ZLimRZjHzw5TyQYzORH3gaikD4bqKIoW/ tsv1SanCML0PIrhGlstGP8L7K19CFnyKkpUKVVx/LbcR2hrRPsX5io/VPpvnASe8X6GC ud1jKowM7OrDKS84pVq9hwyd5jrkGRMOdVRthNjoXopWpmjqvh7jxBTqnBZ4NS+KpWvb Lxclu05rk+IQoKlOuZ1kdGWoeICRBWYPOyma66l9tG0N6/DsdjFJH5ZZZpBzUIp+FWv6 bvKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UerwnmJU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e190si5610007pfe.93.2017.11.08.20.48.49; Wed, 08 Nov 2017 20:49:00 -0800 (PST) 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=@linaro.org header.s=google header.b=UerwnmJU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752296AbdKIEsL (ORCPT + 82 others); Wed, 8 Nov 2017 23:48:11 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:45170 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751786AbdKIEsK (ORCPT ); Wed, 8 Nov 2017 23:48:10 -0500 Received: by mail-lf0-f66.google.com with SMTP id n69so5687998lfn.2 for ; Wed, 08 Nov 2017 20:48:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=IDPhr1M3y4tLq0LfhHOGRFLnoy5NriswPa8P76ldy1M=; b=UerwnmJUQ5XLjQtFKfSw/F/Z7IfQdrGfJ7CgGmYkSzs+HnBlCELF1Jwo4w8fXT6PlI jTtHPLFkSfRDDzaqK81Wpn26p82gz0K4mbuJcP+Its+RPj1zxGHAWdXE4abToLLYN/rP ISljWtC2JBNQxkaa4qeuT4Som4D5xXltJ+i4A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=IDPhr1M3y4tLq0LfhHOGRFLnoy5NriswPa8P76ldy1M=; b=Dtdr5UU2E0SOm9/JZWXJ/ZAwyNakH3nc8G6UZk4yebCp2JJjmJh6Owdro6G3RiyBRB n0jqSjNFnFhD1b0GrWBN3wmFNG+tr+9fmf5rjBci9rATngk2DQOhV9xiIcZNcn8I3wjt psqJt/z96BRPx49vTWIFAY23r2EhBvDwhW4XM6iAekuT/BngUsPyG/tF7m8KbfcXgLAE ipNtkuQks7Upbo4RoMidEyO4QnlzjKon7ZoMfy4dOBJmwvgEzRu6yhmrDVNaxkIe95Lg I18zNbCXCHgzuileZ7bBl67mxVtDxyOskDsw8mAyB6s+9UoKlpmnvmwNMI6PTH56WBJp h4AA== X-Gm-Message-State: AJaThX4Vtw0NKxwu70s+96BPYimfykQGJwbGBGe+xwTie3SadwYzbGgm ZT2m8fDm0JuImjRc5LFXlZbu X-Received: by 10.25.170.204 with SMTP id t195mr996654lfe.88.1510202888855; Wed, 08 Nov 2017 20:48:08 -0800 (PST) Received: from [192.168.1.65] (ppp79-139-181-227.pppoe.spdop.ru. [79.139.181.227]) by smtp.gmail.com with ESMTPSA id x28sm1089279ljd.88.2017.11.08.20.48.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Nov 2017 20:48:07 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [PATCH 13/15] arm64: fix mrs_s/msr_s macros for clang LTO From: Maxim Kuvyrkov In-Reply-To: <20171109000222.GC8522@tassilo.jf.intel.com> Date: Thu, 9 Nov 2017 07:48:06 +0300 Cc: Yury Norov , LKML , linux-arm-kernel@lists.infradead.org, Greg Hackmann , Kees Cook , Matthias Kaehlcke , Nick Desaulniers , Alex Matveev , Andi Kleen Content-Transfer-Encoding: quoted-printable Message-Id: References: <20171103171203.107569-1-samitolvanen@google.com> <20171103171203.107569-18-samitolvanen@google.com> <20171108092555.ta4mkqolunyw6mdr@yury-thinkpad> <20171109000222.GC8522@tassilo.jf.intel.com> To: Sami Tolvanen X-Mailer: Apple Mail (2.3273) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Nov 9, 2017, at 3:02 AM, Andi Kleen wrote: >=20 >> There's the series from Andi Kleen that enables LTO for Linux on x86: >> https://lwn.net/Articles/512548/ >> https://github.com/andikleen/linux-misc/tree/lto-411-1 >>=20 >> It has solved many problems you also try to solve, and some patches >> are looking very similar.=20 >>=20 >> At now we have different patchsets for gcc and clang, and it would be >> better to have them together. One thing I'm worried is that you = introduce >> CONFIG_CLANG_LTO and use it for all cases, including that where more >> generic CONFIG_LTO should be used. >=20 > Yes would be good to merge the two. I've been looking at updating > my old one. >=20 > I don't cover any ARM code, but lots of generic code. My patches > also worked on MIPS at least. >=20 > There's also older patches to enable single-pass-linking for kallsyms, > which is extremly useful for LTO build performance. [Yury, thanks for the CC:] Chiming in from the toolchain side, Linaro's Toolchain team will try to = help with any GCC or Clang issues that are exposed by building kernel = with LTO on arm64 / arm. Regarding CONFIG_* options, I would expect most of the configuration = changes to be equally valid for both GCC's and Clang's LTO support. = Sami, I don't think it's fair to ask you to support both Clang and GCC = in your patchset, but, where changes are obviously toolchain-agnostic, = could you use CONFIG_LTO? And use CONFIG_LTO_CLANG for Clang-specific = parts? This way we will be able to avoid most of the refactoring when adding = support for GCC's LTO. Thank you, -- Maxim Kuvyrkov www.linaro.org From 1583544633170484133@xxx Thu Nov 09 00:04:05 +0000 2017 X-GM-THRID: 1583065954961523588 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread