Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2184160rbb; Tue, 27 Feb 2024 13:28:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW+WTsToxyStFoOTS48BAOHqsrN1rglYyz5+kCvF5DpxRP52Nj90QCcDCoY70nluaEFmoYXpEamOp956QXtKOhzunpZaWP0rQSTI9m3Xw== X-Google-Smtp-Source: AGHT+IETTdTN4qUI6jHGqnbHsZ2zEzIl3sL8N0HWnSnAKbCqZY3GAFuNnZoGqpOOGwAHUM5FDU1n X-Received: by 2002:a05:6402:5309:b0:566:278d:6384 with SMTP id eo9-20020a056402530900b00566278d6384mr504219edb.10.1709069305108; Tue, 27 Feb 2024 13:28:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709069305; cv=pass; d=google.com; s=arc-20160816; b=rk6r2U6JGINDMGYJE8VLmXf+PC2diICZg0ROK40/qDTJzEufD+DAGq0KfrdDf4Ddsw uyHwmsevpbMIzBRFS86wQ5wSgG9ahjr6W31AvTjG1eRfEnWNx4yYUFpEixGfW1IyZfcT Fo6OBhJ7q4Nl0k0rbkh5a4crI440ofpV3jeS0/XSZoekAOH+ok1UtewwQQ//htHbTcca ybf/Z+D+KFtH5zS6y+oHgBPcyLME4tKwXwXECGO6bLOIB0/KoyJzjgrmKFJvN4iIR4Jy tJrw+DkRlpAym+wkvt/836CK0rGgX64OSyaQoZOlgz4jni5khIwjrM6R9c/rBR3kLopi qoMw== 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=XRCAUvp8NBcMzHdjO9AXsmx8/AFSPxWuHFPr/8cJPHg=; fh=OvJRnOqsMTm9XoNmEwebcqh9Ud7yh1CTeKAP84ols98=; b=t5A53uoB3vAJRWr8LPlmbyZ64vmTchFych8LrrJ01jfsnBADo3LnJfnIwlB8+zYVbn gwNbcHmWITKqI6IMPCx+lTpq/BnQ8hVc4+ypk6s+zeb6BtyVxyL2LrrrsFyXbnHlRNSL +rQW8q9P160zR+P9v/Uir7wDV2TIsDjt+Ys79G5/Jjq/5lqsQSayoiyosNaYli9UEZyS wAfec0XmhcFYjR1SvB1jX5/PMENJ50ImLd3uUWKdXzTNpykCme8Z0EqBMEbDg/C66JL8 FQbjX5j4u5GlW+SgOyS+8WQW5Zhm5DmF+RiqdHi3FVVrP0RVprHulFYDZy0OHWmppy2L Pw7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Tt2G7iS6; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-84047-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84047-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. [147.75.80.249]) by mx.google.com with ESMTPS id dh1-20020a0564021d2100b0056400e62b71si1014191edb.226.2024.02.27.13.28.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 13:28:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84047-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Tt2G7iS6; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-84047-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84047-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 DA9471F2D5A2 for ; Tue, 27 Feb 2024 21:28:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 033E615AAD8; Tue, 27 Feb 2024 21:25:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Tt2G7iS6" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 74AB615A493 for ; Tue, 27 Feb 2024 21:25:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709069121; cv=none; b=Jm3i8XuzpQ1/DMLLk7KEorR95awqrxlGT5Z+M7aPj2HnaCEJ187x5SUiaMJqrw6TLrAxzdu+7llxdB6xCA6+iz7QwGSHNnMwmxyxOXtLLxxN+5abyNXdLf/jDDAMDwweyquTwJaXSZxdpkYBkG6XVtJjRPgRj9e6LE+4j22l7nU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709069121; c=relaxed/simple; bh=210lCphqYKumbsSKrHahIq5zl6lhgbzI8RmOuXqd25g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SXVS6MB+fMrQODa7N+/jPA75WO+V+w55J09PJmZYXEndRgGTHheemnqymOcHAO1/hGfiHAgJrl4k6kXJYoq/4GGZbAbawo5WEH0uygZyXXpWKl3RXTr5e9JluqzRs/+A7+KUcQibMBClbmX0kJ/E6tIxx3v905u/A3926TjH3DY= 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=Tt2G7iS6; arc=none smtp.client-ip=198.175.65.16 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=1709069120; x=1740605120; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=210lCphqYKumbsSKrHahIq5zl6lhgbzI8RmOuXqd25g=; b=Tt2G7iS6HS3REwU32awORFUUG1ePAAHoJNiQ9/dzgavUkMOG9NXvxze9 xumD8xsUcUdjGi72iQKS9SaA5Xf8CASphpS2UDkubZZu1XKWIkpXuNGH6 2dYdyzRz54OEMGr31pwtNGGBCUODzj9RbWigQZh8i25h//ouZY3ywLwxe bywJqsRqKtzLiALHv3lnGotYqGv3pOt83jNjxRYfup6Naz8K2xZYq4Xar 3lfQm2k0lbKLk2lAcym3rJ6CHmyn4E+pRBkncIq1Htn0ukp/ndk2cLQ8h 7yuUGjsFaCMB1iz9awpChBGkZB9CQnWiK90x7wpUS3dQm3twuiTEmzVk1 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="3567091" X-IronPort-AV: E=Sophos;i="6.06,188,1705392000"; d="scan'208";a="3567091" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Feb 2024 13:25:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="937032929" X-IronPort-AV: E=Sophos;i="6.06,188,1705392000"; d="scan'208";a="937032929" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 27 Feb 2024 13:25:08 -0800 Received: by black.fi.intel.com (Postfix, from userid 1000) id C91C61210; Tue, 27 Feb 2024 23:24:56 +0200 (EET) 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" , Baoquan He , kexec@lists.infradead.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" Subject: [PATCHv8 17/17] ACPI: tables: Print MULTIPROC_WAKEUP when MADT is parsed Date: Tue, 27 Feb 2024 23:24:52 +0200 Message-ID: <20240227212452.3228893-18-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240227212452.3228893-1-kirill.shutemov@linux.intel.com> References: <20240227212452.3228893-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 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; + case ACPI_MADT_TYPE_CORE_PIC: { struct acpi_madt_core_pic *p = (struct acpi_madt_core_pic *)header; -- 2.43.0