From: Nick Desaulniers <ndesaulniers@google.com> To: Will Deacon <will@kernel.org> Cc: Sami Tolvanen <samitolvanen@google.com>, Catalin Marinas <catalin.marinas@arm.com>, Marc Zyngier <maz@kernel.org>, Kees Cook <keescook@chromium.org>, Linux ARM <linux-arm-kernel@lists.infradead.org>, LKML <linux-kernel@vger.kernel.org>, clang-built-linux <clang-built-linux@googlegroups.com> Subject: Re: [PATCH] arm64: fix alternatives with LLVM's integrated assembler Date: Tue, 15 Oct 2019 13:30:36 -0700 [thread overview] Message-ID: <CAKwvOdnAKNRH7NeOjCDN-ZayE2id_3=FtC5gh0UwoRNpQOaRDg@mail.gmail.com> (raw) In-Reply-To: <20191015000017.66jkcya6zzbi7qqc@willie-the-truck> On Mon, Oct 14, 2019 at 5:00 PM Will Deacon <will@kernel.org> wrote: > > On Mon, Oct 07, 2019 at 04:47:20PM -0700, Sami Tolvanen wrote: > > On Mon, Oct 7, 2019 at 2:34 PM Nick Desaulniers <ndesaulniers@google.com> wrote: > > > Should the definition of the ALTERNATIVE macro > > > (arch/arm64/include/asm/alternative.h#L295) also be updated in this > > > patch to not pass `1` as the final parameter? > > > > No, that's the default value for cfg in case the caller omits the > > parameter, and it's still needed. > > > > > I get one error on linux-next that looks related: > > > $ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make CC=clang AS=clang > > > -j71 arch/arm64/kvm/ > > > ... > > > > This patch only touches the inline assembly version (i.e. when > > compiling without -no-integrated-as), while with AS=clang you are > > using clang also for stand-alone assembly code. I believe some > > additional work is needed before we can do that. > > Is there any benefit from supporting '-no-integrated-as' but not 'AS=clang'? I don't think so. > afaict, you have to hack the top-level Makefile for that. That's right. $ make CC=clang sets `-no-integrated-as` in the top level Makefile, unless `AS=clang` was specified. So today it's either Clang for inline+out of line, or GAS for both, but we don't support mixing and matching (ie. GAS for inline, Clang for out of line, or vice versa). But older LTS kernels probably don't have the patch that ties the two together, so Sami's patch addresses the removal of `-no-integrated-as` for inline assembly (IIUC). -- Thanks, ~Nick Desaulniers
WARNING: multiple messages have this Message-ID (diff)
From: Nick Desaulniers <ndesaulniers@google.com> To: Will Deacon <will@kernel.org> Cc: Kees Cook <keescook@chromium.org>, Catalin Marinas <catalin.marinas@arm.com>, LKML <linux-kernel@vger.kernel.org>, clang-built-linux <clang-built-linux@googlegroups.com>, Sami Tolvanen <samitolvanen@google.com>, Marc Zyngier <maz@kernel.org>, Linux ARM <linux-arm-kernel@lists.infradead.org> Subject: Re: [PATCH] arm64: fix alternatives with LLVM's integrated assembler Date: Tue, 15 Oct 2019 13:30:36 -0700 [thread overview] Message-ID: <CAKwvOdnAKNRH7NeOjCDN-ZayE2id_3=FtC5gh0UwoRNpQOaRDg@mail.gmail.com> (raw) In-Reply-To: <20191015000017.66jkcya6zzbi7qqc@willie-the-truck> On Mon, Oct 14, 2019 at 5:00 PM Will Deacon <will@kernel.org> wrote: > > On Mon, Oct 07, 2019 at 04:47:20PM -0700, Sami Tolvanen wrote: > > On Mon, Oct 7, 2019 at 2:34 PM Nick Desaulniers <ndesaulniers@google.com> wrote: > > > Should the definition of the ALTERNATIVE macro > > > (arch/arm64/include/asm/alternative.h#L295) also be updated in this > > > patch to not pass `1` as the final parameter? > > > > No, that's the default value for cfg in case the caller omits the > > parameter, and it's still needed. > > > > > I get one error on linux-next that looks related: > > > $ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make CC=clang AS=clang > > > -j71 arch/arm64/kvm/ > > > ... > > > > This patch only touches the inline assembly version (i.e. when > > compiling without -no-integrated-as), while with AS=clang you are > > using clang also for stand-alone assembly code. I believe some > > additional work is needed before we can do that. > > Is there any benefit from supporting '-no-integrated-as' but not 'AS=clang'? I don't think so. > afaict, you have to hack the top-level Makefile for that. That's right. $ make CC=clang sets `-no-integrated-as` in the top level Makefile, unless `AS=clang` was specified. So today it's either Clang for inline+out of line, or GAS for both, but we don't support mixing and matching (ie. GAS for inline, Clang for out of line, or vice versa). But older LTS kernels probably don't have the patch that ties the two together, so Sami's patch addresses the removal of `-no-integrated-as` for inline assembly (IIUC). -- Thanks, ~Nick Desaulniers _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-10-15 20:30 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-10-07 21:14 [PATCH] arm64: fix alternatives with LLVM's integrated assembler Sami Tolvanen 2019-10-07 21:14 ` Sami Tolvanen 2019-10-07 21:34 ` Nick Desaulniers 2019-10-07 21:34 ` Nick Desaulniers 2019-10-07 23:47 ` Sami Tolvanen 2019-10-07 23:47 ` Sami Tolvanen 2019-10-15 0:00 ` Will Deacon 2019-10-15 0:00 ` Will Deacon 2019-10-15 0:28 ` Sami Tolvanen 2019-10-15 0:28 ` Sami Tolvanen 2019-10-15 20:30 ` Nick Desaulniers [this message] 2019-10-15 20:30 ` Nick Desaulniers 2019-10-15 20:31 ` Nick Desaulniers 2019-10-15 20:31 ` Nick Desaulniers
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='CAKwvOdnAKNRH7NeOjCDN-ZayE2id_3=FtC5gh0UwoRNpQOaRDg@mail.gmail.com' \ --to=ndesaulniers@google.com \ --cc=catalin.marinas@arm.com \ --cc=clang-built-linux@googlegroups.com \ --cc=keescook@chromium.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=maz@kernel.org \ --cc=samitolvanen@google.com \ --cc=will@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.