Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion kernel/setparam-ref.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <stdio.h>
#include <string.h>
#include "common.h"
extern char* gotoblas_corename(void);

#ifdef BUILD_KERNEL
#include "kernelTS.h"
Expand Down Expand Up @@ -2119,7 +2120,8 @@ static void init_parameter(void) {
cpuid(0, &eax, &ebx, &ecx, &edx);

if ((ebx == 0x68747541) && (l3_kb > 0) && (l3_kb % 32768 == 0) && (l2_kb == 1024)) { //Auth AMD

if (strcmp(gotoblas_corename(), "cooperlake") == 0 || strcmp(gotoblas_corename(), "skylakex") == 0 || strcmp(gotoblas_corename(), "sapphirerapids") == 0) {

cpuid(7, &cpuid7_eax, &cpuid7_ebx, &cpuid7_ecx, &cpuid7_edx);

if (cpuid7_ebx & (1 << 16)) { // avx512 - Zen 4, 5
Expand All @@ -2141,6 +2143,7 @@ static void init_parameter(void) {
#endif
}
}
}
}
#endif

Expand Down
Loading