drm/amd/display: HP Reverb G2 VR fails to light up
authorAric Cyr <aric.cyr@amd.com>
Tue, 1 Dec 2020 16:25:50 +0000 (11:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Dec 2020 16:33:39 +0000 (11:33 -0500)
[Why]
Many VR headsets require a HSYNC width of 4, but DCN
has default minimum of 8.

[How]
Change the arbitrary minimum HSYNC width to 4 to match
DCN20.

Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.c

index 82bc4e1..915fbb8 100644 (file)
@@ -1268,7 +1268,7 @@ void dce120_timing_generator_construct(
        tg110->min_h_front_porch = 0;
        tg110->min_h_back_porch = 0;
 
-       tg110->min_h_sync_width = 8;
+       tg110->min_h_sync_width = 4;
        tg110->min_v_sync_width = 1;
        tg110->min_v_blank = 3;
 }
index a125d3f..48ccdcc 100644 (file)
@@ -1540,7 +1540,7 @@ void dcn10_timing_generator_init(struct optc *optc1)
        optc1->min_h_blank = 32;
        optc1->min_v_blank = 3;
        optc1->min_v_blank_interlace = 5;
-       optc1->min_h_sync_width = 8;
+       optc1->min_h_sync_width = 4;
        optc1->min_v_sync_width = 1;
 }
 
index b1f228f..3ba3991 100644 (file)
@@ -350,7 +350,7 @@ void dcn30_timing_generator_init(struct optc *optc1)
        optc1->min_h_blank = 32;
        optc1->min_v_blank = 3;
        optc1->min_v_blank_interlace = 5;
-       optc1->min_h_sync_width = 8;
+       optc1->min_h_sync_width = 4;
        optc1->min_v_sync_width = 1;
 }