@@ -224,17 +224,11 @@ static inline struct uv_hub_info_s *uv_cpu_hub_info(int cpu)
224
224
* This is a software convention - NOT the hardware revision numbers in
225
225
* the hub chip.
226
226
*/
227
- #define UV1_HUB_REVISION_BASE 1
228
227
#define UV2_HUB_REVISION_BASE 3
229
228
#define UV3_HUB_REVISION_BASE 5
230
229
#define UV4_HUB_REVISION_BASE 7
231
230
#define UV4A_HUB_REVISION_BASE 8 /* UV4 (fixed) rev 2 */
232
231
233
- static inline int is_uv1_hub (void )
234
- {
235
- return is_uv_hubbed (uv (1 ));
236
- }
237
-
238
232
static inline int is_uv2_hub (void )
239
233
{
240
234
return is_uv_hubbed (uv (2 ));
@@ -265,7 +259,7 @@ static inline int is_uvx_hub(void)
265
259
266
260
static inline int is_uv_hub (void )
267
261
{
268
- return is_uv1_hub () || is_uvx_hub ();
262
+ return is_uvx_hub ();
269
263
}
270
264
271
265
union uvh_apicid {
@@ -292,11 +286,6 @@ union uvh_apicid {
292
286
#define UV_PNODE_TO_GNODE (p ) ((p) |uv_hub_info->gnode_extra)
293
287
#define UV_PNODE_TO_NASID (p ) (UV_PNODE_TO_GNODE(p) << 1)
294
288
295
- #define UV1_LOCAL_MMR_BASE 0xf4000000UL
296
- #define UV1_GLOBAL_MMR32_BASE 0xf8000000UL
297
- #define UV1_LOCAL_MMR_SIZE (64UL * 1024 * 1024)
298
- #define UV1_GLOBAL_MMR32_SIZE (64UL * 1024 * 1024)
299
-
300
289
#define UV2_LOCAL_MMR_BASE 0xfa000000UL
301
290
#define UV2_GLOBAL_MMR32_BASE 0xfc000000UL
302
291
#define UV2_LOCAL_MMR_SIZE (32UL * 1024 * 1024)
@@ -313,25 +302,21 @@ union uvh_apicid {
313
302
#define UV4_GLOBAL_MMR32_SIZE (16UL * 1024 * 1024)
314
303
315
304
#define UV_LOCAL_MMR_BASE ( \
316
- is_uv1_hub() ? UV1_LOCAL_MMR_BASE : \
317
305
is_uv2_hub() ? UV2_LOCAL_MMR_BASE : \
318
306
is_uv3_hub() ? UV3_LOCAL_MMR_BASE : \
319
307
/*is_uv4_hub*/ UV4_LOCAL_MMR_BASE )
320
308
321
309
#define UV_GLOBAL_MMR32_BASE ( \
322
- is_uv1_hub() ? UV1_GLOBAL_MMR32_BASE : \
323
310
is_uv2_hub() ? UV2_GLOBAL_MMR32_BASE : \
324
311
is_uv3_hub() ? UV3_GLOBAL_MMR32_BASE : \
325
312
/*is_uv4_hub*/ UV4_GLOBAL_MMR32_BASE )
326
313
327
314
#define UV_LOCAL_MMR_SIZE ( \
328
- is_uv1_hub() ? UV1_LOCAL_MMR_SIZE : \
329
315
is_uv2_hub() ? UV2_LOCAL_MMR_SIZE : \
330
316
is_uv3_hub() ? UV3_LOCAL_MMR_SIZE : \
331
317
/*is_uv4_hub*/ UV4_LOCAL_MMR_SIZE )
332
318
333
319
#define UV_GLOBAL_MMR32_SIZE ( \
334
- is_uv1_hub() ? UV1_GLOBAL_MMR32_SIZE : \
335
320
is_uv2_hub() ? UV2_GLOBAL_MMR32_SIZE : \
336
321
is_uv3_hub() ? UV3_GLOBAL_MMR32_SIZE : \
337
322
/*is_uv4_hub*/ UV4_GLOBAL_MMR32_SIZE )
@@ -352,8 +337,6 @@ union uvh_apicid {
352
337
#define UVH_APICID 0x002D0E00L
353
338
#define UV_APIC_PNODE_SHIFT 6
354
339
355
- #define UV_APICID_HIBIT_MASK 0xffff0000
356
-
357
340
/* Local Bus from cpu's perspective */
358
341
#define LOCAL_BUS_BASE 0x1c00000
359
342
#define LOCAL_BUS_SIZE (4 * 1024 * 1024)
@@ -560,15 +543,6 @@ static inline int uv_apicid_to_pnode(int apicid)
560
543
return s2pn ? s2pn [pnode - uv_hub_info -> min_socket ] : pnode ;
561
544
}
562
545
563
- /* Convert an apicid to the socket number on the blade */
564
- static inline int uv_apicid_to_socket (int apicid )
565
- {
566
- if (is_uv1_hub ())
567
- return (apicid >> (uv_hub_info -> apic_pnode_shift - 1 )) & 1 ;
568
- else
569
- return 0 ;
570
- }
571
-
572
546
/*
573
547
* Access global MMRs using the low memory MMR32 space. This region supports
574
548
* faster MMR access but not all MMRs are accessible in this space.
@@ -660,7 +634,7 @@ static inline int uv_cpu_blade_processor_id(int cpu)
660
634
return uv_cpu_info_per (cpu )-> blade_cpu_id ;
661
635
}
662
636
663
- /* Blade number to Node number (UV1 ..UV4 is 1:1) */
637
+ /* Blade number to Node number (UV2 ..UV4 is 1:1) */
664
638
static inline int uv_blade_to_node (int blade )
665
639
{
666
640
return blade ;
@@ -674,7 +648,7 @@ static inline int uv_numa_blade_id(void)
674
648
675
649
/*
676
650
* Convert linux node number to the UV blade number.
677
- * .. Currently for UV1 thru UV4 the node and the blade are identical.
651
+ * .. Currently for UV2 thru UV4 the node and the blade are identical.
678
652
* .. If this changes then you MUST check references to this function!
679
653
*/
680
654
static inline int uv_node_to_blade_id (int nid )
@@ -821,8 +795,6 @@ static inline void uv_set_cpu_scir_bits(int cpu, unsigned char value)
821
795
}
822
796
}
823
797
824
- extern unsigned int uv_apicid_hibits ;
825
-
826
798
/*
827
799
* Get the minimum revision number of the hub chips within the partition.
828
800
* (See UVx_HUB_REVISION_BASE above for specific values.)
0 commit comments