From owner-svn-src-all@FreeBSD.ORG Wed Nov 4 16:15:30 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8A44106566C; Wed, 4 Nov 2009 16:15:30 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 0DC418FC13; Wed, 4 Nov 2009 16:15:29 +0000 (UTC) Received: by fxm27 with SMTP id 27so83255fxm.3 for ; Wed, 04 Nov 2009 08:15:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=gUndf19vxbMHV+XRcUU2OB5dXEasEOTVfqw+q4MlsCw=; b=qc/vRqlPQDl2+tADDbwiLeYrk2ikiALIjNFJNibAEfK+IHHc8vIIbqwlmuolYg0tKh CBraxu+RRVK08ZwdmkaHBgcv5eK5ZrimuL7uTIRax9jo6ZUiOlljiMnkb5Nr5iv7mVN9 HG5JiHxwPbGqfwcRzu2gvOcnLSb2GXVM3pXpg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=XeTAXgva8rsLx3+LMMuHbDnY1nbkYIaEXQFoTJOvIH0U5IUlt7s2a6FGKgVObm7xAk jlFCd4RpmknXrj8gbhOf+yMmuo2JGXnxq5H+b7Ewvymo5lz8Vv7Ki6oElt+jXq9QL2ut yOKIGynvjmK2uMGXyEEQEUy93Uvp9iJR0abm4= MIME-Version: 1.0 Sender: asmrookie@gmail.com Received: by 10.223.17.144 with SMTP id s16mr224504faa.41.1257351328909; Wed, 04 Nov 2009 08:15:28 -0800 (PST) In-Reply-To: <86y6mmff1a.fsf@ds4.des.no> References: <200911040132.nA41WxtQ012750@svn.freebsd.org> <863a4ugvmi.fsf@ds4.des.no> <3bbf2fe10911040806l7293ab6l99cce51ea9d7a64c@mail.gmail.com> <86y6mmff1a.fsf@ds4.des.no> Date: Wed, 4 Nov 2009 17:15:28 +0100 X-Google-Sender-Auth: 6b10b77bd85edd3a Message-ID: <3bbf2fe10911040815u780ea5d5h8252b46ddf0c5de7@mail.gmail.com> From: Attilio Rao To: =?UTF-8?Q?Dag=2DErling_Sm=C3=B8rgrav?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r198868 - in head/sys: amd64/amd64 i386/i386 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Nov 2009 16:15:30 -0000 2009/11/4, Dag-Erling Sm=C3=B8rgrav : > Attilio Rao writes: > > Dag-Erling Sm=C3=B8rgrav writes: > > > According to the reference you gave, OpenSolaris has a workaround for > > > this issue. Perhaps we should adopt it? > > IIRC, based on what I readed on-line, it could be still a WARNING msg, > > but I didn't double-check for it. > > Uh, apparently, it can be worked around with an additional lfence > instruction... See the first couple of comments on that bugzilla page > you linked to. If the cost is too high, we could make it conditional on > "options BROKEN_OPTERON_E" or something. Yeah but the lfence is completely impratical from the overhead POV -- and actually I don't like the idea to add a compile time option based on family/model. We could maybe do a mixed approach: printout the WARNING msg only if the BROKEN_OPTERON_E is not used otherwise be ok. I still don't like it because it is going to dirty the atomic.h code a bit, but it can be an acceptable compromise. Attilio --=20 Peace can only be achieved by understanding - A. Einstein