Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jan 2012 21:59:13 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Yamagi Burmeister <lists@yamagi.org>
Cc:        amd64@freebsd.org, arch@freebsd.org
Subject:   Re: AVX
Message-ID:  <20120108195913.GI31224@deviant.kiev.zoral.com.ua>
In-Reply-To: <20120108174112.50e030ba.lists@yamagi.org>
References:  <20111226220756.GR50300@deviant.kiev.zoral.com.ua> <20120102063700.GF50300@deviant.kiev.zoral.com.ua> <20120108174112.50e030ba.lists@yamagi.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Sun, Jan 08, 2012 at 05:41:12PM +0100, Yamagi Burmeister wrote:
> Hi,
> I've tested your patch on a Core2Duo with XSAVE but (of course) without
> AVX on 10-CURRENT as of today (r229812):
> 
> CPU: Intel(R) Core(TM)2 Duo CPU     T6670  @ 2.20GHz (2194.55-MHz
> K8-class CPU) Origin = "GenuineIntel"  Id = 0x1067a  Family = 6  Model
>   = 17  Stepping = 10
> Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,
>   MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
> Features2=0x408e3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,
>   PDCM,SSE4.1,XSAVE>
> AMD Features=0x20100800<SYSCALL,NX,LM> AMD Features2=0x1<LAHF> 
Is this Features excerpt from the patched kernel, or from pristine svn
sources ? If the later, please show me the Features from the patched
kernel.
> 
> Everything's fine:
> - System is booting without a problem
> - All applications are working
> - AVX applications are still failing with SIGILL
> 
> But there's one problem: While a shutdown (shutdown -p now) is always
> successfull a reboot (shutdown -r now) and suspend (zzz) are resulting 
> in a double panic. The first panic is a "Fatal trap 9: general
> protection fault while in kernel mode" on "cpuid = 1; apic id = 01".
> The process is always "idle: cpu1".
> 
> The second panic is also "Fatal trap 9: general protection fault while
> in kernel mode" but with "cpuid = 0; apic id = 00". The process is
> always "init". 
> 
> Since it's a dual core cpu, one panic for each processor core? 
> 
> I'm unable to get a core dump and ddb is unresponsive to any keyboard
> input. A serial console is unavailable, since it's a laptop...
> Nevertheless I've uploaded screenshots of both panics to:
>  
>  http://deponie.yamagi.org/freebsd/debug/avx 

I thought that I correctly handled savectx, but apparently I did not.
The issue for sleep enter could be fixed by the avx.4.patch, I am not
sure about shutdown -r panic.

http://people.freebsd.org/~kib/misc/avx.4.patch

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEARECAAYFAk8J9ZEACgkQC3+MBN1Mb4hCkACfRfaVp2kkmdloEwBMrrxK6wms
QCcAoJBGCqQasa9UV9hZbSTAxS4mHVnv
=oOp+
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120108195913.GI31224>