From owner-freebsd-mips@FreeBSD.ORG Sun Mar 17 19:34:05 2013 Return-Path: Delivered-To: mips@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 E8A73202 for ; Sun, 17 Mar 2013 19:34:05 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by mx1.freebsd.org (Postfix) with ESMTP id 861F7EE0 for ; Sun, 17 Mar 2013 19:34:05 +0000 (UTC) Received: by mail-wg0-f49.google.com with SMTP id ds1so3549853wgb.16 for ; Sun, 17 Mar 2013 12:33:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=mftueYiPov1AyrQcRUA1RwFhLWT1TKjJeTiokw6swIw=; b=Ma/h0QZWtqKOmR4Wh5ChP9FFzcZgcE5LGwpscXUwJMDCi1Q7ehWrcuA8l0Gok4JAqu S0bC0SRQ6NXSZ3PYm+eaWNFOEEMYzxcwG9WfYO5xPsWNKDkIABDux+u3ad0yiziY/L/Q IkmaL7EK9XSDpiaTx1Q4YAfmEUe9l5UMbgmBi9vGlDP8AXjRF34YH82qX8b63Xp9IjLU apipEHmmbsakoElJIQB9jn38Szafvij/GjCapdmR9ZtlmM79jaXPb2Me+lRFJj+n+lx3 Ektvg067DLP0T9wDSIwQyKD6vJSMEvyuL5ceyJqGhxQxKbLtTeEIZ3sU+60y0ZXUo+SH Zi9w== X-Received: by 10.180.100.169 with SMTP id ez9mr12698892wib.3.1363548839646; Sun, 17 Mar 2013 12:33:59 -0700 (PDT) Received: from rnote.ddteam.net (151-164-135-95.pool.ukrtel.net. [95.135.164.151]) by mx.google.com with ESMTPS id du2sm9725644wib.0.2013.03.17.12.33.57 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 17 Mar 2013 12:33:58 -0700 (PDT) Date: Sun, 17 Mar 2013 21:33:55 +0200 From: Aleksandr Rybalko To: Aleksandr Rybalko Subject: Re: [CFT + RFC] FDT resource management (patch) Message-Id: <20130317213355.c7145f17.ray@ddteam.net> In-Reply-To: <20130301013545.3d438d8e.ray@freebsd.org> References: <20130301013545.3d438d8e.ray@freebsd.org> X-Mailer: Sylpheed 3.1.2 (GTK+ 2.24.5; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlRDZo5cY+qUE8CePXhMJPy0tIyw0JaVj79Q3b1aIamhq7E23jl5igBXdl16+KI0JmuTxmT Cc: arm@FreeBSD.org, mips@freebsd.org, ppc@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Mar 2013 19:34:06 -0000 On Fri, 1 Mar 2013 01:35:45 +0200 Aleksandr Rybalko wrote: > Hi, > > at first sorry for cross post, but IIRC we have no FDT list yet and I > don't want to break even single ppc/MPC85XX. > > Now we have: fdtbus get physical address from the blob, map address > (panic on SPI CS "address" :) ) to virtual and return it as resource > to child bus (f.e. simplebus), but all other, not FDT based, ARCHes > delegate this work to parent of device who request resource. As result > we have virtual addresses in boot log + rman and it's try to map > address for not mapable buses. > > Two month ago I made the patch: > http://people.freebsd.org/~ray/2012-12-25_fdt_correct_resource.diff > but testing give good results for i.MX515(Efika), BCM2835(RPi), > OMAPxxx(Pandaboard), but fail on Beagleboard. > > Patch is simple, and I was surprised by BB problem, so I have to ask > help with testing on everything using fdtbus/simplebus. > > Please help/test/comment! > > Many thanks! > > WBW > -- > Aleksandr Rybalko Hi, many thanks to Ian. He has found source of BeagleBone/BeagleBoard problems. And it seems affect RPi SDHCI driver too. So now patch updating on more bit. It is removing usage vtophys on rman resource. Because normally we have physical addresses in rman. Fresh patch: http://people.freebsd.org/~ray/2013-03-17_fdt_correct_resource.diff If nobody objects I will commit it tomorrow. Thanks! WBW -- Aleksandr Rybalko