From owner-freebsd-current@FreeBSD.ORG Sun Oct 4 22:45:58 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7F1C1065695 for ; Sun, 4 Oct 2009 22:45:58 +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 8A84D8FC1F for ; Sun, 4 Oct 2009 22:45:58 +0000 (UTC) Received: by pzk39 with SMTP id 39so532589pzk.15 for ; Sun, 04 Oct 2009 15:45:58 -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 :in-reply-to:references:message-id:mime-version:content-type :content-transfer-encoding:x-mailer; bh=b9aeIWky1+DsRbtvST8aimruDuHJqmBFSLVCtvL+Alk=; b=pYzhHPckbhzxaQl5yB67rkgQa0PtZmXRqVqYi/GRktm5fye6ar3Jyvrr4WYGnBG8Wr WYAGo17FrjwVVN4QKiGhk65igm85LS3+mbwMm8vw1npL+HahbIudyJ2mvV+7CvgrEXvF DKIpgiIn8MrHeFpPe16/ri6QZbCQap3aeh/vY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding:x-mailer; b=n9aMoEyqmSeafb+Fyi813kpnnxCj0rQGUCjufYmK5Gju+NkFIG5Xl6elMPD2NP4ATu j/50QnUsoSih42z4dGbB4WWf/6051VHelx+gbGkKetpyznlr7F9TEZYqs5yEi2FPFuEb XJedHhGEYDsCzC+zl5hIo6xk+loPEsWFXonpM= Received: by 10.114.69.13 with SMTP id r13mr7854516waa.16.1254695118164; Sun, 04 Oct 2009 15:25:18 -0700 (PDT) Received: from ?192.168.4.101? (router.jinbo.jp [210.229.61.161]) by mx.google.com with ESMTPS id 23sm2239155pzk.0.2009.10.04.15.25.16 (version=SSLv3 cipher=RC4-MD5); Sun, 04 Oct 2009 15:25:17 -0700 (PDT) Date: Mon, 05 Oct 2009 07:25:18 +0900 From: "Michio \"Karl\" Jinbo" To: freebsd-current@freebsd.org In-Reply-To: <200910041220.n94CKxTH073639@svn.freebsd.org> References: <200910041220.n94CKxTH073639@svn.freebsd.org> Message-Id: <20091005072515.3622.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] Subject: pmap_invalidate_cache_range() panic on Xen Server X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Oct 2009 22:45:58 -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