Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp935822rdb; Sun, 18 Feb 2024 20:46:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWhNilRxfhbAQ28BmArVWQ5L4G/fG1NbJ8RzVsuqkoGhP4U5nxUG4j2+rmxWRs57PSSMu3qIB6uBn52PQ7ZKZl1ALssXmKc2lLoSQfuNA== X-Google-Smtp-Source: AGHT+IEXaVNCtkk+iC1OWi/6Hi0FyLBnZdYoTAo582A9h6BpKXmJiV+gtGYAJWdPMt03OoDBJUbb X-Received: by 2002:a17:903:94d:b0:1db:b722:776d with SMTP id ma13-20020a170903094d00b001dbb722776dmr7993151plb.1.1708317991152; Sun, 18 Feb 2024 20:46:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708317991; cv=pass; d=google.com; s=arc-20160816; b=tKbQHzP6HQsrNZTYOsPlyvERecRcJlsO7a7TVP/wrzHo28abfWKKLqlhVJlPSj7N2b 42E8O15pmEbGC62td3OVaIAXywmhtlKyGYaXBMWuP93X7Bjtvbz2m+hR0Ew+qUM6ijU7 NFq+eFqzMnICDMqrzBctBwxpff5IBiA7EXs3ecTFB81adDNpwPEgSzh9El5rqKPSo6V4 2IrmbCKP505f4o/9NNNe2wdCX8EAoT5DbBGuzqHAFmBWATp6A+AtMlCFB0tUgwXdtVcn A4koR6kcetu/RjnJkbgrVv4tekb44Q/K8Rx2I+9qk9eEf1zWmmxYyvmAb5YugrCJ1VoA UZPA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dLXISstnHfpiIpRnh79Jrtq+xnWJNyw4ml3k09pwYAA=; fh=n4OnCdto9ks8g3/ozZ8KTfkEmd/DPhDnPmomDuJFCko=; b=TMuLFAPvqOGmkLYiywDbfeLM9OAV9Jy8UmlhltP9LXMxgImQStp+6w+qtFawF40iGq FHr6sxl+89kaFnQrfLQOKbxDWq4SV+HpJNDmVfQY3skPrOjk4TRxOXXHalM6AhKH/4Br 7wU4TQA5BuxZOP+opN5CBfKYBAZj0LlOKR0Wzp2mLlHpV0zyyPoKwZ8RSrk6+iJgtHA0 gxLjphyR95yM76U+/CPqSS5+K83eMOgOi2Cwrebtcl0qBHPTTkOv0lBGl6li1cCVoC84 uy911k6xUPBk9YJmHG9YF9deAPW+0A1VKogeQa11TGBVvWfznK7u+odyLzcPLJpYodo7 yRqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=c3ZrRrdk; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-70715-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70715-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p6-20020a170902780600b001db4435997esi3733709pll.398.2024.02.18.20.46.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 20:46:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70715-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=c3ZrRrdk; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-70715-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70715-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D6F58281793 for ; Mon, 19 Feb 2024 04:46:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C60E21F94D; Mon, 19 Feb 2024 04:46:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="c3ZrRrdk" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 421591CA98 for ; Mon, 19 Feb 2024 04:46:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708317979; cv=none; b=f0v5zy5MdkprzGJq5AvEkOy+Hr+uR7p/JBPEnXC6r7/DZjGErWV97JFwH0kt3eV71AgYJkY9BRKaJ9PUSzWGOVVIDuPbKA5xyQS6GaRhU/FGcqeZvRDL/ksdX+E5zRJvGvqZQVFgWhGhb8xDSGtcP0OfAUrHBSO6smnNWahhhGU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708317979; c=relaxed/simple; bh=vLqLzH3ZR5ExPctciaBnN6OY0xRtFwrIXQU1oSpMlGo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sexQla5D/8xtzqF5HeSQrebFrW2RX96MWuSvMNJtTZgQsqJBSkL66d4CSbE2jOjtojdnnfCyTF8hiPs6YlnltjuIK7w+ZTiFxutxBm+dJd0gw0Qgw5zq+O0X00tX198Et0w2P1Tg0oN+l5WhtFJzf6/grkwWLurXyVnRfV5ZCus= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=c3ZrRrdk; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708317976; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dLXISstnHfpiIpRnh79Jrtq+xnWJNyw4ml3k09pwYAA=; b=c3ZrRrdkwqnl1Q0uUhGzyo0L47EA2ctrlWNyCIfqs5yO9C/BeaKqfAr0Qr6ztEQd4hewiW NS3Y6HfVLPMp6pkFcFWRS/dopAM47sgQ8PBpv7ddcz07qk+WM1fwScFn6ANALVWh6OvhOv REOOP4JMUypPhQffrKGL5FeHgJOpo7Y= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-310-3JnxGZhPN4OftMT9bGeA-A-1; Sun, 18 Feb 2024 23:46:12 -0500 X-MC-Unique: 3JnxGZhPN4OftMT9bGeA-A-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E49291C0BB43; Mon, 19 Feb 2024 04:46:10 +0000 (UTC) Received: from localhost (unknown [10.72.116.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 36F7BC03282; Mon, 19 Feb 2024 04:46:09 +0000 (UTC) Date: Mon, 19 Feb 2024 12:46:03 +0800 From: Baoquan He To: "Kirill A. Shutemov" Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "Rafael J. Wysocki" , Peter Zijlstra , Adrian Hunter , Kuppuswamy Sathyanarayanan , Elena Reshetova , Jun Nakajima , Rick Edgecombe , Tom Lendacky , "Kalra, Ashish" , Sean Christopherson , "Huang, Kai" , kexec@lists.infradead.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCHv7 02/16] x86/apic: Mark acpi_mp_wake_* variables as __ro_after_init Message-ID: References: <20240212104448.2589568-1-kirill.shutemov@linux.intel.com> <20240212104448.2589568-3-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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240212104448.2589568-3-kirill.shutemov@linux.intel.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 On 02/12/24 at 12:44pm, Kirill A. Shutemov wrote: > 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 > --- > 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 >