From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Mosberger Date: Wed, 09 Apr 2003 17:45:45 +0000 Subject: RE: [Linux-ia64] mmap crashes system after mapping PCI device into user space and reading and writin Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org >>>>> On Wed, 9 Apr 2003 01:36:33 -0400, "Mike Fox" said: Mike> In the driver I am basically doing this in my mmap entry point: Mike> vma-> vm_page_prot = pgprot_noncached(vma->vm_page_prot); Mike> vma-> vm_flags |= VM_IO; Mike> /* Mike> * this maps the physical memory to the user Mike> */ Mike> if (remap_page_range(vma->vm_start, offset, vma->vm_end-vma->vm_start, vma->vm_page_prot)) Mike> { Mike> return -EAGAIN; Mike> } This is basically what drivers/char/mem.c is doing, so there is nothing obviously wrong here. --david