Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 369283bf authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/radeon/kv: add uvd/vce info to dpm debugfs output



Track whether UVD or VCE are enabled in debugfs.

Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 3e15c353
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2773,6 +2773,8 @@ void kv_dpm_debugfs_print_current_performance_level(struct radeon_device *rdev,
		tmp = (RREG32_SMC(SMU_VOLTAGE_STATUS) & SMU_VOLTAGE_CURRENT_LEVEL_MASK) >>
			SMU_VOLTAGE_CURRENT_LEVEL_SHIFT;
		vddc = kv_convert_8bit_index_to_voltage(rdev, (u16)tmp);
		seq_printf(m, "uvd    %sabled\n", pi->uvd_power_gated ? "dis" : "en");
		seq_printf(m, "vce    %sabled\n", pi->vce_power_gated ? "dis" : "en");
		seq_printf(m, "power level %d    sclk: %u vddc: %u\n",
			   current_index, sclk, vddc);
	}