From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932502AbbEIH6V (ORCPT ); Sat, 9 May 2015 03:58:21 -0400 Received: from mail-ie0-f175.google.com ([209.85.223.175]:36778 "EHLO mail-ie0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753896AbbEIHyk (ORCPT ); Sat, 9 May 2015 03:54:40 -0400 MIME-Version: 1.0 X-Originating-IP: [85.250.79.171] In-Reply-To: <1427917039-43206-3-git-send-email-d-gerlach@ti.com> References: <1427917039-43206-1-git-send-email-d-gerlach@ti.com> <1427917039-43206-3-git-send-email-d-gerlach@ti.com> From: Ohad Ben-Cohen Date: Sat, 9 May 2015 10:54:18 +0300 Message-ID: Subject: Re: [PATCH v3 2/4] remoteproc: add a rproc ops for performing address translation To: Dave Gerlach Cc: linux-arm , "linux-kernel@vger.kernel.org" , "linux-omap@vger.kernel.org" , "devicetree@vger.kernel.org" , Suman Anna , Kevin Hilman , Tony Lindgren Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dave, On Wed, Apr 1, 2015 at 10:37 PM, Dave Gerlach wrote: > From: Suman Anna > > The rproc_da_to_va API is currently used to perform any device to > kernel address translations to meet the different needs of the remoteproc > core/drivers (eg: loading). The functionality is achieved within the > remoteproc core, and is limited only for carveouts allocated within the > core. > > A new rproc ops, da_to_va, is added to provide flexibility to platform > implementations to perform the address translation themselves when the > above conditions cannot be met by the implementations. The rproc_da_to_va() > API is extended to invoke this ops if present, and fallback to regular > processing if the platform implementation cannot provide the translation. > This will allow any remoteproc implementations to translate addresses for > dedicated memories like internal memories. Can you please provide specific examples where this is needed and how it is going to be used? Thanks, Ohad.