summaryrefslogtreecommitdiffstats
path: root/arch/ia64/include/asm/sn
diff options
context:
space:
mode:
authorRobin Holt <holt@sgi.com>2009-02-03 18:40:59 -0600
committerTony Luck <aegl@agluck-desktop.(none)>2009-02-19 11:29:31 -0800
commit39d481cba27809598e755e184bc0d8ae1d22423e (patch)
tree15087a039ccdb05749e099e1a1a7ae39e3887a55 /arch/ia64/include/asm/sn
parent334f85b647bc46ff4d27ace55aa65f44d6a2f4db (diff)
downloadop-kernel-dev-39d481cba27809598e755e184bc0d8ae1d22423e.zip
op-kernel-dev-39d481cba27809598e755e184bc0d8ae1d22423e.tar.gz
[IA64] bte_copy of BTE_MAX_XFER trips BUG_ON.
BTE_MAX_XFER is wrong. It is one greater than the number of cache lines the BTE is actually able to transfer. If you request a transfer of exactly BTE_MAX_XFER size, you trip a very cryptic BUG_ON() which should certainly be made more clear. This patch fixes that constant and also cleans up the BUG_ON()s in arch/ia64/sn/kernel/bte.c to test one condition per line. Signed-off-by: Robin Holt <holt@sgi.com> Signed-off-by: Tony Luck <aegl@agluck-desktop.(none)>
Diffstat (limited to 'arch/ia64/include/asm/sn')
-rw-r--r--arch/ia64/include/asm/sn/bte.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ia64/include/asm/sn/bte.h b/arch/ia64/include/asm/sn/bte.h
index 5efecf0..96798d2 100644
--- a/arch/ia64/include/asm/sn/bte.h
+++ b/arch/ia64/include/asm/sn/bte.h
@@ -39,7 +39,7 @@
/* BTE status register only supports 16 bits for length field */
#define BTE_LEN_BITS (16)
#define BTE_LEN_MASK ((1 << BTE_LEN_BITS) - 1)
-#define BTE_MAX_XFER ((1 << BTE_LEN_BITS) * L1_CACHE_BYTES)
+#define BTE_MAX_XFER (BTE_LEN_MASK << L1_CACHE_SHIFT)
/* Define hardware */
OpenPOWER on IntegriCloud