Re: simple example of pci driver with dma

2020-11-01 Thread Yan Vugenfirer
| > DMA_FROM_DEV | DMA_IRQ, mmio + IO_DMA_CMD); > Where and when should the pci_set_master hould be called? > Thanks, > Shaked Matzner > > From: Peter Maydell > Sent: Thursday, October 29, 2020 5:46 PM > To: Shaked Matzner > Cc: qemu-devel@nongnu.org > Subject: Re: s

RE: simple example of pci driver with dma

2020-10-29 Thread Shaked Matzner
-devel@nongnu.org Subject: Re: simple example of pci driver with dma [https://s3.amazonaws.com/staticmediafiles/media/sights/iron-icon-color.png] IRONSCALES couldn't recognize this email as this is the first time you received an email from this sender peter.mayd...@linaro.org<mailto:peter

Re: simple example of pci driver with dma

2020-10-29 Thread Peter Maydell
On Thu, 29 Oct 2020 at 14:59, Shaked Matzner wrote: > however the value I get is still 255(0xff) and not 18(0x12) probably I've > missed something but when the interrupt is called the transfer to the RAM > address should be completed, however it seems like the dma_write_buffer > function from t

simple example of pci driver with dma

2020-10-29 Thread Shaked Matzner
Hey All, So I'm trying to learn how pci devices and drivers work using the edu device and an educational driver, and It seems like the pci_dma_write function fails to actually write the information from the the dma buffer into the allocated address in the ram. Here is How I testsed it: 1.I've i