Re: Copying user space data to PCI memory

2009-05-18 Thread Grant Grundler
On Mon, May 18, 2009 at 11:15:31AM +0530, arun c wrote: > Hi, > > Sorry, I don't think so. > > > > Copying stuff to non-cacheable addresses can have other side effects. > > My destination memory is a PCI pre-fetchable memory. I am not sure > this is cacheable or not. Yes, it is cacheable. "Pre-f

Re: Copying user space data to PCI memory

2009-05-17 Thread arun c
Hi, On Mon, May 18, 2009 at 6:50 AM, Grant Grundler wrote: > Hi Arun, Sandeep, > > On Sat, May 16, 2009 at 06:33:44PM +0530, SandeepKsinha wrote: >> Hi Arun, >> >> On Sat, May 16, 2009 at 5:48 PM, arun c wrote: >> > Hi all, >> > >> > I want to copy data from user space to PCI memory. >> > >> > I

Re: Copying user space data to PCI memory

2009-05-17 Thread SandeepKsinha
On Mon, May 18, 2009 at 6:50 AM, Grant Grundler wrote: > Hi Arun, Sandeep, > > On Sat, May 16, 2009 at 06:33:44PM +0530, SandeepKsinha wrote: >> Hi Arun, >> >> On Sat, May 16, 2009 at 5:48 PM, arun c wrote: >> > Hi all, >> > >> > I want to copy data from user space to PCI memory. >> > >> > I mapp

Re: Copying user space data to PCI memory

2009-05-17 Thread Grant Grundler
Hi Arun, Sandeep, On Sat, May 16, 2009 at 06:33:44PM +0530, SandeepKsinha wrote: > Hi Arun, > > On Sat, May 16, 2009 at 5:48 PM, arun c wrote: > > Hi all, > > > > I want to copy data from user space to PCI memory. > > > > I mapped the PCI memory of the card by, > > > > 1)pci_request_regions(pci_

Re: Copying user space data to PCI memory

2009-05-16 Thread SandeepKsinha
On Sat, May 16, 2009 at 6:33 PM, SandeepKsinha wrote: > Hi Arun, > > On Sat, May 16, 2009 at 5:48 PM, arun c wrote: >> Hi all, >> >> I want to copy data from user space to PCI memory. >> >> I mapped the PCI memory of the card by, >> >> 1)pci_request_regions(pci_dev, DEVICE_NAME); >> 2)buffer_addr

Re: Copying user space data to PCI memory

2009-05-16 Thread SandeepKsinha
Hi Arun, On Sat, May 16, 2009 at 5:48 PM, arun c wrote: > Hi all, > > I want to copy data from user space to PCI memory. > > I mapped the PCI memory of the card by, > > 1)pci_request_regions(pci_dev, DEVICE_NAME); > 2)buffer_addr = pci_iomap(pci_dev, 1, 1024); > > Now I want to write data supplie

Copying user space data to PCI memory

2009-05-16 Thread arun c
Hi all, I want to copy data from user space to PCI memory. I mapped the PCI memory of the card by, 1)pci_request_regions(pci_dev, DEVICE_NAME); 2)buffer_addr = pci_iomap(pci_dev, 1, 1024); Now I want to write data supplied by the user to buffer_addr(BAR1 pre-fetch-able memory of the device) I