Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp770886ybg; Mon, 1 Jun 2020 14:05:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyvRyFGCr6hvYYHsXTR43/uKy9LDM3w3vf6o2RpnEo51IE1Uf68yUfqbgBT6e6az+jquxj X-Received: by 2002:a05:6402:308b:: with SMTP id de11mr7396679edb.181.1591045557969; Mon, 01 Jun 2020 14:05:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591045557; cv=none; d=google.com; s=arc-20160816; b=jDqANvesPBPpfb4tK19nhl7i6eqZ0fjBqlGBjwq000EIOGg2KUt8oYNuQ6dmM1Em0e Ed6jTLYuahoeV1TrwqsKhc89zdbT5ibsqU4yr4kKJCjZpvuVoQG6IDDT6DvfkdOGgV0t 3zVYZIDa5HfC7aIFK9Mwy3eTHE0Uf7wZnJYrXV5Fed+O35pOxtjOlTKKCCiIxve5WgAc VSP8DtQopWqpLLGkd/ayk+6IWsxrk+sXt3Dapbl3KQN5Hh76H00v98gXPabp8Zi+Afny C0glljQWH/zE7Hv5hghMqKjdMDC+oc+Ed31DTHjOOVfkiHHOWU1MLxyn5swPT1xV1eeK JvVg== 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=et9c51hfkmjxQJUHJ+h4LoA+bjcYHy6qelWt4gDpXlg=; b=GzuqhaLqFTWDZ6Mf07dLFWwPZa8gsNe+4Pz0q37JLzB9nGS++k5GSzfdv8GRg4NdxY Nl1EyqvFOFJYoA5e6+Qsjk1rglvyR8XgllRKm5zruhiWuCWl4KlkVHrNUvOdOzTkssOL NVU2xrmY77j4Hcr1m9iJfLiHFhO9BGCQo3iN25EXykfP0ejWfeFzM2xsfkmB+YhfTZS2 IHFV8kSV+ePyb4GN9Kxs/rba+EMv9WuSlQs2G4lNIitAo6MO9YQgVKt+6n440zDh4vKq qjsCcZ3abMvx4YhnCJU2GZYdb1dkztdICt5BjKyTj3JRoWyWwGUhu1UedHywqB45OW7b U7Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ITuPgh2Z; 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 p2si351424ejn.494.2020.06.01.14.05.35; Mon, 01 Jun 2020 14:05:57 -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=ITuPgh2Z; 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 S1728696AbgFAVBF (ORCPT + 99 others); Mon, 1 Jun 2020 17:01:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726124AbgFAVBE (ORCPT ); Mon, 1 Jun 2020 17:01:04 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C63D5C061A0E for ; Mon, 1 Jun 2020 14:01:03 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id o6so4050072pgh.2 for ; Mon, 01 Jun 2020 14:01:03 -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=et9c51hfkmjxQJUHJ+h4LoA+bjcYHy6qelWt4gDpXlg=; b=ITuPgh2ZuQ3W1x9laYkC5pG6uc3pQZdxsjlMI/1pNFsJBUefBwODF+/kk0exMpqKbP Rxk3MmSzpnTC5KmAffcqge1lGMv/UrNDTaZInx405H3+i5K61hSxzCbtnm/36EgwYvak /+cbNoLoFA516GECVXWyMKxM/oisbDks/0wW5+f59d2hidmB6MArhgYFJ1OxeQo/8YBV mOnpAaGOMpC0PrkYD3fvLg4uLn3bpy0chY/n//CNWksmudBanHhZiXrbW1q0CAe1nv1Z Kkl33/3ze7mXh7FqpcZxflSF+igBh6xg7rfj3oWqI7J48FrU4OOKOVdZ9dmoDuaBZEzV wwGA== 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=et9c51hfkmjxQJUHJ+h4LoA+bjcYHy6qelWt4gDpXlg=; b=q+95oFdfROcBJLCQKewr01wuVL8ok1S9oDuEVHoCx7dx9whymr2+Y20n0dNG0YQkD0 nacIBaiwdN8pNW0Oziu+rL2MsNK6Ie0YOYndGzKqX4aJ1F4AIwJ2JxPsM1nYei24trag J0+8l9+PjfpC6bqUgwC5K/900r0NrSJJk6XaaQvXqfgTb+8+t0pk6Enf9Bf6YGMra30S yJ6TdMYnHn50qyNebegRkhKbgw0XusdLUxXhvIpB0wireSrcfjKOUWTPOlCetfJiEF/2 Pl7/nUEUCBkJkcjFQ3Da/aSDH4FgeazaY9cUt5Vq4tRxggGMWN/MUsNg1xctksYfSxgW nxeg== X-Gm-Message-State: AOAM532q0E5YsnsTxuTU/pUL9IZs9MWN4UVQMBlPgDQJcy+u3ZBU6Dwe WIsWhAV4aDgCYtYgq9j2Ut7rirh2FSB5j1SA8JAhZA== X-Received: by 2002:a63:f00d:: with SMTP id k13mr21348706pgh.263.1591045262932; Mon, 01 Jun 2020 14:01:02 -0700 (PDT) MIME-Version: 1.0 References: <20200530221127.459704-1-brgerst@gmail.com> In-Reply-To: <20200530221127.459704-1-brgerst@gmail.com> From: Nick Desaulniers Date: Mon, 1 Jun 2020 14:00:51 -0700 Message-ID: Subject: Re: [PATCH v2 00/10] x86: Clean up percpu operations To: Brian Gerst Cc: LKML , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Andy Lutomirski , Peter Zijlstra , Dmitry Golovin 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 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 > > Changes from v1: > - Add separate patch for XADD constraint fix > - Fixed sparse truncation warning > - Add cleanup of percpu_stable_op() > - Add patch to Remove PER_CPU() > > Brian Gerst (10): > x86/percpu: Introduce size abstraction macros > x86/percpu: Clean up percpu_to_op() > x86/percpu: Clean up percpu_from_op() > x86/percpu: Clean up percpu_add_op() > x86/percpu: Remove "e" constraint from XADD > x86/percpu: Clean up percpu_add_return_op() > x86/percpu: Clean up percpu_xchg_op() > x86/percpu: Clean up percpu_cmpxchg_op() > x86/percpu: Clean up percpu_stable_op() > x86/percpu: Remove unused PER_CPU() macro > > arch/x86/include/asm/percpu.h | 510 ++++++++++++---------------------- > 1 file changed, 172 insertions(+), 338 deletions(-) > > > base-commit: 229aaa8c059f2c908e0561453509f996f2b2d5c4 > -- > 2.25.4 > -- Thanks, ~Nick Desaulniers