Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp532440rdb; Thu, 19 Oct 2023 11:07:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHug/BpXCfzh5fNSisNJ2PAHBeNZw2xUjBpEaI6cY9xBx2U/6e3VJihCqrmQrybVB2FtH/S X-Received: by 2002:a17:90b:4f82:b0:274:77b3:64d0 with SMTP id qe2-20020a17090b4f8200b0027477b364d0mr3858251pjb.17.1697738870321; Thu, 19 Oct 2023 11:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697738870; cv=none; d=google.com; s=arc-20160816; b=mIDoRfRFVaHGPTRp2jXvX5T/JCNHKQmFZN9kzGk2p57n2z0iMcb18CVrVHipv3ZsLi eo0GzXW++uj4JSCE67l4RivFzpDm/gm3wbzo2GRWRXULz6WnkAkyxJbtXb/weHUcKRNJ 2YPhj30/i9fAjUKUAw3v1m/nnfycnJE6R0gqpb/2Xn36M7TxSrU4HWgsIWlOJnSGt3Qs y7qBre4EHIAFraX5lSnaUj4OLQGuGIzVsfrVGXzyoiODy+H0vl5bdg7Q89aKhPGnSiiF OKfbkFaqz5SQzQWUkUeQs+2ikQ5kDEefTFpWyFext9gm31hecUXNyJGbA5l58iPV55Xs Qsng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3ObcLfQJn4zqneCDgP2coGLrDSevfbDcAAB/oMzwqk4=; fh=l1jjhj9N74C+OUMGFFZgEIqzo5fBEvmOeqFfpgIhBwI=; b=UB7c+JCLNIZvgRuR9ovGQOOdOVNjdLNYWxq6Zit5ft/NmcRlu+laGxjs2wruL9vrIF oZECRtWZDzXWAJ0SNd4GDvG909y1SnLN+VNOS9TAdX8gOP8j7jyWTTeVW/Q4JAyuXFMF ZkDSqlV6j8zzMiRWZMyBJD8grpkmcKrwB4sdPWqNDjfifxY2f7PBCJzkIMJaajyi/8Ki BTNqZFyt20BLqoFOwnMAeK1J2RJ4zrIBqGS9ZAFzshjKJ4xxJgqqeqouMkOlXHt/dYnr NZZFHP8Uk1JAkYtS9Ol4ApuCo9tV3W9V3rT+2FgJao82IKX2Q+/KLnceclIt4NH/iPz1 mfFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=St0fZwfI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id lx2-20020a17090b4b0200b00277496b6ec1si194956pjb.34.2023.10.19.11.07.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 11:07:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=St0fZwfI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 3CEC7804C239; Thu, 19 Oct 2023 11:06:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345646AbjJSSG3 (ORCPT + 99 others); Thu, 19 Oct 2023 14:06:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235475AbjJSSG2 (ORCPT ); Thu, 19 Oct 2023 14:06:28 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C37411F for ; Thu, 19 Oct 2023 11:06:25 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2c518a1d83fso85715891fa.3 for ; Thu, 19 Oct 2023 11:06:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1697738783; x=1698343583; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=3ObcLfQJn4zqneCDgP2coGLrDSevfbDcAAB/oMzwqk4=; b=St0fZwfI92twaUrtlECgO/98hIfpYIpbDhFWt0UvmAZF2GFx6eGGCDuQ4Di98/JYOp RK9fBi1z9pEtxUdAEffOZbd1ZMENtCutUsDoRjTBeQZQunw4lCgnEKyFYanMCay8mh+y 0esUEnMeHq6vI9fZ5IoOjMowsfkdzQeOSkrEM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697738783; x=1698343583; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3ObcLfQJn4zqneCDgP2coGLrDSevfbDcAAB/oMzwqk4=; b=MeEJOt5d5nvf4aSO04S+yxbHMNAatbf9q6qv1diIAMpnr7C9Z1g4anTv60qy4b2unW zaKQsLyzgDNuK9TLCTXeZ4EPjqTN3n7poSGYz28+P5fpMRFDslnNQaUUKETER5xw0bFe 2LtYTaxzfS5dzPryeahRqyf1hH6DU4xqtj1Mdy9sSnSyUXA8TBPD56MefHZ2n2fEaDqL HjYX8KRKRYoF/J0SG15NZurdIF3umrP1b1rbQ1m973GwdEb9p7ZBSM1Ke6pqBBYT7TCq hNBrSL8xwhmYUCA44lf+jVKVb0pidYeF2oAKYN1of5hhmdPx4h+0J2F4x0XgYANjYwuS Va0g== X-Gm-Message-State: AOJu0YzkXpcBONXkkYFOgRuo78b1Q1V53MTYcaDwN8iVF9OLm71zGVA3 TknzopMZqN9ZfSTj96Nc4nU3YlMjsRsFh1dH21QU5qwW X-Received: by 2002:a2e:9c08:0:b0:2bf:f32a:1f68 with SMTP id s8-20020a2e9c08000000b002bff32a1f68mr1663389lji.19.1697738783443; Thu, 19 Oct 2023 11:06:23 -0700 (PDT) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com. [209.85.167.49]) by smtp.gmail.com with ESMTPSA id a14-20020a2eb54e000000b002bc3fbe9fd5sm3686ljn.55.2023.10.19.11.06.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Oct 2023 11:06:22 -0700 (PDT) Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-507ac66a969so6289270e87.3 for ; Thu, 19 Oct 2023 11:06:22 -0700 (PDT) X-Received: by 2002:a05:6512:15a8:b0:507:9628:afb with SMTP id bp40-20020a05651215a800b0050796280afbmr2369118lfb.68.1697738782012; Thu, 19 Oct 2023 11:06:22 -0700 (PDT) MIME-Version: 1.0 References: <20231010164234.140750-1-ubizjak@gmail.com> <0617BB2F-D08F-410F-A6EE-4135BB03863C@vmware.com> <7D77A452-E61E-4B8B-B49C-949E1C8E257C@vmware.com> <9F926586-20D9-4979-AB7A-71124BBAABD3@vmware.com> <3F9D776E-AD7E-4814-9E3C-508550AD9287@vmware.com> <28B9471C-4FB0-4AB0-81DD-4885C3645E95@vmware.com> In-Reply-To: From: Linus Torvalds Date: Thu, 19 Oct 2023 11:06:04 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 -tip] x86/percpu: Use C for arch_raw_cpu_ptr() To: Uros Bizjak Cc: peterz@infradead.org, Nadav Amit , "the arch/x86 maintainers" , Linux Kernel Mailing List , Andy Lutomirski , Brian Gerst , Denys Vlasenko , "H . Peter Anvin" , Thomas Gleixner , Josh Poimboeuf , Nick Desaulniers Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 19 Oct 2023 11:06:38 -0700 (PDT) On Thu, 19 Oct 2023 at 10:21, Uros Bizjak wrote: > > > A compiler that were to rematerializes an inline asm (instead of > > spilling) would be a bad joke. That's not an optimization, that's just > > a crazy bad compiler with a code generation bug. > > But that is what the compiler does without volatile. Do you actually have a real case of that, or are basing it purely off insane documentation? Because remat of inline asm really _is_ insane. Linus