xref: /titanic_52/usr/src/uts/sun4/io/px/px_space.h (revision ba4e3c84e6b9390bbf7df80b5f1d11dec34cc525)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 #ifndef	_SYS_PX_SPACE_H
27 #define	_SYS_PX_SPACE_H
28 
29 #pragma ident	"%Z%%M%	%I%	%E% SMI"
30 
31 #ifdef	__cplusplus
32 extern "C" {
33 #endif
34 
35 #define	PX_SPURINTR_MSG_DEFAULT -1ull
36 
37 extern ushort_t px_command_default;
38 extern uint_t px_set_latency_timer_register;
39 extern uint64_t px_perr_fatal;
40 extern uint64_t px_serr_fatal;
41 extern hrtime_t px_intrpend_timeout;
42 extern uint_t px_unclaimed_intr_max;
43 extern uint_t px_unclaimed_intr_block;
44 extern uint32_t px_spurintr_duration;
45 extern uint64_t px_spurintr_msgs;
46 extern uint_t px_stream_buf_enable;
47 extern uint_t px_stream_buf_exists;
48 extern uint_t px_use_contexts;
49 extern uint_t px_ctx_no_active_flush;
50 extern uint_t px_context_minpages;
51 
52 extern uint_t px_mmu_error_intr_enable;
53 extern uint_t px_rerun_disable;
54 
55 extern uint_t px_error_intr_enable;
56 extern uint_t px_dwsync_disable;
57 extern uint_t px_intsync_disable;
58 
59 extern uint_t px_intr_retry_intv;
60 extern uint8_t px_latency_timer;
61 extern uint_t px_panic_on_fatal_errors;
62 extern uint_t px_thermal_intr_fatal;
63 extern uint_t px_buserr_interrupt;
64 
65 extern uint64_t px_errtrig_pa;
66 
67 extern uint_t px_check_all_handlers;
68 extern uint_t px_lock_tlb;
69 
70 extern uint64_t px_dvma_debug_on;
71 extern uint64_t px_dvma_debug_off;
72 extern uint32_t px_dvma_debug_rec;
73 extern uint_t px_dvma_page_cache_entries;
74 extern uint_t px_dvma_page_cache_clustsz;
75 extern int px_dvma_sync_before_unmap;
76 #ifdef	PX_DMA_PROF
77 extern uint_t px_dvmaft_npages;
78 extern uint_t px_dvmaft_limit;
79 extern uint_t px_dvmaft_free;
80 extern uint_t px_dvmaft_success;
81 extern uint_t px_dvmaft_exhaust;
82 extern uint_t px_dvma_vmem_alloc;
83 extern uint_t px_dvma_vmem_xalloc;
84 extern uint_t px_dvma_vmem_free;
85 extern uint_t px_dvma_vmem_xfree;
86 #endif	/* PX_DMA_PROF */
87 extern uint_t px_disable_fdvma;
88 
89 extern uint_t px_iommu_ctx_lock_failure;
90 extern uint_t px_preserve_iommu_tsb;
91 extern uintptr_t px_kmem_clid;
92 
93 /* timeout length in micro seconds */
94 #define	PX_MSEC_TO_USEC	1000
95 #define	PX_PME_TO_ACK_TIMEOUT	(1000 * PX_MSEC_TO_USEC)
96 #define	PX_LUP_POLL_INTERVAL	(10 * PX_MSEC_TO_USEC)
97 #define	PX_LUP_POLL_TO		(10 * PX_LUP_POLL_INTERVAL)
98 
99 #define	PX_PWR_PIL		1
100 #define	PX_MAX_L1_TRIES		5
101 
102 extern uint64_t px_pme_to_ack_timeout;
103 extern uint64_t px_lup_poll_to;
104 extern uint64_t px_lup_poll_interval;
105 extern uint32_t	px_pwr_pil;
106 extern uint32_t px_max_l1_tries;
107 
108 /* Fabric Error that should cause panics */
109 extern uint32_t px_fabric_die;
110 extern uint32_t px_fabric_die_rc_ce;
111 extern uint32_t px_fabric_die_rc_ue;
112 extern uint32_t px_fabric_die_rc_ce_gos;
113 extern uint32_t px_fabric_die_rc_ue_gos;
114 extern uint32_t px_fabric_die_ce;
115 extern uint32_t px_fabric_die_ue;
116 extern uint32_t px_fabric_die_ce_gos;
117 extern uint32_t px_fabric_die_ue_gos;
118 extern uint16_t px_fabric_die_bdg_sts;
119 extern uint16_t px_fabric_die_bdg_sts_gos;
120 extern uint16_t px_fabric_die_sw_sts;
121 extern uint16_t px_fabric_die_sw_sts_gos;
122 extern uint32_t px_fabric_die_sue;
123 extern uint32_t px_fabric_die_sue_gos;
124 
125 #ifdef	__cplusplus
126 }
127 #endif
128 
129 #endif	/* _SYS_PX_SPACE_H */
130