public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Bug in sn_pci_map_sg causes MCA
@ 2003-11-03 20:36 Alan Mayer
  2003-11-03 20:47 ` Jesse Barnes
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Alan Mayer @ 2003-11-03 20:36 UTC (permalink / raw)
  To: linux-ia64

If sg->dma_address is set, we try to do a __pa() on a dma_address,
then, later, create a dma_addresss from a munged dma_address.  When
this bogus dma_address is used by the card, it results in MCAs.

		--ajm



--- /usr/tmp/TmpDir.5614-0/linux/arch/ia64/sn/io/machvec/pci_dma.c_1.5  Mon Nov  3 14:32:30 2003
+++ linux/arch/ia64/sn/io/machvec/pci_dma.c     Mon Nov  3 13:16:20 2003
@@ -279,8 +279,7 @@
         * scatterlist.
         */
        for (i = 0; i < nents; i++, sg++) {
-               phys_addr = __pa(sg->dma_address ? sg->dma_address :
-                       (unsigned long)page_address(sg->page) + sg->offset);
+               phys_addr = __pa((unsigned long)page_address(sg->page) + sg->offset);
 
                /*
                 * Handle the most common case: 64 bit cards.  This



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-11-03 22:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-03 20:36 [PATCH] Bug in sn_pci_map_sg causes MCA Alan Mayer
2003-11-03 20:47 ` Jesse Barnes
2003-11-03 21:14 ` David Mosberger
2003-11-03 21:18 ` Jesse Barnes
2003-11-03 22:07 ` Alan Mayer
2003-11-03 22:35 ` David Mosberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox