msm: kgsl: Do required clock settings for SDM660 GPU
Enable retention of memory and periphery logics for GPU core clock. If the setting is not done then GPU might get stale data while switching from NAP to ACTIVE and which leads to page faults or hangs. Clock settings need to be handled by client drivers only and hence do it in KGSL driver. Change-Id: Iea3fd720e2a0eda9f6ee719177a8898bc2bd75e4 Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
This commit is contained in:
parent
2e47ba9a64
commit
ac6d567b7a
1 changed files with 2 additions and 1 deletions
|
@ -1639,7 +1639,8 @@ static void a5xx_pwrlevel_change_settings(struct adreno_device *adreno_dev,
|
||||||
static void a5xx_clk_set_options(struct adreno_device *adreno_dev,
|
static void a5xx_clk_set_options(struct adreno_device *adreno_dev,
|
||||||
const char *name, struct clk *clk)
|
const char *name, struct clk *clk)
|
||||||
{
|
{
|
||||||
if (adreno_is_a540(adreno_dev)) {
|
/* Handle clock settings for GFX PSCBCs */
|
||||||
|
if (adreno_is_a540(adreno_dev) || adreno_is_a512(adreno_dev)) {
|
||||||
if (!strcmp(name, "mem_iface_clk")) {
|
if (!strcmp(name, "mem_iface_clk")) {
|
||||||
clk_set_flags(clk, CLKFLAG_NORETAIN_PERIPH);
|
clk_set_flags(clk, CLKFLAG_NORETAIN_PERIPH);
|
||||||
clk_set_flags(clk, CLKFLAG_NORETAIN_MEM);
|
clk_set_flags(clk, CLKFLAG_NORETAIN_MEM);
|
||||||
|
|
Loading…
Add table
Reference in a new issue