Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B5159CD5BAC for ; Thu, 21 May 2026 15:53:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9DF6510E4BE; Thu, 21 May 2026 15:53:02 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="mxiKloMe"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by gabe.freedesktop.org (Postfix) with ESMTPS id C0F6910E4BE; Thu, 21 May 2026 15:53:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1779378782; x=1810914782; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bPqJSQ47GlWgp+pLethlMx4kvQobbYT6SsHYJLPahBA=; b=mxiKloMeAeYjHUj5N5bl5qMuSSM41EOiyNm+r2bPvcsj6EJ3UsnQUgU7 q5tmdRhK7lo41Qp+lfez+DTrhlaq0J/R7nBvfsioHeNlHgmtXuUs/v0Ll uEIEhdCVqxZJVbDPlBfyOMEn1iLu69GGr8nMzMJ5xipbCJIHRX4e5B30h Bouhc6qLejDPR5EDlqmKZ4Kh7B/AZ1Jh1/e+AiSpGizNPyzrDZT81Dw0z 3P9uMfAYhe3F+O+8pakO5xB6zyxG8ixrmXNrihL0Oyxa4NUU4VeLomL6P yYimyuEuJplbMOs+3CIQlq4ctEWOIKnLHzoBLMZbHUGzHuyY2lz6G3RoJ Q==; X-CSE-ConnectionGUID: 0TFq9JTvQIKmFSOyRwRhBA== X-CSE-MsgGUID: f0R61dDYQH6Vdhq5580+bQ== X-IronPort-AV: E=McAfee;i="6800,10657,11793"; a="80200365" X-IronPort-AV: E=Sophos;i="6.24,160,1774335600"; d="scan'208";a="80200365" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 May 2026 08:53:02 -0700 X-CSE-ConnectionGUID: Zh2TY45tTnmZKsKaQlHe+g== X-CSE-MsgGUID: 6tiEu6/XRtuJJT0mdo+1iw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,160,1774335600"; d="scan'208";a="244837733" Received: from dev-417.igk.intel.com ([10.91.214.181]) by orviesa004.jf.intel.com with ESMTP; 21 May 2026 08:52:59 -0700 From: =?UTF-8?q?Micha=C5=82=20Grzelak?= To: dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , =?UTF-8?q?Micha=C5=82=20Grzelak?= Subject: [PATCH v1 1/2] drm/print: describe 6th & 9th bit of drm.debug Date: Thu, 21 May 2026 17:52:30 +0200 Message-ID: <20260521155231.1821935-2-michal.grzelak@intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20260521155231.1821935-1-michal.grzelak@intel.com> References: <20260521155231.1821935-1-michal.grzelak@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Organization: Intel Technology Poland sp. z o.o. - ul. Slowackiego 173, 80-298 Gdansk - KRS 101882 - NIP 957-07-52-316 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Setting 6th or 9th bit of drm.debug change debug logging. Meanwhile `modinfo drm` does not inform about it at all. Add info to MODULE_PARAM_DESC(debug, ...) about setting 6th and 9th bit basing on DECLARE_DYNDBG_CLASSMAP(drm_debug_classes, ...). Match description of corresponding bits with enum drm_debug_category. Include 9th bit in the example with enabling all possible logging provided at comment at include/drm/drm_print.h. Signed-off-by: MichaƂ Grzelak --- drivers/gpu/drm/drm_print.c | 4 +++- include/drm/drm_print.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_print.c b/drivers/gpu/drm/drm_print.c index ded9461df5f2..86cef1a37678 100644 --- a/drivers/gpu/drm/drm_print.c +++ b/drivers/gpu/drm/drm_print.c @@ -50,8 +50,10 @@ MODULE_PARM_DESC(debug, "Enable debug output, where each bit enables a debug cat "\t\tBit 3 (0x08) will enable PRIME messages (prime code)\n" "\t\tBit 4 (0x10) will enable ATOMIC messages (atomic code)\n" "\t\tBit 5 (0x20) will enable VBL messages (vblank code)\n" +"\t\tBit 6 (0x40) will enable STATE messages (atomic state code)\n" "\t\tBit 7 (0x80) will enable LEASE messages (leasing code)\n" -"\t\tBit 8 (0x100) will enable DP messages (displayport code)"); +"\t\tBit 8 (0x100) will enable DP messages (displayport code)\n" +"\t\tBit 9 (0x200) will enable DRMRES messages (managed resources code)"); #if !defined(CONFIG_DRM_USE_DYNAMIC_DEBUG) module_param_named(debug, __drm_debug, ulong, 0600); diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h index ab017b05e175..2adc5ac688e1 100644 --- a/include/drm/drm_print.h +++ b/include/drm/drm_print.h @@ -87,7 +87,7 @@ extern unsigned long __drm_debug; * - drm.debug=0x2 will enable DRIVER messages * - drm.debug=0x3 will enable CORE and DRIVER messages * - ... - * - drm.debug=0x1ff will enable all messages + * - drm.debug=0x3ff will enable all messages * * An interesting feature is that it's possible to enable verbose logging at * run-time by echoing the debug value in its sysfs node:: -- 2.45.2