summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHareesh Gundu <hareeshg@codeaurora.org>2017-08-24 20:20:56 +0530
committerHareesh Gundu <hareeshg@codeaurora.org>2017-08-25 21:15:17 +0530
commit99bada4303225f1362107eb00f20f7a7c36ea72c (patch)
tree72b0c3ce83beabf64d055f6fe1986b4b825518fb
parentc8e37b5935c42a8dc17d88dc98679333882ae697 (diff)
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: Hareesh Gundu <hareeshg@codeaurora.org>
-rw-r--r--drivers/gpu/msm/adreno.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/msm/adreno.c b/drivers/gpu/msm/adreno.c
index 7cab049771de..68c03f768270 100644
--- a/drivers/gpu/msm/adreno.c
+++ b/drivers/gpu/msm/adreno.c
@@ -807,13 +807,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;
@@ -829,6 +829,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;
}