Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2620887lqb; Tue, 28 May 2024 05:56:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVgDLKsOPM/8JhJN0aowswuZOn7KBLpH74mFSdOnUtiNVD9dxRktGlr4HIbf++Z76cR0gEGYfSUQX8KX8MTs2hQr4eoxgGgXgq2xu/XmQ== X-Google-Smtp-Source: AGHT+IEDu6pRyErR4Qa7dQ2FqGm7fxvnPnLUUwQQgh30NjpQ2Xk6WaeYDxks+uL4I+FhwJWw2ikI X-Received: by 2002:a05:6a00:8089:b0:6f3:f970:9f2a with SMTP id d2e1a72fcca58-6f8f2f754f4mr15386567b3a.10.1716900974101; Tue, 28 May 2024 05:56:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716900974; cv=pass; d=google.com; s=arc-20160816; b=SS4zah68tFBfnE1D8vbpPMPC4AZxIGlRQa0/HPZhQHpI8uHircXYiKTL7bQOSsXsRv Yo4X4zyK9iqTLh65wD6NM8dxhxUQpqr2xuLI3doQuw2jVEeTOuKopuajat4cLA3AJ+nt tDJcM1Ck7mHcfARQjmC20KtoLadYXJKflgWUE4wRUPn2l3WFlzHd0qWYVJzcnJwdEhIg RYb0/vxG/j53U1wd4e4+69VXRVe3YUdvH8/U0TVo1YCIwN59CUVeCPotFn31X9BBLFYC 50IAYovPcxSUjmuSBai7qQcRxdeKhTvJ59GrUy5FM8d4qvPagzWLg2b0KU1WsQ9KDCoV FPWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=2PaIv1zpbE3PTIuR5rBQIsccHx+A5LTHs6h4zxSU4GY=; fh=jKzY+IJTxktZ685R93VhJUbGF0rvTl3iTwtLazyIugI=; b=hFDWLbfsWRM84SeXoc2KApAj93MiNyoSnIeGoA+pPWEoki9ENdopJgXVcmG9v1tIwk Nan4vBs7fl9vhOaJ97wr+LNjW2WS4oW+t5IRvnhfu+iSAynfgB6ux+4Y+138cAZ7OZ3A 6aCMDUJLjfCuJSpwGY+F4tM/HipAlDz8HP+BCY3E2Bwt5ki0A75KUhXl8zNvzK+fPrNS kwuKUSHdENcU7dQVY1I2XBm13dU9sp89PblpbgW2jAS9ltroGiPLlNKVcqPCJV3g6qVu vg4QRnaagcK0RTppCp2Ba+73fUEl5zUFethjJeQ1HdJakGrHwJ1/NDGv2OQhPOnETg1C 4HLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ISSI28J9; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-192046-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192046-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6a16d3e44e5si3239611a12.37.2024.05.28.05.56.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 05:56:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192046-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ISSI28J9; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-192046-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192046-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 772ABB242B8 for ; Tue, 28 May 2024 09:57:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8838E16D4D8; Tue, 28 May 2024 09:55:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ISSI28J9" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 68C0016D339; Tue, 28 May 2024 09:55:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716890148; cv=none; b=eMUDsDvJGPPpqsRfthKgKRagBYKH7KoYVbUC1C2FvaBYau9w1TjJtlLgGOUbzsZbDlJ8qXAN+Q5DByCsBiKr9CHwpniwozSGIED42p4VtbDtss9b2l/mImK7f7+9l7+wc8cOha8KEx9Zk9ufnQy9ceyowH2rLe6IFzOytaPErCo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716890148; c=relaxed/simple; bh=TxEZrVwney4pCeOb1c0lFVUFay3kAApGY+zEuDo/6UA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=u94XHSWGhBWfuxKA3XOw2AtBlTY9u/+d7ZS2QqIb+iTBi5LjelgCSYgcm/1QRY9C6HD10wbaj0QbHFxJi/S2sVqfpdDK3aLhbS1alyYK6wpNCs+Ggn68g5ErXVknexyd89ylaKT9fqoDS5vLBgav5xixTiv5Y4toJzT1Yud+hSU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.helo=mgamail.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ISSI28J9; arc=none smtp.client-ip=198.175.65.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.helo=mgamail.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716890148; x=1748426148; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TxEZrVwney4pCeOb1c0lFVUFay3kAApGY+zEuDo/6UA=; b=ISSI28J9J/En6TL2TiA5HKrph5PBi9+w9zvi23WejtHcG1Ex2vrKRLVC Ep/YyFeRWq3ZBF2pukkSed8YZnp4A4I8lG/93jqy2ikfWHxY4gYEPkOQ4 rseldJq2Ud9bXCxrR4k8/1BZ5xBXUh0lhGvS8dBU/uzigZmoLSLsNjgRh u1gdUEBEVLcpMzHNqh76QYbUaYecmBCEdkEHIDxqdMapsSaDxpgNkDaLY Hdzep2FX09dQ2ipcSvFiKp7/PRkuF0zRUhxDOGWUrmBmA3Npm+fquDdUB A2MJj6s/jkqrpjCtry+FCT4lZ5CNJ6AkOb4LyX8skiggtJGj3dp9NFi8c w==; X-CSE-ConnectionGUID: cPG2r3aVS1ap3q9X2SbLhQ== X-CSE-MsgGUID: EvFXpF/cTI606YtjQNgD8w== X-IronPort-AV: E=McAfee;i="6600,9927,11085"; a="13172084" X-IronPort-AV: E=Sophos;i="6.08,194,1712646000"; d="scan'208";a="13172084" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2024 02:55:34 -0700 X-CSE-ConnectionGUID: LChHeAAwTgClYQS56T0jqA== X-CSE-MsgGUID: c3CvS80vRMKDBemgyyhjBQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,194,1712646000"; d="scan'208";a="39984735" Received: from black.fi.intel.com ([10.237.72.28]) by orviesa004.jf.intel.com with ESMTP; 28 May 2024 02:55:27 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id 4BE1E40F; Tue, 28 May 2024 12:55:26 +0300 (EEST) From: "Kirill A. Shutemov" To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org Cc: "Rafael J. Wysocki" , Peter Zijlstra , Adrian Hunter , Kuppuswamy Sathyanarayanan , Elena Reshetova , Jun Nakajima , Rick Edgecombe , Tom Lendacky , "Kalra, Ashish" , Sean Christopherson , "Huang, Kai" , Ard Biesheuvel , Baoquan He , "H. Peter Anvin" , "Kirill A. Shutemov" , "K. Y. Srinivasan" , Haiyang Zhang , kexec@lists.infradead.org, linux-hyperv@vger.kernel.org, linux-acpi@vger.kernel.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, Tao Liu Subject: [PATCHv11 02/19] x86/apic: Mark acpi_mp_wake_* variables as __ro_after_init Date: Tue, 28 May 2024 12:55:05 +0300 Message-ID: <20240528095522.509667-3-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240528095522.509667-1-kirill.shutemov@linux.intel.com> References: <20240528095522.509667-1-kirill.shutemov@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit acpi_mp_wake_mailbox_paddr and acpi_mp_wake_mailbox initialized once during ACPI MADT init and never changed. Signed-off-by: Kirill A. Shutemov Acked-by: Kai Huang Reviewed-by: Baoquan He Reviewed-by: Thomas Gleixner Tested-by: Tao Liu --- arch/x86/kernel/acpi/madt_wakeup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/acpi/madt_wakeup.c b/arch/x86/kernel/acpi/madt_wakeup.c index 7f164d38bd0b..cf79ea6f3007 100644 --- a/arch/x86/kernel/acpi/madt_wakeup.c +++ b/arch/x86/kernel/acpi/madt_wakeup.c @@ -6,10 +6,10 @@ #include /* Physical address of the Multiprocessor Wakeup Structure mailbox */ -static u64 acpi_mp_wake_mailbox_paddr; +static u64 acpi_mp_wake_mailbox_paddr __ro_after_init; /* Virtual address of the Multiprocessor Wakeup Structure mailbox */ -static struct acpi_madt_multiproc_wakeup_mailbox *acpi_mp_wake_mailbox; +static struct acpi_madt_multiproc_wakeup_mailbox *acpi_mp_wake_mailbox __ro_after_init; static int acpi_wakeup_cpu(u32 apicid, unsigned long start_ip) { -- 2.43.0