From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from terminus.zytor.com ([2001:1868:205::10] helo=mail.zytor.com) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WLS9S-0005M5-Ks for kexec@lists.infradead.org; Thu, 06 Mar 2014 06:51:31 +0000 Message-ID: <53181AC1.2020807@zytor.com> Date: Wed, 05 Mar 2014 22:50:41 -0800 From: "H. Peter Anvin" MIME-Version: 1.0 Subject: Re: How could we get rid of saved_max_pfn for calgary iommu? References: <20140219061824.GA29703@dhcp-17-89.nay.redhat.com> <20140305053617.GE26240@dhcp-17-89.nay.redhat.com> <20140306064756.GB16859@needle.mulix.org> In-Reply-To: <20140306064756.GB16859@needle.mulix.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=twosheds.infradead.org@lists.infradead.org To: Muli Ben-Yehuda , WANG Chao Cc: discuss@x86-64.org, Baoquan He , x86@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, "Jon D. Mason" , Thomas Gleixner , Yinghai Lu , Vivek Goyal On 03/05/2014 10:47 PM, Muli Ben-Yehuda wrote: > On Wed, Mar 05, 2014 at 01:36:17PM +0800, WANG Chao wrote: > >> Hi, Muli >> >> saved_max_pfn is becoming a setback for kexec-tools. Ideally calgary >> could get rid of saved_max_pfn at all. But If this can't work, how >> about exporting a calgary tce table size to user space, so that >> kexec-tools can simply pass calgary=xxx cmdline to 2nd kernel. > > As Jon noted, this code is used to so that the TCE table remains > consistent between the original and the kexec'd kernel. I see two > options: either we hard code the TCE table size to the max so that > this bit of code becomes redundant, or we explicitly pass the original > table size (or the original max_pfn) to the kexec'd kernel. The first > option is more appealing, because I don't think anyone is actually > using the TCE table size -- we mostly added it for debugging the IOMMU > TCE code at the time -- but since I don't have a Calgary machine > anymore, I don't have any way to test it. The second option is uglier > but would be fully backward-compatible and less likely to break > things. Given that very few people are likely running the latest > upstream kernel on Calgary/CalIOC2 machines, I'm inclined towards the > first option. > >> BTW MAINTAINERS file still uses your old email, please update >> accordingly. > > I think you are the first person to actually look up the Calgary > maintainers in the last few years :-) > OK, second question... is it time to axe Calgary? -hpa _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec