31 May, 2019
1 commit
-
Based on 1 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 foundation this program is
distributed in the hope that it will be useful but without any
warranty without even the implied warranty of merchantability or
fitness for a particular purpose see the gnu general public license
for more detailsextracted by the scancode license scanner the SPDX license identifier
GPL-2.0-only
has been chosen to replace the boilerplate/reference in 655 file(s).
Signed-off-by: Thomas Gleixner
Reviewed-by: Allison Randal
Reviewed-by: Kate Stewart
Reviewed-by: Richard Fontana
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190527070034.575739538@linutronix.de
Signed-off-by: Greg Kroah-Hartman
21 Feb, 2019
1 commit
-
With rproc_alloc_registered_carveouts() introduction, carveouts are
allocated after resource table parsing.
rproc_da_to_va() may return NULL at trace resource registering.
This patch modifies trace debufs registering to provide device address
(da) instead of va.
da to va translation is done at each trace buffer access
through debugfs interface.Fixes: d7c51706d095 ("remoteproc: add alloc ops in rproc_mem_entry struct")
Signed-off-by: Loic Pallardy
Signed-off-by: Bjorn Andersson
07 Jan, 2019
1 commit
-
so we can trigger the crash manully which could:
1.test the crash handling code path more easily
2.update the firmware without reboot kernelSigned-off-by: Xiang Xiao
Signed-off-by: Bjorn Andersson
10 Oct, 2018
1 commit
-
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
Signed-off-by: Bjorn Andersson
31 Jul, 2018
1 commit
-
The format specifier "%p" can leak kernel addresses.
Use "%pK" instead.This patch proposes changes for remoteproc core only.
Acked-by: Suman Anna
Signed-off-by: Loic Pallardy
Signed-off-by: Bjorn Andersson
07 Nov, 2017
2 commits
-
This patch offers the capability to dump memory carveouts associated
to one remoteprocessor.Signed-off-by: Loic Pallardy
Signed-off-by: Bjorn Andersson -
This patch adds the capability to display the content of
the resource table associated to a remote processor firmware.Signed-off-by: Loic Pallardy
Signed-off-by: Bjorn Andersson
01 Nov, 2016
1 commit
-
Since there is now an always available state file in sysfs with the same
function as this one in debugfs, remove the redundant entry.Signed-off-by: Matt Redfearn
Signed-off-by: Bjorn Andersson
13 Aug, 2016
1 commit
-
This patch fixes the existing alignment checkpatch check
warnings of the type "Alignment should match open parenthesis"
in the remoteproc core source files.Signed-off-by: Suman Anna
Signed-off-by: Bjorn Andersson
30 Jan, 2016
2 commits
-
This functionality is especially useful during the testing phase. When
used in conjunction with Mailbox's Test Framework we can trivially conduct
end-to-end testing i.e. boot co-processor, send and receive messages to
the co-processor, then shut it down again (repeat as required).Signed-off-by: Ludovic Barre
Signed-off-by: Lee Jones
Signed-off-by: Bjorn Andersson -
If 'count' value is invalid, return -EINVAL.
Signed-off-by: Lee Jones
[bjorn: changed commit message]
Signed-off-by: Bjorn Andersson
26 Nov, 2015
1 commit
-
Recent gcc versions warn about reading from a negative offset of
an on-stack array:drivers/remoteproc/remoteproc_debugfs.c: In function 'rproc_recovery_write':
drivers/remoteproc/remoteproc_debugfs.c:167:9: warning: 'buf[4294967295u]' may be used uninitialized in this function [-Wmaybe-uninitialized]I don't see anything in sys_write() that prevents us from
being called with a zero 'count' argument, so we should
add an extra check in rproc_recovery_write() to prevent the
access and avoid the warning.Signed-off-by: Arnd Bergmann
Fixes: 2e37abb89a2e ("remoteproc: create a 'recovery' debugfs entry")
Signed-off-by: Ohad Ben-Cohen
30 Jun, 2013
1 commit
-
This patch fixes relevant checkpatch errors and warnings
in the remoteproc source files.Signed-off-by: Suman Anna
[drop 80-char-lines checkpatch fixes and update commit log accordingly]
Signed-off-by: Ohad Ben-Cohen
30 Sep, 2012
2 commits
-
copy_from_user() returns the number of bytes remaining to be copied, but
we want to return an error code here.Signed-off-by: Dan Carpenter
Signed-off-by: Ohad Ben-Cohen -
snprintf() returns the number of characters which would have been
printed if there were enough space. For example, on the first print if
we fill up the 28 character string then it would return a number more
than 30. Use scnprintf() instead because that returns the actual number
of characters printed.Signed-off-by: Dan Carpenter
Signed-off-by: Ohad Ben-Cohen
18 Sep, 2012
1 commit
-
Add a 'recovery' debugfs entry to dynamically disable/enable recovery
at runtime. This is useful when one is trying to debug an rproc crash;
without it, a recovery will immediately take place, making it harder
to debug the crash.Contributions from Subramaniam Chanderashekarapuram.
Examples:
- disabling recovery:
$ echo disabled > /remoteproc/remoteproc0/recovery- in case you want to recover a crash, but keep recovery disabled
(useful in debugging sessions when you expect additional crashes
you want to debug):
$ echo recover > /remoteproc/remoteproc0/recovery- enabling recovery:
$ echo enabled > /remoteproc/remoteproc0/recoverySigned-off-by: Fernando Guzman Lugo
[ohad: some white space, commentary and commit log changes]
Signed-off-by: Ohad Ben-Cohen
06 Jul, 2012
1 commit
-
For each registered rproc, maintain a generic remoteproc device whose
parent is the low level platform-specific device (commonly a pdev, but
it may certainly be any other type of device too).With this in hand, the resulting device hierarchy might then look like:
omap-rproc.0
|
- remoteproc0 for suggesting and
discussing these ideas in one of the remoteproc review threads and
to Fernando Guzman Lugo for trying them out
with the (upcoming) runtime PM support for remoteproc.Cc: Fernando Guzman Lugo
Reviewed-by: Stephen Boyd
Signed-off-by: Ohad Ben-Cohen
06 Apr, 2012
1 commit
-
Many users of debugfs copy the implementation of default_open() when
they want to support a custom read/write function op. This leads to a
proliferation of the default_open() implementation across the entire
tree.Now that the common implementation has been consolidated into libfs we
can replace all the users of this function with simple_open().This replacement was done with the following semantic patch:
@ open @
identifier open_f != simple_open;
identifier i, f;
@@
-int open_f(struct inode *i, struct file *f)
-{
(
-if (i->i_private)
-f->private_data = i->i_private;
|
-f->private_data = i->i_private;
)
-return 0;
-}@ has_open depends on open @
identifier fops;
identifier open.open_f;
@@
struct file_operations fops = {
...
-.open = open_f,
+.open = simple_open,
...
};[akpm@linux-foundation.org: checkpatch fixes]
Signed-off-by: Stephen Boyd
Cc: Greg Kroah-Hartman
Cc: Al Viro
Cc: Julia Lawall
Acked-by: Ingo Molnar
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
09 Feb, 2012
1 commit
-
Expose several remote processor properties (name, state, trace buffer)
that are helpful for debugging.This part is extracted to a separate patch just to keep the review load
down.Designed with Brian Swetland .
Signed-off-by: Ohad Ben-Cohen
Acked-by: Grant Likely
Cc: Brian Swetland
Cc: Arnd Bergmann
Cc: Tony Lindgren
Cc: Russell King
Cc: Rusty Russell
Cc: Andrew Morton
Cc: Greg KH
Cc: Stephen Boyd