From owner-freebsd-acpi@FreeBSD.ORG Fri May 18 14:45:18 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12E9F1065674; Fri, 18 May 2012 14:45:18 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id D978A8FC14; Fri, 18 May 2012 14:45:17 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 3ADF1B96C; Fri, 18 May 2012 10:45:17 -0400 (EDT) From: John Baldwin To: Andriy Gapon Date: Fri, 18 May 2012 10:45:16 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p13; KDE/4.5.5; amd64; ; ) References: <4FAF7343.8010808@cran.org.uk> <201205171005.19736.jhb@freebsd.org> <4FB51A64.6090906@FreeBSD.org> In-Reply-To: <4FB51A64.6090906@FreeBSD.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201205181045.16675.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 18 May 2012 10:45:17 -0400 (EDT) Cc: Bruce Cran , freebsd-acpi@freebsd.org, freebsd-current Subject: Re: ACPI 'driver bug: Unable to set devclass' X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2012 14:45:18 -0000 On Thursday, May 17, 2012 11:33:56 am Andriy Gapon wrote: > on 17/05/2012 17:05 John Baldwin said the following: > > On Wednesday, May 16, 2012 4:07:43 pm John Baldwin wrote: > >> Oh, whoops. Actually, the right way to do this I think is bus_hint_device_unit() > >> (and/or, not make the unit number in cpuX mean anything at all, but use a separate > >> ivar to track what PCPU_GET(cpuid) a given cpuX device corresponds to). I think > >> the last approach is really the right way to fix this. > > > > I haven't been able to try this yet, but I have a first cut at > > www.freebsd.org/~jhb/patches/acpi_cpu.patch > > > > The patch has not been compile-tested? :) I've updated it with a run-tested version. -- John Baldwin