Received: by 10.192.165.148 with SMTP id m20csp503234imm; Wed, 9 May 2018 17:13:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZraYPZo315yLDyZJMSz/2OmY1gOa7vRVGVT5duKW9FOATpkkNuIp/Cyov96YAD6Hh1Fm/UB X-Received: by 2002:a17:902:1682:: with SMTP id h2-v6mr47357326plh.127.1525911185557; Wed, 09 May 2018 17:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525911185; cv=none; d=google.com; s=arc-20160816; b=BmQIa1dzoS0lcRNBiLFpz7gceEO5PFlEXTrADk4T52dbEwH6wKzYHXMSeYmHV/cd9T c5niN+hLSYNWn5Ozdtbf1cDNWkGNw/1BRGiqDN/yX36ROxKocElqV5oR8jc9EXaBnXL0 SeMShi8//RtPKHgiRDzYiKfOcEcjHKMmKlH9ybLzlBwURp9DXSKpFgXzojCcZYrYilHU geFpHc7oVRaUT8HJBSFimmXcDvcvmvbYGpRH1Q/xOHTV+tc790a5QWQiw2Wdnszp8/Kb mhIC6XROYIb6txRlItzDcZGa9JvjRCX9+z3ZwpR3Rdc2BLoRZbveWLr4OXCsFXNBlT1v Bpuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=3KZajf1oahl3T5Mzle9xcLEgXb6cTm262AzUpHttxww=; b=pjU9q7x5UMCpOI5Uc0NNsCNe3Vq6kPMiYJISmJOsBLJOnLjomVflOYwRztq7VgQGRV WzPdjejksQsIgQyw9d42/I9BUj6YAUiPTusxMYnCDpDf9KHBxouGEaIWNU00t8XnVRBF B2U8GLugoNRG17fOeN9LWSCyW37Fp/mHaWrSb45joUWhb2u9SYQy+tGmHRqhHpsNnHr8 czIm8s08gBlQHxfKX+43OHmO2Xm1maiMadcGVZfGBG4eA6cgWxQm05tRrSd+cQf1EKEh H0EuXtIKYLs+81J7/myhz937oAd+3t/zLUSNikJFzyvnGLw4g3R06jz+gZjqp6QTsBOV t2GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KI8r1z19; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3si28444662pfa.181.2018.05.09.17.12.50; Wed, 09 May 2018 17:13:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KI8r1z19; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935597AbeEJAMG (ORCPT + 99 others); Wed, 9 May 2018 20:12:06 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:46483 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933493AbeEJAMF (ORCPT ); Wed, 9 May 2018 20:12:05 -0400 Received: by mail-pl0-f67.google.com with SMTP id 59-v6so195208plc.13 for ; Wed, 09 May 2018 17:12:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3KZajf1oahl3T5Mzle9xcLEgXb6cTm262AzUpHttxww=; b=KI8r1z19Kleb9Gw8L9E1bm+iPd9eauvc6tH+2KSmKE3wJfqbq0CTdF5fsiK0wV3zbV 8pIhBYVnX2r/nFp4m1eJUj3t0q1fdtrp0EltWmjJIw/3RsEhNwoVU6lILN9Eq3o2zoWW Zwvd8nMub/DZ+UEhms4Kq4zPelS3CBhOlqoow= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3KZajf1oahl3T5Mzle9xcLEgXb6cTm262AzUpHttxww=; b=t//j5BF1lfk/VJDhlvLMeZBtLjCOWIYQLaEJRTMJwNcoNDR+4hfzTWy0//zwKd52Y6 Uq32TSYEciS2DlpAbj6iSDv0aT+OMK67yMVOfxS3Rettlgy+trN0E6Ts3RfaioQVi54t E37dBMpOMRCxWbcZ0W5fyXNYf54McGXM1ySGCynBetlTWls1c997WIlGlrFDKGH99tj6 jzfO0bwYcE/FVVyZMmzfYKlkHF8rRDHESCoNyUCEP271KysdhL9He0qt+FvZ7h1zNVWm vF8lakfEbl69Nhcph7JnL+6FSDwWqN8rM784BG81VRGB/CmR5zvMy2mM3mBdNRJYkpbu Ra4Q== X-Gm-Message-State: ALQs6tBTaLqTDaYeYSkPIyy2l8FYYnVj2jYt40TxSSKEhVkz6btofLnW 3HT+wv3hUtp9LlSQTbmxuiNn0w== X-Received: by 2002:a17:902:407:: with SMTP id 7-v6mr47470071ple.47.1525911124933; Wed, 09 May 2018 17:12:04 -0700 (PDT) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id h23sm28946377pfi.175.2018.05.09.17.12.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 May 2018 17:12:04 -0700 (PDT) Date: Wed, 9 May 2018 17:12:02 -0700 From: Bjorn Andersson To: Loic Pallardy Cc: ohad@wizery.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, arnaud.pouliquen@st.com, benjamin.gaignard@linaro.org Subject: Re: [PATCH v3 04/13] remoteproc: add name in rproc_mem_entry struct Message-ID: <20180510001202.GC29093@builder> References: <1519921440-21356-1-git-send-email-loic.pallardy@st.com> <1519921440-21356-5-git-send-email-loic.pallardy@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1519921440-21356-5-git-send-email-loic.pallardy@st.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 01 Mar 08:23 PST 2018, Loic Pallardy wrote: > Add name field in struct rproc_mem_entry. > This new field will be used to match memory area > requested in resource table with pre-registered carveout. > > Signed-off-by: Loic Pallardy Acked-by: Bjorn Andersson Regards, Bjorn > --- > drivers/remoteproc/remoteproc_core.c | 1 + > drivers/remoteproc/remoteproc_debugfs.c | 1 + > include/linux/remoteproc.h | 2 ++ > 3 files changed, 4 insertions(+) > > diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c > index 5f11536..f73a0cf 100644 > --- a/drivers/remoteproc/remoteproc_core.c > +++ b/drivers/remoteproc/remoteproc_core.c > @@ -749,6 +749,7 @@ static int rproc_handle_carveout(struct rproc *rproc, > carveout->dma = dma; > carveout->da = rsc->da; > carveout->release = rproc_release_carveout; > + strlcpy(carveout->name, rsc->name, sizeof(carveout->name)); > > list_add_tail(&carveout->node, &rproc->carveouts); > > diff --git a/drivers/remoteproc/remoteproc_debugfs.c b/drivers/remoteproc/remoteproc_debugfs.c > index a204883..fc0e570 100644 > --- a/drivers/remoteproc/remoteproc_debugfs.c > +++ b/drivers/remoteproc/remoteproc_debugfs.c > @@ -260,6 +260,7 @@ static int rproc_carveouts_show(struct seq_file *seq, void *p) > > list_for_each_entry(carveout, &rproc->carveouts, node) { > seq_puts(seq, "Carveout memory entry:\n"); > + seq_printf(seq, "\tName: %s\n", carveout->name); > seq_printf(seq, "\tVirtual address: %p\n", carveout->va); > seq_printf(seq, "\tDMA address: %pad\n", &carveout->dma); > seq_printf(seq, "\tDevice address: 0x%x\n", carveout->da); > diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h > index dedc138..2202c08 100644 > --- a/include/linux/remoteproc.h > +++ b/include/linux/remoteproc.h > @@ -315,6 +315,7 @@ struct fw_rsc_vdev { > * @da: device address > * @release: release associated memory > * @priv: associated data > + * @name: associated memory region name (optional) > * @node: list node > */ > struct rproc_mem_entry { > @@ -323,6 +324,7 @@ struct rproc_mem_entry { > int len; > u32 da; > void *priv; > + char name[32]; > struct list_head node; > int (*release)(struct rproc *rproc, struct rproc_mem_entry *mem); > }; > -- > 1.9.1 >