]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: add extra dc odm debug options
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Mon, 20 Mar 2023 20:47:21 +0000 (16:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Apr 2023 20:28:53 +0000 (16:28 -0400)
[Why & How]
Add options for dc odm debug.

Reviewed-by: Ariel Bernstein <Eric.Bernstein@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dc_stream.h

index 23ee63b98dcde28f2517653709bb094469f5cec3..3595149decebe6da2daf590b8dc64a7b170b6c4e 100644 (file)
@@ -879,6 +879,8 @@ struct dc_debug_options {
        uint32_t fpo_vactive_margin_us;
        bool disable_fpo_vactive;
        bool disable_boot_optimizations;
+       bool override_odm_optimization;
+       bool minimize_dispclk_using_odm;
 };
 
 struct gpu_info_soc_bounding_box_v1_0;
index 270282fbda4ab881e2219f4e1855999074df7a6e..0add5ecc895fad93340ec9608a692ec0e016b13b 100644 (file)
@@ -172,6 +172,10 @@ struct mall_temp_config {
        bool is_phantom_plane[MAX_PIPES];
 };
 
+struct dc_stream_debug_options {
+       char force_odm_combine_segments;
+};
+
 struct dc_stream_state {
        // sink is deprecated, new code should not reference
        // this pointer
@@ -182,6 +186,7 @@ struct dc_stream_state {
         * a stream via the volatile dc_state rather than the static dc_link.
         */
        struct link_encoder *link_enc;
+       struct dc_stream_debug_options debug;
        struct dc_panel_patch sink_patches;
        union display_content_support content_support;
        struct dc_crtc_timing timing;