Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6

+54 -30
+1
arch/ia64/sn/kernel/bte.c
··· 137 137 bte = bte_if_on_node(nasid_to_try[nasid_index],bte_if_index); 138 138 139 139 if (bte == NULL) { 140 + nasid_index++; 140 141 continue; 141 142 } 142 143
+3
arch/ia64/sn/kernel/sn2/sn2_smp.c
··· 492 492 493 493 static int __init sn2_ptc_init(void) 494 494 { 495 + if (!ia64_platform_is("sn2")) 496 + return -ENOSYS; 497 + 495 498 if (!(proc_sn2_ptc = create_proc_entry(PTC_BASENAME, 0444, NULL))) { 496 499 printk(KERN_ERR "unable to create %s proc entry", PTC_BASENAME); 497 500 return -EINVAL;
+2 -1
arch/ia64/sn/kernel/sn2/sn_hwperf.c
··· 743 743 if ((r = sn_hwperf_enum_objects(&nobj, &objs)) == 0) { 744 744 memset(p, 0, a.sz); 745 745 for (i = 0; i < nobj; i++) { 746 + int cpuobj_index = 0; 746 747 if (!SN_HWPERF_IS_NODE(objs + i)) 747 748 continue; 748 749 node = sn_hwperf_obj_to_cnode(objs + i); 749 750 for_each_online_cpu(j) { 750 751 if (node != cpu_to_node(j)) 751 752 continue; 752 - cpuobj = (struct sn_hwperf_object_info *) p + j; 753 + cpuobj = (struct sn_hwperf_object_info *) p + cpuobj_index++; 753 754 slice = 'a' + cpuid_to_slice(j); 754 755 cdata = cpu_data(j); 755 756 cpuobj->id = j;
+34
include/asm-ia64/sn/sn_sal.h
··· 56 56 #define SN_SAL_BUS_CONFIG 0x02000037 57 57 #define SN_SAL_SYS_SERIAL_GET 0x02000038 58 58 #define SN_SAL_PARTITION_SERIAL_GET 0x02000039 59 + #define SN_SAL_SYSCTL_PARTITION_GET 0x0200003a 59 60 #define SN_SAL_SYSTEM_POWER_DOWN 0x0200003b 60 61 #define SN_SAL_GET_MASTER_BASEIO_NASID 0x0200003c 61 62 #define SN_SAL_COHERENCE 0x0200003d ··· 582 581 } 583 582 584 583 /* 584 + * Returns the partition id of the nasid passed in as an argument, 585 + * or INVALID_PARTID if the partition id cannot be retrieved. 586 + */ 587 + static inline partid_t 588 + ia64_sn_sysctl_partition_get(nasid_t nasid) 589 + { 590 + struct ia64_sal_retval ret_stuff; 591 + SAL_CALL(ret_stuff, SN_SAL_SYSCTL_PARTITION_GET, nasid, 592 + 0, 0, 0, 0, 0, 0); 593 + if (ret_stuff.status != 0) 594 + return -1; 595 + return ((partid_t)ret_stuff.v0); 596 + } 597 + 598 + /* 585 599 * Returns the physical address of the partition's reserved page through 586 600 * an iterative number of calls. 587 601 * ··· 1033 1017 ret_stuff.v1 = 0; 1034 1018 ret_stuff.v2 = 0; 1035 1019 SAL_CALL_NOLOCK(ret_stuff, SN_SAL_GET_SN_INFO, fc, 0, 0, 0, 0, 0, 0); 1020 + 1021 + /***** BEGIN HACK - temp til old proms no longer supported ********/ 1022 + if (ret_stuff.status == SALRET_NOT_IMPLEMENTED) { 1023 + int nasid = get_sapicid() & 0xfff;; 1024 + #define SH_SHUB_ID_NODES_PER_BIT_MASK 0x001f000000000000UL 1025 + #define SH_SHUB_ID_NODES_PER_BIT_SHFT 48 1026 + if (shubtype) *shubtype = 0; 1027 + if (nasid_bitmask) *nasid_bitmask = 0x7ff; 1028 + if (nasid_shift) *nasid_shift = 38; 1029 + if (systemsize) *systemsize = 10; 1030 + if (sharing_domain_size) *sharing_domain_size = 8; 1031 + if (partid) *partid = ia64_sn_sysctl_partition_get(nasid); 1032 + if (coher) *coher = nasid >> 9; 1033 + if (reg) *reg = (HUB_L((u64 *) LOCAL_MMR_ADDR(SH1_SHUB_ID)) & SH_SHUB_ID_NODES_PER_BIT_MASK) >> 1034 + SH_SHUB_ID_NODES_PER_BIT_SHFT; 1035 + return 0; 1036 + } 1037 + /***** END HACK *******/ 1036 1038 1037 1039 if (ret_stuff.status < 0) 1038 1040 return ret_stuff.status;
+7 -19
include/asm-ia64/sn/tioce.h
··· 1 - /************************************************************************** 2 - * * 3 - * Unpublished copyright (c) 2005, Silicon Graphics, Inc. * 4 - * THIS IS UNPUBLISHED CONFIDENTIAL AND PROPRIETARY SOURCE CODE OF SGI. * 5 - * * 6 - * The copyright notice above does not evidence any actual or intended * 7 - * publication or disclosure of this source code, which includes * 8 - * information that is confidential and/or proprietary, and is a trade * 9 - * secret, of Silicon Graphics, Inc. ANY REPRODUCTION, MODIFICATION, * 10 - * DISTRIBUTION, PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH * 11 - * USE OF THIS SOURCE CODE WITHOUT THE EXPRESS WRITTEN CONSENT OF * 12 - * SILICON GRAPHICS, INC. IS STRICTLY PROHIBITED, AND IN VIOLATION OF * 13 - * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR * 14 - * POSSESSION OF THIS SOURCE CODE AND/OR RELATED INFORMATION DOES NOT * 15 - * CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR DISTRIBUTE ITS * 16 - * CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY * 17 - * DESCRIBE, IN WHOLE OR IN PART. * 18 - * * 19 - **************************************************************************/ 1 + /* 2 + * This file is subject to the terms and conditions of the GNU General Public 3 + * License. See the file "COPYING" in the main directory of this archive 4 + * for more details. 5 + * 6 + * Copyright (c) 2003-2005 Silicon Graphics, Inc. All rights reserved. 7 + */ 20 8 21 9 #ifndef __ASM_IA64_SN_TIOCE_H__ 22 10 #define __ASM_IA64_SN_TIOCE_H__
+7 -10
include/asm-ia64/sn/tioce_provider.h
··· 1 - /************************************************************************** 2 - * Copyright (C) 2005, Silicon Graphics, Inc. * 3 - * * 4 - * These coded instructions, statements, and computer programs contain * 5 - * unpublished proprietary information of Silicon Graphics, Inc., and * 6 - * are protected by Federal copyright law. They may not be disclosed * 7 - * to third parties or copied or duplicated in any form, in whole or * 8 - * in part, without the prior written consent of Silicon Graphics, Inc. * 9 - * * 10 - **************************************************************************/ 1 + /* 2 + * This file is subject to the terms and conditions of the GNU General Public 3 + * License. See the file "COPYING" in the main directory of this archive 4 + * for more details. 5 + * 6 + * Copyright (c) 2003-2005 Silicon Graphics, Inc. All rights reserved. 7 + */ 11 8 12 9 #ifndef _ASM_IA64_SN_CE_PROVIDER_H 13 10 #define _ASM_IA64_SN_CE_PROVIDER_H