Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp762032lqo; Wed, 8 May 2024 14:13:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjTG99CKls02neiIwE35neeBZN74BGBTZb2frqd+hoKz+HHxpuhRGlSslxDbf34ptbwzl8/FfPimTcoxaZbHt3YBjXWx5PwDKAF6G+kw== X-Google-Smtp-Source: AGHT+IHdztsHE9c8wOqJKY7igKBM3Lk121846janIrCFfeFm6rINjuoFCTYIaSdGky15wjgbBztM X-Received: by 2002:a05:6870:7309:b0:23e:5b1d:539 with SMTP id 586e51a60fabf-240985a2aa1mr4219090fac.46.1715202817994; Wed, 08 May 2024 14:13:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715202817; cv=pass; d=google.com; s=arc-20160816; b=I8agdVH3IrJCjSMPdS16LzUh9B0rkcZ8CVwFAtxgBsEw5PbGw8woS8nOgBXENKdHZ8 KJnuD+W6JGGV6WtvceLUBq6+keXgQypUj+P5tt9YJgiaOh+q8QgB40TNZezy8lIfRpD2 VC0y2IKxdxdlLyBqDsLs25gH4LeqRWgcdae6kDMd1Ug7hnSnyz7QrSa+831EviI8nxvV 8yfbAbtEhVfQB/fvoAKVXv64pUZjY34czvwy3oHxOgX7lMwxgYet5xIjWYdQDIJxjU9F r+emHnlOZbhDB3gYYV9DbAQVgvoNXpFEL8vg7NIxygd0TybzxsnaJ4WqrtYTQ4K2lcLV 1FGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:user-agent:from:references :in-reply-to:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:dkim-signature; bh=M98zkpUg3yxVayso31qmdD5gmDCW7hzlsYnZ3G3ptME=; fh=DmsePAAP3IVwB+veyj/Wa9nW/S+tdQ/NGlmm6Tf23bU=; b=rOtvkDuor9UT7r90eojhCBW+WMt771SGUaGjrk2H94CBzx7gCxYDPgSOcMlrHWJXbu YkHvgYMceIAWNldMjGkdjSATegqwmz8YSO9nbxXS9SUam0cxqr7SsYby/U8GDTBuitze YC9IIvfzIW/9ve4a1l7wG8CrCeTjAYi6Jk/nGLuA584PWTLRjZPexqd75TM+lFbg1hTA MqGzMHnUNvvAJmBzBULWhdr5Ink4YHxZlEeRr7V/Km5Ili0y4R3plzEINCq25SPIc+ga 7R/x93fGc5qLNv7ZrrL625FvbXRvqy+dg+MfBqs6P+xQYxDU11+gsjmidQSsrT8MgSpU jDyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TXF2fxN4; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-173831-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173831-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bl25-20020a05620a1a9900b0078f0fdd9f8fsi15381787qkb.435.2024.05.08.14.13.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 14:13:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173831-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TXF2fxN4; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-173831-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173831-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 B45A51C2134B for ; Wed, 8 May 2024 21:13:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 227D7131BC9; Wed, 8 May 2024 21:13:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="TXF2fxN4" Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com [209.85.167.182]) (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 E2D2413175B for ; Wed, 8 May 2024 21:13:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715202809; cv=none; b=XTizNxIsNXk7xyHGtXyDVYv4e+Yw5Vf+TnSTwGZgBIU5LE7KzhsxXa4Gr9t/ZAqop+1saQZRhwoFXcWMj7KbgmF3W8kb7jV3vX6AbQRwKjZbr2WsRgPG8hqnggGaErdB3oXDMaMgOpxSf9NoqtXHJe+UTACb8ri/PMSdtshGrHA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715202809; c=relaxed/simple; bh=XYj2SfU/qI2Oqly9uh18pSWAcgoIOhgV2D/F8k1QRS0=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=P6vNZAY+jucSpkwu3mxW7My9GrX4smV7aWmfKVCngst9mk1jpTvFN49TbZZnMZKU/k1/ztHt52y/gSI1bE4stZxFmxZRkfKqmaCOBNgWIhGQ29ZVnC0JMUlWWly6Tw6jwsaZORwbmB/eGfwGXYXjs3XU+DAorSEBmGoS3YgTXnY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=TXF2fxN4; arc=none smtp.client-ip=209.85.167.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-oi1-f182.google.com with SMTP id 5614622812f47-3c9741777f0so113417b6e.0 for ; Wed, 08 May 2024 14:13:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715202807; x=1715807607; darn=vger.kernel.org; h=cc:to:subject:message-id:date:user-agent:from:references :in-reply-to:mime-version:from:to:cc:subject:date:message-id :reply-to; bh=M98zkpUg3yxVayso31qmdD5gmDCW7hzlsYnZ3G3ptME=; b=TXF2fxN4p8RNZqgfbpbrpLjq5xW7oJNoqkfd3VuNY8EQiBgaXVsgjS6o4+Pd5kvzC9 wPkrlQvRrGO0Lmn1mgbCE0mY5UoVOugIdH7k6qDbPuf2d53XsGXfsZ3hIzw/eOCTXyZF mQhGTJwm+5oe/V6+X0crl7Fc5IX+wlS2hDw60= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715202807; x=1715807607; h=cc:to:subject:message-id:date:user-agent:from:references :in-reply-to:mime-version:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=M98zkpUg3yxVayso31qmdD5gmDCW7hzlsYnZ3G3ptME=; b=hYMKDvz7U9lx8sCIBMWd8w77WcWDXNQYuRnJv++6BlrR1iNTywwKwi84s7pMaxOt/P LOd/0k/n4FKPOk1xMLKsc4rQ/N8gcR2TPV0bHYfO2ZT3kaaG708x7O7mJCyVQhfh64K6 W65DJJTv7dP0PGK7ArwKyuVk+bjzOkay6bxL8uYUzoIYHa5+++gevEWnnd0+S4Bc8xUN WGknnHTyOO7VAyeMhNWc4Tc39lvDGcDc6GuBlwuaQdhLqtREPejaLfKcc4G1b/874ebx Qy6KnqS9i/0MRyR8ApJc9fnxUZ/gAG3NlSYH2LC/ezLFrNphCr+JGxcFKjyYDHMIZmFU Wy3g== X-Forwarded-Encrypted: i=1; AJvYcCVCLwz6VEWuo8sklo4D09TLldgJTQFCHh9vVj9mu8WFbadDKOujSuBkPu6aCG19IxECptwO9iXgLRsYcP+kAdFLSK2K5YRANIXK5gNk X-Gm-Message-State: AOJu0Yw4FykQ+hUi4o8UvdL6cKK3xL/M1dc2JC9rsmYdODc/lH5S+l5M lI/A78yTUzflPZz6aiAMJkAEZwDodnO2q+Qvrq20fA3G/I1qt6ainunPJ3oLFPpg+3unoOcz0sO 18/lwA08Ky1mB6EbRGjnMD6/YEDpjTJ6s1UT1 X-Received: by 2002:a05:6808:1705:b0:3c9:7027:8e8c with SMTP id 5614622812f47-3c985306fcemr4906245b6e.39.1715202807033; Wed, 08 May 2024 14:13:27 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 8 May 2024 14:13:26 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240503171847.68267-2-puranjay@kernel.org> References: <20240503171847.68267-1-puranjay@kernel.org> <20240503171847.68267-2-puranjay@kernel.org> From: Stephen Boyd User-Agent: alot/0.10 Date: Wed, 8 May 2024 14:13:26 -0700 Message-ID: Subject: Re: [PATCH v3 2/2] arm64: implement raw_smp_processor_id() using thread_info To: Catalin Marinas , Douglas Anderson , Mark Rutland , Peter Zijlstra , Puranjay Mohan , Sumit Garg , Thomas Gleixner , Will Deacon , bpf@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: puranjay12@gmail.com Content-Type: text/plain; charset="UTF-8" Quoting Puranjay Mohan (2024-05-03 10:18:47) > Remove the percpu variable cpu_number as it is used only in > set_smp_ipi_range() as a dummy variable to be passed to ipi_handler(). > Use irq_stat in place of cpu_number here like arm32. > > [1] https://github.com/puranjaymohan/linux/commit/77d3fdd Maybe you should have put this under the cut for the patch so its on the mailing list, and lore. > > Signed-off-by: Puranjay Mohan > Acked-by: Mark Rutland > --- Reviewed-by: Stephen Boyd > diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c > index 4ced34f62dab..98d4e352c3d0 100644 > --- a/arch/arm64/kernel/smp.c > +++ b/arch/arm64/kernel/smp.c > @@ -1021,12 +1016,12 @@ void __init set_smp_ipi_range(int ipi_base, int n) > > if (ipi_should_be_nmi(i)) { > err = request_percpu_nmi(ipi_base + i, ipi_handler, > - "IPI", &cpu_number); > + "IPI", &irq_stat); I know this is mirroring arm, but it would be nice to have a comment saying that we need some percpu variable here even if the handler doesn't use it.