Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp550856lqp; Tue, 11 Jun 2024 11:59:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqP4kNRD6rC86kBQtKpJZip4Me+l5IK3CchqQIdScsBjpAOUYJd7ymwa+tpY0B0AEHzHtGkSFE83lml1OlmTQDN3EP2/zAVF/IOth0sA== X-Google-Smtp-Source: AGHT+IHeYvBI3GkjT/fFiqxgdg1jP1yjxKQ49eAvPvOAHd4qoTJdJ2GdCOR9XqGxc+JWaaSHpkzR X-Received: by 2002:a05:6214:568f:b0:6b0:774b:38c2 with SMTP id 6a1803df08f44-6b0774b3a90mr61851126d6.6.1718132390815; Tue, 11 Jun 2024 11:59:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718132390; cv=pass; d=google.com; s=arc-20160816; b=t3Ewpvbhqfgq3iuP+pDWxB+sRh8cOwINjrpI5IcBaB1MJkFHOJmKiPfuH2U9/slTgy bRBt+My4cJi63ev8/rg7Yz3nSHR45oRDqzh68mGR8UfZfFX2Xq25RZn58taK53mvJkw6 TrWkdOqa3UMoPwEOawpEChFDMwyOfODzMmT/n0KgsYXkbhYTqXjdhG4LZZ1jc0I1ZiFX joB5YA/Cjn7KJGKLGOiTIhgiWXc1oU0t6CkgJINuBojSV47p79hcWLUmgKWvMwSQHvVS ag+OX2dSoTkr9c12hTqFa8lY0Jb5T0PJ0sbzstP/q9zP8ViR8VAXjPUL0fDPLgSiKdMK PvLw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=naqtn4h8MjWycYEp8tdkv+DK6jY/XqNOfy509OQj180=; fh=heZx1BSgkc6L2amc4S4Ab73l7iy+IrVC4iMVBkbJ7AA=; b=R/ME6UAlabvHUAP1xvuJJxgcCh+O+aMYmbjOdOvrzRtCHHZQhi5CbbMOZVLKTndMEk jxWJdA8XYidRMlOcEn/weAIPCmDt7rxHxlcRL1Iwg2bpltQGSVc1Wml/7VLBdpSJdnZY 0mrxtop8n7OmoWh5lo6hGFjdmE4+pr6bTLJC+GYWkxvVPlGJKH4zi+nWl3xcs9j//EQm Lr65XMi16hl3Rl2v/Q7bccRNE+PFwdwkcbykVN7ahCg52fD3GH+z1nsATf0KfIEOog+K fUDmwPxO1iV0TJIwC4Du8iVOrTIsq2H1Ysrxq0ik70HeXSyrf/mQKs7LxW/k1eeklw9s SWAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=HARF3oQJ; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-210476-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210476-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6b072ef78e2si79988106d6.280.2024.06.11.11.59.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 11:59:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210476-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=HARF3oQJ; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-210476-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210476-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 883471C23AF7 for ; Tue, 11 Jun 2024 18:59:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81CB7770FF; Tue, 11 Jun 2024 18:59:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="HARF3oQJ" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E69C97404F for ; Tue, 11 Jun 2024 18:59:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718132383; cv=none; b=MzJW1t0oBMykX7GKHK1jY/FUbV2dPjd9WToVPR5WzvdhIMpKrVP89nIYcoDEJEhrb1M2ww3Dgq1u/lybyN+19DfH0Ao/tbOQoJA+vLHW27o5LgdXYnV+DD4p8i0i1sBtYz7SANfuRd2yZnwzNcmWdIkLzXkURADyymbKiL2kvSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718132383; c=relaxed/simple; bh=94I3KscaFLWq+P7YGN1Fyl5KFoU2gBZQ1lhMwCwnJdc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=V+OktCCHEpdhTwEac8XQEtqHG14qaxqSQJxfD7Tw4TRh+hjaX1QeL6xh1pRAJ+MIA16F4wISkO6z0YPpbyDdcVSfIM+F7SF+pWpZd6pkFodFgsRHjvDO+WXyjn+/rUbh2E6uRbY7ZGqMEjYFCzvwJX6z7fk6MU6jKcK2oiexn4g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=HARF3oQJ; arc=none smtp.client-ip=209.85.167.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-52c9034860dso2537513e87.2 for ; Tue, 11 Jun 2024 11:59:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1718132379; x=1718737179; 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=naqtn4h8MjWycYEp8tdkv+DK6jY/XqNOfy509OQj180=; b=HARF3oQJnZmuejk+ncC2yRQDMv/YQk/uTU6HDcr0rnr5YRWK9ckuhrFj11yUkCCuvw olLz8PB1S3saz2gw5cGFqiFUMJvjRyRaR2j01p14VgIPxrLbgPG93yFTIGptvQ2RImkt gO/nE7saP9nVX+Eqp3AsYVi7USpS6HflYh9AU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718132379; x=1718737179; 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=naqtn4h8MjWycYEp8tdkv+DK6jY/XqNOfy509OQj180=; b=ZAWUj6/6qJdQU1BrijkYTaVx1dZqC1dwkLHXPt9RQHkbXVxvBbA5Erw6vNOGd6OfXm ZL/Xy2uVWJ3mQgWT4/YB3kci/WdY7wI2T3hoC6x8sm1fg7tLDGr3Cd53Z4BeiMv1aqls APxv5lOGMhPTXo4BfJbMOPBNe8srHmXe+0eBUy1e21hM6zl6ZV+xPL2NecczKKzO6Sew MNS0wh5irAMNXQSIsB3jP31TZNEg0fJHFkUiYSXqANZJzYm96957pmg6ZKxASnPa/6iI pL03gg7k6M4nkkhYeZRyHFlgNdUBjbQq7tmpUV5PO6aZMImM9FZ31KUmwTMFYSW8TIBw vtGw== X-Forwarded-Encrypted: i=1; AJvYcCVpNjs50iQcfipqlVHQwCUN1NdZi2C1oK07CljKtsxIGg1tPXUG1JXVVXF7ndgEOjCOxx95pgIHDFESxxpSnyWnFDXet/KsXQjulUzK X-Gm-Message-State: AOJu0Yxk/LuywDhft8l+CCW/L+Cq1tTZ82e/50Tr1vFjkbWfb8SnGM0E CI87IiNn6lOOe/kAfd+SeD/vCxe2tBFCo5RQbehs1K3gl5RcsWAQ2lrEvVeVicHswoy4qoymEl9 +tod0Lw== X-Received: by 2002:ac2:5498:0:b0:52b:fac5:a3e9 with SMTP id 2adb3069b0e04-52bfac5a481mr7493129e87.9.1718132379148; Tue, 11 Jun 2024 11:59:39 -0700 (PDT) Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com. [209.85.167.46]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52bc192d093sm1819569e87.81.2024.06.11.11.59.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jun 2024 11:59:38 -0700 (PDT) Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-52c9034860dso2537466e87.2 for ; Tue, 11 Jun 2024 11:59:38 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUGwKII7Qoz6oWXTe7ROztTC5Z3YnWAyUZoKT2+udGK8ZAZsDetax7hYEbGxjg+ciDvWKL+zH2w48ERMTIuDYb+E1jdpSmD7r6Ni10L X-Received: by 2002:a05:6512:2254:b0:52c:9523:f0db with SMTP id 2adb3069b0e04-52c9523f264mr2270564e87.45.1718132377816; Tue, 11 Jun 2024 11:59:37 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240610204821.230388-1-torvalds@linux-foundation.org> <20240610204821.230388-5-torvalds@linux-foundation.org> In-Reply-To: From: Linus Torvalds Date: Tue, 11 Jun 2024 11:59:21 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/7] arm64: add 'runtime constant' support To: Mark Rutland Cc: Peter Anvin , Ingo Molnar , Borislav Petkov , Thomas Gleixner , Rasmus Villemoes , Josh Poimboeuf , Catalin Marinas , Will Deacon , Linux Kernel Mailing List , "the arch/x86 maintainers" , linux-arm-kernel@lists.infradead.org, linux-arch Content-Type: text/plain; charset="UTF-8" On Tue, 11 Jun 2024 at 10:59, Linus Torvalds wrote: > > So I'll look at doing this for x86 and see how it works. Oh - and when I started looking at it, I immediately remembered why I didn't want to use alternatives originally. The alternatives are finalized much too early for this. By the time the dcache code works, the alternatives have already been applied. I guess all the arm64 alternative callbacks are basically finalized very early, basically when the CPU models etc have been setup. We could do a "late alternatives", I guess, but now it's even more infrastructure just for the constants. Linus