mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
Merge "msm: kgsl: Fix gpu boot ab vote"
This commit is contained in:
commit
99dd2f918c
2 changed files with 6 additions and 3 deletions
|
|
@ -35,9 +35,12 @@ static u32 _ab_buslevel_update(struct kgsl_pwrctrl *pwr,
|
|||
if (!ib)
|
||||
return 0;
|
||||
|
||||
/* In the absence of any other settings, make ab 25% of ib */
|
||||
/*
|
||||
* In the absence of any other settings, make ab 25% of ib
|
||||
* where the ib vote is in kbps
|
||||
*/
|
||||
if ((!pwr->bus_percent_ab) && (!pwr->bus_ab_mbytes))
|
||||
return 25 * ib / 100;
|
||||
return 25 * ib / 100000;
|
||||
|
||||
if (pwr->bus_width)
|
||||
return pwr->bus_ab_mbytes;
|
||||
|
|
|
|||
|
|
@ -1594,7 +1594,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(pwr->icc_path, 0,
|
||||
MBps_to_icc(pwr->ddr_table[level]));
|
||||
kBps_to_icc(pwr->ddr_table[level]));
|
||||
|
||||
ret = gmu_dev_ops->rpmh_gpu_pwrctrl(device, GMU_FW_START,
|
||||
GMU_COLD_BOOT, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue