[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <96a72c95bd414095a94681f41637680c@SFHDAG7NODE2.st.com>
Date: Mon, 15 Jan 2018 20:59:39 +0000
From: Loic PALLARDY <loic.pallardy@...com>
To: Bjorn Andersson <bjorn.andersson@...aro.org>
CC: "ohad@...ery.com" <ohad@...ery.com>,
"linux-remoteproc@...r.kernel.org" <linux-remoteproc@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Arnaud POULIQUEN <arnaud.pouliquen@...com>,
"benjamin.gaignard@...aro.org" <benjamin.gaignard@...aro.org>
Subject: RE: [PATCH v2 14/16] remoteproc: look-up pre-registered carveout by
name for carveout allocation
> -----Original Message-----
> From: Bjorn Andersson [mailto:bjorn.andersson@...aro.org]
> Sent: Thursday, December 14, 2017 6:35 AM
> To: Loic PALLARDY <loic.pallardy@...com>
> Cc: ohad@...ery.com; linux-remoteproc@...r.kernel.org; linux-
> kernel@...r.kernel.org; Arnaud POULIQUEN <arnaud.pouliquen@...com>;
> benjamin.gaignard@...aro.org
> Subject: Re: [PATCH v2 14/16] remoteproc: look-up pre-registered carveout
> by name for carveout allocation
>
> On Thu 30 Nov 08:46 PST 2017, Loic Pallardy wrote:
> > + /* By name */
> > + mem = rproc_find_carveout_by_name(rproc, rsc->name);
> > + if (mem) {
> > + /*
> > + * Update resource table with registered carevout
> information
> > + */
> > + rsc->len = mem->len;
>
> You should validate that len, da and pa are compatible.
Yes you're right, complete definition must be checked
Regards,
Loic
>
> > + rsc->da = mem->da;
> > + rsc->pa = rproc_va_to_pa(mem->va);
> > + /* no need to register as already match one for one */
> > + return 0;
> > + }
>
> Regards,
> Bjorn
Powered by blists - more mailing lists