/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to driver/kmem.c

  • Committer: Suren A. Chilingaryan
  • Date: 2017-06-14 01:50:39 UTC
  • Revision ID: csa@suren.me-20170614015039-zaxrs9b3agomfpt3
Only set pgprot_noncached for consistent buffers

Show diffs side-by-side

added added

removed removed

Lines of Context:
616
616
 
617
617
    vma->vm_flags |= (VM_RESERVED);
618
618
 
 
619
    if ((kmem_entry->type&&PCILIB_KMEM_TYPE_MASK) == PCILIB_KMEM_TYPE_CONSISTENT) {
619
620
    // This is coherent memory, so it must not be cached.
620
 
    vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
 
621
        vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
 
622
    }
621
623
 
622
624
    mod_info_dbg("Mapping address %08lx / PFN %08lx\n",
623
625
                 virt_to_phys((void*)kmem_entry->cpua),