From owner-freebsd-arch Sat Dec 15 18:22: 7 2001 Delivered-To: freebsd-arch@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id C04E837B41A for ; Sat, 15 Dec 2001 18:22:04 -0800 (PST) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.11.4/8.11.4) id fBG2M1b15584; Sat, 15 Dec 2001 21:22:01 -0500 (EST) (envelope-from wollman) Date: Sat, 15 Dec 2001 21:22:01 -0500 (EST) From: Garrett Wollman Message-Id: <200112160222.fBG2M1b15584@khavrinen.lcs.mit.edu> To: tmoestl@gmx.net Subject: Re: Please review: changes to MI bus code for sparc64 In-Reply-To: <20011216023321.C458@crow.dom2ip.de> References: <200112140028.fBE0Sol04630@mass.dis.org> Organization: MIT Laboratory for Computer Science Cc: arch@FreeBSD.org Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In article <20011216023321.C458@crow.dom2ip.de>, Thomas Moestl wrote: >This should remove all the changes you did not like, except the >addition to the resource manager. I do not see a good alternative to >this last change, and I think I did not fully understand what you did >not like about it (taking into consideration the task I am using it >for); I'm of course open for further discussion. It was always my intent that the resource manager be able to deal with alignment and boundary constraints -- or indeed, entirely arbitrary constraints. I dropped that support early on in the process of implementation because it made things more complex than I absolutely needed in order to get things working on the i386. (The resource manager should be able to represent any resource that the busdma API needs.) Probably there should be a separate interface, rman_alloc_resource_callback(), which uses its callback parameter to validate potential allocations. (The callback can return an integer suggesting how far ahead to skip before trying the next allocation -- hopefully most architectures which need this will be making mostly conveniently-aligned requests.) -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message