Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1155322rdb; Mon, 19 Feb 2024 06:10:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUulQsBlaE7sSIQVWmf4BuJLqhHHv6Lq+POgG2uf1yP89ldITkCUYQz3ataDphTRHldOfQJEIC4EEUJAGOkWSLupjp70xHbJdBvKpioLA== X-Google-Smtp-Source: AGHT+IG+OiFrRFoLE4UVWuS0dQENl11rtsDdG0wSSA0vJkG3hl0We5+dq1MZyqR8105PFrXjRcIe X-Received: by 2002:a17:90b:386:b0:299:10d8:31cb with SMTP id ga6-20020a17090b038600b0029910d831cbmr9556123pjb.12.1708351806597; Mon, 19 Feb 2024 06:10:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708351806; cv=pass; d=google.com; s=arc-20160816; b=iHavcZ2Vjoifv9byRVqmIuMLzTvcZ9IFKei0fagnsDn7OM2g6cC3wsHnb6F0CfqFW3 9D4Dt8bHDRyCUQ5ErJ8rOAZ7RKO2bDCmZn0C5vmwu1iB46HOjJ4Sz0oNjwJJCgW+j0Rg UMaopzBZeHX1Yl0gZLL5ejepgXwilzQPCQOslRe1WG9PyolRKh9CIpmy7LK8X0Q4gw10 Omq99WJbwRdhxoybqFMzLYj9MzAG5NQAeP/O1x4i5n5ELUeNBTrk8ZN08Q2VR/2BZjN8 H+MkXn/9ggRz5GgwuVnUFyHidLAe7fH2dphtl00I6qsmQAuJUKH7m7GjHjTQvFIYXftB WgCQ== 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=Qn4DPm44MODTU10JGzzsyTraebl197syMS1HBrCgJiw=; fh=b1CtWOVMAK8JQs6DB+SVg+AtEQpeOtyGwB1IJYlzURY=; b=Y3dlNLbaaoeXdCyLo18WDEZIEd5d0wsfqsfdxNp2IK7wQlDZMspVrBsmotT0pW3z/G p6I+s3pv+PVqGucsD93EYOxeNEOhlaMnGcgmIPCExOjKGPta+VwBWb0pbTVWSWOfU9aT bzuZ818QZRA53VowbakQAoBmzqXyMPH7yPbE6K/07mvjQyCASV4JA/7Xy/cMqXH/gfFX 41FcEBOeWWNeBNEzGLiQM1BUPrHoth4VIA9lrGV9LNZwnALOSFj83gDf/MQmObT3H/qL w+3eWcrIjx0fVrvGSpJDpTbNCYeM19ZDPRodIPCXO9XC8pkaVL3i4nBSm2oq78uNW5Ms kq8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=at6aA4ex; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-71092-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71092-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w9-20020a17090a8a0900b0029977c00919si2962902pjn.156.2024.02.19.06.10.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 06:10:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71092-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=at6aA4ex; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-71092-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71092-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 9377AB21798 for ; Mon, 19 Feb 2024 10:08:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 585E525579; Mon, 19 Feb 2024 10:08:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="at6aA4ex" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (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 113B92137F for ; Mon, 19 Feb 2024 10:08:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708337315; cv=none; b=pYnfXlMAxq7rYk+bIvloxnE5pvVyVQR/eEMJEjFskHXHnwIPUaxlENA5dHVcd+cXng8d74TM4VFrNhxaxNy5BPtE0xD2wdzAfRCOby0rT2OnNzP1TnZhvdTeoODJE4/YhnstF0JmByDNgTIE2eAWrw6plYxZ/o5NIL/ij+LAZq0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708337315; c=relaxed/simple; bh=TR8HS0OFrh9aNH4iX7ntd6fP5lH5BPlQhF5iDC7RPM0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tTVyGlfOwZ7kF5FntQsKT2+kAPg0YFQ4uwQCfoveKzKFCRUO0vk7NbkLluOt+/3kNatLX+ZqGZnB1nO/8U+Ma5hWhwXOIZL1v5qOs7XWjcQdb823C2VRAf22SVbmkcf+Yzm9AHs7AI5W6fvKkN5Bg6p49tN/H2jkKuB4hNyoh0k= 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=at6aA4ex; arc=none smtp.client-ip=198.175.65.17 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=1708337313; x=1739873313; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=TR8HS0OFrh9aNH4iX7ntd6fP5lH5BPlQhF5iDC7RPM0=; b=at6aA4ext6IAn8SqJ6oA3rU6WsTLdLmjNw4RaQ3rll0yoQaLFhVmfXz8 8YeLhhB22+s4DbgsA9BrcBm5HG6CAbTZg3K8yZ9mvw0pCW4M1m4lLMTWH 0EemgSCj/oupT5/zfuc8Y/UQbkSh4scAEIkaC7YU4tzgzIAUlKsWZONRU 44KFn+FCZzyzK3aqWOiWuDq3UvkH0XxWdoWgRDREfeVep/nxWrJqcAp36 VipWme//xq2qE+yKeqOLLwPw1qsR1ZzpCrJfYYo8iMQusQ0dPUPggMFVU elQ4cDuQA1IgYUjjIIDQijis96AacNa58OZRQV780Pkbc9Jrtml26j5ba g==; X-IronPort-AV: E=McAfee;i="6600,9927,10988"; a="2532833" X-IronPort-AV: E=Sophos;i="6.06,170,1705392000"; d="scan'208";a="2532833" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2024 02:08:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10988"; a="936268601" X-IronPort-AV: E=Sophos;i="6.06,170,1705392000"; d="scan'208";a="936268601" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 19 Feb 2024 02:08:27 -0800 Received: by black.fi.intel.com (Postfix, from userid 1000) id 96E9B34B; Mon, 19 Feb 2024 12:08:26 +0200 (EET) Date: Mon, 19 Feb 2024 12:08:26 +0200 From: "Kirill A. Shutemov" To: Baoquan He 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 01/16] x86/acpi: Extract ACPI MADT wakeup code into a separate file Message-ID: References: <20240212104448.2589568-1-kirill.shutemov@linux.intel.com> <20240212104448.2589568-2-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: On Mon, Feb 19, 2024 at 12:45:31PM +0800, Baoquan He wrote: > Do we need add the entry printing for ACPI_MADT_TYPE_MULTIPROC_WAKEUP > now in acpi_table_print_madt_entry()? Surely it's not related to this > patch. Good catch. See patch below. Does it look okay? > FWIW, > > Reviewed-by: Baoquan He Thanks! From 23b7f9856a3d6b91c702def1e03872a60ae07d0e Mon Sep 17 00:00:00 2001 From: "Kirill A. Shutemov" Date: Mon, 19 Feb 2024 11:58:19 +0200 Subject: [PATCH] ACPI: tables: Print MULTIPROC_WAKEUP when MADT is parse 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 --- 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; + case ACPI_MADT_TYPE_CORE_PIC: { struct acpi_madt_core_pic *p = (struct acpi_madt_core_pic *)header; -- 2.43.0 -- Kiryl Shutsemau / Kirill A. Shutemov