From patchwork Wed Oct 18 10:27:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Govindapillai, Vinod" X-Patchwork-Id: 13426829 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 35A5BCDB482 for ; Wed, 18 Oct 2023 10:27:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3D8D710E3D0; Wed, 18 Oct 2023 10:27:45 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 009CC10E3B5 for ; Wed, 18 Oct 2023 10:27:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697624861; x=1729160861; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=42oPbByZEK6MGlws0E7L3zzGCN6jn/9898JNIPGIOhA=; b=hyhz+9uff0rvpz7q6eGY0gmREMrIv1Ek6W4GfALxo5BVmm29g+zN3UI/ X6CN9qratuyV/bp2aKBuhUSFB0LPLhrDIkmhTiEPVo2WrNKRIkoAi429L K4w3uyGtqLCHoisUEjTea84iSdbvVXP3t/q3vD1qLsZ2yDe1Wx0ungOXS ltaLezIKDOXQ7Whx3M6hfSKRYhxwJngfOz1i0o1jNmn1p92lvslldEnPZ HUXbpdHdq6a+toQX+X59UJF2/w7Bt4DQrVlJcXdn6VCb9WsW0DXsrnlx+ o7Acf++NK2TWdPikI2EsllYStL6GYSBWmnBfDzzr8RwRYj0mahdyUHUjF g==; X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="452453260" X-IronPort-AV: E=Sophos;i="6.03,234,1694761200"; d="scan'208";a="452453260" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 03:27:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="822393336" X-IronPort-AV: E=Sophos;i="6.03,234,1694761200"; d="scan'208";a="822393336" Received: from feyang-mobl.ger.corp.intel.com (HELO vgovind2-mobl3.intel.com) ([10.252.44.154]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 03:27:38 -0700 From: Vinod Govindapillai To: intel-gfx@lists.freedesktop.org Date: Wed, 18 Oct 2023 13:27:22 +0300 Message-Id: <20231018102723.16915-2-vinod.govindapillai@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231018102723.16915-1-vinod.govindapillai@intel.com> References: <20231018102723.16915-1-vinod.govindapillai@intel.com> MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Subject: [Intel-gfx] [PATCH v4 1/2] 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 Reviewed-by: Chaitanya Kumar Borah --- 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}, From patchwork Wed Oct 18 10:27:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Govindapillai, Vinod" X-Patchwork-Id: 13426828 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 DDBD2CDB47E for ; Wed, 18 Oct 2023 10:27:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 54B7510E3CE; Wed, 18 Oct 2023 10:27:44 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id D1B9010E3CE for ; Wed, 18 Oct 2023 10:27:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697624862; x=1729160862; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/glehC1cqQX+ltiPy+EGxoW7m0ABEHGtNLaJ8Lx+OGw=; b=UN/kwwJLS+CtS5AJ7vCcTs9WSckq4cLa9JcCuff3ImT72SOY0RbArTQL xwK7AjaUSOdN7+dP6YAO1+6ExzUr+RwRwgf+4yguL61KC7JicRTO7A6kQ yMEcv5BfpUN6bHCOp4v6QXHlE5Tqm4RO6Mh79jGIpIi0dW5zBNNY9XoSZ nz8OIYXt0aoDkLlxiwXYUBFn9+OoNuH5zB/pMyaeV5+uRuk5+BSPxhbxD B0oAp+MAhrTXbWbfiK5BHWhf8iOb8Q0WLcWcZ2lPGObpTdnDSUjqKirvT HoOXNLmDIWWWo35+uHINio0SPt/0FSyd8swriOorepZKIrgFf0grJ3oPB A==; X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="452453264" X-IronPort-AV: E=Sophos;i="6.03,234,1694761200"; d="scan'208";a="452453264" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 03:27:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="822393362" X-IronPort-AV: E=Sophos;i="6.03,234,1694761200"; d="scan'208";a="822393362" Received: from feyang-mobl.ger.corp.intel.com (HELO vgovind2-mobl3.intel.com) ([10.252.44.154]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 03:27:40 -0700 From: Vinod Govindapillai To: intel-gfx@lists.freedesktop.org Date: Wed, 18 Oct 2023 13:27:23 +0300 Message-Id: <20231018102723.16915-3-vinod.govindapillai@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231018102723.16915-1-vinod.govindapillai@intel.com> References: <20231018102723.16915-1-vinod.govindapillai@intel.com> MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Subject: [Intel-gfx] [PATCH v4 2/2] drm/i915: remove display device info from i915 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" Display device and display runtime info is exposed as part of i915_display_capabilities debugfs entry. Remove this information from i915_ capabilities as it is now reduntant. Signed-off-by: Vinod Govindapillai Reviewed-by: Chaitanya Kumar Borah --- drivers/gpu/drm/i915/i915_debugfs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index e9b79c2c37d8..bb48feb3b12e 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -67,7 +67,6 @@ static int i915_capabilities(struct seq_file *m, void *data) seq_printf(m, "pch: %d\n", INTEL_PCH_TYPE(i915)); intel_device_info_print(INTEL_INFO(i915), RUNTIME_INFO(i915), &p); - intel_display_device_info_print(DISPLAY_INFO(i915), DISPLAY_RUNTIME_INFO(i915), &p); i915_print_iommu_status(i915, &p); intel_gt_info_print(&to_gt(i915)->info, &p); intel_driver_caps_print(&i915->caps, &p);