From marcolz@hammer.stack.nl  Thu May  8 08:16:38 2008
Return-Path: <marcolz@hammer.stack.nl>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 97F1E106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  8 May 2008 08:16:38 +0000 (UTC)
	(envelope-from marcolz@hammer.stack.nl)
Received: from hammer.stack.nl (hammer.stack.nl [131.155.140.153])
	by mx1.freebsd.org (Postfix) with ESMTP id 5EA3E8FC14
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  8 May 2008 08:16:38 +0000 (UTC)
	(envelope-from marcolz@hammer.stack.nl)
Received: by hammer.stack.nl (Postfix, from userid 333)
	id 62499611F; Thu,  8 May 2008 09:58:41 +0200 (CEST)
Message-Id: <20080508075841.62499611F@hammer.stack.nl>
Date: Thu,  8 May 2008 09:58:41 +0200 (CEST)
From: Marc Olzheim <marcolz@stack.nl>
Reply-To: Marc Olzheim <marcolz@stack.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: src/sys/kern.mk fails to disable -msse3 for amd64
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         123518
>Category:       kern
>Synopsis:       [patch] src/sys/kern.mk fails to disable -msse3 for amd64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 08 08:20:01 UTC 2008
>Closed-Date:    Mon May 16 14:46:25 UTC 2011
>Last-Modified:  Mon May 16 14:46:25 UTC 2011
>Originator:     Marc Olzheim <marcolz@stack.nl>
>Release:        FreeBSD 7.0-STABLE amd64
>Organization:
iphion B.V.
>Environment:
System: FreeBSD hammer.stack.nl 7.0-STABLE FreeBSD 7.0-STABLE #0: Mon Mar 24 16:49:01 CET 2008 dean@hammer.stack.nl:/sabretooth.mnt/sources/7.x/amd64/obj/sabretooth.mnt/sources/7.x/src/sys/STACK-SMP64 amd64


>Description:
	Although revision 1.46 ( http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/conf/kern.mk#rev1.46 ) fixes this for the i386 build, the same fix should be applied to the amd64 build.
>How-To-Repeat:
	set CPUTYPE to nocona and add -msse3 to CFLAGS in /etc/make.conf
>Fix:

--- /usr/src/sys/conf/kern.mk	2007-05-24 23:53:42.000000000 +0200
+++ /usr/src/sys/conf/kern.mk	2008-05-08 09:44:09.000000000 +0200
@@ -70,7 +70,7 @@
 #
 .if ${MACHINE_ARCH} == "amd64"
 CFLAGS+=	-mcmodel=kernel -mno-red-zone \
-		-mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow \
+		-mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow \
 		-msoft-float -fno-asynchronous-unwind-tables
 INLINE_LIMIT?= 8000
 .endif


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->ache 
Responsible-Changed-By: matteo 
Responsible-Changed-When: Sab 10 Mag 2008 20:31:30 UTC 
Responsible-Changed-Why:  
Andrey, you committed the fix for the i386 case. Can you please look at the amd64 one described in this PR, too? Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123518 
State-Changed-From-To: open->patched 
State-Changed-By: ache 
State-Changed-When: Sat May 10 20:47:41 UTC 2008 
State-Changed-Why:  
Committed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123518 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/123518: commit references a PR
Date: Sat, 10 May 2008 20:46:19 +0000 (UTC)

 ache        2008-05-10 20:46:08 UTC
 
   FreeBSD src repository
 
   Modified files:
     sys/conf             kern.mk 
   Log:
   Add -mno-sse3 for amd64 case too
   
   PR:             123518
   Submitted by:   Marc Olzheim <marcolz@stack.nl>
   
   Revision  Changes    Path
   1.54      +1 -1      src/sys/conf/kern.mk
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: Marc Olzheim <marcolz@stack.nl>
To: ache@FreeBSD.org, bug-followup@FreeBSD.org
Cc: Marc Olzheim <marcolz@stack.nl>
Subject: Re: kern/123518: [patch] src/sys/kern.mk fails to disable -msse3 for amd64
Date: Tue, 13 May 2008 11:00:14 +0200

 > Synopsis: [patch] src/sys/kern.mk fails to disable -msse3 for amd64
 > 
 > State-Changed-From-To: open->patched
 > State-Changed-By: ache
 > State-Changed-When: Sat May 10 20:47:41 UTC 2008
 > State-Changed-Why: 
 > Committed
 > 
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=123518
 
 Great, thanks :)
 
 Will this be MFCd as well ?
 
 Marc

From: Pegasus Mc cleaft <ken@mthelicon.com>
To: bug-followup@freebsd.org, marcolz@stack.nl
Cc:  
Subject: Re: kern/123518: [patch] src/sys/kern.mk fails to disable -msse3 for amd64
Date: Sun, 13 Jul 2008 22:39:44 +0100

 Is there any reason why this has not been MFC'ed yet? 
 
 I have to keep patching the kern.mk file with each build, or is there a 
 problem with AMD64 and using this flag? 
 
 Ta
 Peg
Responsible-Changed-From-To: ache->freebsd-bugs 
Responsible-Changed-By: ache 
Responsible-Changed-When: Tue Sep 16 14:05:49 UTC 2008 
Responsible-Changed-Why:  
Return to freebsd-bugs, I don't have -stable machine convenient for merging. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=123518 

From: Marc Olzheim <marcolz@stack.nl>
To: bug-followup@freebsd.org, Marc Olzheim <marcolz@stack.nl>
Cc:  
Subject: Re: kern/123518: [patch] src/sys/kern.mk fails to disable -msse3
 for amd64
Date: Mon, 16 Aug 2010 17:04:14 +0200

 I have no idea why this has not been MFCd to RELENG yet, but if no one
 has the intention to do that, feel free to close it with WONT_FIX.
 
 Marc
State-Changed-From-To: patched->closed 
State-Changed-By: jh 
State-Changed-When: Mon May 16 14:46:23 UTC 2011 
State-Changed-Why:  
Submitter considers this resolved. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123518 
>Unformatted:
