From: Alex Williamson <alex_williamson@hp.com>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] [PATCH] 2.4.20 sba_iommu bug fix
Date: Mon, 31 Mar 2003 21:51:04 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590723705366@msgid-missing> (raw)
[-- Attachment #1: Type: text/plain, Size: 475 bytes --]
This patch ensures that iopdir updates are visible on the bus
before we return a DMA mapping. Without this there is a small
window where the chipset could fetch an invalid iodpir entry
from memory. As Grant mentioned before, we've only seen this
problem exposed with multiple tulip NICs under load. Bjorn,
please apply. Working on something for 2.5... (more extensive
updates) Thanks,
Alex
--
Alex Williamson HP Linux & Open Source Lab
[-- Attachment #2: sba_iommu-pdir-coherency.diff --]
[-- Type: text/plain, Size: 740 bytes --]
--- linux/arch/ia64/hp/common/sba_iommu.c 11 Dec 2002 19:57:28 -0000 1.28
+++ linux/arch/ia64/hp/common/sba_iommu.c 31 Mar 2003 01:44:49 -0000
@@ -35,6 +35,7 @@
#include <asm/delay.h> /* ia64_get_itc() */
#include <asm/io.h>
#include <asm/page.h> /* PAGE_OFFSET */
+#include <asm/system.h> /* wmb() */
#define PFX "IOC: "
@@ -816,6 +817,9 @@ sba_map_single(struct pci_dev *dev, void
size -= IOVP_SIZE;
pdir_start++;
}
+ /* force pdir update */
+ wmb();
+
/* form complete address */
#ifdef ASSERT_PDIR_SANITY
sba_check_pdir(ioc,"Check after sba_map_single()");
@@ -1078,6 +1082,9 @@ sba_fill_pdir(
}
startsg++;
}
+ /* force pdir update */
+ wmb();
+
#ifdef DEBUG_LARGE_SG_ENTRIES
dump_run_sg = 0;
#endif
reply other threads:[~2003-03-31 21:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-ia64-105590723705366@msgid-missing \
--to=alex_williamson@hp.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox