On Wed, 16 Mar 2005, Jesse Barnes wrote: > Thanks for the explanation Paul, now the code actually makes sense. > Converting to the DMA mapping API doesn't make sense at all in this context > then, since we're basically programming the GATT (an IOMMU type table) with > physical addresses. Ken, are you sure you need to make these changes at all? > > Does Xen break w/o them?
Thing is, the rest of the kernel uses virt_to_phys for two different things. Only one of them has to do with the real physical address, the other is about getting the page frame number. On native x86, x86-64 and others, the page frame number and physical address are directly related to each other. Under Xen, however, the two are different - and the AGPGART really needs to have the physical address ;) -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/