|
26 | 26 | static DEFINE_PER_CPU(int, x2apic_extra_bits);
|
27 | 27 |
|
28 | 28 | static enum uv_system_type uv_system_type;
|
29 |
| -static bool uv_hubless_system; |
| 29 | +static int uv_hubless_system; |
30 | 30 | static u64 gru_start_paddr, gru_end_paddr;
|
31 | 31 | static u64 gru_dist_base, gru_first_node_paddr = -1LL, gru_last_node_paddr;
|
32 | 32 | static u64 gru_dist_lmask, gru_dist_umask;
|
@@ -268,11 +268,20 @@ static int __init uv_acpi_madt_oem_check(char *_oem_id, char *_oem_table_id)
|
268 | 268 | uv_stringify(sizeof(oem_table_id), oem_table_id, _oem_table_id);
|
269 | 269 |
|
270 | 270 | if (strncmp(oem_id, "SGI", 3) != 0) {
|
271 |
| - if (strncmp(oem_id, "NSGI", 4) == 0) { |
272 |
| - uv_hubless_system = true; |
273 |
| - pr_info("UV: OEM IDs %s/%s, HUBLESS\n", |
274 |
| - oem_id, oem_table_id); |
275 |
| - } |
| 271 | + if (strncmp(oem_id, "NSGI", 4) != 0) |
| 272 | + return 0; |
| 273 | + |
| 274 | + /* UV4 Hubless, CH, (0x11:UV4+Any) */ |
| 275 | + if (strncmp(oem_id, "NSGI4", 5) == 0) |
| 276 | + uv_hubless_system = 0x11; |
| 277 | + |
| 278 | + /* UV3 Hubless, UV300/MC990X w/o hub (0x9:UV3+Any) */ |
| 279 | + else |
| 280 | + uv_hubless_system = 0x9; |
| 281 | + |
| 282 | + pr_info("UV: OEM IDs %s/%s, HUBLESS(0x%x)\n", |
| 283 | + oem_id, oem_table_id, uv_hubless_system); |
| 284 | + |
276 | 285 | return 0;
|
277 | 286 | }
|
278 | 287 |
|
@@ -350,9 +359,9 @@ int is_uv_system(void)
|
350 | 359 | }
|
351 | 360 | EXPORT_SYMBOL_GPL(is_uv_system);
|
352 | 361 |
|
353 |
| -int is_uv_hubless(void) |
| 362 | +int is_uv_hubless(int uvtype) |
354 | 363 | {
|
355 |
| - return uv_hubless_system; |
| 364 | + return (uv_hubless_system & uvtype); |
356 | 365 | }
|
357 | 366 | EXPORT_SYMBOL_GPL(is_uv_hubless);
|
358 | 367 |
|
@@ -1592,7 +1601,7 @@ static void __init uv_system_init_hub(void)
|
1592 | 1601 | */
|
1593 | 1602 | void __init uv_system_init(void)
|
1594 | 1603 | {
|
1595 |
| - if (likely(!is_uv_system() && !is_uv_hubless())) |
| 1604 | + if (likely(!is_uv_system() && !is_uv_hubless(1))) |
1596 | 1605 | return;
|
1597 | 1606 |
|
1598 | 1607 | if (is_uv_system())
|
|
0 commit comments