Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2532979lqb; Tue, 28 May 2024 02:59:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUtroAonl29JA8ZhpMj3TiwNEKWQjEdXKkykwVrmijBX220JbmRezysKboWadNxUbtpVqU8FWmMmykWyeE6KkImp4fGLqyvQoFyMSqzPA== X-Google-Smtp-Source: AGHT+IFrx2xtqk0Y2miBakR0bUiwl2qxlWJv/5+YKFtrkeshuecCBGyozsGsD49EimDD/is7xCcv X-Received: by 2002:a05:620a:6123:b0:790:9461:4b1e with SMTP id af79cd13be357-794ab0809b4mr1191207085a.31.1716890380354; Tue, 28 May 2024 02:59:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716890380; cv=pass; d=google.com; s=arc-20160816; b=xxUMAbmRvQavK7hxujs/eU9VHDJS+fh6/Q6EJHBnDvviaHecYWUicVItWNaIAVXTHU q1axxEiawCxY16E3CIf16teA2mZqAYX0t0jJN0Ombw2BmUxSwvFLBiP95wHFOg2tv2Mi 5m+33x3pq7DHgEEm6nK9aHaOBA4DBe1Gkk7D4P03RuaZC2Ywq7pd3xYOB8IE6lQyxQ8+ OZmLToNyTtujkbQhtNGg89UWd4tPZKVDnh/1l4aqpAG+XCngGeoOrj95rhQj9hqVi44M VnkAL4sjo8XSJ6PO6h4BZka3fPuX+VctsqvFfgtVh+3jbTc3YiLW8fxn1UO5k8d0tkvj KZVg== 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=+IrQMa74aiHTzOCFJ6QcZiuJDVspPgreg83nO8iGX00=; fh=jKzY+IJTxktZ685R93VhJUbGF0rvTl3iTwtLazyIugI=; b=g9uP0zgRP3dyIIldIq6Am8BQpzicaXcAuOUpiq65LOaoa+nlq9Of0KTe+H47kvppSH EEPdzXDFv9MN9Hk+/ICRgFFYgltUqB2weC5iOxIApKJdBUsHd08W60MRz0esxSdybP+Y r2Kjwz4QjPmLLt54oeVskj0FVRW7DlDImR3gslQPAVM7RPkasMrWoXK3spvXi4m2+Hk+ LkiM22xgrHEgCy4qfCIVq4cU7qtzoKkBSL0uAK4E8ZyOg5os0eGZNJvW1ts9cHsGYYUh +qFwdfwFKUDE8Mc366xoIxiQFtOmpM74Aw3c7VewLRDqncJz1q8Qs948z6xp6FQGNqMV NM7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZJ9A+RPc; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-192056-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192056-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794abcc8009si965671685a.214.2024.05.28.02.59.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 02:59:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192056-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=@intel.com header.s=Intel header.b=ZJ9A+RPc; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-192056-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192056-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 436C51C23FA1 for ; Tue, 28 May 2024 09:59:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F77216F0E9; Tue, 28 May 2024 09:56:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ZJ9A+RPc" 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 A8DCF16E867; Tue, 28 May 2024 09:55:57 +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=1716890159; cv=none; b=Ht0x49F9QveJvlQgHOSj7d1hO/DzvMA1ootD79eMNopsGu3Vd/HZnuV6FJKgjr/VkQhNbU0pC9aIdxyZETCnKDYoyqA4SJnfOL9ohWCPSdcbIikByfsU9NWKBFoRNai5f1ip5YTWQUZ9Mqicy1gIeuh/RaLbsQvTOlLbfVp9wlI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716890159; c=relaxed/simple; bh=pNTsKqVQk55IiCN9cveVl7AHQE6wlgXgaA9ysVM35AI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rA1/cZayh4CSikCuy5n7JAFS5MyFdXjZ0w1sbgdLWZiv6O07vomFqwiAWO9rocMXlMxUWloZjb80uhRuGFIS3V96hEc8vRBwtwT0XPzY111EVFBLjsVFCm7RqjPSKnk5p2wMstLSUFSHvZ+wslD4M6ZD3Synknp+0lCWmC25pks= 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=ZJ9A+RPc; 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=1716890158; x=1748426158; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pNTsKqVQk55IiCN9cveVl7AHQE6wlgXgaA9ysVM35AI=; b=ZJ9A+RPcoYNEb9+FdhIAkV7Y+PtJ2jTeET4ESvxVM4k/kIiAXibKtbgO M2O7XZsKGJGYD2vOkyM90q7awRgRcq7q4jww86UExEFfhUEEXq94/OMiD EcDuGBIkOYi2Y5BfxGIZ60QMHmvT5elABwraUhzWEYWd9XUFHwh2vji2L 2M1O6oWZC1ZCG3tSisfoJoF4n9SExrRdg+2D3rieBS0UWSCd2YkO0Xrfi KdwwfS+MY9ur8pLClrXg1jLqR/wU7/BWBwJdS0M8vGosSRoYLB07AMpTw Gy3Ecc1YIeszP2KuX7N3QTKjw6AcxbbSgVCGI7UNEYRZ61ucQy7iqow5I w==; X-CSE-ConnectionGUID: zut6+ZFsQRqzC9jFSszBIQ== X-CSE-MsgGUID: HxIRkU/dQMyBhSWYBzf8lg== X-IronPort-AV: E=McAfee;i="6600,9927,11085"; a="13172243" X-IronPort-AV: E=Sophos;i="6.08,194,1712646000"; d="scan'208";a="13172243" 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:41 -0700 X-CSE-ConnectionGUID: zDIPCTM4R9OY5MQtlQjkcQ== X-CSE-MsgGUID: po0/KbjLRleRGWauHTotJA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,194,1712646000"; d="scan'208";a="39984759" Received: from black.fi.intel.com ([10.237.72.28]) by orviesa004.jf.intel.com with ESMTP; 28 May 2024 02:55:34 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id F164E909; 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 14/19] x86/acpi: Rename fields in acpi_madt_multiproc_wakeup structure Date: Tue, 28 May 2024 12:55:17 +0300 Message-ID: <20240528095522.509667-15-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 In order to support MADT wakeup structure version 1, provide more appropriate names for the fields in the structure. Rename 'mailbox_version' to 'version'. This field signifies the version of the structure and the related protocols, rather than the version of the mailbox. This field has not been utilized in the code thus far. Rename 'base_address' to 'mailbox_address' to clarify the kind of address it represents. In version 1, the structure includes the reset vector address. Clear and distinct naming helps to prevent any confusion. Signed-off-by: Kirill A. Shutemov Reviewed-by: Kai Huang Reviewed-by: Kuppuswamy Sathyanarayanan Reviewed-by: Thomas Gleixner Tested-by: Tao Liu --- arch/x86/kernel/acpi/madt_wakeup.c | 2 +- include/acpi/actbl2.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/acpi/madt_wakeup.c b/arch/x86/kernel/acpi/madt_wakeup.c index d222be8d7a07..004801b9b151 100644 --- a/arch/x86/kernel/acpi/madt_wakeup.c +++ b/arch/x86/kernel/acpi/madt_wakeup.c @@ -75,7 +75,7 @@ int __init acpi_parse_mp_wake(union acpi_subtable_headers *header, acpi_table_print_madt_entry(&header->common); - acpi_mp_wake_mailbox_paddr = mp_wake->base_address; + acpi_mp_wake_mailbox_paddr = mp_wake->mailbox_address; cpu_hotplug_disable_offlining(); diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index ae747c89d92c..fa63362469aa 100644 --- a/include/acpi/actbl2.h +++ b/include/acpi/actbl2.h @@ -1194,9 +1194,9 @@ struct acpi_madt_generic_translator { struct acpi_madt_multiproc_wakeup { struct acpi_subtable_header header; - u16 mailbox_version; + u16 version; u32 reserved; /* reserved - must be zero */ - u64 base_address; + u64 mailbox_address; }; #define ACPI_MULTIPROC_WAKEUP_MB_OS_SIZE 2032 -- 2.43.0