Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1859650rda; Tue, 24 Oct 2023 05:46:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHvkA/4Lum9QrPXduScavN2MAoXYyvULaOZwjCQnJkQ2/8jCeXNPTpGer92UweUE/uG+48K X-Received: by 2002:a05:6a21:790a:b0:17a:284:97c4 with SMTP id bg10-20020a056a21790a00b0017a028497c4mr2681447pzc.61.1698151614084; Tue, 24 Oct 2023 05:46:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698151614; cv=none; d=google.com; s=arc-20160816; b=u4xgZug5NOy/zfH9buAGhlkEdovfFlNAZKni3XW3ex44ku7cVUYP62b1oyt8UOc5Qp gM+SM2T806fKlfIowdoe1jYkqQqqB/+jv0nl4fbcSDwirWJ+k4IBpCNLvzVKrDo81Qlm z5wvJBCr+PcK/aUHAFB5P07T0AiRxvvNxYVwR/XvDxefR7fmU+0GYd+HPYH/tJ/zfdtu ioHPF5r9hXOmkjgrm+pFKi/vNfhvwvZzJL9uuIH3Ton/eOXojDHgNuYRQS1FzTX+CDXX 9laKmYUNUXy1NItMcPcexsN8/LeA4kQKiOV6SjyomZArp7Oh+e2meHc7M5pkjqnlb5tr +5uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=P7D096yiMRV02qxImDBj/fZmDNwCDj2wjj8B6uvo1bk=; fh=DfaIPJv7k2VREnpcFEFcGWb1t1Mhrg/4oykncI6AXqQ=; b=ryAnKzGeNvADso2G9fER3WkXUzOafV4qWWBB50vZ/tjuYjYH3V/0zAXQVIfmhnQ8Lo z1coYEHisB9LVYVOLW32FpUoYkr1SBGSnTvjlqq03E0MFFM+6vhz67ko7lnK4hD5S0nT sBwPnG2psnexofI0pQegZC/tBe26auTtVvSE+pqI1DSMIViNeLihmNm6t0H5IO4AKlbd /TxX2KcewZ3hT3tv71tooq3XWtn9FxMz3qpFWoUmfScb2aCj5QZwwY7YofmN93JbBaB9 plnFuIxJtk2DgvSTCl4bsfc7GPm9f2c7xUMRJVaGLdIo2/Ha9mIlp5ama7RWCo8dA3lW rWsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LZZVwIIR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id s62-20020a632c41000000b005b3e6867a01si8320541pgs.427.2023.10.24.05.46.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 05:46:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LZZVwIIR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 44470806E4F9; Tue, 24 Oct 2023 05:46:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234315AbjJXMqp (ORCPT + 99 others); Tue, 24 Oct 2023 08:46:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233166AbjJXMqo (ORCPT ); Tue, 24 Oct 2023 08:46:44 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D6DA9B for ; Tue, 24 Oct 2023 05:46:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698151602; x=1729687602; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Wgfr8w1cbLPQHYG5iVU1irgIBoi2fm60vn3H7o4w7c8=; b=LZZVwIIRKmJyS9IGA8DfDvDNosNmrKNLsQVeOczZKFCxnjn8qisn+9Dg 84mGlBORBSFHqM74DE09dIrIXHhMxu7vc0uAs8EP3Q2wDCsDrB7mQORMk CCDnO5s7y7Oh8o0qQyHbPTm1uvEf0+dtk4M7j+YRMuK2/Frm1UQy90roF sE/74OS5PA+h8D6QJlprRZE9iBlE2eQCcnZ6tY8EaeDUOXorkKEyNYOfF oiYRgWCbFQcsFapCFgSGoOV9Cx6lY5ELeySiZNRisawLjD85GtixWnmyk qNOjraaS8NhlhmsGZWLYGFt2V+qkxPiCfO2NoUdpQlnUqxnm7w+Yz3g26 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="453506411" X-IronPort-AV: E=Sophos;i="6.03,247,1694761200"; d="scan'208";a="453506411" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2023 05:46:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,247,1694761200"; d="scan'208";a="6438628" Received: from marynguy-mobl1.amr.corp.intel.com (HELO [10.209.14.133]) ([10.209.14.133]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2023 05:46:34 -0700 Message-ID: Date: Tue, 24 Oct 2023 05:46:41 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCHv2 12/13] x86/acpi: Rename fields in acpi_madt_multiproc_wakeup structure Content-Language: en-US To: "Kirill A. Shutemov" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org Cc: "Rafael J. Wysocki" , Peter Zijlstra , Adrian Hunter , 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 References: <20231020151242.1814-1-kirill.shutemov@linux.intel.com> <20231020151242.1814-13-kirill.shutemov@linux.intel.com> From: Kuppuswamy Sathyanarayanan In-Reply-To: <20231020151242.1814-13-kirill.shutemov@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 24 Oct 2023 05:46:51 -0700 (PDT) On 10/20/2023 8:12 AM, Kirill A. Shutemov wrote: > To prepare for the addition of support for MADT wakeup structure version > 1, it is necessary to provide more appropriate names for the fields in > the structure. > > The field 'mailbox_version' renamed as '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. > > The field 'base_address' renamed as '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: Kuppuswamy Sathyanarayanan > arch/x86/kernel/acpi/madt_wakeup.c | 4 ++-- > include/acpi/actbl2.h | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/x86/kernel/acpi/madt_wakeup.c b/arch/x86/kernel/acpi/madt_wakeup.c > index 9bbe829737e7..ad170def2367 100644 > --- a/arch/x86/kernel/acpi/madt_wakeup.c > +++ b/arch/x86/kernel/acpi/madt_wakeup.c > @@ -79,7 +79,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(); > > @@ -98,7 +98,7 @@ int __init acpi_parse_mp_wake(union acpi_subtable_headers *header, > * > * This is Linux-specific protocol and not reflected in ACPI spec. > */ > - mp_wake->base_address = 0; > + mp_wake->mailbox_address = 0; > > apic_update_callback(wakeup_secondary_cpu_64, acpi_wakeup_cpu); > > diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h > index 3751ae69432f..23b4cfb640fc 100644 > --- a/include/acpi/actbl2.h > +++ b/include/acpi/actbl2.h > @@ -1109,9 +1109,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 -- Sathyanarayanan Kuppuswamy Linux Kernel Developer