From owner-svn-src-all@FreeBSD.ORG Sun Oct 4 16:20:42 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 C94041065672; Sun, 4 Oct 2009 16:20:42 +0000 (UTC) (envelope-from michio.jinbo@gmail.com) Received: from mail-pz0-f201.google.com (mail-pz0-f201.google.com [209.85.222.201]) by mx1.freebsd.org (Postfix) with ESMTP id 8B24D8FC18; Sun, 4 Oct 2009 16:20:42 +0000 (UTC) Received: by pzk39 with SMTP id 39so392472pzk.15 for ; Sun, 04 Oct 2009 09:20:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject:cc :in-reply-to:references:message-id:mime-version:content-type :content-transfer-encoding:x-mailer; bh=b9aeIWky1+DsRbtvST8aimruDuHJqmBFSLVCtvL+Alk=; b=JSgHo95fotcDjGLAxjM9Mu/FKqkSntq4m7WwxiOUKSAECBii+ua+OKZHHDvquEv168 20mWCTFpq+DFM7E3pUmn0iuPWx6lXNYH7UNdF6N6ztUfsR/QYf45+SVEcOznEC4O5nXQ Zg5fpNFxj3VllPj+OcKLU7aetNJcLDLuXdUTI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:cc:in-reply-to:references:message-id :mime-version:content-type:content-transfer-encoding:x-mailer; b=NL57+SrLa9UrAXGRVBnghDICF057vm3RU0E9xZOiZY28PgOcYm4poxa7x3oj7durqJ yeS3U//q21acdM7AW1Chpl4eMA4rdjq1Zunv/N3jtCSrCmKH2iUjPNPl3gp4+08Ee7c0 S6b2z17mO22/pXNvaALmbRL+1v7s/AEOVo30w= Received: by 10.115.151.5 with SMTP id d5mr7275942wao.204.1254671367032; Sun, 04 Oct 2009 08:49:27 -0700 (PDT) Received: from ?192.168.4.101? (router.jinbo.jp [210.229.61.161]) by mx.google.com with ESMTPS id 23sm2051096pzk.12.2009.10.04.08.49.24 (version=SSLv3 cipher=RC4-MD5); Sun, 04 Oct 2009 08:49:26 -0700 (PDT) Date: Mon, 05 Oct 2009 00:49:27 +0900 From: "Michio \"Karl\" Jinbo" To: src-committers@freebsd.org In-Reply-To: <200910041220.n94CKxTH073639@svn.freebsd.org> References: <200910041220.n94CKxTH073639@svn.freebsd.org> Message-Id: <20091005004923.4086.22FF24F1@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.51.07 [ja] Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org Subject: Re: svn commit: r197744 - in stable/8/sys: . amd64/amd64 amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/xen/xenpci 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: Sun, 04 Oct 2009 16:20:42 -0000 On Sun, 4 Oct 2009 12:20:59 +0000 (UTC) Konstantin Belousov wrote: > Log: > MFC r197663: > As a workaround, for Intel CPUs, do not use CLFLUSH in > pmap_invalidate_cache_range() when self-snoop is apparently not reported > in cpu features. > > Approved by: re (bz, kensmith) I was tested r197663/r197744, but kernel panic again on Citrix Xen Server. using 8.0-RC1 install cd, results are 1. INTEL SU9400+HYPER-V(Windows2008 R2) -> boot OK. 2. AMD Athlon X2 TK-55+HYPER-V(Windows2008 R2) -> boot NG. 3. AMD PhenomII 940BK+Citrix Xen Server -> boot NG. I think INTEL CPUs are no problem, but AMD CPUs appear the problem. So I tested the following patch, kernel boot was successed on recent 9-CURRENT and environment 3. sorry, poor English. --- sys/i386/i386/initcpu.c.original 2009-10-01 21:52:48.000000000 +0900 +++ sys/i386/i386/initcpu.c 2009-10-05 08:29:45.000000000 +0900 @@ -721,7 +721,7 @@ * XXXKIB: (temporary) hack to work around traps generated when * CLFLUSHing APIC registers window. */ - if (cpu_vendor_id == CPU_VENDOR_INTEL && !(cpu_feature & CPUID_SS)) + if (cpu_vendor_id == CPU_VENDOR_AMD && !(cpu_feature & CPUID_SS)) cpu_feature &= ~CPUID_CLFSH; #if defined(PC98) && !defined(CPU_UPGRADE_HW_CACHE) -- Michio Jinbo