Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753865AbbKWQ7l (ORCPT ); Mon, 23 Nov 2015 11:59:41 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:49482 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752125AbbKWQ7j (ORCPT ); Mon, 23 Nov 2015 11:59:39 -0500 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Marcin Wojtas , Thomas Petazzoni , Andrew Lunn , Russell King - ARM Linux , Jason Cooper , netdev@vger.kernel.org, Simon Guinot , linux-kernel@vger.kernel.org, Evan Wang , nadavh@marvell.com, nitroshift@yahoo.com, Lior Amsalem , Grzegorz Jaszczyk , Gregory =?ISO-8859-1?Q?Cl=E9ment?= , Tomasz Nowicki , Sebastian Hesselbarth , "David S. Miller" , Yair Mahalalel Subject: Re: [PATCH 07/13] bus: mvebu-mbus: provide api for obtaining IO and DRAM window information Date: Mon, 23 Nov 2015 17:58:46 +0100 Message-ID: <13065265.iV8IxW6ybQ@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <1448178839-3541-1-git-send-email-mw@semihalf.com> <5746764.cNlI6PeatM@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:LpqgY0fh7Ei9+CI1eTVCQoaS7WX+2fRjpdGE5IWUnmTo+m0vBG9 SBVMvHCREagvCdQxE7aU242Up808EBgAIGc3SqDSOohgu/qPCepXYR1zWKgK9TkNCTovXTw UuayDzxfvG+t3ssAXJDpTtAl1KuZ7ksyKxBXAwrpAPwskCIqHzAa0UFYhgM+cCTBrTBl3CB W2p7QhtElWclbybjrJ6Qw== X-UI-Out-Filterresults: notjunk:1;V01:K0:st88FkJlOi4=:CM4Uz8ktBAmpd/satWTaZg QgfggViOmoxKuMyPrUp7l3bjxzjR9YK3OyUZPMkqopgJBaS6KWzIBnkIOuYWUpTga4UmnMpB/ GCQ2aO5qTcg92ZInzyv+5c4frOZzsSz98X+8yYzwsrC42o8RhKhmOhI8kx2iXjNU5R1VTiQR6 3Yxb7szBxujObqiRXMfF+NlV+REieFCWLEznRmTMA4l4lxuX0s0xPMlIgNXkpyIl5CvTdf3F8 YCBp7PhWDBSsMGcVQ0UWYWB6XqT2FdGvFQ9WFm66OE2EtXcgPh8pV3uwFIjOZRhOGaAA2Kpza TYz3T+ASRWpIElxJRzDRQYbnb/+5QBjpdPMk6pCXndWUhMeG4lN3kk9rCiaYycH8xTevmxIps f3i733gcCUjQkzikqJlSf/4vSrC/wCGktG5UeQ86MOOcj2vnM6vHOgWtQBKj6/Ybmww6jlVML 66TilpPhRLaJAizJEE7B0eVdQXy6/iJKxkpmWtbN9ai435z+pAPH++yKrL6g8BQCTqMlrEswQ wFnQEmzlOGQ8XwAMN80UfhX7wmC4uCRefNmVTa+m/XM0L0LDd08NYFCXQnVFzPkshAmKXj7o4 HKAAgBAEUnE7iUKQtyjZY+8R/oOBpFkC/WoDrIsLMWBSyGLcVzd8TLNW9n7DA/7tQ/01NNzp2 m9FeR4A/2INEuBb0SZn9s+FVVhlQLjXfzoonZAdFZa2DrXMxdsrvsAzuLUDhcdPP4O6mrTC+M oeA9Uz0TZykRNpne Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1725 Lines: 42 On Sunday 22 November 2015 22:24:01 Marcin Wojtas wrote: > > 2015-11-22 21:02 GMT+01:00 Arnd Bergmann : > > On Sunday 22 November 2015 08:53:53 Marcin Wojtas wrote: > >> This commit enables finding appropriate mbus window and obtaining its > >> target id and attribute for given physical address in two separate > >> routines, both for IO and DRAM windows. This functionality > >> is needed for Armada XP/38x Network Controller's Buffer Manager and > >> PnC configuration. > >> > >> Signed-off-by: Marcin Wojtas > >> > >> [DRAM window information reference in LKv3.10] > >> Signed-off-by: Evan Wang > >> > > > > It's too long ago to remember all the details, but I thought we > > had designed this so the configuration can just be done by > > describing it in DT. What am I missing? > > > > And those functions do not break this approach. They just enable > finding and reading the settings of MBUS windows done during initial > configuration. Please remember that mvebu-mbus driver fills the MBUS > windows registers basing on DT, however it just configures access CPU > - DRAM/perfipheral. > > In this particular case only physical adresses of buffers are known > and we have to 'open windows' between BM <-> DRAM and NETA <-> BM > internal memory. Hence instead of hardcoding size/target/attribute, we > can take information stored in CPU DRAM/IO windows registers. > > Ok, got it. Thanks for the explanation. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/