From owner-freebsd-arm@FreeBSD.ORG Sun Mar 17 19:34:00 2013 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EEFD91FE for ; Sun, 17 Mar 2013 19:34:00 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-we0-x22d.google.com (mail-we0-x22d.google.com [IPv6:2a00:1450:400c:c03::22d]) by mx1.freebsd.org (Postfix) with ESMTP id 7F848EDD for ; Sun, 17 Mar 2013 19:34:00 +0000 (UTC) Received: by mail-we0-f173.google.com with SMTP id x51so4249794wey.32 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=dYh9g9b2jqvKtjvaMaVNkRd+ZAiblIt95XycrTAqqnS3I12+oTDNeHjNddwRWSe8gz p3gwaD+EeVgP1xKf4PLvhdbnMt0k+AYmWSJXHzGzfCmUP+0lbJFbbINiIS2U/6iNbe5V SK8uQgLqaMSNtmiueUWPczemo2d2kYeRDglHJgUVBPFa5kffR6Bpv5v9BNDt8fumuBqD kuAW6YQRUrIpq88yEfJvmJquZWHDuAT1UINJGEBXDPFC9BEzo7LQ8mqDpRnt+wP8tHzq jVgnZFxMJuD+qbhDzZi6xGr4jDiTzZSI+5AjlJt2z4sMLfFTqwcerUHsVrQiWVLL3p/L kH7Q== 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: ALoCoQmxTZcPpvQ/6gze9EqV1nlxmce+rwA63XzUvr5KwL+USYTX92uzFeyZI/dGbL0MaVia41AW Cc: arm@FreeBSD.org, mips@freebsd.org, ppc@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor 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