Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp2024786lqe; Tue, 9 Apr 2024 07:35:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWGNKflAqpLtlKH/4RjpzUmwjyx6PraEp6Qx53hDdEqk8VWCndueaPo+HiPJl4HAuOlFO6ZmysRKou0Y2Vd4X77ql/60gnWTuhqolgOmw== X-Google-Smtp-Source: AGHT+IH4joYsaaiDtShtA2px/6Zn+EOYXuK8ruUDrot7hVOpGL3nqeCvUhV1Cc3qH3xjWGJa3/7c X-Received: by 2002:a17:90b:8b:b0:2a5:52c3:4ca9 with SMTP id bb11-20020a17090b008b00b002a552c34ca9mr4173582pjb.29.1712673319806; Tue, 09 Apr 2024 07:35:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712673319; cv=pass; d=google.com; s=arc-20160816; b=mrrYIHb8GHAH62+72mSsaBlFXsoPhqV0+Nh2sDPRKClCcDr7wES3CoQ1HDkV07aEnK JgwEPNOWzjhlEvSJhFIWx+xnp5WnAdkYrVyGFESpA0sPNW5jzYMBj9R2HZOSAmTgR+JD DpAfRrneT2vXnag58qi0co91TfhpmKkTfM7tGhmJkdg1y7QbKidm79RPFz/koNp8KBBq SpZajGUTA9AlIlUGv9i3BR1ZoBFfr5p4MLNamTr2Cqj815LSHbBgN0FUk8/s/wYzDC+P VnGyCAsvTGPR+GxtxDphUxU0K9zjC7Eb5i/sMt8INRYkni5iQpPECYS/SGvKhO5iKrYb X9QQ== 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=Yw2S7s1ZcF7+jfnU9Zy13ghDfPt/cQWqfRpyK6FQAJQ=; b=t4NGlEAhQ5Y0K0qklHX5c7V0oZG83iHBJqpCLS0Ti7eLD/b259JrElEtwCLHnHmT5d lFF3JmLr5VBgN+LmQ5VHtaNGX6QmJ377NQCr2kZ7hV1XyfgC5u2Br0dv4rZwaD4bSJi4 b+LVgLetq5DsHbUUlui4YrjkD0goOt2GtXTcZxqmcsGNBnZV+wGN+ozVo1RGtujJAJ5A /qyDSIXI6Efw3+YWQDSbDXbBRW/aO4CdMObtkBlkC/FXemwkL+6xE4WXyvnoTzfeZxf7 lxClc0VzXzvPEg3UVriZj3mngf/HMIWEbfOC3V/GDCPAKP6IuIT/j27vtaqlO7wIGg3g uktQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Oa53gI9O; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-136750-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136750-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 z13-20020a17090acb0d00b002a49953ec80si7192103pjt.0.2024.04.09.07.35.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 07:35:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136750-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=Oa53gI9O; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-136750-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136750-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 694B3B246C6 for ; Tue, 9 Apr 2024 11:30:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13C1786269; Tue, 9 Apr 2024 11:30:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Oa53gI9O" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 87704128366 for ; Tue, 9 Apr 2024 11:30:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712662228; cv=none; b=iDIo8F7hphrUolLGA8TuJ96P98k4eKrKX3rywBYgcP5J0cqh5G/+g6xcrFs4IIgq87vamT4lsEDyxKYVTszo/wr8oTAxqdy2HsgmiLYdD18L1cn9FOuurGPpgwypfeNcb/E/KADY7G82ZRlAVX4oo2bAWA0io0K++fZ2BqRHI6M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712662228; c=relaxed/simple; bh=TxEZrVwney4pCeOb1c0lFVUFay3kAApGY+zEuDo/6UA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MUphpU5sfzOOO8ODrdlNpa80a8GS/CHepIiMdHR57ZEnCWTtuxPkCz0GjCf1G35W9zfMkXdbI8EiXheercwtL+MAnRx3uS0WUD74dDRAKBR8qsBB5zIqGXi1sUdjSn2jZViq23EwbnBduBxgSyzSJplEafmeJrp/Ge9KUXNToMg= 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=Oa53gI9O; arc=none smtp.client-ip=198.175.65.9 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=1712662228; x=1744198228; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TxEZrVwney4pCeOb1c0lFVUFay3kAApGY+zEuDo/6UA=; b=Oa53gI9OjCuiBcvTcvniP/hBaIBSAPxf2Q8IXTBH86iOSK/0mua1vpb6 Qxi9ne08h3bv/1YSPLnrAa0Q6WCPQdcwFuN2k+CcFvQcTEAPq6DXwXGnY PYr+yV6qo7R4QQWfbezgqhql56bZAV5k568wJbgNPCXVZZ9QoE6vadpsZ pnmVbmc2oRnm+wCWXBuYewy85g46x7esDTJXAM9oOmwzkiR4TM40r+TzM JcUq+8vzzgQVbUW8vtrcs9UfaQKfIfwwDyHqkXEXgGC5aHuiHMtc3k7ML 5e65d58cLGR7PXT0YuP4kCn71b+pl5SYZ5wFehA321Fg3BorVYW6G60V7 Q==; X-CSE-ConnectionGUID: rsFyu/yxRJihL9yYMPg97Q== X-CSE-MsgGUID: rtbJR12USbqQhos/xZ01CA== X-IronPort-AV: E=McAfee;i="6600,9927,11038"; a="30460333" X-IronPort-AV: E=Sophos;i="6.07,189,1708416000"; d="scan'208";a="30460333" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2024 04:30:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11038"; a="937093313" X-IronPort-AV: E=Sophos;i="6.07,189,1708416000"; d="scan'208";a="937093313" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 09 Apr 2024 04:30:18 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id 847D5357; Tue, 9 Apr 2024 14:30:17 +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" , Baoquan He , kexec@lists.infradead.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" , Tao Liu Subject: [PATCHv10 02/18] x86/apic: Mark acpi_mp_wake_* variables as __ro_after_init Date: Tue, 9 Apr 2024 14:29:54 +0300 Message-ID: <20240409113010.465412-3-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240409113010.465412-1-kirill.shutemov@linux.intel.com> References: <20240409113010.465412-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