Commit Graph

7 Commits

Author SHA1 Message Date
Lucille Sylvester 4fa91be7e4 msm: kgsl: Add a path for dynamic AB bus votes
Modify the power control code and vbif_bw governor
to allow dynamic AB votes to be set with each GPU
IB vote.  As a placeholder set a static AB vote of
one fourth the IB vote.

Change-Id: I3edb430f9a4545f008ec81b75ddff3c717e91e39
Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
2014-12-01 10:46:39 -07:00
Vladimir Razgulin b8004afbcb PM/devfreq: Add bw_vbif governor
This governor should be used by KGSL driver to vote for msm bus
bandwidth using devbw devices.

KGSL driver needs to register a callback function that returns
required IB value, and call devfreq_vbif_update_bw() function
any time it want to vote for bus bandwidth.

Change-Id: I6c7c08b7c3255b3793f1868d9cde604175093145
Signed-off-by: Vladimir Razgulin <vrazguli@codeaurora.org>
2014-09-15 11:52:48 -06:00
Vladimir Razgulin 412c7fb6b8 msm: kgsl: Split BMC code to a separate devfreq governor
The existing devfreq governor_msm_adreno_tz supports both GPU DCVS and BMC
(Bus Modification Calculation) at the same time. This change splits BMC
code into a new governor_gpubw_mon.

Change-Id: Ie7162985e994aa5bed0fb41eb2741a811cf8bd56
Signed-off-by: Vladimir Razgulin <vrazguli@codeaurora.org>
2014-07-28 19:54:44 -06:00
Vladimir Razgulin 057891792c PM / devfreq: Get priv data for msm-adreno-tz governor from dev_profile
The devfreq infrastructure has several bugs and general design flaws
with private governor data support. As a workaround the msm-adreno-tz
governor gets it's private data from the device driver by doing a
container_of on the dev_profile registered by the device driver.

Change-Id: Ib9dffd063fe3aa5cfd55727d41f7633e88b3f998
Signed-off-by: Vladimir Razgulin <vrazguli@codeaurora.org>
2014-05-21 16:29:38 -06:00
Suman Tatiraju ad2f7a05c1 PM / devfreq: Add support for new tz CMD IDs
Some platforms require new CMD IDs to support tz functionality.
Check the ID supported and call the appropriate scm call.

Change-Id: I07568a9102e0eebf07caf4aac0e476eafcf5fb23
Signed-off-by: Suman Tatiraju <sumant@codeaurora.org>
2014-05-06 17:08:29 -07:00
Lucille Sylvester c3a73b6c69 msm: kgsl: bus modifier computation
Use the vbif performance counter which counts bus busy cycles
to determine the requested bus bandwidth vote at a given
GPU frequency.

Change-Id: I18915ef8a2be75a7ef5795a6030a1f2ddd09a967
CRs-fixed: 574420
Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
2013-11-24 22:20:59 -07:00
Jeremy Gebben 90fa192b63 msm: kgsl: convert pwrscale framework to use devfreq
Convert the clock frequency scaling infrastructure to
be based on devfreq.

Change-Id: I1a60ba339db5715a8836b835bd1b29b46e151af6
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
Signed-off-by: Vladimir Razgulin <vrazguli@codeaurora.org>
2013-10-10 11:53:09 -06:00