Re: [PATCH] gurantee DMA area for alloc_bootmem_low() ver. 2.
From: Mike Kravetz <hidden>
Date: 2005-08-11 21:14:31
From: Mike Kravetz <hidden>
Date: 2005-08-11 21:14:31
On Thu, Aug 11, 2005 at 01:46:22PM -0700, Christoph Lameter wrote:
quoted
I was going to replace more instances of __pa(MAX_DMA_ADDRESS) with max_dma_physaddr(). However, when grepping for MAX_DMA_ADDRESS I noticed instances of virt_to_phys(MAX_DMA_ADDRESS) as well. Can someone tell me what the differences are between __pa() and virt_to_phys(). I noticed that on some archs they are the same, but are different on others.On which arches do they differ?
In alphabetical order I first looked at alpha and things didn't look the same in the '#ifndef USE_48_BIT_KSEG' case. When I first looked at this, I quit after looking at alpha. However, I can't seem to easily find other archs that differ. -- Mike -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>