Commit d601c864 authored by Guido Günther's avatar Guido Günther

[TEMP] etnaviv: Don't apply pgprot_noncached for ETNA_BO_UNCACHED

Otherwise userspace gets a bus error since device memory (nGnRnE) is not

This is an interims solution, see below link.

Link: Guido Günther's avatarGuido Günther <>
parent 104c4c6f
......@@ -133,10 +133,8 @@ static int etnaviv_gem_mmap_obj(struct etnaviv_gem_object *etnaviv_obj,
vm_page_prot = vm_get_page_prot(vma->vm_flags);
if (etnaviv_obj->flags & ETNA_BO_WC) {
if (etnaviv_obj->flags & (ETNA_BO_WC | ETNA_BO_UNCACHED)) {
vma->vm_page_prot = pgprot_writecombine(vm_page_prot);
} else if (etnaviv_obj->flags & ETNA_BO_UNCACHED) {
vma->vm_page_prot = pgprot_noncached(vm_page_prot);
} else {
* Shunt off cached objs to shmem file so they have their own
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment