From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 19 13:35:34 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2025D106564A for ; Sat, 19 Feb 2011 13:35:34 +0000 (UTC) (envelope-from gljennjohn@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id A3C538FC12 for ; Sat, 19 Feb 2011 13:35:33 +0000 (UTC) Received: by fxm19 with SMTP id 19so1255863fxm.13 for ; Sat, 19 Feb 2011 05:35:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:x-mailer:mime-version:content-type :content-transfer-encoding; bh=6Lq3TBrFHc9ZfdYL8VSAGMNxvack6eN91u3dMoQt+6k=; b=KsDl2LkJL1nqNYFkNTSWF+KbxGner7Nnt9JhAs1dZ7NoSLHHnPIAw1oB8ri4mSWOGM Q2I1TyMcbOmGAiqTSB5z3Ik8b0MVJbNgUeB3MAB8exVXRjo8TVKlpkAJfZlJ1NrfSjPT t5CSJwt7YTvy6H+DdBdLYCNlYt2sFMJP+qm6A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :x-mailer:mime-version:content-type:content-transfer-encoding; b=AMEQTVxgw32pCmF3QLaWJqDYjJjxCIYc3d5ynfvwuErocDi/UE8S4eJqmqqaaYaMYn DPd9WMfP9+y/JsvlaoBHX5MO8o2CtWAnlFs2qZHw+uJiVzpKvoJgRp48moBibKIl4HqK 5y5H1nmGFLTz26PkSfDkGjeiMBZp6ENU5q4qc= Received: by 10.223.96.195 with SMTP id i3mr2442168fan.77.1298122532221; Sat, 19 Feb 2011 05:35:32 -0800 (PST) Received: from ernst.jennejohn.org (p578E384B.dip.t-dialin.net [87.142.56.75]) by mx.google.com with ESMTPS id n3sm1561522faa.5.2011.02.19.05.35.31 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 19 Feb 2011 05:35:31 -0800 (PST) Date: Sat, 19 Feb 2011 14:35:30 +0100 From: Gary Jennejohn To: "Steven Hartland" Message-ID: <20110219143530.45d0f958@ernst.jennejohn.org> In-Reply-To: <8332E9240ECA403480B48D21FA3A8694@multiplay.co.uk> References: <8332E9240ECA403480B48D21FA3A8694@multiplay.co.uk> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.18.7; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Subject: Re: machdep.hlt_cpus not safe with ULE? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gljennjohn@googlemail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Feb 2011 13:35:34 -0000 On Sat, 19 Feb 2011 12:36:57 -0000 "Steven Hartland" wrote: > I'm trying to debug a possibly failing CPU, so I thought it would > be easy just disable the cores using machdep.hlt_cpus and see if > we see the panic's we've been seeing. > > The problem is it seems ULE doesnt properly support machdep.hlt_cpus > and still schedules processes onto the halted cpus which obviously > causes problems. > > Can anyone confirm this behaviour? Should machdep.hlt_cpus and I assume > the logical counterpart never be used with ULE? > Looking at the kernel source it appears that only sched_4bsd.c makes use of hlt_cpus_mask. -- Gary Jennejohn