On Sat, Jun 15, 2024 at 09:35:30PM +0000, Klemens Nanni wrote:
> GENERIC and GENERIC_MP both hang with this diff after
>   cpu0: 4MB 64b/line 16-way L2 cache
> but I haven't looked into that yet.

...

> cpu0: ZHAOXIN KaiXian KX-6640MA@2.2+GHz, 2594.84 MHz, 07-0b-00

MTRR is not set on ramdisk kernels, try the diff below

Index: sys/arch/amd64/amd64/mtrr.c
===================================================================
RCS file: /cvs/src/sys/arch/amd64/amd64/mtrr.c,v
diff -u -p -r1.5 mtrr.c
--- sys/arch/amd64/amd64/mtrr.c 3 Apr 2024 02:01:21 -0000       1.5
+++ sys/arch/amd64/amd64/mtrr.c 16 Jun 2024 02:32:30 -0000
@@ -49,7 +49,7 @@ mem_range_attach(void)
        if ((ci->ci_vendor == CPUV_AMD ||
             ci->ci_vendor == CPUV_INTEL ||
             ci->ci_vendor == CPUV_VIA) && 
-           (family == 0x6 || family == 0xf) &&
+           (family >= 0x6) &&
            cpu_feature & CPUID_MTRR) {
                mem_range_softc.mr_op = &mrops;
        }

Reply via email to