Hi Silverstri,

On Thu, Feb 6, 2014 at 7:56 AM, m silverstri <[email protected]
> 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
> [email protected]
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to