aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorCliff Wickman <cpw@sgi.com>2010-06-02 17:22:01 -0400
committerIngo Molnar <mingo@elte.hu>2010-06-08 15:13:44 -0400
commit12a6611fa16e9c6d2f844fe2175d219c6e9bd95d (patch)
tree2dde05add2678c0e35792cd8f8bc32380ab8289a /arch/x86/include
parent3975d16760d4be7402d1067c548c30c427971331 (diff)
x86, UV: Calculate BAU destination timeout
Calculate the Broadcast Assist Unit's destination timeout period from the values in the relevant MMR's. Store it in each cpu's per-cpu BAU structure so that a destination timeout can be differentiated from a 'plugged' situation in which all software ack resources are already allocated and a timeout is pending. That case returns an immediate destination error. Signed-off-by: Cliff Wickman <cpw@sgi.com> Cc: gregkh@suse.de LKML-Reference: <E1OJvNx-0004Zq-RK@eag09.americas.sgi.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/uv/uv_bau.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/include/asm/uv/uv_bau.h b/arch/x86/include/asm/uv/uv_bau.h
index aa558ac0306e..458e04c626a2 100644
--- a/arch/x86/include/asm/uv/uv_bau.h
+++ b/arch/x86/include/asm/uv/uv_bau.h
@@ -49,6 +49,18 @@
49#define UV_ENABLE_INTD_SOFT_ACK_MODE_SHIFT 15 49#define UV_ENABLE_INTD_SOFT_ACK_MODE_SHIFT 15
50#define UV_INTD_SOFT_ACK_TIMEOUT_PERIOD_SHIFT 16 50#define UV_INTD_SOFT_ACK_TIMEOUT_PERIOD_SHIFT 16
51#define UV_INTD_SOFT_ACK_TIMEOUT_PERIOD 0x000000000bUL 51#define UV_INTD_SOFT_ACK_TIMEOUT_PERIOD 0x000000000bUL
52/* [19:16] SOFT_ACK timeout period 19: 1 is urgency 7 17:16 1 is multiplier */
53#define BAU_MISC_CONTROL_MULT_MASK 3
54
55#define UVH_AGING_PRESCALE_SEL 0x000000b000UL
56/* [30:28] URGENCY_7 an index into a table of times */
57#define BAU_URGENCY_7_SHIFT 28
58#define BAU_URGENCY_7_MASK 7
59
60#define UVH_TRANSACTION_TIMEOUT 0x000000b200UL
61/* [45:40] BAU - BAU transaction timeout select - a multiplier */
62#define BAU_TRANS_SHIFT 40
63#define BAU_TRANS_MASK 0x3f
52 64
53/* 65/*
54 * bits in UVH_LB_BAU_SB_ACTIVATION_STATUS_0/1 66 * bits in UVH_LB_BAU_SB_ACTIVATION_STATUS_0/1