Hi Silverstri,


On Thu, Feb 6, 2014 at 7:56 AM, m silverstri <michael.j.silverstri@gmail.com> wrote:
Hi,

I am developing a kernel driver. I need to allocate buffer in the
kernel driver and pass the physical address of the buffer to the Chip
register so that it can generate output there.

I tried using kmalloc() but I don' get any output from the chip.
If your device is not having an iommu, you need to convert the address returned by kmalloc using __pa(addr) before you program the chip.

Thanks,
Arun

Is there a better way to achieve what I want?

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies