msm: kgsl: Switch to default pagetables in case of NULL context
Switch to default pagetables when context is NULL. This prevents instances of page faults when switching to default pagetable when GPU is busy. CRS-fixed: 550082 Change-Id: I74bab681b823bf50e58b50b6cb819fbf93163bf7 Signed-off-by: Harsh Vardhan Dwivedi <hdwivedi@codeaurora.org>
This commit is contained in:
committed by
Ed Tam
parent
18b9ef4640
commit
5e8779beb4
@@ -879,8 +879,10 @@ static int adreno_iommu_setstate(struct kgsl_device *device,
|
||||
num_iommu_units = kgsl_mmu_get_num_iommu_units(&device->mmu);
|
||||
|
||||
context = kgsl_context_get(device, context_id);
|
||||
if (context == NULL)
|
||||
if (context == NULL) {
|
||||
kgsl_mmu_device_setstate(&device->mmu, KGSL_CONTEXT_INVALID);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
adreno_ctx = ADRENO_CONTEXT(context);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user