From: Ido Yariv <ido@wizery.com>
To: sjur.brandeland@stericsson.com
Cc: Ohad Ben-Cohen <ohad@wizery.com>,
linux-kernel@vger.kernel.org,
Dmitry Tarnyagin <dmitry.tarnyagin@stericsson.com>,
Linus Walleij <linus.walleij@linaro.org>,
Erwan Yvin <erwan.yvin@stericsson.com>,
sjur@brendeland.net
Subject: Re: [PATCHv2 04/10] remoteproc: Parse ELF file to find resource table address
Date: Sun, 24 Feb 2013 18:21:24 +0200 [thread overview]
Message-ID: <20130224162124.GB19603@WorkStation.localnet> (raw)
In-Reply-To: <1361466940-6813-5-git-send-email-sjur.brandeland@stericsson.com>
Hi Sjur,
On Thu, Feb 21, 2013 at 06:15:34PM +0100, sjur.brandeland@stericsson.com wrote:
> From: Sjur Brændeland <sjur.brandeland@stericsson.com>
>
> Add function find_rsc_table_va to firmware ops. This function
> returns the location of the resource table in shared memory
> after loading.
>
> Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
> ---
> drivers/remoteproc/remoteproc_elf_loader.c | 17 ++++++++++++++++-
> drivers/remoteproc/remoteproc_internal.h | 13 +++++++++++++
> 2 files changed, 29 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/remoteproc/remoteproc_elf_loader.c b/drivers/remoteproc/remoteproc_elf_loader.c
> index ed12c16..3d6ec76 100644
> --- a/drivers/remoteproc/remoteproc_elf_loader.c
> +++ b/drivers/remoteproc/remoteproc_elf_loader.c
> @@ -304,9 +304,24 @@ rproc_elf_find_rsc_table(struct rproc *rproc, const struct firmware *fw,
> return table;
> }
>
> +static struct resource_table *rproc_elf_get_rsctab_va(struct rproc *rproc,
> + const struct firmware *fw)
> +{
> + struct elf32_shdr *shdr;
> +
> + shdr = find_rsc_shdr(&rproc->dev, (struct elf32_hdr *)fw->data,
> + fw->size);
> + if (!shdr)
> + return NULL;
> +
> + /* Find resource table in loaded segments */
> + return rproc_da_to_va(rproc, shdr->sh_addr, shdr->sh_size);
> +}
> +
> const struct rproc_fw_ops rproc_elf_fw_ops = {
> .load = rproc_elf_load_segments,
> .find_rsc_table = rproc_elf_find_rsc_table,
> .sanity_check = rproc_elf_sanity_check,
> - .get_boot_addr = rproc_elf_get_boot_addr
> + .get_boot_addr = rproc_elf_get_boot_addr,
> + .get_rsctab_va = rproc_elf_get_rsctab_addr
There's a typo here, fixed in the next patch instead of this one, which
will break bisect.
Other than that this patch set looks good. This issue can be fixed when
the patches are merged, so I don't think there's a need to resend
another revision.
Thanks,
Ido.
next prev parent reply other threads:[~2013-02-24 16:21 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-21 17:15 [PATCHv2 00/10] remoteproc: Support bi-directional vdev config space sjur.brandeland
2013-02-21 17:15 ` [PATCHv2 01/10] remoteproc: Bugfix: Deallocate firmware image on shutdown sjur.brandeland
2013-02-21 17:15 ` [PATCHv2 02/10] remoteproc: Bugfix remove entry from list before freeing it sjur.brandeland
2013-03-19 13:31 ` Ohad Ben-Cohen
2013-02-21 17:15 ` [PATCHv2 03/10] remoteproc: Refactor function rproc_elf_find_rsc_table sjur.brandeland
2013-03-19 15:04 ` Ohad Ben-Cohen
2013-02-21 17:15 ` [PATCHv2 04/10] remoteproc: Parse ELF file to find resource table address sjur.brandeland
2013-02-24 16:21 ` Ido Yariv [this message]
2013-02-21 17:15 ` [PATCHv2 05/10] remoteproc: Parse STE-firmware and " sjur.brandeland
2013-02-21 17:15 ` [PATCHv2 06/10] remoteproc: Code cleanup of resource parsing sjur.brandeland
2013-03-21 13:16 ` Ohad Ben-Cohen
2013-02-21 17:15 ` [PATCHv2 07/10] remoteproc: Calculate max_notifyid by counting vrings sjur.brandeland
2013-02-21 17:15 ` [PATCHv2 08/10] remoteproc: Always perserve resource table data sjur.brandeland
2013-02-21 17:15 ` [PATCHv2 09/10] remoteproc: Support virtio config space sjur.brandeland
2013-02-21 17:15 ` [PATCHv2 10/10] remoteproc: Set vring addresses in resource table sjur.brandeland
2013-04-05 5:59 ` [PATCHv2 00/10] remoteproc: Support bi-directional vdev config space Ohad Ben-Cohen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130224162124.GB19603@WorkStation.localnet \
--to=ido@wizery.com \
--cc=dmitry.tarnyagin@stericsson.com \
--cc=erwan.yvin@stericsson.com \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ohad@wizery.com \
--cc=sjur.brandeland@stericsson.com \
--cc=sjur@brendeland.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®