Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752765Ab2EWMl4 (ORCPT ); Wed, 23 May 2012 08:41:56 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:37382 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751316Ab2EWMly convert rfc822-to-8bit (ORCPT ); Wed, 23 May 2012 08:41:54 -0400 MIME-Version: 1.0 X-Originating-IP: [109.186.15.47] In-Reply-To: <4FBB8BCB.3010802@stericsson.com> References: <1330589497-4139-1-git-send-email-ohad@wizery.com> <1330589497-4139-2-git-send-email-ohad@wizery.com> <4F6354E4.8030704@monstr.eu> <4FBB5908.4010505@stericsson.com> <4FBB8BCB.3010802@stericsson.com> From: Ohad Ben-Cohen Date: Wed, 23 May 2012 15:41:33 +0300 Message-ID: Subject: Re: [PATCH 1/7] remoteproc: resource table overhaul To: frq09524 Cc: Michal Simek , "linux-omap@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Brian Swetland , Iliyan Malchev , Arnd Bergmann , Grant Likely , Rusty Russell , Mark Grosen , John Williams , Loic PALLARDY , Omar Ramirez Luna , Guzman Lugo Fernando , Anna Suman , Clark Rob , Stephen Boyd , Saravana Kannan , David Brown , Kieran Bingham , Tony Lindgren Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1054 Lines: 27 Hi?Ludovic, On Tue, May 22, 2012 at 3:51 PM, frq09524 wrote: > In my previous patch, to find the correct subdevice that match with physical memory, I used pa member of rproc_mem_entry. I'm not sure we want to find these subdevices using the physical memory of the expected region. Doing so means more work when setting up those numbers initially, and may also break if/when those number changes. What do you think about looking up those subdevices by names? E.g. before allocating the vrings, we may look for a subdevice called "vrings-mem". If one exists, we'll use it when invoking the DMA API. If not, we'll just use the default rproc device. This way we don't need to change the firmware if/when we change the memory regions allocated for each purpose. Thanks, Ohad. -- 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/