Hi,
I've a problem with running FreeNAS in QNAP TVS-473. This is a box with quite exotic CPU:
FreeNAS panics on boot with stack trace pointing at function: native_start_all_aps() function which indeed can panic if start_ap() returns an an error.
Code taken from here: https://github.com/freebsd/freebsd/blob/release/11.1.0/sys/amd64/amd64/mp_machdep.c
FreeNAS works like a charm for weeks if I start it with "set kFreeBSD.kern.smp.disabled=1" option, but I'm leaving a lot of performance on the floor which bothers me.
Question #1: anyone knows what this could be and how to fix it?
Question #2: how to build custom kernel which is identical as the one built by FreeNAS? (I'm happy to do all necessary tests to fix it)
I've a problem with running FreeNAS in QNAP TVS-473. This is a box with quite exotic CPU:
Code:
CPU: AMD Embedded R-Series RX-421BD Radeon R7 (2096.11-MHz K8-class CPU) Origin="AuthenticAMD" Id=0x660f01 Family=0x15 Model=0x60 Stepping=1 Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> Features2=0x7ed8320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND> AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM> AMD Features2=0x2febbfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,TCE,NodeId,TBM,Topology,PCXC,PNXC,<b25>,DBE,PTSC,MWAITX> Structured Extended Features=0x1a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2> XSAVE Features=0x1<XSAVEOPT> SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=32768 TSC: P-state invariant, performance statistics
FreeNAS panics on boot with stack trace pointing at function: native_start_all_aps() function which indeed can panic if start_ap() returns an an error.
Code:
if (!start_ap(apic_id)) { /* restore the warmstart vector */ *(u_int32_t *) WARMBOOT_OFF = mpbioswarmvec; panic("AP #%d (PHY# %d) failed!", cpu, apic_id); }
Code taken from here: https://github.com/freebsd/freebsd/blob/release/11.1.0/sys/amd64/amd64/mp_machdep.c
FreeNAS works like a charm for weeks if I start it with "set kFreeBSD.kern.smp.disabled=1" option, but I'm leaving a lot of performance on the floor which bothers me.
Question #1: anyone knows what this could be and how to fix it?
Question #2: how to build custom kernel which is identical as the one built by FreeNAS? (I'm happy to do all necessary tests to fix it)