Merge "msm: kgsl: Update pagefault policy when KGSL_STATE_ACTIVE"

This commit is contained in:
qctecmdr 2020-08-02 12:46:03 -07:00 committed by Gerrit - the friendly Code Review server
commit 552f518a28

View File

@ -81,7 +81,7 @@ static int _ft_pagefault_policy_store(struct adreno_device *adreno_dev,
mutex_lock(&device->mutex);
val &= KGSL_FT_PAGEFAULT_MASK;
if (test_bit(ADRENO_DEVICE_STARTED, &adreno_dev->priv))
if (device->state == KGSL_STATE_ACTIVE)
ret = kgsl_mmu_set_pagefault_policy(&device->mmu,
(unsigned long) val);