[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1154141580.5874.149.camel@keithlap>
Date: Fri, 28 Jul 2006 19:53:00 -0700
From: keith mannthey <kmannth@...ibm.com>
To: lkml <linux-kernel@...r.kernel.org>
Cc: linux acpi <linux-acpi@...r.kernel.org>,
Patrick Mochel <mochel@...ux.intel.com>,
lhms-devel <lhms-devel@...ts.sourceforge.net>,
discuss <discuss@...-64.org>, andrew <akpm@...l.org>,
Andi Kleen <ak@...e.de>, dave hansen <haveblue@...ibm.com>,
kame <kamezawa.hiroyu@...fujitsu.com>, konrad <darnok@...ibm.com>
Subject: [Patch] 5/5 in support of hot-add memory x86_64 fix acpi
motherboard.c
Hello All,
This patch fixes an issue I encountered while doing hot-add memroy on
my platform (IBM Summit).
My system loads to acpi memory hot plug driver just fine during boot.
It installs and registers acpi_memory_device_driver and it's handler.
When the hot add memory event occurs the handler is called. this is the
relevant call path
acpi_memory_get_device
acpi_bus_add
acpi_add_single_object
acpi_bus_find_driver
acpi_bus_driver_init
driver->ops.add
The algorithm it try to match devices from acpi_bus_drivers. It looks
for drivers that are on the right bus and calls acpi_bus_driver_init.
If it gets a good return value for acpi_bus_driver_init it thinks it
found the device and returns. The problem is the motherboard driver
driver->ops.add is getting called and it ALWAYS returns AE_OK.
The device that is passed back up the call chain is the wrong one (the
motherboard device) and whole things break down.
My solution is the make the motherboard value fail to return a AE_OK
for devices it does not expect (like my hot-add memory event).
Without this patch I cannot do real hot-add memory with my hardware.
Thanks to KAMEZAWA Hiroyuki for helping to debug the issue and Patrick
Mochel for providing input.
This was built against 2.6.18-rc2.
Signed-off-by: Keith Mannthey <kmannth@...ibm.com>
View attachment "patch-2.6.18-rc2-motherboard" of type "text/x-patch" (701 bytes)
Powered by blists - more mailing lists