Commit 803917f9 authored by Oded Gabbay's avatar Oded Gabbay
Browse files

habanalabs: set PM profile to auto only for goya



For Gaudi, the driver doesn't change the PM profile automatically due to
device-controlled PM capabilities. Therefore, set the PM profile to auto
only for Goya so the driver's code to automatically change the profile
won't run on Gaudi.

Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent e09498b0
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -410,7 +410,10 @@ int hl_sysfs_init(struct hl_device *hdev)
{
	int rc;

	if (hdev->asic_type == ASIC_GOYA)
		hdev->pm_mng_profile = PM_AUTO;
	else
		hdev->pm_mng_profile = PM_MANUAL;
	hdev->max_power = hdev->asic_prop.max_power_default;

	hdev->asic_funcs->add_device_attr(hdev, &hl_dev_clks_attr_group);