lkml.org 
[lkml]   [2012]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 0/8] Improve performance of VM translation on x86_64
On 10/12/2012 08:15 AM, Andi Kleen wrote:
>> Could you also add a blurb in the Documentation/< appropriate file
>> for device driver writes> mentioning the usage of __pa_symbol is
>> preferred?
> Device driver writer's shouldn't use any of this anyways, they should always
> use the PCI DMA APIs and never DMA to the stack or to static variables.
>
> -Andi

__pa_symbol is very architecture specific. From what I can tell it only
exists for the x86 and mips architectures. If a device driver is
expected to function on things such as PowerPC you cannot use it.
Everything I have read indicates that for virtual to physical
translation in drivers it is preferred to use virt_to_phys, not __pa or
__pa_symbol.

Thanks,

Alex


\
 
 \ /
  Last update: 2012-10-12 18:41    [W:0.031 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site