mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
msm: kgsl: Remove icc path from gmu device
Instead, use the pwr->icc_path as both are for gpu ddr voting. Change-Id: I0f2b1e49dde9433ee062bbf71d7197d8e2ea7a83 Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
This commit is contained in:
parent
e91214d3d4
commit
bc44733274
2 changed files with 4 additions and 9 deletions
|
|
@ -1390,8 +1390,6 @@ static int gmu_probe(struct kgsl_device *device, struct device_node *node)
|
|||
|
||||
gmu->num_gpupwrlevels = pwr->num_pwrlevels + 1;
|
||||
|
||||
gmu->icc_path = of_icc_get(&gmu->pdev->dev, NULL);
|
||||
|
||||
/* Populates RPMh configurations */
|
||||
ret = gmu_rpmh_init(device, gmu);
|
||||
if (ret)
|
||||
|
|
@ -1572,7 +1570,7 @@ static int gmu_start(struct kgsl_device *device)
|
|||
|
||||
/* Vote for minimal DDR BW for GMU to init */
|
||||
level = pwr->pwrlevels[pwr->default_pwrlevel].bus_min;
|
||||
icc_set_bw(gmu->icc_path, 0,
|
||||
icc_set_bw(pwr->icc_path, 0,
|
||||
MBps_to_icc(pwr->ddr_table[level]));
|
||||
|
||||
ret = gmu_dev_ops->rpmh_gpu_pwrctrl(device, GMU_FW_START,
|
||||
|
|
@ -1650,6 +1648,7 @@ static void gmu_stop(struct kgsl_device *device)
|
|||
{
|
||||
struct gmu_device *gmu = KGSL_GMU_DEVICE(device);
|
||||
struct gmu_dev_ops *gmu_dev_ops = GMU_DEVICE_OPS(device);
|
||||
struct kgsl_pwrctrl *pwr = &device->pwrctrl;
|
||||
int ret = 0;
|
||||
|
||||
if (!test_bit(GMU_CLK_ON, &device->gmu_core.flags))
|
||||
|
|
@ -1676,7 +1675,7 @@ static void gmu_stop(struct kgsl_device *device)
|
|||
gmu_disable_clks(device);
|
||||
gmu_disable_gdsc(gmu);
|
||||
|
||||
icc_set_bw(gmu->icc_path, 0, 0);
|
||||
icc_set_bw(pwr->icc_path, 0, 0);
|
||||
return;
|
||||
|
||||
error:
|
||||
|
|
@ -1710,8 +1709,6 @@ static void gmu_remove(struct kgsl_device *device)
|
|||
|
||||
clear_bit(ADRENO_ACD_CTRL, &adreno_dev->pwrctrl_flag);
|
||||
|
||||
icc_put(gmu->icc_path);
|
||||
|
||||
if (gmu->fw_image) {
|
||||
release_firmware(gmu->fw_image);
|
||||
gmu->fw_image = NULL;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
#ifndef __KGSL_GMU_H
|
||||
#define __KGSL_GMU_H
|
||||
|
|
@ -210,8 +210,6 @@ struct gmu_device {
|
|||
unsigned long kmem_bitmap;
|
||||
const struct gmu_vma_entry *vma;
|
||||
unsigned int log_wptr_retention;
|
||||
/** @icc_path: Interconnect path for the GMU */
|
||||
struct icc_path *icc_path;
|
||||
};
|
||||
|
||||
struct gmu_memdesc *gmu_get_memdesc(struct gmu_device *gmu,
|
||||
|
|
|
|||
Loading…
Reference in a new issue