From owner-freebsd-ppc@FreeBSD.ORG Sun Mar 17 19:34:00 2013 Return-Path: Delivered-To: ppc@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 EBF6A1FC for ; Sun, 17 Mar 2013 19:34:00 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-we0-x22e.google.com (mail-we0-x22e.google.com [IPv6:2a00:1450:400c:c03::22e]) by mx1.freebsd.org (Postfix) with ESMTP id 7AE95EDA for ; Sun, 17 Mar 2013 19:34:00 +0000 (UTC) Received: by mail-we0-f174.google.com with SMTP id r6so4314160wey.5 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=TefKEaRtygIoqH1NEJhviwh/0wMtUAJNyRSCUOY2iBeP1tO9lScHk1ydHkLuU9gYCm D4p8bsqk3Q9mrgIHmr4uUMngRH6eE795PE/DU9htfI8/6QiECLk0AjF3Uv0PvGAN+0h2 8Q8nuWP1vUJABmAORvO/OC3eFo0BrP3zVLGWAfOula5wSA6P/DY0AHCqGHFXAMCZ55al iNXZX02aOIxzg4OlNajzgdCYsokn1GNKNm5a1sl+aMPy8bKmup8idrzi8VS44qPCQ+JL 7xU8aWlNj/cMQPbvW4+xfRC9NkWfADjZDpryq6xBp5DHMaQYFRUyDM58iYGqsyoiK2wW 9+PQ== 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: ALoCoQnDMZ+yP0KRKviGRJjW2QTE5JUgaty3fyaS9s4UgTtFYHsYmJlsaP2dxrt7Vxqpnfy9tAQa Cc: arm@FreeBSD.org, mips@freebsd.org, ppc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Mar 2013 19:34:01 -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