From patchwork Tue Oct 17 20:52:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Govindapillai, Vinod" X-Patchwork-Id: 13426126 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 A611ECDB474 for ; Tue, 17 Oct 2023 20:53:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1209110E32C; Tue, 17 Oct 2023 20:53:07 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0D64010E32C for ; Tue, 17 Oct 2023 20:53:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697575985; x=1729111985; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=42oPbByZEK6MGlws0E7L3zzGCN6jn/9898JNIPGIOhA=; b=AMuqE642Me/QBwjknJoUSAZwDWhPb6f3pXkip0eJnJvTSBo96k0NnsWI NkbS3L2adGxS5Tp1Lr6kSj9y3wQaHUUOnmXsLO8zpEoQpehiG6q6BASdv MFWoiuCVvfoCFR/wlxA0YwqIUWk3y+lfMGHdiG2o9X5F3I7S/yoOVYMCe E06BOWRRsUnYuuyfdfN1k5dtxXFJk9dbvi7EUC/vje310uCFNvlCEqZbm qB0K5AtQy4gQmJbJ9FIoyeWgfSQaP0nfiyBubNEmcpA7zOA8CIOUk6TBq g7OiifT1R05dl6gfWbl2u2Nz3TBPF8GxiUFyZSphpqe+yET8+C02ZMhuX Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="452352862" X-IronPort-AV: E=Sophos;i="6.03,233,1694761200"; d="scan'208";a="452352862" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2023 13:53:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="879933745" X-IronPort-AV: E=Sophos;i="6.03,233,1694761200"; d="scan'208";a="879933745" Received: from pvanderz-mobl.ger.corp.intel.com (HELO vgovind2-mobl3.intel.com) ([10.249.38.156]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2023 13:53:02 -0700 From: Vinod Govindapillai To: intel-gfx@lists.freedesktop.org Date: Tue, 17 Oct 2023 23:52:49 +0300 Message-Id: <20231017205249.129601-2-vinod.govindapillai@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231017205249.129601-1-vinod.govindapillai@intel.com> References: <20231017205249.129601-1-vinod.govindapillai@intel.com> MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Subject: [Intel-gfx] [PATCH v3 1/1] drm/i915/display: debugfs entry to list display capabilities X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Create a separate debugfs entry to list the display capabilities IGT can rely on this debugfs entry for tests that depend on display device and display runtime info for both xe and i915 drivers. v2: rename the entry to i915_display_capabilities (Chaitanya) Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c b/drivers/gpu/drm/i915/display/intel_display_debugfs.c index fbe75d47a165..b0248dfa8dea 100644 --- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c +++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c @@ -641,6 +641,17 @@ static int i915_display_info(struct seq_file *m, void *unused) return 0; } +static int i915_display_capabilities(struct seq_file *m, void *unused) +{ + struct drm_i915_private *i915 = node_to_i915(m->private); + struct drm_printer p = drm_seq_file_printer(m); + + intel_display_device_info_print(DISPLAY_INFO(i915), + DISPLAY_RUNTIME_INFO(i915), &p); + + return 0; +} + static int i915_shared_dplls_info(struct seq_file *m, void *unused) { struct drm_i915_private *dev_priv = node_to_i915(m->private); @@ -1059,6 +1070,7 @@ static const struct drm_info_list intel_display_debugfs_list[] = { {"i915_gem_framebuffer", i915_gem_framebuffer_info, 0}, {"i915_power_domain_info", i915_power_domain_info, 0}, {"i915_display_info", i915_display_info, 0}, + {"i915_display_capabilities", i915_display_capabilities, 0}, {"i915_shared_dplls_info", i915_shared_dplls_info, 0}, {"i915_dp_mst_info", i915_dp_mst_info, 0}, {"i915_ddb_info", i915_ddb_info, 0},