23 Apr, 2020
1 commit
-
Since checks are present in the remoteproc elf loader before calling
da_to_va, loading a elf64 will work on 32bits flavors of kernel.
Indeed, if a segment size is larger than what size_t can hold, the
loader will return an error so the functionality is equivalent to
what exists today.Acked-by: Suman Anna
Signed-off-by: Clement Leger
Link: https://lore.kernel.org/r/20200422093017.10985-1-cleger@kalray.eu
Signed-off-by: Bjorn Andersson
26 Mar, 2020
2 commits
-
Since this function will be modified to support both elf32 and elf64,
rename the existing one to elf32 (which is the only supported format
at the moment). This will allow not to introduce possible side effect
when adding elf64 support (ie: all backends will still support only
elf32 if not requested explicitely using rproc_elf_sanity_check).Signed-off-by: Clement Leger
Link: https://lore.kernel.org/r/20200302093902.27849-6-cleger@kalray.eu
Signed-off-by: Bjorn Andersson -
elf64 entry is defined as a u64. Since boot_addr is used to store the
elf entry point, change boot_addr type to u64 to support both elf32
and elf64. In the same time, fix users that were using this variable.Reviewed-by: Bjorn Andersson
Signed-off-by: Clement Leger
Link: https://lore.kernel.org/r/20200302093902.27849-4-cleger@kalray.eu
[bjorn: Fixes up return type of rproc_get_boot_addr()]
Signed-off-by: Bjorn Andersson
19 Jun, 2019
1 commit
-
Based on 2 normalized pattern(s):
this program is free software you can redistribute it and or modify
it under the terms of the gnu general public license version 2 as
published by the free software foundationthis program is free software you can redistribute it and or modify
it under the terms of the gnu general public license version 2 as
published by the free software foundation #extracted by the scancode license scanner the SPDX license identifier
GPL-2.0-only
has been chosen to replace the boilerplate/reference in 4122 file(s).
Signed-off-by: Thomas Gleixner
Reviewed-by: Enrico Weigelt
Reviewed-by: Kate Stewart
Reviewed-by: Allison Randal
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de
Signed-off-by: Greg Kroah-Hartman
21 Feb, 2019
1 commit
-
ST remote processor needs some specified memory regions for
firmware and IPC.
Memory regions are defined as reserved memory and should
be registered in remoteproc core thanks to rproc_add_carveout
function before rproc_start. For this, st rproc driver implements
prepare ops.Signed-off-by: Loic Pallardy
Signed-off-by: Bjorn Andersson
28 Aug, 2017
1 commit
-
Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting
reset lines") started to transition the reset control request API calls
to explicitly state whether the driver needs exclusive or shared reset
control behavior. Convert all drivers requesting exclusive resets to the
explicit API call so the temporary transition helpers can be removed.No functional changes.
Cc: Patrice Chotard
Cc: Ohad Ben-Cohen
Cc: Bjorn Andersson
Cc: linux-remoteproc@vger.kernel.org
Signed-off-by: Philipp Zabel
Signed-off-by: Bjorn Andersson
07 Feb, 2017
2 commits
-
This patch provides virtio communication support based on mailbox
for ST co-processors.Signed-off-by: Loic Pallardy
Signed-off-by: Ludovic Barre
Signed-off-by: Lee Jones
Signed-off-by: Bjorn Andersson -
Associated clock is prepared in st_rproc_parse_dt function.
it should be unprepared in case of error during probing.Signed-off-by: Loic Pallardy
Signed-off-by: Bjorn Andersson
19 Jan, 2017
1 commit
-
Declare rproc_ops structures as const as they are only passed as an
argument to the function rproc_alloc. This argument is of type const, so
rproc_ops structures having this property can be declared const too.
Done using Coccinelle:@r1 disable optional_qualifier @
identifier i;
position p;
@@
static struct rproc_ops i@p = {...};@ok1@
identifier r1.i;
position p;
@@
rproc_alloc(...,&i@p,...)@bad@
position p!={r1.p,ok1.p};
identifier r1.i;
@@
i@p@depends on !bad disable optional_qualifier@
identifier r1.i;
@@
+const
struct rproc_ops i;File size details:
Size of the file remoteproc/da8xx_remoteproc.o remains the same before and
after applying the changes.text data bss dec hex filename
1312 100 4 1416 588 remoteproc/da8xx_remoteproc.o
1312 100 4 1416 588 remoteproc/da8xx_remoteproc.o970 240 0 1210 4ba remoteproc/omap_remoteproc.o
1002 192 0 1194 4aa remoteproc/omap_remoteproc.o1901 240 0 2141 85d remoteproc/st_remoteproc.o
1933 192 0 2125 84d remoteproc/st_remoteproc.o1288 96 0 1384 568 remoteproc/st_slim_rproc.o
1320 64 0 1384 568 remoteproc/st_slim_rproc.o2121 240 0 2361 939 remoteproc/wkup_m3_rproc.o
2161 192 0 2353 931 remoteproc/wkup_m3_rproc.oSigned-off-by: Bhumika Goyal
Signed-off-by: Bjorn Andersson
01 Nov, 2016
1 commit
-
Fix to return a negative error code from the st_rproc_state() error
handling case instead of 0, as done elsewhere in this function.Fixes: 63edb0310a5c ("remoteproc: Supply controller driver for ST's Remote Processors")
Signed-off-by: Wei Yongjun
Signed-off-by: Bjorn Andersson
03 Oct, 2016
1 commit
-
In order to be able to lock a rproc driver implementations only when
used by a client, we must differ between the dereference operation of a
client and the implementation itself.This patch brings no functional change.
Signed-off-by: Bjorn Andersson
29 Mar, 2016
1 commit
-
syscon_regmap_lookup_by_phandle() returns either a valid pointer to
struct regmap or ERR_PTR() error value, check for NULL is invalid and
on error path may lead to oops, the change corrects the check.Signed-off-by: Vladimir Zapolskiy
Acked-by: Lee Jones
Signed-off-by: Bjorn Andersson
30 Jan, 2016
1 commit
-
Signed-off-by: Ludovic Barre
Signed-off-by: Lee Jones
Signed-off-by: Bjorn Andersson