From patchwork Tue May 7 07:15:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yuan, Perry" X-Patchwork-Id: 795656 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2087.outbound.protection.outlook.com [40.107.223.87]) (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 DF37413CA8D; Tue, 7 May 2024 07:16:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.223.87 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715066176; cv=fail; b=d0Sj+DpqVkVZDb1YY0FVISPiL1tOsRT4xChdvQHYT5LAq4+F2pX0boZ5TyESMN041Tp1EmtAd8Wy+nM+6HK+NkdR9Jca9NTsQNfjrFyYPwnKGLQDuW8181pYX6ZxX25uDNbYUtySwcp7LGwzhEi9cS8bBrl516n8hXSTFtM2iL8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715066176; c=relaxed/simple; bh=IpqQGqYRCFdjLn0Jpevb5aTYFdroCEQ2ny+xxSsMm1w=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=KSBpV0ceFWAInoYFnrZGI8rpZnCnN5ztoktN50tGh4iPTbczcVm3mplFUUYcLCMp7276iWtw5Ijeaek9OP9hnO23ZgewIz3kYgynZl1Aq3DTRiIIbmmpScfDw7/6SboC/Kf1DRApvY1VC6uuBq1/FE9iw01/nBny49DlnCgl9Iw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=gwIAYCZn; arc=fail smtp.client-ip=40.107.223.87 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="gwIAYCZn" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YdFwF8zex6KCLdO0rjTWl9Ju37CR08DWMuHVUWc2Ov+Wz+XO7b63ZgUPeJTU1qZi2/QmUxbXyKxp21qhmz0eBL6G8XFcee6VIfGp+nsjeFJhQUBgzer7/xuACYBAGWxUleFwHVXQ/QnzQI02oP+kQOayzD1hdlnOnYRuh24cJRg3M8uAqBmXloodjL7x0TBS1tYRBRI9fLO8jdDBlYs6+9+dSeVbT8ARYvxqedPthxV09mP62Yj4mN3ZYJXw9NfuY/2lS8afwhNhjTReV8cU6QG7W39AZkfgJj3aALaBfacFFtqJCBmxi9ZCtlphhxqdaxbR8FNikaUn2HzsljC+eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LULjVeueHakNG+vhlLn8dzsZ2NAv0WwrdyIeDL8auH8=; b=U9t+wy/TbDeCukOizGCBL9uCWICY4kQPPOQlvqXy7IpH9HeEhh0HzulhWywtP3NLj9YJGraGUk05sRsFOTlBQnan9Kq1Sf3EjrH5S2rkYgIao0gvfZSjjI7Nn4pqkVHTUi14b1zKmY4us647vedrbKOCH7zosT6yv8AU93OrakCEkfm+zeKvwLk0LYH2sQiO6rt+QiqWoTTSIDc91r456yUZuGzmhHWR16DPYEGAF6/1reS5Au+aYShelErQRJ/x7stN2C6YNYeIeVBGSB44KaGxSurHcBTa4OLOoMHO8nyEMXXvZ4r6rQ1gZ6Pj9IRKU1dv+dFYV7NI9TCZdVyO3w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=intel.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LULjVeueHakNG+vhlLn8dzsZ2NAv0WwrdyIeDL8auH8=; b=gwIAYCZn1E++9Nex1qkhIoHxNcCbpxei4MoJ7VMPlO1xYV4fLQnYuYRMOtQnGR/pjxIf/CLCYHc6TtXoZVOYlntqM0whj8LT+gUeDaaR9QL4sOJ46aUuCmXIG7/e30wN0dFqFrlRA9HR0Xef3QNBnwFc3d7HZf8eeqaHtLwevLA= Received: from DS7PR06CA0025.namprd06.prod.outlook.com (2603:10b6:8:54::31) by IA1PR12MB7543.namprd12.prod.outlook.com (2603:10b6:208:42d::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.42; Tue, 7 May 2024 07:16:10 +0000 Received: from DS1PEPF00017098.namprd05.prod.outlook.com (2603:10b6:8:54:cafe::78) by DS7PR06CA0025.outlook.office365.com (2603:10b6:8:54::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.41 via Frontend Transport; Tue, 7 May 2024 07:16:09 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DS1PEPF00017098.mail.protection.outlook.com (10.167.18.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7544.18 via Frontend Transport; Tue, 7 May 2024 07:16:09 +0000 Received: from pyuan-Chachani-VN.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 7 May 2024 02:16:02 -0500 From: Perry Yuan To: , , , , , CC: , , , , , Subject: [PATCH 05/11] Documentation: PM: amd-pstate: add debugging section for driver loading failure Date: Tue, 7 May 2024 15:15:21 +0800 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF00017098:EE_|IA1PR12MB7543:EE_ X-MS-Office365-Filtering-Correlation-Id: 2eb1dbcb-1ffc-4a10-dc5a-08dc6e6591db X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|376005|82310400017|36860700004|1800799015; X-Microsoft-Antispam-Message-Info: esM3+HrTmjlLzKyT0TpwLgAh1bc61Uv6lnOOlHRQ6g4LGyc1Wzi/19b6AkdL5gIlLFxfITby6A3DUnTZJ2suh7XRsHOq3AGKJI/HJn2GJ2ubcX8oRSYHM4R5qPKI9es6d2sRIsG8w8wygWoy6WsRzypBPoM+rvMeZqWQPKfhvrxVYDAwBdu6r1cRW0AospM/2xfhGjcSQz3bTi1VmZLcSKfHDSqB1CsPwxv6Rlpt1SkTyMDxfRmZaBj3Q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H8EgrQ4h1GjrkGJeWA6ZgghSk1AIpmXWa5xxdG7EM1iMia/oMf3DUqUbENj5ddLLFJYLnnZt+aHFOcEh45aUGS X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(376005)(82310400017)(36860700004)(1800799015); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2024 07:16:09.6843 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2eb1dbcb-1ffc-4a10-dc5a-08dc6e6591db X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF00017098.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB7543 To address issues with the loading of the amd-pstate driver on certain platforms, It needs to enable dynamic debugging to capture debug messages during the driver loading process. By adding "amd_pstate.dyndbg=+p cppc_acpi.dyndbg=+p loglevel=4 debug amd_pstate=active" to the kernel command line, driver debug logging is enabled. Signed-off-by: Perry Yuan --- Documentation/admin-guide/pm/amd-pstate.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/admin-guide/pm/amd-pstate.rst b/Documentation/admin-guide/pm/amd-pstate.rst index 2695feec1baa..230e236796f7 100644 --- a/Documentation/admin-guide/pm/amd-pstate.rst +++ b/Documentation/admin-guide/pm/amd-pstate.rst @@ -476,6 +476,19 @@ operations for the new ``amd-pstate`` module with this tool. :: Diagnostics and Tuning ======================= +Debugging AMD P-State Driver Loading Issues +------------------------------------------ + +On some platforms, there may be issues with the loading of the amd-pstate driver. +To capture debug messages for issue analysis, users can add below parameter, +"amd_pstate.dyndbg=+p cppc_acpi.dyndbg=+p loglevel=4 debug amd_pstate=active" +to the kernel command line. This will enable dynamic debugging and allow better +analysis and troubleshooting of the driver loading process. + +Please note that adding this parameter will only enable debug logging during the +driver loading phase and may affect system behavior. Use this option with caution +and only for debugging purposes. + Trace Events --------------