Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp218845lqp; Tue, 11 Jun 2024 02:19:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVaor+Ot1bZ4KP2GQWuK9UTcZZe7yQh4KfgNNE3GzYd4pkDaGpL2+AesLK55Nzv4yJOCuqNGIQ9yTR2o85G0h46UQLa9gUFcaIa12BM8w== X-Google-Smtp-Source: AGHT+IEfFcuIkBgCEu3w5ZxuTHFn1WOT2G/MQ4zpCKBX41ovFDkYolKBB4k5GTcZwfogyX6VrLrM X-Received: by 2002:a05:6870:55ca:b0:254:a9bd:70b2 with SMTP id 586e51a60fabf-254a9bdcf5cmr7910173fac.59.1718097590281; Tue, 11 Jun 2024 02:19:50 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-70424851070si5610379b3a.269.2024.06.11.02.19.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 02:19:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209520-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=@amd.com header.s=selector1 header.b=oVMDevH9; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-209520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209520-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.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 C8234B27D41 for ; Tue, 11 Jun 2024 08:54:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C48E2178CFD; Tue, 11 Jun 2024 08:53:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="oVMDevH9" 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 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: =?us-ascii?Q?5RmWTZucnSnWeoF+EUZa87wtjBv6MW0M8CqJw3UBCq4HOJzu6IzV8xek0zrf?= =?us-ascii?Q?/gDViOICeYKNM+I0E3F9FGFAppHKZUOKV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ascii?Q?J+4RHoS3cgXjzB00EteVNXcwzQyfYtIrU9TN8hCitV4Vy9mvlAXISZiaTKp6?= =?us-ascii?Q?vmOzKI0N++JP1Tb0NyPwp9797MDD0/Ld3LUtCd1Lx51d2yJvWOKpMoLL+uXX?= =?us-ascii?Q?6UmSLm2uGRoAeIb/9ECyovpqyD0vKcOy4cl2+JlmjolKxc6oZlvaRHj8+Agf?= =?us-ascii?Q?DgODObhLEoC/3T9zh17puk5uruftwsbwQrQoZVpa/wjpT0cg2NJ5mHYHbZBJ?= =?us-ascii?Q?/HzH54Sz1gLKRf9crGWZOimkTJdcxmipZKYdt91KO88q8TyAgpDMr9RLXE5/?= =?us-ascii?Q?+0V9a8Q3KUkhivqojTPPBWjTh9vCa0ZH4x0sd2qvW1wUP3QHir7iMJF2YcZs?= =?us-ascii?Q?3COHbTUxb12Khb6cm4u8WaNsbQv0yLSnYzGO6IjXjKjlUYl/4XMTvws+SvSH?= =?us-ascii?Q?w2qZrAQSjA8oWbfznjtrIJ6l/ZsES6qnyfLoK3TIlZijV8HnwA=3D=3D?= 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 -------------- -- 2.34.1