Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[IA64] Update Altix nofault code

Montecito and Montvale behaves slightly differently than previous
Itanium processors, resulting in the MCA due to a failed PIO read
to sometimes surfacing outside the nofault code. This code is
based on discussions with Intel CPU architects and verified at
customer sites.

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
2022c1f1 4ca8ad7e

+7 -3
+7 -3
arch/ia64/sn/kernel/xp_nofault.S
··· 3 3 * License. See the file "COPYING" in the main directory of this archive 4 4 * for more details. 5 5 * 6 - * Copyright (c) 2004-2005 Silicon Graphics, Inc. All Rights Reserved. 6 + * Copyright (c) 2004-2007 Silicon Graphics, Inc. All Rights Reserved. 7 7 */ 8 8 9 9 ··· 14 14 * PIO read fails, the MCA handler will force the error to look 15 15 * corrected and vector to the xp_error_PIOR which will return an error. 16 16 * 17 + * The definition of "consumption" and the time it takes for an MCA 18 + * to surface is processor implementation specific. This code 19 + * is sufficient on Itanium through the Montvale processor family. 20 + * It may need to be adjusted for future processor implementations. 21 + * 17 22 * extern int xp_nofault_PIOR(void *remote_register); 18 23 */ 19 24 ··· 27 22 mov r8=r0 // Stage a success return value 28 23 ld8.acq r9=[r32];; // PIO Read the specified register 29 24 adds r9=1,r9;; // Add to force consumption 30 - or r9=r9,r9;; // Or to force consumption 25 + srlz.i;; // Allow time for MCA to surface 31 26 br.ret.sptk.many b0;; // Return success 32 27 33 28 .global xp_error_PIOR 34 29 xp_error_PIOR: 35 30 mov r8=1 // Return value of 1 36 31 br.ret.sptk.many b0;; // Return failure 37 -