Skip to content

Commit 9b9ee17

Browse files
swahlhpeKAGA-KOKO
authored andcommitted
x86/platform/uv: Remove support for uv1 platform from uv_hub
UV1 is not longer supported by HPE. Signed-off-by: Steve Wahl <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 711621a commit 9b9ee17

File tree

1 file changed

+3
-31
lines changed

1 file changed

+3
-31
lines changed

arch/x86/include/asm/uv/uv_hub.h

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -224,17 +224,11 @@ static inline struct uv_hub_info_s *uv_cpu_hub_info(int cpu)
224224
* This is a software convention - NOT the hardware revision numbers in
225225
* the hub chip.
226226
*/
227-
#define UV1_HUB_REVISION_BASE 1
228227
#define UV2_HUB_REVISION_BASE 3
229228
#define UV3_HUB_REVISION_BASE 5
230229
#define UV4_HUB_REVISION_BASE 7
231230
#define UV4A_HUB_REVISION_BASE 8 /* UV4 (fixed) rev 2 */
232231

233-
static inline int is_uv1_hub(void)
234-
{
235-
return is_uv_hubbed(uv(1));
236-
}
237-
238232
static inline int is_uv2_hub(void)
239233
{
240234
return is_uv_hubbed(uv(2));
@@ -265,7 +259,7 @@ static inline int is_uvx_hub(void)
265259

266260
static inline int is_uv_hub(void)
267261
{
268-
return is_uv1_hub() || is_uvx_hub();
262+
return is_uvx_hub();
269263
}
270264

271265
union uvh_apicid {
@@ -292,11 +286,6 @@ union uvh_apicid {
292286
#define UV_PNODE_TO_GNODE(p) ((p) |uv_hub_info->gnode_extra)
293287
#define UV_PNODE_TO_NASID(p) (UV_PNODE_TO_GNODE(p) << 1)
294288

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-
300289
#define UV2_LOCAL_MMR_BASE 0xfa000000UL
301290
#define UV2_GLOBAL_MMR32_BASE 0xfc000000UL
302291
#define UV2_LOCAL_MMR_SIZE (32UL * 1024 * 1024)
@@ -313,25 +302,21 @@ union uvh_apicid {
313302
#define UV4_GLOBAL_MMR32_SIZE (16UL * 1024 * 1024)
314303

315304
#define UV_LOCAL_MMR_BASE ( \
316-
is_uv1_hub() ? UV1_LOCAL_MMR_BASE : \
317305
is_uv2_hub() ? UV2_LOCAL_MMR_BASE : \
318306
is_uv3_hub() ? UV3_LOCAL_MMR_BASE : \
319307
/*is_uv4_hub*/ UV4_LOCAL_MMR_BASE)
320308

321309
#define UV_GLOBAL_MMR32_BASE ( \
322-
is_uv1_hub() ? UV1_GLOBAL_MMR32_BASE : \
323310
is_uv2_hub() ? UV2_GLOBAL_MMR32_BASE : \
324311
is_uv3_hub() ? UV3_GLOBAL_MMR32_BASE : \
325312
/*is_uv4_hub*/ UV4_GLOBAL_MMR32_BASE)
326313

327314
#define UV_LOCAL_MMR_SIZE ( \
328-
is_uv1_hub() ? UV1_LOCAL_MMR_SIZE : \
329315
is_uv2_hub() ? UV2_LOCAL_MMR_SIZE : \
330316
is_uv3_hub() ? UV3_LOCAL_MMR_SIZE : \
331317
/*is_uv4_hub*/ UV4_LOCAL_MMR_SIZE)
332318

333319
#define UV_GLOBAL_MMR32_SIZE ( \
334-
is_uv1_hub() ? UV1_GLOBAL_MMR32_SIZE : \
335320
is_uv2_hub() ? UV2_GLOBAL_MMR32_SIZE : \
336321
is_uv3_hub() ? UV3_GLOBAL_MMR32_SIZE : \
337322
/*is_uv4_hub*/ UV4_GLOBAL_MMR32_SIZE)
@@ -352,8 +337,6 @@ union uvh_apicid {
352337
#define UVH_APICID 0x002D0E00L
353338
#define UV_APIC_PNODE_SHIFT 6
354339

355-
#define UV_APICID_HIBIT_MASK 0xffff0000
356-
357340
/* Local Bus from cpu's perspective */
358341
#define LOCAL_BUS_BASE 0x1c00000
359342
#define LOCAL_BUS_SIZE (4 * 1024 * 1024)
@@ -560,15 +543,6 @@ static inline int uv_apicid_to_pnode(int apicid)
560543
return s2pn ? s2pn[pnode - uv_hub_info->min_socket] : pnode;
561544
}
562545

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-
572546
/*
573547
* Access global MMRs using the low memory MMR32 space. This region supports
574548
* 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)
660634
return uv_cpu_info_per(cpu)->blade_cpu_id;
661635
}
662636

663-
/* Blade number to Node number (UV1..UV4 is 1:1) */
637+
/* Blade number to Node number (UV2..UV4 is 1:1) */
664638
static inline int uv_blade_to_node(int blade)
665639
{
666640
return blade;
@@ -674,7 +648,7 @@ static inline int uv_numa_blade_id(void)
674648

675649
/*
676650
* 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.
678652
* .. If this changes then you MUST check references to this function!
679653
*/
680654
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)
821795
}
822796
}
823797

824-
extern unsigned int uv_apicid_hibits;
825-
826798
/*
827799
* Get the minimum revision number of the hub chips within the partition.
828800
* (See UVx_HUB_REVISION_BASE above for specific values.)

0 commit comments

Comments
 (0)