From owner-svn-src-all@FreeBSD.ORG Sun Jan 13 11:38:33 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A3DDD2C7; Sun, 13 Jan 2013 11:38:33 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 69CC0E2; Sun, 13 Jan 2013 11:38:33 +0000 (UTC) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id D346146B09; Sun, 13 Jan 2013 06:38:32 -0500 (EST) Date: Sun, 13 Jan 2013 11:38:32 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Nathan Whitehorn Subject: Re: svn commit: r245331 - head/sys/mips/mips In-Reply-To: <50F18F83.9080604@freebsd.org> Message-ID: References: <201301121553.r0CFrjRU080518@svn.freebsd.org> <50F18F83.9080604@freebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2013 11:38:33 -0000 On Sat, 12 Jan 2013, Nathan Whitehorn wrote: >> In a sign of weakness, replicate the MIPS bus_space_generic.c to >> produce a new FDT version, which will perform necessary address >> space translation for bus_space -- the solution used in NLM's MIPS >> FDT support, but possibly not quite the right thing. This is >> inconsistent with regular I/O via the nexus and the generic >> bus_space, which instead perform translation via pmap_mapdev() >> when a resource is activated. However, it will work while I >> attempt to identify what the right way to reconcile possible >> approaches. >> >> (Another approach might be to make simplebus use Nexus's activate >> routine instead of a generic one?) >> >> Sponsored by: DARPA, AFRL > > Using nexus's instead of having a parallel universe of "FDT" things is, in > my opinion, the right way to go. It's what we do on PowerPC and SPARC with > real Open Firmware and there is no reason to do things any differently with > FDT. What I've done here is tracked the one existing FDT implementation on MIPS, from NLM XLP, effectively promoting it for use across all MIPS. We'll need to coordinate changing the model across both. I'm not sure I understand sufficiently the difference between how nexus is handling things on PowerPC/sparc64 vs MIPS such that using the generic busspace implementation doesn't work with FDT, but does on those platforms. Certainly, I was unable to use bus_space_generic on MIPS for this purpose, as it didn't to the P->V translation (that's the way around it is due to xkphys on MIPS) when used via the FDT path. Do you have insight there? Robert