Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1693794ybt; Thu, 9 Jul 2020 13:06:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhywV+SiXOs3tWkzol8NinO1rD2LHkSLEVvA3MAJ3klSZQK0B8qmW9ymg03yhZp+RX/mLG X-Received: by 2002:a50:8e53:: with SMTP id 19mr58269908edx.185.1594325204454; Thu, 09 Jul 2020 13:06:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594325204; cv=none; d=google.com; s=arc-20160816; b=Rg7JFcZgUAmEaIRVzuPfY1Xwpa789Xhg5AYVzK/YFKFxYNHadvKOviUxgSeNG6V1jo KJwaML8dFJ2MWJYCjPvKz+w3OfLxU7B6Y0Bq1D9bRHxl3BjFX/oms8KUop/oUgJiiCG0 prmnRDpFZ6hgan9vySgyIcf9Pk5WFsfNTjO48DxiWvQYobseajralnyipfv9Po+HZCNJ gpdfoazkVB1O5zdZESMavRlSdobQ01saZTJtOuHuuTC4OZRBExOLzQP+/9uwoPpsC3+E ykaEXETqLgIi096K89dw8WPxfdeo0+HXm2heV0lZFUq8FHKcjVRHu03DiTzHhhC/S00J 3/ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=2VF7eJrZIbjXtY34qIPtFXhMtxmmt28w7rrxhSng8oY=; b=sw+XtZKfYBZVeB8OxzxLm0Pwq4aNaojid6uf6VEKC2w/wAILsa+KYJRUX1Ga93+qxb 0XaE3JO7zCo9VnOJti6GQVdRf5K6XZm5ywEtf2ZfOtUUSreXcgoCkvmtOo4zSMHr3Ing q4kc+CG4aw6gx5LTJFDd49XenB0dEN+sSfkcn5GJw2uDe16hCBfuPy8OPH9CELpu/fP/ 8MqVy3MRe2agbODaz6tXVHoUFe6MteDOsmD3LwFJAUCozPkunJCcL291bU4pw7rE0tPh xiX21E8K5h4vxX5ZAd5mRc+SLrSkO4QuC8nPJwtMioTg6nGZDqLw2c5c8OTGbHMcvkBK wVbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mIyW8zZO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si2171397ejj.564.2020.07.09.13.06.20; Thu, 09 Jul 2020 13:06:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mIyW8zZO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726934AbgGIUCt (ORCPT + 99 others); Thu, 9 Jul 2020 16:02:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726262AbgGIUCr (ORCPT ); Thu, 9 Jul 2020 16:02:47 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D096DC08C5CE for ; Thu, 9 Jul 2020 13:02:47 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id f2so1257204plr.8 for ; Thu, 09 Jul 2020 13:02:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2VF7eJrZIbjXtY34qIPtFXhMtxmmt28w7rrxhSng8oY=; b=mIyW8zZOWOY1pVXYX/2zNQFllS1xgMrpixZbYUPUyWHOZ6IlW8z95tLUpzi8JiW48R 7wlKto0aIRL/lggyxOGdZuOWJpSvH5vRS0WbAz1cvUNNAMP4TgDSp7aLxVIuBL0zUnyR QiF6K9DF2QwoRsxqwDlvXq+eh1l1djghBCJjMwcogQ6HwLreSqgMFv8POKDy18zyR4Gb 751DZz4Bhjg0wAaRs2YK1ZjBly1oTt0N2PNdTfAYzIxn2HXpXkHZHESHOHcbJP9VUdp4 mc6uUFW7KPrMhLj9H4BwJ3/v2QN5OoaFfEmTfZ8r5lyGRjEYD7mBb2LGrMGVizRqRpdG bkJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2VF7eJrZIbjXtY34qIPtFXhMtxmmt28w7rrxhSng8oY=; b=HSO63fA4nGzeJXyPMqwXP9mSrj1vpA2yOp4sBXejOZh++N4Z2OYXrf1pY/nA+UmTdH MWofEPEZJjzfiaW7EG3Yf0qP16QbJZYtNfiygCSJK+06DVlqlQWE7c0K7BVoHRwQqc/h RZc8SbA0R/Yk4EOiq32L9CSbu5TUxwxV4JrCSf37y4iKtbiT4bboQ8maohlnr/bg9LYY ii6cHFRLGUlrsuSPBVZa/IYaehh72Wczqj9UWyg1Ct6x5xfDmI0Yehx0pJn3bstAdlqd B1+jeTIQKoNja/cBsznPOVorTnGOqQTzql1VOtxTSZ33dzWZ52S4fNpYHSZpC2yKielG X5HA== X-Gm-Message-State: AOAM5312W3QOleuIXdeuAZf9eZyB3/13L/UlwzC3YiQ91dx6PPwFtCU2 SbomEv5EIFVCqJPQCagtSfk6vUTvE2OG1crqjkCUeA== X-Received: by 2002:a17:90a:21ef:: with SMTP id q102mr1866229pjc.101.1594324967094; Thu, 09 Jul 2020 13:02:47 -0700 (PDT) MIME-Version: 1.0 References: <20200530221127.459704-1-brgerst@gmail.com> In-Reply-To: From: Nick Desaulniers Date: Thu, 9 Jul 2020 13:02:35 -0700 Message-ID: Subject: Re: [PATCH v2 00/10] x86: Clean up percpu operations To: Linus Torvalds Cc: LKML , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H . Peter Anvin" , Andy Lutomirski , Peter Zijlstra , Brian Gerst , Dmitry Golovin , Alistair Delva , Borislav Petkov , Ingo Molnar , Thomas Gleixner Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 8, 2020 at 12:36 PM Nick Desaulniers wrote: > > On Mon, Jun 1, 2020 at 2:00 PM Nick Desaulniers wrote: > > > > On Sat, May 30, 2020 at 3:11 PM Brian Gerst wrote: > > > > > > The core percpu operations already have a switch on the width of the > > > data type, which resulted in an extra amount of dead code being > > > generated with the x86 operations having another switch. This patch set > > > rewrites the x86 ops to remove the switch. Additional cleanups are to > > > use named assembly operands, and to cast variables to the width used in > > > the assembly to make Clang happy. > > > > Thanks for all of the work that went into this series. I think I've > > reviewed all of them. > > With this series plus this hunk: > > https://github.com/ClangBuiltLinux/continuous-integration/blob/master/patches/llvm-all/linux-next/x86/x86-support-i386-with-Clang.patch#L219-L237 > > I can build and boot i386_defconfig with Clang! So for the series: > > > > Reviewed-by: Nick Desaulniers > > Tested-by: Nick Desaulniers > > tglx, Ingo, Boris, Linus, > Do you all have thoughts on this series? I can understand "let > sleeping dogs lie" but some Android folks are really interested in > i386 testing, and randconfigs/allnoconfigs are doing i386 builds which > are currently broken w/ Clang. This series gets us closer to having > test coverage of this ISA with another toolchain, FWIW. Oh, was https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6ec4476ac825 alluding to this, perchance? -- Thanks, ~Nick Desaulniers