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

Commit 7d53652c authored by Hareesh Gundu's avatar Hareesh Gundu Committed by Lynus Vaz
Browse files

msm: kgsl: Add debug log in adreno_of_get_pwrlevels()



Add debug log to dump the GPU speed bin value incase probe
fails due to efused bin value mismatch with speed bin value.

Change-Id: I329523f8dbb82272418981a54a1c2e6cf5e90b85
Signed-off-by: default avatarHareesh Gundu <hareeshg@codeaurora.org>
parent 72f43fe6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -835,13 +835,13 @@ static int adreno_of_get_pwrlevels(struct adreno_device *adreno_dev,
		struct device_node *parent)
{
	struct device_node *node, *child;
	unsigned int bin = 0;

	node = of_find_node_by_name(parent, "qcom,gpu-pwrlevel-bins");
	if (node == NULL)
		return adreno_of_get_legacy_pwrlevels(adreno_dev, parent);

	for_each_child_of_node(node, child) {
		unsigned int bin;

		if (of_property_read_u32(child, "qcom,speed-bin", &bin))
			continue;
@@ -857,6 +857,8 @@ static int adreno_of_get_pwrlevels(struct adreno_device *adreno_dev,
		}
	}

	KGSL_CORE_ERR("GPU speed_bin:%d mismatch for efused bin:%d\n",
			adreno_dev->speed_bin, bin);
	return -ENODEV;
}