msm: kgsl: flush outer cache for alloc_page() pages
The outer cache needs to be flushed for these pages after they are allocated so that the GPU and CPU have a consistent view of them.
This commit is contained in:
parent
97dd7fe6b5
commit
d319fcfbbd
2
drivers/gpu/msm/kgsl_sharedmem.c
Normal file → Executable file
2
drivers/gpu/msm/kgsl_sharedmem.c
Normal file → Executable file
@ -372,6 +372,8 @@ _kgsl_sharedmem_vmalloc(struct kgsl_memdesc *memdesc,
|
||||
}
|
||||
sg_set_page(&memdesc->sg[i], page, PAGE_SIZE, 0);
|
||||
}
|
||||
outer_cache_range_op_sg(memdesc->sg, memdesc->sglen,
|
||||
KGSL_CACHE_OP_FLUSH);
|
||||
|
||||
kgsl_cache_range_op(memdesc, KGSL_CACHE_OP_INV);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user