Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp826126ybt; Wed, 8 Jul 2020 12:40:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQiSKzSOpgb9dSyyWlL+TsA4cbaSBCqtxH1r36LYtdFxE6LZO2zg1xd7JjDAxikDOtgysQ X-Received: by 2002:a17:906:3958:: with SMTP id g24mr51249109eje.26.1594237201677; Wed, 08 Jul 2020 12:40:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594237201; cv=none; d=google.com; s=arc-20160816; b=S5nbb0iFuKPDOHqymlXs/CK3qNmvMHrlU5CvXVgMFj4xWxll6N7h8oxbqzPFvMsbdW /lu5afrbBkA/CzR2l0s2AMZYHBAVc803IkC9rrtMteupQd2q+FC8By9MLz0Qt0dvedM4 5zUOAR9YZwP3tmA28KokAFCdGNtJOgJ4qwyAkhb7vGAsmLm3UfKLv7mXJMjMEKnRVib+ onc5k5n4BM5eAGmeNC2VMEenHgaz15dvC9HrQ4x++bZPudNCTpPpgg9bPR/v/Qv2lZ5D 26/XrA+e+RlDtVpfMm7gm6daIDYNQ9KWwwzHYC44wvQ9Y6jDaSBc0JwUxMCIdClZPYxj JSUg== 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=UlOQFGlZj5bWzar4eWUzhZTqr0UJgpfAN8IY8nJf+RI=; b=YOS9NDoZWgcbLtZ6oZC5yLDNvQClTdA5UE2klk0wuhlYb7EhKSdilZq6AZlJ1OPOuz Cmqd4tFzoqnayfHgN3Zl11HCNKOtYN1g2bR3yj6CnKEjp1WQrxwS6rf7es9iE4hB9wuK g08KD8WYDocKl2uc0/3ONS8Poo48fEq0E+GVPF8UqRBpSXZWA0hxvcUjALxPSjLR/AKw Uv/lZv/kxN6lkbG3PBYV7hNx0JSO68UJjpPNbl7HUOtK+Nv6dHcKy7Wwggebt1x9L1zK N5/mHslqnub127//X1fg8RHcCLTzBYv+4F1gCJywShNP0zbTY9al5eT9KOlAavCNAvfQ NSbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=N5awc+9v; 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 l7si535186edn.528.2020.07.08.12.39.39; Wed, 08 Jul 2020 12:40:01 -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=N5awc+9v; 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 S1726245AbgGHTgb (ORCPT + 99 others); Wed, 8 Jul 2020 15:36:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726100AbgGHTga (ORCPT ); Wed, 8 Jul 2020 15:36:30 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 851D3C061A0B for ; Wed, 8 Jul 2020 12:36:30 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id p3so22150934pgh.3 for ; Wed, 08 Jul 2020 12:36:30 -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=UlOQFGlZj5bWzar4eWUzhZTqr0UJgpfAN8IY8nJf+RI=; b=N5awc+9vcqKaNfH6/xYgwOeaQfQB0YwP6yIiVn1wsvCaiKySEe1x1zWCE3R+vcjzQ3 qAk3o+IN/npi3/WeXRGBmgS2V5tE2EjRLEbxeqiEKuP0u5BmsR5t2P8iDuxBKCqVstcK MDKJ635HQ9j11wxyRs/vB7hSBbZv1xgNq4nU+hXegCB2RgHfnkqPv4hSR7vgvD+R/ZEw yDz6WTUXqM46dIGiFSx7/AqR+F/ppwtWERVa6VLYH/y9VVXML9n76um2BkSUCBQ84CtP Yx4TcXwavwr7rle/1JAfOQm3WAtKRTxftUOljH6JF53hMips5c5N7giUvN+vqHh5eHba dBcg== 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=UlOQFGlZj5bWzar4eWUzhZTqr0UJgpfAN8IY8nJf+RI=; b=mbk5/9GByEbMDiCtC3fbsNivy8sika9tmL5KN6v6ehaW4FcGqtdw6yGNMiQwvaxq/f X0fSQHIOWEigHteu2xm3zZbw2PWRoX3BMVcLpGJPvAEhEN94cfIAlWoOyOyVV+wS2kig C5ovp1UPYRIM9PjrLranLpfEKcL5MOF9NHlPjJuVaZOUCjY1QIdAOKDl57ddbfhUFlbv qxDS8NR5oFK7GTVjhWjSZ+OcwtJZpoySJzyPLQV92on2qaK/EvFF5R/ubzFMSiVLI2zw Xx6eqZsCR8Gl7IR5PGJa+GpPCFdi7CqIy+KoUjgmJct4tH9LKyZq1fhdbeZlWEf88M3n MD6w== X-Gm-Message-State: AOAM533AngccZRObNcZ1Zd2rf4zjyEy3nOtDyWoj9oA3D2CElIdySeBn 1NuORlEAtwoaYrrUIx2NgWT90rzgnoru1qKhUwO587u9 X-Received: by 2002:a63:a119:: with SMTP id b25mr49682689pgf.10.1594236989911; Wed, 08 Jul 2020 12:36:29 -0700 (PDT) MIME-Version: 1.0 References: <20200530221127.459704-1-brgerst@gmail.com> In-Reply-To: From: Nick Desaulniers Date: Wed, 8 Jul 2020 12:36:18 -0700 Message-ID: Subject: Re: [PATCH v2 00/10] x86: Clean up percpu operations To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , 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 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 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. -- Thanks, ~Nick Desaulniers