[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-sparc
Subject:    Re: iommu patch, phase 2
From:       "David S. Miller" <davem () redhat ! com>
Date:       2003-04-14 9:18:59
[Download RAW message or body]

   From: Pete Zaitcev <zaitcev@redhat.com>
   Date: Mon, 14 Apr 2003 05:17:30 -0400

Peter, think hard about this chunk :-)

   @@ -456,7 +407,7 @@
    	if (res == NULL)
    		panic("sbus_dma_sync_single: 0x%x\n", ba);
    
   -	va = (unsigned long) phys_to_virt(mmu_translate_dvma(ba));
   +	va = page_address(phys_to_virt(mmu_translate_dvma(ba))); /* XXX */
    	/*
    	 * XXX This bogosity will be fixed with the iommu rewrite coming soon

page_address() takes struct page *, you are feeding it kernel address
of that page :-)

Remove phys_to_virt() and it may start working.
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic