From owner-svn-src-all@FreeBSD.ORG Mon Oct 5 11:39:24 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 1536B1065693; Mon, 5 Oct 2009 11:39:24 +0000 (UTC) (envelope-from michio.jinbo@gmail.com) Received: from mail-pz0-f202.google.com (mail-pz0-f202.google.com [209.85.222.202]) by mx1.freebsd.org (Postfix) with ESMTP id A6BA38FC21; Mon, 5 Oct 2009 11:39:23 +0000 (UTC) Received: by pzk40 with SMTP id 40so2959630pzk.7 for ; Mon, 05 Oct 2009 04:39:23 -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=61EaWSTH8BcxFKJ8T3sO4fC2OMYKqHj05IJ+BvEbavc=; b=eKKM8kh2wsvSTnP68CjPSXP6JGzJ6D/+GXDqHDGUi1DvdDPtHMSQ8SdLUQQBl2yEnC Gl5RB/EIPdRPbX8wv9Ei/deDVgVcenPG0tQjrprBqxqsBT2BmfHmuSy9qQGm+TgZvCiy K3CrMqF+lmqAxeUshEc1uw1rRugIVD3/a/SLM= 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=TDXYVFLZ0RvOWXVEa6B8TMM2p6bYI3wy+GCYinO0Os3IaPbae/KcFyKPPo1d7dxeID QRyYAIduVKD9FpV4k6+yA98M/fUDjXlWnWOYp6l/xESOltY1AKjjnxNpx289Ii/TT8uq pAe+c7Iz8i5uKRSA/IXpGGtO6NXy1xo2Q5MGs= Received: by 10.115.85.6 with SMTP id n6mr8890167wal.74.1254742763257; Mon, 05 Oct 2009 04:39:23 -0700 (PDT) Received: from ?192.168.4.100? (router.jinbo.jp [210.229.61.161]) by mx.google.com with ESMTPS id 22sm712946pzk.6.2009.10.05.04.39.21 (version=SSLv3 cipher=RC4-MD5); Mon, 05 Oct 2009 04:39:22 -0700 (PDT) Date: Mon, 05 Oct 2009 20:39:23 +0900 From: "Michio \"Karl\" Jinbo" To: Konstantin Belousov In-Reply-To: <200910041220.n94CKxTH073639@svn.freebsd.org> References: <200910041220.n94CKxTH073639@svn.freebsd.org> Message-Id: <20091005203920.1278.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-stable@freebsd.org, svn-src-all@freebsd.org, freebsd-current@freebsd.org, src-committers@freebsd.org, svn-src-stable-8@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: Mon, 05 Oct 2009 11:39:24 -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 "Karl" Jinbo