Marco Pistella wrote on Yesterday, 08:56:Regarding the Skylake+ write-combining crash: I suspect
it may be related to a problem I encountered with my
AVX/AVX-512 routi […]
Show full quote
Regarding the Skylake+ write-combining crash: I suspect
it may be related to a problem I encountered with my
AVX/AVX-512 routines in X-VESA. On one test system the
AVX routines were crashing after transferring between
170 and 280 KB of VRAM — meaning they worked, at least
briefly. The crashes disappeared completely when I
replaced the USB keyboard with a PS/2 one. The discovery
was entirely accidental.
My hypothesis is that USB legacy mode SMI handling
corrupts some CPU state during the critical section —
but this is a hypothesis, not a confirmed diagnosis.
It also seems to depend on the BIOS CSM/UEFI
implementation rather than the chipset itself.
Interesting theory. Your behavior mirrors mine. Sometimes MTRRs seem to be enabled for a very brief time (ie, program prints LFB writecombining is enabled just before complete system freeze. It may be BIOS/CSM specific, but I've tested about 15 different brand laptops with Intel Integrated GPUs and they all fail to enable MTRRs on Skylake and above, but will on Broadwell. As to UEFI implementation, I have tried a mix of UEFI implentations on different brands of laptops for Broadwell and below, and they all work fine. Even the same brand laptop with a Skylake vs a Broadwell chip (and same UEFI) freezes on the 6th gen chip while enables MTRRs on the 5th gen. Only thing changed is the Intel onboard vBIOS.
Unfortunately I can't attach PS/2 keyboard to any of these systems, as they're all laptops, using the builtin keyboards. None has any extant PS/2 ports. I can attach a USB keyboard which will disable the builtin keyboard, however; I'll see if that has any different behavior. I suspect some sort of "legacy mode" implementation bug. Disabling USB Legacy mode if possible will disable my keyboard input, however.
It will help greatly if anyone may test Skylake and above Intel core systems, with Intel integrated onboard graphics in baremetal DOS, and report if writecombining can be successfully enabled. Report your system stats (CPU and exact brand / model of laptop or system used.)