From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754664AbYDUEu3 (ORCPT ); Mon, 21 Apr 2008 00:50:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751229AbYDUEuT (ORCPT ); Mon, 21 Apr 2008 00:50:19 -0400 Received: from yw-out-2324.google.com ([74.125.46.31]:30254 "EHLO yw-out-2324.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750987AbYDUEuS (ORCPT ); Mon, 21 Apr 2008 00:50:18 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UoxuHA5slX4cOrC6ojg7UltSsnDxSie2K0Kuoai2lEHsulwQkIv2er1v1tL489297fs3by8sRGU+3CRsvBXyGQWslcp5acSgpBkQuPvt5MlmqDgxh2F4X4ltgfLP8ALW5hNFNW9IcXZ4YSCMDSv+cYJe793N8GlO9ySI85zYsTA= Message-ID: <86802c440804202150l535519c9mcb635c7ca55216ed@mail.gmail.com> Date: Sun, 20 Apr 2008 21:50:07 -0700 From: "Yinghai Lu" To: "Mitch Bradley" Subject: Re: [PATCH 1/2] OLPC: Add support for calling into Open Firmware Cc: "Andres Salomon" , "H. Peter Anvin" , "Eric W. Biederman" , "Ingo Molnar" , "Andrew Morton" , "Joseph Fannin" , linux-kernel@vger.kernel.org, jordan.crouse@amd.com In-Reply-To: <480C1286.3040307@firmworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080418014757.52fb4a4f.akpm@linux-foundation.org> <20080419031024.GC3503@nineveh.local> <20080418202925.b18452c5.akpm@linux-foundation.org> <20080419092544.378664a8@ephemeral> <20080419133909.5aa6b63e@ephemeral> <86802c440804200334t5cdcd100rfc41e9b1bf379109@mail.gmail.com> <480C0582.9010509@firmworks.com> <86802c440804202015h2605eff7vc733874dd1f22261@mail.gmail.com> <480C1286.3040307@firmworks.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 20, 2008 at 9:05 PM, Mitch Bradley wrote: > > > > Yinghai Lu wrote: > > > On Sun, Apr 20, 2008 at 8:09 PM, Mitch Bradley wrote: > > > > > > > > > > Yinghai Lu wrote: > > > > > > > > > > > > > how about changing to ofw_32.c? > > > > > > > > YH > > > > > > > > > > > > > > > > > > > Is your suggestion to change the filename from "ofw.c" to "ofw_32.c"? > That > > > seems like a good idea to me. > > > > > > > > > > Yes. > > > > BTW, why olpc need OFW runtime service? > > why not just put the info in in ram with some signiture, so > > kernel/util just need to loot at the table if needed? > > > > > > In SPARC land, at least on SunOS and Solaris, it was very convenient for > debugging to interrupt the OS with Stop-A and use OFW to inspect the system > state. That was especially handy for live crash analysis. Dumps are useful > as far as they go, but they often fail to capture detailed I/O device state. > > I was hoping to do that on x86 too. So far we (OLPC) haven't implemented a > sysrq hook to enter OFW, but I haven't given up hope yet. It doesn't cost > much to leave OFW around, but once you decide to eject it, you can't easily > get it back. geode is using SMI to simulate the pci conf space, wonder that could be problem. later you have 64 runtime service for 64 platform like UEFI? YH