From patchwork Tue Jun 11 08:52: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: 13693301 X-Patchwork-Delegate: mario.limonciello@amd.com Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2048.outbound.protection.outlook.com [40.107.92.48]) (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 15D28178394; Tue, 11 Jun 2024 08:53:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.92.48 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718095985; cv=fail; b=S0NyKmdcv/Hd7M1ha3jHrezzCKy2khwcF2YLGSUqLMNg0OhjXDnhCE/qWvMFgkS6WNuEHvDBx731dBtiHx7TXmaM1o9Kq0gJL9WeyjbghKpcZTvc7giO1AeLtJerWd4LZ7lnhEa016+LBmsABQvQgjKrx63eNUtokURez/xRk00= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718095985; c=relaxed/simple; bh=cOXMENuVdaADztOx21wcB1GoqOtFGByhFz28UNsMN+E=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=S/5gD+qz0JzJ12wPRJfPC8q8ggIzeVLqz7pJVPPIk6gnMvFAwK3FVevyKBsGZLe4dN67qW9eTQh0B45+w0hNeT3F10gS8t1NtmmtqD5F2QvWApULXtHyUsMqoeIy+9T1VtYkC1OAuOqlI1TPVQk6RWpafJvdvCb2s5uLNMKZSFo= 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=oVMDevH9; arc=fail smtp.client-ip=40.107.92.48 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="oVMDevH9" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KVwhVnRYYYtdJkSNhRnUEwR5sFH9Q7XfzKgSWOKmP4XILXDH7JLkyIbef4DLneSQGIleXHgMf3p/d2HknHZJwKUAJjTzT8qaWFoX9BUuKp8LvqRBscof8l4VWmOloF9gAYJU5MrhA53+tKmfpESL2DpT46Z6EYgEOn/ZDEqjqEi600UsR2brAGLZxggqw+hBn/R/6Q0JETQm0jljYZz9Z+MXFoWvk2bVKBo2yToOtpexdfaI/Gu90uB2ba9IDhwEELaYzaCJaXsZHzXG8rv9CueCW2RclQI2WDZo+burhfLyoHogX2QlztfxgjcryxSOGbl/FL5VqPhAh8yEKFuRnQ== 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=EOf+kiEqDJ4292Jkplvh6XWxS5iJPzeS85DFnIYQ+ac=; b=KG1kSSk2mt4vdaobj+ERQsQJL3/C8lZLbYntcge3u5Ic4dWDpJ/W2X19vDntJauLrtOmTOTL/Pp3/62ceycXgHX5FjSYEXoPfS+nYuU6eZ7N6jkCY8REQmOkDBZJlXajFM84IwmtSJ2n7LukoxAH4GFPeihRBPkF3n03lRDkH19fZ7RKit8IoK2h6y9XZ4fYVdJPTSQG5jul/ard6PaqxDSKFDSRIs3/tAdmNvCSeoKv+pj9OxnGP6huzPHOVjSs/5LbdllMwM6+Pt7FGrk/EaNhCW1oI+4yiRnkHAqPOrJJZXgQtuGvzjtuwoP9wEeYQLLUfAI/NSDl2J87xa0uqA== 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=EOf+kiEqDJ4292Jkplvh6XWxS5iJPzeS85DFnIYQ+ac=; b=oVMDevH9Z/HomUgkyY1jO5JpyFlZLsBjsy0ESvz4qkR3+Cqh8k+k9WnKQ/TTiaLvTNFQ4BmDU+QEoJcZr9jcVHeHTKDPmWrVJAKzMB/cSsvQ1eHXGhyUGfeTOdXkhzWbqp5qsJ5TS3jQY38t77q7nsCnx+YBSmOiN309yC+LEF4= Received: from SA1P222CA0172.NAMP222.PROD.OUTLOOK.COM (2603:10b6:806:3c3::28) by DM6PR12MB4402.namprd12.prod.outlook.com (2603:10b6:5:2a5::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Tue, 11 Jun 2024 08:53:00 +0000 Received: from SN1PEPF000397B5.namprd05.prod.outlook.com (2603:10b6:806:3c3:cafe::12) by SA1P222CA0172.outlook.office365.com (2603:10b6:806:3c3::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7656.25 via Frontend Transport; Tue, 11 Jun 2024 08:53:00 +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 SN1PEPF000397B5.mail.protection.outlook.com (10.167.248.59) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7677.15 via Frontend Transport; Tue, 11 Jun 2024 08:53:00 +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.39; Tue, 11 Jun 2024 03:52:56 -0500 From: Perry Yuan To: , CC: , , , , , , , , , Subject: [PATCH v3 05/10] Documentation: PM: amd-pstate: add debugging section for driver loading failure Date: Tue, 11 Jun 2024 16:52:21 +0800 Message-ID: <18032dece7cb9089bf82f2b37c7ab781148d70be.1718095377.git.perry.yuan@amd.com> 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: SN1PEPF000397B5:EE_|DM6PR12MB4402:EE_ X-MS-Office365-Filtering-Correlation-Id: e0b88511-06f9-4297-97ee-08dc89f3e58d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|36860700004|82310400017|376005|1800799015; X-Microsoft-Antispam-Message-Info: 5RmWTZucnSnWeoF+EUZa87wtjBv6MW0M8CqJw3UBCq4HOJzu6IzV8xek0zrf/gDViOICeYKNM+I0E3F9FGFAppHKZUOKVabbcBbeCZlq0aDGcWTqvbXzU/Bs/Mx/S3+GrLlsKA7OZCahCHNeJX62brS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9crGWZOimkTJdcxmipZKYdt91KO88q8TyAgpDMr9RLXE5/+0V9a8Q3KUkhivqojTPPBWjTh9vCa0ZH4x0sd2qvW1wUP3QHir7iMJF2YcZs3COHbTUxb12Khb6cm4u8WaNsbQv0yLSnYzGO6IjXjKjlUYl/4XMTvws+SvSHw2qZrAQSjA8oWbfznjtrIJ6l/ZsES6qnyfLoK3TIlZijV8HnwA== 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)(36860700004)(82310400017)(376005)(1800799015);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2024 08:53:00.0306 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e0b88511-06f9-4297-97ee-08dc89f3e58d 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: SN1PEPF000397B5.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4402 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 1e0d101b020a..de83e742738e 100644 --- a/Documentation/admin-guide/pm/amd-pstate.rst +++ b/Documentation/admin-guide/pm/amd-pstate.rst @@ -472,6 +472,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 debug" +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 --------------