Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp553766rdb; Thu, 19 Oct 2023 11:50:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGYUj/45kQkFANrUbuU3huTCPLrMXoTHx20OuvbOMTorINsVIPZ0T3ZPxiozt42R2dqjFwL X-Received: by 2002:a17:903:11d0:b0:1bb:9f07:5e0 with SMTP id q16-20020a17090311d000b001bb9f0705e0mr3601471plh.60.1697741423929; Thu, 19 Oct 2023 11:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697741423; cv=none; d=google.com; s=arc-20160816; b=wFJQcln5/EW+0UYUwvQMifrUJ2DQmV69FNWCLuLB42waqapbAdX7N4iP3E3roxy7FE 05/Wq+IpQZnn95bc4jZquHGdBd8ykbORdOaMjcI8D/3V5C8Fw2u6IrBFeUMPrYZ+TuOw AjBl4QHCuO9tgj08eQ75Ei4PLInXMebG4uN2IsZNFO3gfQ/h5zVuphp6p1rzgQRohHc0 YD2wPLn4zQPVdZQecNeCkjP6/TB6QWnwUD+S0CFL9ASyIDQqXmwFH7w/su+5KHqe4V0I aVsuohM8e1KI5wsKmbH03iVmzBHzhyDm0nM5+0aWrhkQSh2gMZLJHxRomcDjQrPpWn4A eqmg== 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=PfRCt7OwWtnH0FdGfWeXu2SVBnueB9HbeDkU2AyhBWs=; fh=l1jjhj9N74C+OUMGFFZgEIqzo5fBEvmOeqFfpgIhBwI=; b=iBXfI8dG/twqu1gWS8MWVdlGWQN/Xy7/omziSn95g31k0owBgZIKRT7KyVNEJKIXvp LfPKlsnYSbU2Is4Q47HzNJkYj/vPhCU2PszprlNg0tihKz9HtZV09vgOHV1T+ln/R67x 51kNF2SVA+8/FrsaRRFr6MbWl6u7RSknLnzTVcKpVbRT9TNaQ8RkxMUKxaTK1gCW1QZa UIEQ7mcnpNniEKGeGSYejTddUZbC6viHEpS8sUCXBd3yrE2wdVOxlpiP5O9kpFls6iM8 YxgChgjbaFEnb7fdO7nrMvwxMNesbYG1+fZLB9reqno0TG25mjCL+WSce+y5/WyChz/c hTLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Lnt7MzlV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id h12-20020a170902704c00b001c624237977si88746plt.252.2023.10.19.11.50.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 11:50:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Lnt7MzlV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 627DA83EDDA2; Thu, 19 Oct 2023 11:50:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235539AbjJSSuO (ORCPT + 99 others); Thu, 19 Oct 2023 14:50:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235519AbjJSSuL (ORCPT ); Thu, 19 Oct 2023 14:50:11 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F558137 for ; Thu, 19 Oct 2023 11:49:59 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-991c786369cso5380566b.1 for ; Thu, 19 Oct 2023 11:49:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1697741397; x=1698346197; 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=PfRCt7OwWtnH0FdGfWeXu2SVBnueB9HbeDkU2AyhBWs=; b=Lnt7MzlVban0nkdFWcezDmQp9G/7hSm9y2CXbcRDzTNppsT66V5VCcQlsb32wmUcLd GUwKMdrGiKojHh/LEu9V/RqPDoV0a+E0kJFCQt5ARblLNuaO+82GfY3X/ZCN3HFh+KEP FGdssJXjr1nW1f7pSpqJsDgrOQB8OP7ElAtU4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697741397; x=1698346197; 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=PfRCt7OwWtnH0FdGfWeXu2SVBnueB9HbeDkU2AyhBWs=; b=pNnAH9nIwSZHQ6SlVjTtySCnBC+U53BEeWKlU8GCEz/DfNAn+zGx9bBfaAi1D5LMNe jvErJJRKxVCK9q/2mDXjFTKntLLEnyBmAH4VajqwP/1y3iJ1V8Inbp6JGrelQmio/xtq gmFJemKWMq1LP6yCwPX/3/6xABqrf9Y4RP6pbapIu+JvHnM1m2pneLy8XZI+iHQPk5I4 MpDE3nNDvUM1dPaaOnMFbyjD6hMuspSkOfOEGr7bDWkXGu4xBDLrW3OkmyMatzFqGvK8 hgZYU0+ef5S2ajSTrjtKWXu1Dgeph3+Snr2kH0n0Mq2gIzg055zwCvmBXiKJ1+RsLFwv kYww== X-Gm-Message-State: AOJu0YzUU92YzNoELdU/YucP1YKPN23Hu2J00FArgamBUmK/rSSoTd0m lo4/8dvzoDl4x0N+6gHQeZGI/8ax1Y9Ln6cGAaGf29Pj X-Received: by 2002:a17:906:9fc1:b0:9bd:cab6:a34f with SMTP id hj1-20020a1709069fc100b009bdcab6a34fmr2760537ejc.73.1697741397223; Thu, 19 Oct 2023 11:49:57 -0700 (PDT) Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com. [209.85.218.44]) by smtp.gmail.com with ESMTPSA id x10-20020a170906298a00b009829d2e892csm42310eje.15.2023.10.19.11.49.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Oct 2023 11:49:56 -0700 (PDT) Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-9bdf5829000so7245166b.0 for ; Thu, 19 Oct 2023 11:49:56 -0700 (PDT) X-Received: by 2002:a17:906:dacb:b0:9c7:4d98:981f with SMTP id xi11-20020a170906dacb00b009c74d98981fmr2635937ejb.33.1697741396005; Thu, 19 Oct 2023 11:49:56 -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:49:37 -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 fry.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 (fry.vger.email [0.0.0.0]); Thu, 19 Oct 2023 11:50:21 -0700 (PDT) On Thu, 19 Oct 2023 at 11:16, Uros Bizjak wrote: > > And NO (whee...), there is no rematerialization of asm (foo() ). OTOH, > there is also no rematerialization from non-volatile memory (bar() ), > although it would be more optimal than spill to/fill from a frame pair > of moves. I wonder what are "certain circumstances" that the > documentation is referring to. Honestly, I've actually never seen gcc rematerialize anything at all. I really only started worrying about remat issues in a theoretical sense, and because I feel it would be relatively *easy* to do for something where the source is a load. Linus