Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758143AbXK0Afy (ORCPT ); Mon, 26 Nov 2007 19:35:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756768AbXK0Afn (ORCPT ); Mon, 26 Nov 2007 19:35:43 -0500 Received: from ozlabs.org ([203.10.76.45]:33427 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754469AbXK0Afm (ORCPT ); Mon, 26 Nov 2007 19:35:42 -0500 From: Michael Neuling To: Christoph Raisch cc: michael@ellerman.id.au, Jan-Bernd Themann , Jeff Garzik , linux-kernel , linux-ppc , Marcus Eder , netdev , Paul Mackerras , Stefan Roscher , tklein@linux.ibm.com Subject: Re: [PATCH] ehea: Add kdump support In-reply-to: References: <200711091433.51259.osstklei@de.ibm.com> <1196064988.19855.15.camel@concordia> Comments: In-reply-to Christoph Raisch message dated "Mon, 26 Nov 2007 11:45:02 +0100." X-Mailer: MH-E 8.0.3; nmh 1.2; GNU Emacs 21.4.1 Date: Tue, 27 Nov 2007 11:35:18 +1100 Message-ID: <11699.1196123718@neuling.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2067 Lines: 59 In message you wrote: > Michael Ellerman wrote on 26.11.2007 09:16:28: > > Solutions that might be better: > > > > a) if there are a finite number of handles and we can predict their > > values, just delete them all in the kdump kernel before the driver > > loads. > > Guessing the values does not work, because of the handle structure > defined by the hypervisor. > > > b) if there are a small & finite number of handles, save their values > > in a device tree property and have the kdump kernel read them and > > delete them before the driver loads. > > 5*16*nr_ports+1+1= >82. a ML16 has 4 adapters with up to 16 ports, so the > number is not small anymore.... I assume this machine with a huge number of adapters has a huge amount of memory too! :-) > The device tree functions are currently not exported. We can add this. > If you crashdump to a new kernel, will it get the device tree > representation of the crashed kernel or of the initial one of open > firmware? The kexec tools userspace control this. Normally it just takes the current device tree plus some modifications (eg. initrd location changes). So provided the ehea driver export this info somewhere, it can be grabbed by the kexec tools and stuffed in the device tree of the new kernel. That being said, the proper place to have this would be original device tree. > > > c) if neither of those work, provide a minimal routine that _only_ > > deletes the handles in the crashed kernel. > > I would hope this has the highest chance to actually work. > For this we would have to add a proper notifier chain. > Do you agree? > > > d) > > Firmware change? But that's not something you will get very soon. > > Christoph R. > - 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/