Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261205AbUKEUrV (ORCPT ); Fri, 5 Nov 2004 15:47:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261215AbUKEUrU (ORCPT ); Fri, 5 Nov 2004 15:47:20 -0500 Received: from soundwarez.org ([217.160.171.123]:58830 "EHLO soundwarez.org") by vger.kernel.org with ESMTP id S261218AbUKEUpd (ORCPT ); Fri, 5 Nov 2004 15:45:33 -0500 Date: Fri, 5 Nov 2004 21:45:39 +0100 From: Kay Sievers To: Ashok Raj Cc: Greg KH , Adrian Bunk , Andrew Morton , rml@novell.com, linux-kernel@vger.kernel.org, "Brown, Len" , acpi-devel@lists.sourceforge.net, rusty@rustycorp.com.au Subject: Re: 2.6.10-rc1-mm3: ACPI problem due to un-exported hotplug_path Message-ID: <20041105204539.GA24175@vrfy.org> References: <20041105201012.GA24063@vrfy.org> <20041105123254.A17224@unix-os.sc.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041105123254.A17224@unix-os.sc.intel.com> User-Agent: Mutt/1.5.6+20040907i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2719 Lines: 63 On Fri, Nov 05, 2004 at 12:32:56PM -0800, Ashok Raj wrote: > On Fri, Nov 05, 2004 at 12:10:12PM -0800, Kay Sievers wrote: > > > > On Fri, Nov 05, 2004 at 10:05:13AM -0800, Greg KH wrote: > > > > The following error (compin from Linus' tree) is caused by the > > fact that > > > > hotplug_path is no longer EXPORT_SYMBOL'ed: > > > > > > > > > > > > <-- snip --> > > > > > > > > if [ -r System.map ]; then /sbin/depmod -ae -F System.map > > 2.6.10-rc1-mm3; fi > > > > I've found it. This wants to introduce a new direct /sbin/hotplug > > call, > > with "add" and "remove" events, without sysfs support. > > > > It should use class support or kobject_hotplug() instead. Nobody > > should > > fake hotplug events anymore, cause every other notification transport > > will not get called (currently uevent over netlink). > > > > we were discussing this exact thing recently.. we maybe able to clean this up.. here is why > we are doing this manual thingy... > > When we support physical component hotplug, we want to create the sysfs entries, but that doesnt > mean the component (i.e CPU or memory) is hotplugged. The reason is for node level hotplug > there are sequencing requirements, memory needs to be brought up first before cpu, and also > the error handling/policy requirments which we want the user space to handle it and not from > kernel side. > > > the sequence is when physical arrival of cpu is seen, we will just create a sysfs entry > which will also send an add event (which really is just cpu arrival, and sysfs created). > > In our model the event is just consumed by the script cpu.agent, which would in turn decide and > bring the cpu up by > > #echo 1> /sys/devices/system/cpu/cpu#/online > > what apps really would care about is the ONLINE (which doesnt exist) event itself, and the > OFFLINE. The ADD/REMOVE only indicate sysfs entries appear and disappear. > > I dont know if adding ONLINE/OFFLINE is the right thing, or use the CHANGE notification > to inform. > > This is an area that needs more though which is slightly different from how other devices are being handled. There is already an "offline" event used for cpu's in drivers/base/cpu.c. It was recently converted from calling /sbin/hotplug directly :) ChangeSet: 1.2021 http://linus.bkbits.net:8080/linux-2.5/patch@1.2021?nav=index.html|src/|src/kernel|related/kernel/cpu.c|cset@1.2021 Kay - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/