Re: [Linux-ia64] mmap crashes system after mapping PCI device into user space and reading and writing.

From: Christian Hinkelbein <hinkelbein_at_ti.uni-mannheim.de>
Date: 2003-04-09 18:57:12
Hi,

Mike Fox schrieb:
> 
> 
> In the driver I am basically doing this in my mmap entry point:
> 
>   vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
>   vma->vm_flags |= VM_IO;

i know this is ugly stuff, but ...
maybe you want to try this instead of the above:

#if defined(__ia64__)
	vmap->vm_flags |= (VM_SHM | VM_LOCKED | VM_IO);
	vmap->vm_flags &= ~(VM_SHARED | VM_MAYSHARE);
	vmap->vm_page_prot = __pgprot(pgprot_val(vmap->vm_page_prot)& ~_PAGE_AR_RW);
#endif

> 
> Thanks,
> Mike.
> 

 christian
Received on Wed Apr 09 01:57:29 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:13 EST