Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH v4 1/2] lib/amdgpu: Add check for ODM combine segments debugfs endpoint
@ 2023-08-21 14:07 Aurabindo Pillai
  2023-08-21 14:07 ` [igt-dev] [PATCH v4 2/2] tests/amdgpu: Add test for ODM combine Aurabindo Pillai
                   ` (9 more replies)
  0 siblings, 10 replies; 19+ messages in thread
From: Aurabindo Pillai @ 2023-08-21 14:07 UTC (permalink / raw)
  To: igt-dev; +Cc: hersenxs.wu

Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
---
 lib/igt_amd.c | 10 ++++++++++
 lib/igt_amd.h |  4 ++++
 2 files changed, 14 insertions(+)

diff --git a/lib/igt_amd.c b/lib/igt_amd.c
index 83011e8ca..1a720ff56 100644
--- a/lib/igt_amd.c
+++ b/lib/igt_amd.c
@@ -325,6 +325,16 @@ static bool igt_amd_output_has_dsc(int drm_fd, char *connector_name)
 	return igt_amd_output_has_debugfs(drm_fd, connector_name, DEBUGFS_DSC_CLOCK_EN);
 }
 
+/**
+ * igt_amd_output_has_odm_combine_segments: check if connector has dsc debugfs entry
+ * @drm_fd: DRM file descriptor
+ * @connector_name: The connector's name, on which we're reading the status
+ */
+bool igt_amd_output_has_odm_combine_segments(int drm_fd, char *connector_name)
+{
+	return igt_amd_output_has_debugfs(drm_fd, connector_name, DEBUGFS_ODM_COMBINE_SEG);
+}
+
 /**
  * is_dp_dsc_supported: Checks if connector is DSC capable
  * @display: A pointer to an #igt_display_t structure
diff --git a/lib/igt_amd.h b/lib/igt_amd.h
index 6f538a195..c05b4b730 100644
--- a/lib/igt_amd.h
+++ b/lib/igt_amd.h
@@ -54,6 +54,9 @@
 #define DEBUGFS_DM_VISUAL_CONFIRM "amdgpu_dm_visual_confirm"
 #define DEBUGFS_DM_CAPABILITIES "amdgpu_dm_capabilities"
 
+/* ODM Combine */
+#define DEBUGFS_ODM_COMBINE_SEG "odm_combine_segments"
+
 enum amd_dsc_clock_force {
 	DSC_AUTOMATIC = 0,
 	DSC_FORCE_ON,
@@ -197,4 +200,5 @@ int  igt_amd_get_visual_confirm(int drm_fd);
 bool igt_amd_set_visual_confirm(int drm_fd, enum amdgpu_debug_visual_confirm option);
 
 bool igt_amd_is_mall_capable(int drm_fd);
+bool igt_amd_output_has_odm_combine_segments(int drm_fd, char *connector_name);
 #endif /* IGT_AMD_H */
-- 
2.41.0

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2023-08-23 13:38 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-21 14:07 [igt-dev] [PATCH v4 1/2] lib/amdgpu: Add check for ODM combine segments debugfs endpoint Aurabindo Pillai
2023-08-21 14:07 ` [igt-dev] [PATCH v4 2/2] tests/amdgpu: Add test for ODM combine Aurabindo Pillai
2023-08-21 15:39   ` Alex Hung
2023-08-21 20:18     ` Aurabindo Pillai
2023-08-22 19:45       ` Kamil Konieczny
2023-08-22 20:18         ` Aurabindo Pillai
2023-08-23  8:02           ` Kamil Konieczny
2023-08-23 13:38             ` Aurabindo Pillai
2023-08-21 15:38 ` [igt-dev] [PATCH v4 1/2] lib/amdgpu: Add check for ODM combine segments debugfs endpoint Alex Hung
2023-08-21 17:58 ` [igt-dev] ✗ GitLab.Pipeline: warning for series starting with [v4,1/2] " Patchwork
2023-08-21 18:23 ` [igt-dev] ○ CI.xeBAT: info " Patchwork
2023-08-21 18:40 ` [igt-dev] ✗ Fi.CI.BAT: failure " Patchwork
2023-08-22 18:17 ` [igt-dev] ✗ GitLab.Pipeline: warning for series starting with [v4,1/2] lib/amdgpu: Add check for ODM combine segments debugfs endpoint (rev4) Patchwork
2023-08-22 18:46 ` [igt-dev] ○ CI.xeBAT: info " Patchwork
2023-08-22 18:55 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2023-08-22 23:29 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-08-23  8:05   ` Kamil Konieczny
2023-08-23 10:26     ` Yedireswarapu, SaiX Nandan
2023-08-23 10:07 ` [igt-dev] ✓ Fi.CI.IGT: success " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox