Skip to contentSkip to conversation

Revert freesync video patches temporarily

PATCH In review Aurabindo Pillai 2 participants 2 messages Mar 7, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert freesync video patches temporarily

This temporarily reverts freesync video patches since it causes regression with eDP displays. This patch is a squashed revert of the following patches:

a372f4abecb1 drm/amd/display: Skip modeset for front porch change 952bc47fb2ca drm/amd/display: Add freesync video modes based on preferred modes d03ee581eee6 drm/amd/display: Add module parameter for freesync video mode

Signed-off-by Aurabindo Pillai <aurabindo.pillai at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu.h           |   1 -
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c       |  12 -
 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 369 ++----------------
 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h |   2 -
 4 files changed, 35 insertions(+), 349 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +0 -1
index 67279a40ab2c..a6b9b6aa5cd1 100644
@@ -185,7 +185,6 @@ extern int amdgpu_emu_mode;
 extern uint amdgpu_smu_memory_pool_size;
 extern int amdgpu_smu_pptable_id;
 extern uint amdgpu_dc_feature_mask;
-extern uint amdgpu_freesync_vid_mode;
 extern uint amdgpu_dc_debug_mask;
 extern uint amdgpu_dm_abm_level;
 extern int amdgpu_backlight;
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0 -12
index 865f924772b0..1eca88c23acb 100644
@@ -165,7 +165,6 @@ int amdgpu_mes;
 int amdgpu_noretry = -1;
 int amdgpu_force_asic_type = -1;
 int amdgpu_tmz = -1; /* auto */
-uint amdgpu_freesync_vid_mode;
 int amdgpu_reset_method = -1; /* auto */
 int amdgpu_num_kcq = -1;
 
@@ -823,17 +822,6 @@ module_param_named(backlight, amdgpu_backlight, bint, 0444);
 MODULE_PARM_DESC(tmz, "Enable TMZ feature (-1 = auto (default), 0 = off, 1 = on)");
 module_param_named(tmz, amdgpu_tmz, int, 0444);
 
-/**
- * DOC: freesync_video (uint)
- * Enabled the optimization to adjust front porch timing to achieve seamless mode change experience
- * when setting a freesync supported mode for which full modeset is not needed.
- * The default value: 0 (off).
- */
-MODULE_PARM_DESC(
-	freesync_video,
-	"Enable freesync modesetting optimization feature (0 = off (default), 1 = on)");
-module_param_named(freesync_video, amdgpu_freesync_vid_mode, uint, 0444);
-
 /**
  * DOC: reset_method (int)
  * GPU reset method (-1 = auto (default), 0 = legacy, 1 = mode0, 2 = mode1, 3 = mode2, 4 = baco, 5 = pci)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +35 -334

486 lines not on this page · raw message

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +0 -2
index dba2b5da25c1..c14604710ee7 100644
@@ -440,8 +440,6 @@ struct amdgpu_dm_connector {
 #endif
 	bool force_yuv420_output;
 	struct dsc_preferred_settings dsc_settings;
-	/* Cached display modes */
-	struct drm_display_mode freesync_vid_base;
 };
 
 #define to_amdgpu_dm_connector(x) container_of(x, struct amdgpu_dm_connector, base)
Signature · 6 lines
2.30.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx