From owner-freebsd-acpi@FreeBSD.ORG Thu May 17 15:34:01 2012 Return-Path: Delivered-To: freebsd-acpi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 977871065676; Thu, 17 May 2012 15:34:01 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 5441A8FC1E; Thu, 17 May 2012 15:34:00 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id SAA12182; Thu, 17 May 2012 18:33:57 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <4FB51A64.6090906@FreeBSD.org> Date: Thu, 17 May 2012 18:33:56 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120503 Thunderbird/12.0.1 MIME-Version: 1.0 To: John Baldwin References: <4FAF7343.8010808@cran.org.uk> <4FB3D351.6030804@FreeBSD.org> <201205161607.43286.jhb@freebsd.org> <201205171005.19736.jhb@freebsd.org> In-Reply-To: <201205171005.19736.jhb@freebsd.org> X-Enigmail-Version: 1.5pre Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Bruce Cran , freebsd-acpi@FreeBSD.org, freebsd-current , Jung-uk Kim 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: Thu, 17 May 2012 15:34:01 -0000 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? :) -- Andriy Gapon