Skip to content

Commit 040585d

Browse files
Aurabindo Pillaialexdeucher
authored andcommitted
drm/amd/display: Reuse Subvp debug option for FAMS
FAMS is the successor to SubVP starting with DCN4x. Reuse the same debug option to disable FAMS for debugging purposes. Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 1b824ee commit 040585d

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2000,8 +2000,10 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
20002000
if (amdgpu_dc_debug_mask & DC_FORCE_SUBVP_MCLK_SWITCH)
20012001
adev->dm.dc->debug.force_subvp_mclk_switch = true;
20022002

2003-
if (amdgpu_dc_debug_mask & DC_DISABLE_SUBVP)
2003+
if (amdgpu_dc_debug_mask & DC_DISABLE_SUBVP_FAMS) {
20042004
adev->dm.dc->debug.force_disable_subvp = true;
2005+
adev->dm.dc->debug.fams2_config.bits.enable = false;
2006+
}
20052007

20062008
if (amdgpu_dc_debug_mask & DC_ENABLE_DML2) {
20072009
adev->dm.dc->debug.using_dml2 = true;

drivers/gpu/drm/amd/include/amd_shared.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,10 @@ enum DC_DEBUG_MASK {
351351
DC_DISABLE_HDMI_CEC = 0x10000,
352352

353353
/**
354-
* @DC_DISABLE_SUBVP: If set, disable DCN Sub-Viewport feature in amdgpu driver.
354+
* @DC_DISABLE_SUBVP_FAMS: If set, disable DCN Sub-Viewport & Firmware Assisted
355+
* Memory Clock Switching (FAMS) feature in amdgpu driver.
355356
*/
356-
DC_DISABLE_SUBVP = 0x20000,
357+
DC_DISABLE_SUBVP_FAMS = 0x20000,
357358
/**
358359
* @DC_DISABLE_CUSTOM_BRIGHTNESS_CURVE: If set, disable support for custom brightness curves
359360
*/

0 commit comments

Comments
 (0)