From e6dda0b9d970f06f9e7b54c4a7d6fedefa13cb1c Mon Sep 17 00:00:00 2001 From: Zhen Chen Date: Thu, 14 Jun 2018 20:39:17 +0800 Subject: [PATCH] MALI: bifrost_for_linux: add "2EE" in the output of catting sys node "gpuinfo" Indeed, "2EE" is hardcoded, it's not a good way. But I could not find a way to get the number of EE(s) at runtime right now. Change-Id: I15afe580d194c0d8354953fe877ac1d2882826c5 Signed-off-by: Zhen Chen --- drivers/gpu/arm/bifrost_for_linux/mali_kbase_core_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/arm/bifrost_for_linux/mali_kbase_core_linux.c b/drivers/gpu/arm/bifrost_for_linux/mali_kbase_core_linux.c index f02c6614daaa..d45a7f971742 100644 --- a/drivers/gpu/arm/bifrost_for_linux/mali_kbase_core_linux.c +++ b/drivers/gpu/arm/bifrost_for_linux/mali_kbase_core_linux.c @@ -3204,7 +3204,7 @@ static ssize_t kbase_show_gpuinfo(struct device *dev, } } - return scnprintf(buf, PAGE_SIZE, "%s %d cores r%dp%d 0x%04X\n", + return scnprintf(buf, PAGE_SIZE, "%s %d cores 2EE r%dp%d 0x%04X\n", product_name, kbdev->gpu_props.num_cores, (gpu_id & GPU_ID_VERSION_MAJOR) >> GPU_ID_VERSION_MAJOR_SHIFT, (gpu_id & GPU_ID_VERSION_MINOR) >> GPU_ID_VERSION_MINOR_SHIFT,