Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1484445

Re: [PATCH v2 07/19] remoteproc: Add new resource type for resource table spare bytes

From Bjorn Andersson <bjorn.andersson@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2 07/19] remoteproc: Add new resource type for resource table spare bytes
Date 2016-09-15 20:00 +0200
Message-ID <shJ74-1GD-27@gated-at.bofh.it> (permalink)
References <sckM1-7eb-3@gated-at.bofh.it> <sckM1-7eb-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed 31 Aug 13:50 PDT 2016, Loic Pallardy wrote:

> To allow resource appending to an existing resource table,
> remoteproc framework should get information about resource
> table spare area. With current resource table construction,
> remoteproc is not able to identify by itself any free location.
> This patch introduces a new resource type named RSC_SPARE which
> allows firmware to define room for resource table extension.
> Defined spare area will be used by remtoreproc to extend resource
> table.
> 

We don't need a dummy type for keeping track of the available room in
the resource table in the loaded firmware. All we need to do is to look
at the sh_size of the .resource_table section, which actually is what's
returned in tablesz.

So the spare size is the difference between tablesz and the end of the
last resource and if you need you can pad this when composing the
firmware.

Regards,
Bjorn

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH v2 07/19] remoteproc: Add new resource type for resource  table spare bytes Bjorn Andersson <bjorn.andersson@linaro.org> - 2016-09-15 20:00 +0200
  Re: [PATCH v2 07/19] remoteproc: Add new resource type for resource  table spare bytes loic pallardy <loic.pallardy@st.com> - 2016-09-16 11:10 +0200
    Re: [PATCH v2 07/19] remoteproc: Add new resource type for resource  table spare bytes Bjorn Andersson <bjorn.andersson@linaro.org> - 2016-09-16 19:20 +0200
      Re: [PATCH v2 07/19] remoteproc: Add new resource type for resource  table spare bytes loic pallardy <loic.pallardy@st.com> - 2016-09-19 10:00 +0200

csiph-web