[IS64-SGI] Set Altix error handling features

The 2.6 kernel has CPE error thresholding.
This patch lets SAL know of this error handling feature.
The changes are SN specific.

Signed-off-by: Russ Anderson (rja@sgi.com)
Signed-off-by: Tony Luck <tony.luck@intel.com>

authored by

Russ Anderson and committed by
Tony Luck
6872ec54 8eac3757

+28
+2
arch/ia64/sn/kernel/setup.c
··· 271 271 int major = sn_sal_rev_major(), minor = sn_sal_rev_minor(); 272 272 extern void sn_cpu_init(void); 273 273 274 + ia64_sn_plat_set_error_handling_features(); 275 + 274 276 /* 275 277 * If the generic code has enabled vga console support - lets 276 278 * get rid of it again. This is a kludge for the fact that ACPI
+26
include/asm-ia64/sn/sn_sal.h
··· 115 115 #define SAL_IROUTER_INTR_XMIT SAL_CONSOLE_INTR_XMIT 116 116 #define SAL_IROUTER_INTR_RECV SAL_CONSOLE_INTR_RECV 117 117 118 + /* 119 + * Error Handling Features 120 + */ 121 + #define SAL_ERR_FEAT_MCA_SLV_TO_OS_INIT_SLV 0x1 122 + #define SAL_ERR_FEAT_LOG_SBES 0x2 123 + #define SAL_ERR_FEAT_MFR_OVERRIDE 0x4 124 + #define SAL_ERR_FEAT_SBE_THRESHOLD 0xffff0000 118 125 119 126 /* 120 127 * SAL Error Codes ··· 344 337 ret_stuff.v1 = 0; 345 338 ret_stuff.v2 = 0; 346 339 SAL_CALL_NOLOCK(ret_stuff, SN_SAL_LOG_CE, 0, 0, 0, 0, 0, 0, 0); 340 + 341 + return ret_stuff.status; 342 + } 343 + 344 + /* 345 + * Set Error Handling Features 346 + */ 347 + static inline u64 348 + ia64_sn_plat_set_error_handling_features(void) 349 + { 350 + struct ia64_sal_retval ret_stuff; 351 + 352 + ret_stuff.status = 0; 353 + ret_stuff.v0 = 0; 354 + ret_stuff.v1 = 0; 355 + ret_stuff.v2 = 0; 356 + SAL_CALL_REENTRANT(ret_stuff, SN_SAL_SET_ERROR_HANDLING_FEATURES, 357 + (SAL_ERR_FEAT_MCA_SLV_TO_OS_INIT_SLV | SAL_ERR_FEAT_LOG_SBES), 358 + 0, 0, 0, 0, 0, 0); 347 359 348 360 return ret_stuff.status; 349 361 }