diff options
author | Sidath Senanayake <sidaths@google.com> | 2021-05-06 18:04:21 +0100 |
---|---|---|
committer | TreeHugger Robot <treehugger-gerrit@google.com> | 2021-05-07 17:55:02 +0000 |
commit | 137e7eaf61622f88881c4f7baadee30e66768a5a (patch) | |
tree | 7f3c512d16344120229498fe4c27b83ec9649d6e /mali_pixel/memory_group_manager.c | |
parent | 0421b9bcae29eaf9caaa5f7c762a2cc13a570ed4 (diff) | |
download | gpu-137e7eaf61622f88881c4f7baadee30e66768a5a.tar.gz |
Revert "mali_pixel: mgm: Write G3D register to enable IO coherency support"
This reverts commit 7d0cf853af75b22c0ef4181faa835eb5d8003af0.
Bug: 180905345
Change-Id: Ia1c077065ec1a821131c38994424b7a6314d1e08
Diffstat (limited to 'mali_pixel/memory_group_manager.c')
-rw-r--r-- | mali_pixel/memory_group_manager.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/mali_pixel/memory_group_manager.c b/mali_pixel/memory_group_manager.c index f08e8d5..378fc7a 100644 --- a/mali_pixel/memory_group_manager.c +++ b/mali_pixel/memory_group_manager.c @@ -10,12 +10,12 @@ /* Turn this on for more debug */ //#define DEBUG + #include <linux/atomic.h> #ifdef CONFIG_DEBUG_FS #include <linux/debugfs.h> #endif #include <linux/fs.h> -#include <linux/io.h> #include <linux/kobject.h> #include <linux/mm.h> #include <linux/module.h> @@ -669,18 +669,6 @@ static void mgm_term_data(struct mgm_groups *data) mgm_sysfs_term(data); } -static void mgm_initialize_g3d_regs() -{ - /* In order to advertise the availability of ACE Lite (IO coherency) to - * the GPU, we need to write a register in G3D. We write the value 1 to - * indicate that ACE Lite is available. - */ - #define G3D_COHERENCY_FEATURES_REG (0x1c420400) - void __iomem *g3d_coherency_features; - g3d_coherency_features = ioremap(G3D_COHERENCY_FEATURES_REG, 4); - __raw_writel(0x1, g3d_coherency_features); -} - static int memory_group_manager_probe(struct platform_device *pdev) { struct memory_group_manager_device *mgm_dev; @@ -715,8 +703,6 @@ static int memory_group_manager_probe(struct platform_device *pdev) return ret; } - mgm_initialize_g3d_regs(); - platform_set_drvdata(pdev, mgm_dev); dev_info(&pdev->dev, "Memory group manager probed successfully\n"); |