Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2615868rbb; Wed, 28 Feb 2024 07:22:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWHb9jM0E1uuE63u/OyubFUcxIRPJ6hiM7uNt4Qi3l4pb2REyQB9byKqTLphnSO2MBbOIANfhIZb9gEwkpZLrHGmL+o+Ox1v9fGpLEHzg== X-Google-Smtp-Source: AGHT+IFMhK9J+6TkUAz2zbN+lp0vgMIPnlo4hx5ltyRnzIABu6RGZrdg9E31QWJn3zC8OF8ILlkH X-Received: by 2002:a05:6402:31f1:b0:564:d715:1d67 with SMTP id dy17-20020a05640231f100b00564d7151d67mr8922582edb.17.1709133769284; Wed, 28 Feb 2024 07:22:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709133769; cv=pass; d=google.com; s=arc-20160816; b=PtcEjRZCYgXfUJKDs5FRIEeW5HsR1CaHNJpXMOsR3ek9xY0lB40RPWkDDeu0C/lf4z 79L+wGYZptUcmbZmCOZb+N+eKd/2eVfNF6tmRZ9vljMYE0QF48qVt/eh6EJoeyLJAr98 mS+6zk1PC9j6Z7SHdqXxC3uzSfevVtTEC8M515T1zavTKlpYymJuUIzekgmEEqqzQcFR 7xITn5ME+j0jS9CRcxHCeEBnZ/EW+yj5ULqMHPhDng+eyyUYmai/espuq7LFfw/CWnII ujr7GkIdho+H8dBJI++wa6mTnXhpo7XjvtNPu5fpWhwtx4HOiI0PRoiyEHifM/DhPJKJ nVkg== 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=B14GuDiwuyakkTnwwewiqH3FvcMOcZMN1HyL5ToNCoY=; fh=3V81Hh58exbq1zlfh/MbcjFRVQqOF+4AIz8/2SLclrk=; b=lOUw3FzsfzXNj+NoScYJTeMInI47MQSkCeWlg52373WyXX+mCbAIFr/ckNv0e9XUN9 9Uq712/Luo09par+G4EXbbJ5maRMmZVzJYsowhYiLz7EOETRa0lQvaiIW9V/iLu7Iv0y I6t25URNOKms1pszRIRE+QJKfub++8aGzjLjiRFXxOaAAPUGq35Eo+uGvG2sk27cyfXQ 8LsrzsYL4XGWILJ/Qpc71ayB6mu40dsza36alBUXmGvJ14wyVOyMVSH2UndhLyPiuGtn kWBCO56TBVDv1iVtRbCr7g8iPAUjsmPZhKlmT68bMMAzYB8IACHAe/JFKX5GELO9lfTr 6kIg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aAPFYLJV; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-85256-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85256-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t8-20020a05640203c800b00565a2541766si1715101edw.335.2024.02.28.07.22.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 07:22:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85256-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aAPFYLJV; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-85256-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85256-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 10CA41F244A8 for ; Wed, 28 Feb 2024 15:22:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4257015B98C; Wed, 28 Feb 2024 15:22:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="aAPFYLJV" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 E60C815B96C for ; Wed, 28 Feb 2024 15:22:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709133764; cv=none; b=G/CnfWA4whePXAyV9SBfooWIr+mSnzs0CJaQQcdh2le6sSy6jbJKw1SRoVNtWSfdJ2uc4LTw/R3QCLG8EbR5QHhc+gPPgmhvBNiZqb2wpSKL3WwNhV6Sdrb5+URn+wKX1ehPSuTvkPePjRh59CEas42Yd2UEU4+x+YI3c87nQac= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709133764; c=relaxed/simple; bh=pVo3nZ1TRQ7aysEs3qhN7ATzV2rZ6Gtlgvl+QzdEatc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=u61t0oKxkpslIbvbpF4QnE60kZDlVyLowb/nlyDVnMRMScV3a//dEyi0TJaUQaUdAKRGJfDLf+HSMlIl0+qmbDl1XtnC+NbP+Mv2d51BTIGmkQlYNia0Eyjo8nDd5f55c/+x8LnvZ7zsgyQdB6j/ZfoxVXdXcAlXFTj4/kPWEGI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=aAPFYLJV; arc=none smtp.client-ip=198.175.65.11 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.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709133764; x=1740669764; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=pVo3nZ1TRQ7aysEs3qhN7ATzV2rZ6Gtlgvl+QzdEatc=; b=aAPFYLJVMAeHq0gV6LJWmfUfL3KCTFXlscM3hv1pl44ugA4QmTVY55XV ouQQf80ANsOSaFc/R9xj5nX2OyXzCRCEMdNajE7mAt9Imb0nMJHZiTXVL R5isg9QmTWpolqrXdz9TRn4ey5WomGPLSTkL6kRky7UUXQVwYdTua+YGj XfjnaNh/0Wt8jejUuNa3NJv3AkuuO8HDaJaqoL6WWUNyhG8gZJ58SUfPI eQwSi6TaavxCIdM8zgjOiIdtbV1+OE3wU7xBwdE5cc3XbCc+fJ5hFI5xE DAEQuarC6XEb8Jl9851iw7aokd/GFDFIyytPdDFkT5NjhKdrcUjy3axB0 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10998"; a="14088124" X-IronPort-AV: E=Sophos;i="6.06,190,1705392000"; d="scan'208";a="14088124" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2024 07:22:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10998"; a="937034395" X-IronPort-AV: E=Sophos;i="6.06,190,1705392000"; d="scan'208";a="937034395" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 28 Feb 2024 07:22:31 -0800 Received: by black.fi.intel.com (Postfix, from userid 1000) id BCEB228A; Wed, 28 Feb 2024 17:22:30 +0200 (EET) Date: Wed, 28 Feb 2024 17:22:30 +0200 From: "Kirill A. Shutemov" To: "Huang, Kai" 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 , Baoquan He , kexec@lists.infradead.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCHv8 17/17] ACPI: tables: Print MULTIPROC_WAKEUP when MADT is parsed Message-ID: <3jgmzzbjmwtf2rtrbiulhwjj5xwzc3icf4gxcmugyyq5n7pg5m@ua3poay4gmku> References: <20240227212452.3228893-1-kirill.shutemov@linux.intel.com> <20240227212452.3228893-18-kirill.shutemov@linux.intel.com> <0a633c22-8426-42cf-9572-7812ffc75d0a@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: <0a633c22-8426-42cf-9572-7812ffc75d0a@intel.com> On Wed, Feb 28, 2024 at 11:08:38AM +1300, Huang, Kai wrote: > > > On 28/02/2024 10:24 am, Kirill A. Shutemov wrote: > > When MADT is parsed, print MULTIPROC_WAKEUP information: > > > > ACPI: MP Wakeup (version[1], mailbox[0x7fffd000], reset[0x7fffe068]) > > > > This debug information will be very helpful during bring up. > > > > Signed-off-by: Kirill A. Shutemov > > Reviewed-by: Baoquan He > > --- > > drivers/acpi/tables.c | 14 ++++++++++++++ > > 1 file changed, 14 insertions(+) > > > > diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c > > index b07f7d091d13..c59a3617bca7 100644 > > --- a/drivers/acpi/tables.c > > +++ b/drivers/acpi/tables.c > > @@ -198,6 +198,20 @@ void acpi_table_print_madt_entry(struct acpi_subtable_header *header) > > } > > break; > > + case ACPI_MADT_TYPE_MULTIPROC_WAKEUP: > > + { > > + struct acpi_madt_multiproc_wakeup *p = > > + (struct acpi_madt_multiproc_wakeup *)header; > > + u64 reset_vector = 0; > > + > > + if (p->version >= ACPI_MADT_MP_WAKEUP_VERSION_V1) > > + reset_vector = p->reset_vector; > > + > > + pr_debug("MP Wakeup (version[%d], mailbox[%#llx], reset[%#llx])\n", > > + p->version, p->mailbox_address, reset_vector); > > + } > > + break; > > + > > Hmm.. I hate to say, but maybe it is better to put this patch at some early > place in this series w/o mailbox version and reset_vector, and add > incremental changes where mailbox/reset_vector is introduced in this series. > > The advantage is in this way someone can just backport this patch to the old > kernel if they care -- this should be part of commit f39642d0dbacd > ("x86/acpi/x86/boot: Add multiprocessor wake-up support") anyway. It is not subject for backporting. It is just a cosmetics fix (or debug facility). Any new MADT type would generate a warning. Nothing wrong with it. -- Kiryl Shutsemau / Kirill A. Shutemov