Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1913255lqe; Tue, 9 Apr 2024 04:34:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXAMlRNQp4gWi1KT0OU1qSVp89D9A0osTYfgPavwallW+oyupgeOA17WmgVaO3iLh1o+1DsDw+VEIoVRUgGTVp0t41MXzPO4X5Nf6upEg== X-Google-Smtp-Source: AGHT+IF+xEfnBgLivRgDQXa8gIPGF+o9GGyx/d/5EpRp6U+MAx1wSxzDI5eOTyAJeNO5rboplcl2 X-Received: by 2002:a05:6214:1c8e:b0:690:c7a5:1dc9 with SMTP id ib14-20020a0562141c8e00b00690c7a51dc9mr12857346qvb.42.1712662441654; Tue, 09 Apr 2024 04:34:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712662441; cv=pass; d=google.com; s=arc-20160816; b=EFDbuBi8lnIOAAAA13OrFdkZWIT84g68L5y3Y1WQs+xgz4MP4LVMd38yKLb/3Q7ZFQ yOygqtL703Y8FYCeWYm7lrssqcZ+QV/ToIgxQDtuWqEl2p1OnjCHV2BxsS+kyR+4ZUmc 0MIwog6yxvzytedvbHC9j/gpwxR/qw47XvyrVa1GYHLmrCrttfh8WyDhhmzQM7lsBt9X o/MmcrCyK2aqHcilp59gEyEW46RWbn+jHXF2bZevRIjolikERlt8oALwrvHk64gSm4h8 N3lqTA3GPBUtc4nxi6CTljRNH7xUTAjXyQzhZSuFQOPgH8ZRc+ivg8BhUn0xNzZaZrZm NxlQ== 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=Q3ZZ33lNrsiq6c1zysjmpIyRac6JRMrrUDfXdP8qtdg=; fh=Yw2S7s1ZcF7+jfnU9Zy13ghDfPt/cQWqfRpyK6FQAJQ=; b=H8A2dz43+q7UsPe9P/fdv8gGM2YDLMgDmgSDytwIM7ai002zsQ58JYct7iGUKXeXyQ 9ZU5OG5DP1/e13wj7PNsEBRE4Fsqw2IHxU/EkIIkujj0Rxg+yzVq4YdLQAGJW2Vnjn+S a0h74ZgkPkTrYN6c/Im0td96enA2w1f5MaLXtNURU1Oj3LCV6St1a1V1jSmZEa0W2Wf8 5n5k4uoDWzbc+/yB2mTtz6+cXULVqgJ5DUR+SRpxlhUwvJAgNvklkgzYwjJZupWIc7JI rwrebHlGNl2H3HQjzNJlsCUYuzYicsatELBI4FQdGDsMb5BwaqNaRTKLbJHr7MdT0DfF NnLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kS7yQxWx; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-136766-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136766-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 k20-20020a05621414f400b0069b1d91b3d2si3628912qvw.327.2024.04.09.04.34.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 04:34:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136766-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=kS7yQxWx; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-136766-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136766-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 532091C24319 for ; Tue, 9 Apr 2024 11:34:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C30B4130E48; Tue, 9 Apr 2024 11:30:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kS7yQxWx" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 1B50B12FB23 for ; Tue, 9 Apr 2024 11:30:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712662239; cv=none; b=aPMkvp1ivomGsvYOvRfjnxrj87avkNnZW7JDQO+89F4ULAczRb+k7p87ggMpY/fhg8Ils6Tlm0XdY9FGzRwG2GTybT6dMjbr7boIpKhEu52xSF7dBr6lLuL5b87mPdI3Sx65UVnzzdDD2xK0hajFUS2B2PvWJSX7+Ckqp5/RzMQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712662239; c=relaxed/simple; bh=ooehCP2CqaQsm8Y5n6o6IXL6w/UgTt+BI7m7NlJA8lI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uvLBTX00YbIjHhRSYL+LjYsZDyIKst2DfvhoiN9ABv9wVxEvJR7aCD/nb3FCtVEkEPxPxPx3WJHyW13wYouMu9eoxpzweiUcyGNdHSZCh5L68NrP/daTfF8By+UQL5TB3c/LHrtTqz8ljelVAp6BKnESj4pioCThmnB96XlM8lU= 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=kS7yQxWx; arc=none smtp.client-ip=198.175.65.9 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=1712662237; x=1744198237; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ooehCP2CqaQsm8Y5n6o6IXL6w/UgTt+BI7m7NlJA8lI=; b=kS7yQxWxSEj64z02mZ+uKoWYlb1CEc9/FXxpba8LBjqAI35NfCoKlkJN RHcBzF0XQnq2hgE6A+zFPm+yoEqycUXVMvv8F8iKuLFI0ipDsGJBJGcRq Ir2rwSXM4Gv3t2M1/bSYhCysn9O0CW+tVcmvTt0UhVvYIbBO8x3Qkj6GK Ltqv9F7PU3vnPowAmABdwpqfdY0SctEa5clbd80Nzq4oP884Ts95VH6Ja K+xY7R8w9MTE4EF4bM1C2SMG13KmFzmaB7taQrWJwvcnJO957olSZ3Wjs qsROTzDVdjUmOfhh+JkwU/lBTiwsiEMg3wkSBFWtW/dbumdDmWmDToKDE w==; X-CSE-ConnectionGUID: OnfBNNSkRTamAn1DEeb2kg== X-CSE-MsgGUID: wqiTKTSGQYqBC3R/xmskIA== X-IronPort-AV: E=McAfee;i="6600,9927,11038"; a="30460483" X-IronPort-AV: E=Sophos;i="6.07,189,1708416000"; d="scan'208";a="30460483" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2024 04:30:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11038"; a="937093355" X-IronPort-AV: E=Sophos;i="6.07,189,1708416000"; d="scan'208";a="937093355" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 09 Apr 2024 04:30:29 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id 5F96C16F4; Tue, 9 Apr 2024 14:30:18 +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" , Baoquan He , kexec@lists.infradead.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" , Tao Liu Subject: [PATCHv10 18/18] ACPI: tables: Print MULTIPROC_WAKEUP when MADT is parsed Date: Tue, 9 Apr 2024 14:30:10 +0300 Message-ID: <20240409113010.465412-19-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240409113010.465412-1-kirill.shutemov@linux.intel.com> References: <20240409113010.465412-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 Reviewed-by: Kuppuswamy Sathyanarayanan Acked-by: Kai Huang Tested-by: Tao Liu --- drivers/acpi/tables.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c index b976e5fc3fbc..9e1b01c35070 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