[PATCH v1] dd: Invoke one probe retry cycle after some initcall levels

2018-08-10 Thread Rishabh Bhatnagar
at every _sync initcall level after subsys initcall, allowing these drivers to be probed earlier. Signed-off-by: Vikram Mulukutla Signed-off-by: Rishabh Bhatnagar --- To give an example many Qualcomm drivers are dependent on the regulator and bus driver. Both the regulator and bus driver are

[PATCH v1] dd: Invoke one probe retry cycle after some initcall levels

2018-08-13 Thread Rishabh Bhatnagar
From: Rishabh Bhatnagar Drivers that are registered at an initcall level may have to wait until late_init before the probe deferral mechanism can retry their probe functions. It is possible that their dependencies were resolved much earlier, in some cases even before the next initcall level

[PATCH] dd: Invoke one probe retry cycle after every initcall level

2018-07-19 Thread Rishabh Bhatnagar
at every _sync initcall level, allowing these drivers to be probed earlier. Signed-off-by: Vikram Mulukutla Signed-off-by: Rishabh Bhatnagar --- drivers/base/dd.c | 33 +++-- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/drivers/base/dd.c b/drivers

[PATCH] firmware: Avoid caching firmware when FW_OPT_NOCACHE is set

2018-07-19 Thread Rishabh Bhatnagar
Vikram Mulukutla Signed-off-by: Rishabh Bhatnagar --- drivers/base/firmware_loader/main.c | 30 ++ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/drivers/base/firmware_loader/main.c b/drivers/base/firmware_loader/main.c index 2e0c37a..db9038c0

[PATCH] firmware: Fix security issue with request_firmware_into_buf()

2018-08-01 Thread Rishabh Bhatnagar
using request_firmware_into_buf. Fix alloc_lookup_fw_priv to not add to the fwc head list if FW_OPT_NOCACHE is set, and also don't do the lookup in the list. Fixes: 0e742e9275 ("firmware: provide infrastructure to make fw caching optional") Signed-off-by: Vikram Mulukutla Si

[PATCH v1 1/2] Documentation: Documentaion for qcom, llcc

2018-03-23 Thread Rishabh Bhatnagar
From: "ckad...@codeaurora.org" Documentation for last level cache controller device tree bindings, client bindings usage examples. Change-Id: Ic2d6d6154ab8269cfce6828e9f2250320a0572e8 Signed-off-by: Channagoud Kadabi Signed-off-by: Rishabh Bhatnagar --- .../devicetree/bindings/ar

[PATCH v1 2/2] drivers: soc: Add LLCC driver

2018-03-23 Thread Rishabh Bhatnagar
by: Channagoud Kadabi Signed-off-by: Rishabh Bhatnagar --- drivers/soc/qcom/llcc-sdm845.c | 120 ++ drivers/soc/qcom/llcc-slice.c | 454 + include/linux/soc/qcom/llcc-qcom.h | 178 +++ 3 files changed, 752 insertions(+) create mode

[PATCH v1 0/2] SDM845 System Cache Driver

2018-03-23 Thread Rishabh Bhatnagar
This series implements system cache or LLCC(Last Level Cache Controller) driver for SDM845 SOC. The purpose of the driver is to partition the system cache and program the settings such as priortiy, lines to probe while doing a look up in the system cache, low power related settings etc. The partiti

[PATCH v2 1/2] Documentation: Documentation for qcom, llcc

2018-03-24 Thread Rishabh Bhatnagar
Documentation for last level cache controller device tree bindings, client bindings usage examples. Change-Id: Ic2d6d6154ab8269cfce6828e9f2250320a0572e8 Signed-off-by: Channagoud Kadabi Signed-off-by: Rishabh Bhatnagar --- .../devicetree/bindings/arm/msm/qcom,llcc.txt | 70

[PATCH v2 0/2] SDM845 System Cache Driver

2018-03-24 Thread Rishabh Bhatnagar
This series implements system cache or LLCC(Last Level Cache Controller) driver for SDM845 SOC. The purpose of the driver is to partition the system cache and program the settings such as priortiy, lines to probe while doing a look up in the system cache, low power related settings etc. The partiti

[PATCH v2 2/2] drivers: soc: Add LLCC driver

2018-03-24 Thread Rishabh Bhatnagar
to get information such size & ID of the slice they get and activate or deactivate the slice as needed. LLCC driver provides API interfaces for the clients to perform these operations. Change-Id: I93c5f3225d0a917f0d6c64c7588a4e64e33a59ed Signed-off-by: Channagoud Kadabi Signed-off-by: Ris

[PATCH v4 1/2] Documentation: Documentation for qcom, llcc

2018-04-10 Thread Rishabh Bhatnagar
Documentation for last level cache controller device tree bindings, client bindings usage examples. Signed-off-by: Channagoud Kadabi Signed-off-by: Rishabh Bhatnagar --- .../devicetree/bindings/arm/msm/qcom,llcc.txt | 58 ++ 1 file changed, 58 insertions(+) create

[PATCH v4 0/2] SDM845 System Cache Driver

2018-04-10 Thread Rishabh Bhatnagar
This series implements system cache or LLCC(Last Level Cache Controller) driver for SDM845 SOC. The purpose of the driver is to partition the system cache and program the settings such as priortiy, lines to probe while doing a look up in the system cache, low power related settings etc. The partiti

[PATCH v4 2/2] drivers: soc: Add LLCC driver

2018-04-10 Thread Rishabh Bhatnagar
to get information such size & ID of the slice they get and activate or deactivate the slice as needed. LLCC driver provides API for the clients to perform these operations. Signed-off-by: Channagoud Kadabi Signed-off-by: Rishabh Bhatnagar --- drivers/soc/qcom/Kconfig | 17 ++ dri

[PATCH] lib: rhashtable: Correct self-assignment in rhashtable.c

2018-07-01 Thread Rishabh Bhatnagar
compiling with Clang 6.0. Change it to iter->skip. Change-Id: I5abd1ce5ba76737a73bd6eca94b07b1bd5267523 Signed-off-by: Rishabh Bhatnagar --- lib/rhashtable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rhashtable.c b/lib/rhashtable.c index 9427b57..3109b2e 100

[PATCH v8 2/2] drivers: soc: Add LLCC driver

2018-05-23 Thread Rishabh Bhatnagar
to get information such size & ID of the slice they get and activate or deactivate the slice as needed. LLCC driver provides API for the clients to perform these operations. Signed-off-by: Channagoud Kadabi Signed-off-by: Rishabh Bhatnagar Reviewed-by: Evan Green Reviewed-by: Rob Her

[PATCH v8 1/2] dt-bindings: Documentation for qcom, llcc

2018-05-23 Thread Rishabh Bhatnagar
Documentation for last level cache controller device tree bindings, client bindings usage examples. Signed-off-by: Channagoud Kadabi Signed-off-by: Rishabh Bhatnagar Reviewed-by: Evan Green Reviewed-by: Rob Herring --- .../devicetree/bindings/arm/msm/qcom,llcc.txt | 26

[PATCH v8 0/2] SDM845 System Cache Driver

2018-05-23 Thread Rishabh Bhatnagar
This series implements system cache or LLCC(Last Level Cache Controller) driver for SDM845 SOC. The purpose of the driver is to partition the system cache and program the settings such as priortiy, lines to probe while doing a look up in the system cache, low power related settings etc. The partiti

[PATCH v3 1/2] Documentation: Documentation for qcom, llcc

2018-03-27 Thread Rishabh Bhatnagar
Documentation for last level cache controller device tree bindings, client bindings usage examples. Signed-off-by: Channagoud Kadabi Signed-off-by: Rishabh Bhatnagar --- .../devicetree/bindings/arm/msm/qcom,llcc.txt | 70 ++ 1 file changed, 70 insertions(+) create

[PATCH v3 0/2] SDM845 System Cache Driver

2018-03-27 Thread Rishabh Bhatnagar
This series implements system cache or LLCC(Last Level Cache Controller) driver for SDM845 SOC. The purpose of the driver is to partition the system cache and program the settings such as priortiy, lines to probe while doing a look up in the system cache, low power related settings etc. The partiti

[PATCH v3 2/2] drivers: soc: Add LLCC driver

2018-03-27 Thread Rishabh Bhatnagar
to get information such size & ID of the slice they get and activate or deactivate the slice as needed. LLCC driver provides API interfaces for the clients to perform these operations. Signed-off-by: Channagoud Kadabi Signed-off-by: Rishabh Bhatnagar --- drivers/soc/qcom/Kco

[PATCH v7 1/2] dt-bindings: Documentation for qcom, llcc

2018-05-16 Thread Rishabh Bhatnagar
Documentation for last level cache controller device tree bindings, client bindings usage examples. Signed-off-by: Channagoud Kadabi Signed-off-by: Rishabh Bhatnagar --- .../devicetree/bindings/arm/msm/qcom,llcc.txt | 26 ++ 1 file changed, 26 insertions(+) create

[PATCH v7 2/2] drivers: soc: Add LLCC driver

2018-05-16 Thread Rishabh Bhatnagar
to get information such size & ID of the slice they get and activate or deactivate the slice as needed. LLCC driver provides API for the clients to perform these operations. Signed-off-by: Channagoud Kadabi Signed-off-by: Rishabh Bhatnagar --- drivers/soc/qcom/Kconfig | 17 ++ dri

[PATCH v7 0/2] SDM845 System Cache Driver

2018-05-16 Thread Rishabh Bhatnagar
This series implements system cache or LLCC(Last Level Cache Controller) driver for SDM845 SOC. The purpose of the driver is to partition the system cache and program the settings such as priortiy, lines to probe while doing a look up in the system cache, low power related settings etc. The partiti

[PATCH] trace: initcall: Ordered comparison of function pointers

2018-04-25 Thread Rishabh Bhatnagar
o __field_ext macro which does is_signed_type check on the type argument. Since initcall_t is defined as a function pointer, using it as the type in the __field macro, leads to an ordered comparison of function pointer warning, inside the check. Using __field_struct macro avoids the issue. Signed-off-by: R

[PATCH] remoteproc: Create a separate workqueue for recovery tasks

2020-12-12 Thread Rishabh Bhatnagar
creating a high priority workqueue will utilize separate worker threads with higher nice values than normal ones. Signed-off-by: Rishabh Bhatnagar --- drivers/remoteproc/remoteproc_core.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/remoteproc/remoteproc_core.c

[PATCH] drivers: mdt_loader: Add parallel blobs loading capability

2020-12-09 Thread Rishabh Bhatnagar
Add capability to load blobs parallely during loading of firmware. Create a high priority unbound workqueue and schedule work items to load the firmware blobs parallely. This helps in improving firmware loading times. Signed-off-by: Rishabh Bhatnagar --- drivers/soc/qcom/mdt_loader.c | 147

[PATCH v3 2/2] remoteproc: qcom: Add notification types to SSR

2020-04-28 Thread Rishabh Bhatnagar
has finished shutting down. Signed-off-by: Siddharth Gupta Signed-off-by: Rishabh Bhatnagar --- drivers/remoteproc/qcom_common.c | 46 +-- include/linux/remoteproc/qcom_rproc.h | 14 +++ 2 files changed, 58 insertions(+), 2 deletions(-) diff --git a

[PATCH v3 0/2] Extend SSR notifications framework

2020-04-28 Thread Rishabh Bhatnagar
river is removed. This is done by creating a global list of per-remoteproc notification info data structures which remain static. An API is exported to register for a remoteproc's SSR notifications and uses remoteproc's ssr_name and notifier block as arguments. Rishabh Bhatnagar (1): r

[PATCH v3 1/2] remoteproc: qcom: Add per subsystem SSR notification

2020-04-28 Thread Rishabh Bhatnagar
structure's notification chain. Signed-off-by: Siddharth Gupta Signed-off-by: Rishabh Bhatnagar --- drivers/remoteproc/qcom_common.c | 89 ++- drivers/remoteproc/qcom_common.h | 10 +++- include/linux/remoteproc/qcom_rproc.h | 20 ++-- 3 files change

[PATCH] remoteproc: core: Prevent system suspend during remoteproc recovery

2020-04-29 Thread Rishabh Bhatnagar
-by: Siddharth Gupta Signed-off-by: Rishabh Bhatnagar Acked-by: Mathieu Poirier --- drivers/remoteproc/qcom_q6v5_pas.c | 2 ++ drivers/remoteproc/remoteproc_core.c | 5 + 2 files changed, 7 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c

[PATCH v5 0/2] SDM845 System Cache Driver

2018-04-23 Thread Rishabh Bhatnagar
This series implements system cache or LLCC(Last Level Cache Controller) driver for SDM845 SOC. The purpose of the driver is to partition the system cache and program the settings such as priortiy, lines to probe while doing a look up in the system cache, low power related settings etc. The partiti

[PATCH v5 1/2] dt-bindings: Documentation for qcom, llcc

2018-04-23 Thread Rishabh Bhatnagar
Documentation for last level cache controller device tree bindings, client bindings usage examples. Signed-off-by: Channagoud Kadabi Signed-off-by: Rishabh Bhatnagar --- .../devicetree/bindings/arm/msm/qcom,llcc.txt | 60 ++ 1 file changed, 60 insertions(+) create

[PATCH v5 2/2] drivers: soc: Add LLCC driver

2018-04-23 Thread Rishabh Bhatnagar
to get information such size & ID of the slice they get and activate or deactivate the slice as needed. LLCC driver provides API for the clients to perform these operations. Signed-off-by: Channagoud Kadabi Signed-off-by: Rishabh Bhatnagar --- drivers/soc/qcom/Kconfig | 17 ++ dri

[PATCH v6 2/2] drivers: soc: Add LLCC driver

2018-05-08 Thread Rishabh Bhatnagar
to get information such size & ID of the slice they get and activate or deactivate the slice as needed. LLCC driver provides API for the clients to perform these operations. Signed-off-by: Channagoud Kadabi Signed-off-by: Rishabh Bhatnagar --- drivers/soc/qcom/Kconfig | 17 ++ dri

[PATCH v6 0/2] SDM845 System Cache Driver

2018-05-08 Thread Rishabh Bhatnagar
This series implements system cache or LLCC(Last Level Cache Controller) driver for SDM845 SOC. The purpose of the driver is to partition the system cache and program the settings such as priortiy, lines to probe while doing a look up in the system cache, low power related settings etc. The partiti

[PATCH v6 1/2] dt-bindings: Documentation for qcom, llcc

2018-05-08 Thread Rishabh Bhatnagar
Documentation for last level cache controller device tree bindings, client bindings usage examples. Signed-off-by: Channagoud Kadabi Signed-off-by: Rishabh Bhatnagar --- .../devicetree/bindings/arm/msm/qcom,llcc.txt | 32 ++ 1 file changed, 32 insertions(+) create

[PATCH v4 3/3] remoteproc: Add coredump debugfs entry

2020-05-27 Thread Rishabh Bhatnagar
processors. Signed-off-by: Rishabh Bhatnagar Reviewed-by: Bjorn Andersson Reviewed-by: Mathieu Poirier --- drivers/remoteproc/remoteproc_debugfs.c | 86 + 1 file changed, 86 insertions(+) diff --git a/drivers/remoteproc/remoteproc_debugfs.c b/drivers/remoteproc

[PATCH v4 1/3] remoteproc: Move coredump functionality to a new file

2020-05-27 Thread Rishabh Bhatnagar
Move all coredump functionality to an individual file. This is being done so that the current functionality can be extended in future patchsets. Signed-off-by: Rishabh Bhatnagar Reviewed-by: Bjorn Andersson Reviewed-by: Mathieu Poirier --- drivers/remoteproc/Makefile | 1

[PATCH v4 2/3] remoteproc: Add inline coredump functionality

2020-05-27 Thread Rishabh Bhatnagar
adds inline coredump functionality that avoids extra memory usage. This requires recovery to be halted until data is read by userspace and free function is called. Signed-off-by: Rishabh Bhatnagar Reviewed-by: Bjorn Andersson Reviewed-by: Mathieu Poirier --- drivers/remoteproc/qcom_q6v5_mss.c

[v4 PATCH 0/3] Extend coredump functionality

2020-05-27 Thread Rishabh Bhatnagar
ump according to conf. set by userspace - Move the userspace configuration to debugfs from sysfs. - Keep the default coredump implementation as is v2 -> v1: - Introduce new file for coredump. - Add userspace sysfs configuration for dump type. Rishabh Bhatnagar (3): remoteproc: Move coredump fun

[PATCH v4 2/2] remoteproc: qcom: Add notification types to SSR

2020-05-27 Thread Rishabh Bhatnagar
has finished shutting down. Signed-off-by: Siddharth Gupta Signed-off-by: Rishabh Bhatnagar --- drivers/remoteproc/qcom_common.c | 46 +-- include/linux/remoteproc/qcom_rproc.h | 14 +++ 2 files changed, 58 insertions(+), 2 deletions(-) diff --git a

[PATCH v4 0/2] Extend SSR notifications framework

2020-05-27 Thread Rishabh Bhatnagar
; v3: - Fix naming convention v3 -> v2: - Create a global list of per remoteproc notification data structure - Pass ssr_name and crashed information as part of notification data - Move notification type enum to qcom_rproc.h from remoteproc.h v2 -> v1: - Fix commit text Rishabh Bhatnagar (1): r

[PATCH v4 1/2] remoteproc: qcom: Add per subsystem SSR notification

2020-05-27 Thread Rishabh Bhatnagar
structure's notification chain. Also move from blocking notifier to srcu notifer based implementation to support dynamic notifier head creation. Signed-off-by: Siddharth Gupta Signed-off-by: Rishabh Bhatnagar --- drivers/remoteproc/qcom_common.c | 84 ++- dr

[PATCH v6 3/3] remoteproc: Add coredump debugfs entry

2020-06-29 Thread Rishabh Bhatnagar
processors. Signed-off-by: Rishabh Bhatnagar Reviewed-by: Bjorn Andersson Reviewed-by: Mathieu Poirier --- drivers/remoteproc/remoteproc_debugfs.c | 86 + 1 file changed, 86 insertions(+) diff --git a/drivers/remoteproc/remoteproc_debugfs.c b/drivers/remoteproc

[PATCH v6 2/3] remoteproc: Add inline coredump functionality

2020-06-29 Thread Rishabh Bhatnagar
adds inline coredump functionality that avoids extra memory usage. This requires recovery to be halted until data is read by userspace and free function is called. Signed-off-by: Rishabh Bhatnagar --- drivers/remoteproc/qcom_q6v5_mss.c | 9 +- drivers/remoteproc/remoteproc_coredump.c | 160

[PATCH v6 0/3] Extend coredump functionality

2020-06-29 Thread Rishabh Bhatnagar
file for coredump. - Add userspace sysfs configuration for dump type. Rishabh Bhatnagar (3): remoteproc: Move coredump functionality to a new file remoteproc: Add inline coredump functionality remoteproc: Add coredump debugfs entry drivers/remoteproc/Makefile | 1 + drivers/r

[PATCH v6 1/3] remoteproc: Move coredump functionality to a new file

2020-06-29 Thread Rishabh Bhatnagar
Move all coredump functionality to an individual file. This is being done so that the current functionality can be extended in future patchsets. Signed-off-by: Rishabh Bhatnagar Reviewed-by: Bjorn Andersson Reviewed-by: Mathieu Poirier --- drivers/remoteproc/Makefile | 1

[PATCH v5 0/2] Extend SSR notifications framework

2020-06-22 Thread Rishabh Bhatnagar
num to qcom_rproc.h from remoteproc.h v2 -> v1: - Fix commit text Rishabh Bhatnagar (1): remoteproc: qcom: Add per subsystem SSR notification Siddharth Gupta (1): remoteproc: qcom: Add notification types to SSR drivers/remoteproc/qcom_common.c | 128 +++

[PATCH v5 2/2] remoteproc: qcom: Add notification types to SSR

2020-06-22 Thread Rishabh Bhatnagar
. Signed-off-by: Siddharth Gupta Signed-off-by: Rishabh Bhatnagar --- drivers/remoteproc/qcom_common.c | 44 ++- include/linux/remoteproc/qcom_rproc.h | 16 + 2 files changed, 59 insertions(+), 1 deletion(-) diff --git a/drivers/remoteproc

[PATCH v5 1/2] remoteproc: qcom: Add per subsystem SSR notification

2020-06-22 Thread Rishabh Bhatnagar
structure's notification chain. Also move from blocking notifier to srcu notifer based implementation to support dynamic notifier head creation. Signed-off-by: Siddharth Gupta Signed-off-by: Rishabh Bhatnagar --- drivers/remoteproc/qcom_common.c | 86 +-- dr

[PATCH v7 2/3] remoteproc: Add coredump as part of sysfs interface

2020-10-02 Thread Rishabh Bhatnagar
Add coredump as part of the sysfs interface. This will allow usage of this configuration feature in production devices where access to debugfs might be limited. Signed-off-by: Rishabh Bhatnagar --- Documentation/ABI/testing/sysfs-class-remoteproc | 24 + drivers/remoteproc

[PATCH v7 3/3] remoteproc: Add recovery configuration to the sysfs interface

2020-10-02 Thread Rishabh Bhatnagar
Add recovery configuration to the sysfs interface. This will allow usage of this configuration feature in production devices where access to debugfs might be limited. Signed-off-by: Rishabh Bhatnagar --- Documentation/ABI/testing/sysfs-class-remoteproc | 20 + drivers/remoteproc

[PATCH v7 0/3] Move recovery/coredump configuration to sysfs

2020-10-02 Thread Rishabh Bhatnagar
t; v2: - Remove the coredump/recovery entries from debugfs - Expose recovery/coredump from sysfs under a feature flag v1 -> v2: - Correct the contact name in the sysfs documentation. - Remove the redundant write documentation for coredump/recovery sysfs - Add a feature flag to make this interf

[PATCH v7 1/3] remoteproc: Change default dump configuration to "disabled"

2020-10-02 Thread Rishabh Bhatnagar
Currently "default" configuration option means coredumps are enabled. To avoid confusion rename the "default" configuration option to "enabled" and disable collection of dumps by default as doing so makes sense for production devices. Signed-off-by: Rishabh Bhat

[PATCH v6 0/3] Move recovery/coredump configuration to sysfs

2020-09-28 Thread Rishabh Bhatnagar
in the sysfs documentation. - Remove the redundant write documentation for coredump/recovery sysfs - Add a feature flag to make this interface switch configurable. Rishabh Bhatnagar (3): remoteproc: Move coredump configuration to sysfs remoteproc: Move recovery configuration to sysfs r

[PATCH v6 2/3] remoteproc: Move recovery configuration to sysfs

2020-09-28 Thread Rishabh Bhatnagar
Move recovery configuration from debugfs to sysfs.This will allow usage of this configuration feature in production devices where access to debugfs might be limited. Signed-off-by: Rishabh Bhatnagar --- Documentation/ABI/testing/sysfs-class-remoteproc | 20 ++ drivers/remoteproc

[PATCH v6 1/3] remoteproc: Move coredump configuration to sysfs

2020-09-28 Thread Rishabh Bhatnagar
Move coredump configuration from debugfs to sysfs.This will allow usage of this configuration feature in production devices where access to debugfs might be limited. Signed-off-by: Rishabh Bhatnagar --- Documentation/ABI/testing/sysfs-class-remoteproc | 24 +++ drivers/remoteproc

[PATCH v6 3/3] remoteproc: Change default dump configuration to "disabled"

2020-09-28 Thread Rishabh Bhatnagar
Disable the coredump collection by default as doing so makes sense for production devices. Also rename the "default" configuration option to "enabled" to avoid confusion. Signed-off-by: Rishabh Bhatnagar --- Documentation/ABI/testing/sysfs-class-remoteproc | 10 ++

[PATCH v3 2/3] remoteproc: Add inline coredump functionality

2020-05-14 Thread Rishabh Bhatnagar
adds inline coredump functionality that avoids extra memory usage. This requires recovery to be halted until data is read by userspace and free function is called. Signed-off-by: Rishabh Bhatnagar --- drivers/remoteproc/remoteproc_coredump.c | 129 +-- include/linux

[PATCH v3 0/3] Extend coredump functionality

2020-05-14 Thread Rishabh Bhatnagar
v1: - Introduce new file for coredump. - Add userspace sysfs configuration for dump type. Rishabh Bhatnagar (3): remoteproc: Move coredump functionality to a new file remoteproc: Add inline coredump functionality remoteproc: Add coredump debugfs entry drivers/remoteproc/Makefile

[PATCH v3 3/3] remoteproc: Add coredump debugfs entry

2020-05-14 Thread Rishabh Bhatnagar
processors. Signed-off-by: Rishabh Bhatnagar --- drivers/remoteproc/remoteproc_debugfs.c | 86 + 1 file changed, 86 insertions(+) diff --git a/drivers/remoteproc/remoteproc_debugfs.c b/drivers/remoteproc/remoteproc_debugfs.c index 732770e..2f611de 100644 --- a

[PATCH v3 1/3] remoteproc: Move coredump functionality to a new file

2020-05-14 Thread Rishabh Bhatnagar
Move all coredump functionality to an individual file. This is being done so that the current functionality can be extended in future patchsets. Signed-off-by: Rishabh Bhatnagar --- drivers/remoteproc/Makefile | 1 + drivers/remoteproc/remoteproc_core.c | 191

[PATCH v2 1/3] remoteproc: Expose remoteproc configuration through sysfs

2020-08-27 Thread Rishabh Bhatnagar
: Rishabh Bhatnagar --- drivers/remoteproc/Kconfig | 12 1 file changed, 12 insertions(+) diff --git a/drivers/remoteproc/Kconfig b/drivers/remoteproc/Kconfig index c6659dfe..8aecf70 100644 --- a/drivers/remoteproc/Kconfig +++ b/drivers/remoteproc/Kconfig @@ -275,6 +275,18 @@ config

[PATCH v2 0/3] Expose recovery/coredump configuration from sysfs

2020-08-27 Thread Rishabh Bhatnagar
/recovery sysfs - Add a feature flag to make this interface switch configurable. Rishabh Bhatnagar (3): remoteproc: Expose remoteproc configuration through sysfs remoteproc: Add coredump configuration to sysfs remoteproc: Add recovery configuration to sysfs Documentation/ABI/testing

[PATCH v2 3/3] remoteproc: Add recovery configuration to sysfs

2020-08-27 Thread Rishabh Bhatnagar
Expose recovery configuration in sysfs under a feature flag. This is useful for systems where access to debugfs might be limited. Signed-off-by: Rishabh Bhatnagar --- Documentation/ABI/testing/sysfs-class-remoteproc | 20 drivers/remoteproc/remoteproc_debugfs.c | 6

[PATCH v2 2/3] remoteproc: Add coredump configuration to sysfs

2020-08-27 Thread Rishabh Bhatnagar
Expose coredump configuration in sysfs under a feature flag. This is useful for systems where access to debugfs might be limited. Signed-off-by: Rishabh Bhatnagar --- Documentation/ABI/testing/sysfs-class-remoteproc | 24 + drivers/remoteproc/remoteproc_debugfs.c | 4

[PATCH v3 0/3] Expose recovery/coredump configuration from sysfs

2020-09-03 Thread Rishabh Bhatnagar
Remove the redundant write documentation for coredump/recovery sysfs - Add a feature flag to make this interface switch configurable. Rishabh Bhatnagar (3): remoteproc: Expose remoteproc configuration through sysfs remoteproc: Add coredump configuration to sysfs remoteproc: Add recovery conf

[PATCH v3 3/3] remoteproc: Add recovery configuration to sysfs

2020-09-03 Thread Rishabh Bhatnagar
Expose recovery configuration in sysfs under a feature flag. This is useful for systems where access to debugfs might be limited. Signed-off-by: Rishabh Bhatnagar --- Documentation/ABI/testing/sysfs-class-remoteproc | 20 ++ drivers/remoteproc/remoteproc_debugfs.c | 78

[PATCH v3 1/3] remoteproc: Expose remoteproc configuration through sysfs

2020-09-03 Thread Rishabh Bhatnagar
: Rishabh Bhatnagar --- drivers/remoteproc/Kconfig | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/remoteproc/Kconfig b/drivers/remoteproc/Kconfig index c6659dfe..98d52cbe 100644 --- a/drivers/remoteproc/Kconfig +++ b/drivers/remoteproc/Kconfig @@ -275,6 +275,17 @@ config

[PATCH v3 2/3] remoteproc: Add coredump configuration to sysfs

2020-09-03 Thread Rishabh Bhatnagar
Expose coredump configuration in sysfs under a feature flag. This is useful for systems where access to debugfs might be limited. Signed-off-by: Rishabh Bhatnagar --- Documentation/ABI/testing/sysfs-class-remoteproc | 24 +++ drivers/remoteproc/remoteproc_debugfs.c | 90

[PATCH] remoteproc: qcom: Add notification timeouts

2020-10-29 Thread Rishabh Bhatnagar
that notifier chain is taking a long time. The timeout is set to 20secs by default and can be adjusted. Signed-off-by: Rishabh Bhatnagar --- drivers/remoteproc/Kconfig | 16 drivers/remoteproc/qcom_common.c | 41 2 files changed, 49

[PATCH v7 0/4] Extend coredump functionality

2020-07-09 Thread Rishabh Bhatnagar
ation to debugfs from sysfs. - Keep the default coredump implementation as is v2 -> v1: - Introduce new file for coredump. - Add userspace sysfs configuration for dump type. Rishabh Bhatnagar (3): remoteproc: Move coredump functionality to a new file remoteproc: Add inline coredump fu

[PATCH v1 2/4] remoteproc: qcom_q6v5_mss: Replace mask based tracking with size

2020-07-09 Thread Rishabh Bhatnagar
From: Sibi Sankar In order to land inline coredump support for mss, the dump_segment function would need to support granularities less than the segment size. This is achieved by replacing mask based tracking with size. Signed-off-by: Sibi Sankar Signed-off-by: Rishabh Bhatnagar --- drivers

[PATCH v7 4/4] remoteproc: Add coredump debugfs entry

2020-07-09 Thread Rishabh Bhatnagar
processors. Signed-off-by: Rishabh Bhatnagar Reviewed-by: Bjorn Andersson Reviewed-by: Mathieu Poirier Tested-by: Sibi Sankar Reviewed-by: Sibi Sankar --- drivers/remoteproc/remoteproc_debugfs.c | 90 + 1 file changed, 90 insertions(+) diff --git a/drivers

[PATCH v7 3/4] remoteproc: Add inline coredump functionality

2020-07-09 Thread Rishabh Bhatnagar
adds inline coredump functionality that avoids extra memory usage. This requires recovery to be halted until data is read by userspace and free function is called. Also modify the qcom_q6v5_mss driver to include size and offset in the segment dump function. Signed-off-by: Rishabh Bhatnagar Reviewed

[PATCH v7 1/4] remoteproc: Move coredump functionality to a new file

2020-07-09 Thread Rishabh Bhatnagar
Move all coredump functionality to an individual file. This is being done so that the current functionality can be extended in future patchsets. Signed-off-by: Rishabh Bhatnagar Reviewed-by: Bjorn Andersson Reviewed-by: Mathieu Poirier Reviewed-by: Sibi Sankar Tested-by: Sibi Sankar

[PATCH v2 0/3] Add events to trace remoteproc lifecycle

2020-11-16 Thread Rishabh Bhatnagar
. Also trace the scm pas calls used to boot/load remote processors. Changelog: v2 -> v1: - Add traces in qcom_scm driver - Add traces in remoteproc core to trace the remoteproc state - Trace the physical address where segment is loaded in mdt_loader Rishabh Bhatnagar (3): soc: qcom:

[PATCH v2 2/3] firmware: scm: Add tracepoints to scm driver for pas calls

2020-11-16 Thread Rishabh Bhatnagar
Add trace events to the qcom_scm driver to trace pas calls. These events can help us analyze the time impact for each scm operation and can also serve as standard checkpoints in code. Signed-off-by: Rishabh Bhatnagar --- drivers/firmware/qcom_scm.c | 9 + include/trace/events

[PATCH v2 1/3] soc: qcom: Add tracepoints to mdt loader

2020-11-16 Thread Rishabh Bhatnagar
Add trace events to the mdt loader driver. These events can help us trace the region where we are loading the segments and the time it takes to initialize the image and setup the memory region. Signed-off-by: Rishabh Bhatnagar --- drivers/soc/qcom/mdt_loader.c | 7 +++ include/trace

[PATCH v2 3/3] remoteproc: Add ftrace events to trace lifecycle of remoteprocs

2020-11-16 Thread Rishabh Bhatnagar
Add trace events to trace bootup/shutdown/recovery of remote processors. These events are useful in analyzing the time spent in each step in the life cycle and can be used for performace analysis. Also these serve as standard checkpoints in debugging. Signed-off-by: Rishabh Bhatnagar

[PATCH 0/2] Add trace events to q6v5_pas and mdt_loader driver

2020-11-09 Thread Rishabh Bhatnagar
Create and insert trace points in mdt_loader and qcom_q6v5_pas drivers. These tracepoints will be used to analyze the time taken at each step during bootup/shutdown of the remoteproc. Also provide information about location and size of firmware segments being loaded. Rishabh Bhatnagar (2): soc

[PATCH 1/2] soc: qcom: Add tracepoints to mdt loader

2020-11-09 Thread Rishabh Bhatnagar
Add trace events to the mdt loader driver. These events can help us trace the region where we are loading the segments and the time it takes to initialize the image and setup the memory region. Signed-off-by: Rishabh Bhatnagar --- drivers/soc/qcom/mdt_loader.c | 8 ++ include/trace

[PATCH 2/2] remoteproc: qcom: Add trace events for q6v5_pas driver

2020-11-09 Thread Rishabh Bhatnagar
Add tracepoints for q6v5_pas driver. These will help in analyzing the time taken by each step in remoteproc bootup/shutdown process and also serve as standard checkpoints in code. Signed-off-by: Rishabh Bhatnagar --- drivers/remoteproc/qcom_q6v5_pas.c | 11 +++ include/trace/events

[PATCH 0/2] Move recovery and coredump interface to sysfs

2020-07-28 Thread Rishabh Bhatnagar
low usage for these interfaces for production and debug builds. Rishabh Bhatnagar (2): remoteproc: Move coredump entry from debugfs to sysfs. remoteproc: Move recovery debugfs entry to sysfs Documentation/ABI/testing/sysfs-class-remoteproc | 76 +++ drivers/remoteproc/remoteproc_debug

[PATCH 1/2] remoteproc: Move coredump entry from debugfs to sysfs.

2020-07-28 Thread Rishabh Bhatnagar
Expose coredump configuration from sysfs instead of debugfs. In some operating systems access to debugfs might be limited. This restricts user from selecting the coredump configuration at all, hence move this interface to sysfs. Signed-off-by: Rishabh Bhatnagar --- Documentation/ABI/testing

[PATCH 2/2] remoteproc: Move recovery debugfs entry to sysfs

2020-07-28 Thread Rishabh Bhatnagar
Expose recovery mechanism through sysfs rather than exposing through debugfs. Some operating systems may limit access to debugfs through access policies. This restricts user access to recovery mechanism, hence move it to sysfs. Signed-off-by: Rishabh Bhatnagar --- Documentation/ABI/testing

[PATCH v8 3/5] remoteproc: Pass size and offset as arguments to segment dump function

2020-07-16 Thread Rishabh Bhatnagar
Change the segment dump API signature to include size and offset arguments. Refactor the qcom_q6v5_mss driver to use these arguments while copying the segment. Doing this lays the ground work for "inline" coredump functionality being added in the next patch. Signed-off-by: Rishabh

[PATCH v8 4/5] remoteproc: Add inline coredump functionality

2020-07-16 Thread Rishabh Bhatnagar
adds inline coredump functionality that avoids extra memory usage. This requires recovery to be halted until data is read by userspace and free function is called. Signed-off-by: Rishabh Bhatnagar Tested-by: Sibi Sankar --- drivers/remoteproc/remoteproc_coredump.c | 156

[PATCH v8 5/5] remoteproc: Add coredump debugfs entry

2020-07-16 Thread Rishabh Bhatnagar
processors. Signed-off-by: Rishabh Bhatnagar Reviewed-by: Bjorn Andersson Reviewed-by: Mathieu Poirier Tested-by: Sibi Sankar Reviewed-by: Sibi Sankar --- drivers/remoteproc/remoteproc_debugfs.c | 90 + 1 file changed, 90 insertions(+) diff --git a/drivers

[PATCH v8 2/5] remoteproc: qcom_q6v5_mss: Replace mask based tracking with size

2020-07-16 Thread Rishabh Bhatnagar
From: Sibi Sankar In order to land inline coredump support for mss, the dump_segment function would need to support granularities less than the segment size. This is achieved by replacing mask based tracking with size. Signed-off-by: Sibi Sankar Signed-off-by: Rishabh Bhatnagar --- drivers

[PATCH v8 1/5] remoteproc: Move coredump functionality to a new file

2020-07-16 Thread Rishabh Bhatnagar
Move all coredump functionality to an individual file. This is being done so that the current functionality can be extended in future patchsets. Signed-off-by: Rishabh Bhatnagar Reviewed-by: Bjorn Andersson Reviewed-by: Mathieu Poirier Reviewed-by: Sibi Sankar Tested-by: Sibi Sankar

[PATCH v8 0/5] Extend coredump functionality

2020-07-16 Thread Rishabh Bhatnagar
rom sysfs. - Keep the default coredump implementation as is v2 -> v1: - Introduce new file for coredump. - Add userspace sysfs configuration for dump type. Rishabh Bhatnagar (4): remoteproc: Move coredump functionality to a new file remoteproc: Add size and offset arguments to segment dump f

[PATCH v5 1/2] remoteproc: Move coredump configuration to sysfs

2020-09-18 Thread Rishabh Bhatnagar
Move coredump configuration from debugfs to sysfs.This will allow usage of this configuration feature in production devices where access to debugfs might be limited. Signed-off-by: Rishabh Bhatnagar --- Documentation/ABI/testing/sysfs-class-remoteproc | 24 +++ drivers/remoteproc

[PATCH v5 2/2] remoteproc: Move recovery configuration to sysfs

2020-09-18 Thread Rishabh Bhatnagar
Move recovery configuration from debugfs to sysfs.This will allow usage of this configuration feature in production devices where access to debugfs might be limited. Signed-off-by: Rishabh Bhatnagar --- Documentation/ABI/testing/sysfs-class-remoteproc | 20 ++ drivers/remoteproc

[PATCH v5 0/2] Move recovery/coredump configuration to sysfs

2020-09-18 Thread Rishabh Bhatnagar
under a feature flag v1 -> v2: - Correct the contact name in the sysfs documentation. - Remove the redundant write documentation for coredump/recovery sysfs - Add a feature flag to make this interface switch configurable. Rishabh Bhatnagar (2): remoteproc: Move coredump configuration to sysfs remotep

[PATCH v4 2/2] remoteproc: Move recovery configuration to sysfs

2020-09-17 Thread Rishabh Bhatnagar
Move recovery configuration from debugfs to sysfs. This will allow usage of this configuration feature in production devices where access to debugfs might be limited. Signed-off-by: Rishabh Bhatnagar --- Documentation/ABI/testing/sysfs-class-remoteproc | 20 ++ drivers/remoteproc

[PATCH v4 1/2] remoteproc: Move coredump configuration to sysfs

2020-09-17 Thread Rishabh Bhatnagar
Move coredump configuration from debugfs to sysfs. This will allow usage of this configuration feature in production devices where access to debugfs might be limited. Signed-off-by: Rishabh Bhatnagar --- Documentation/ABI/testing/sysfs-class-remoteproc | 24 +++ drivers/remoteproc

[PATCH v4 0/3] Move recovery/coredump configuration to sysfs

2020-09-17 Thread Rishabh Bhatnagar
the sysfs documentation. - Remove the redundant write documentation for coredump/recovery sysfs - Add a feature flag to make this interface switch configurable. Rishabh Bhatnagar (3): remoteproc: Expose remoteproc configuration through sysfs remoteproc: Add coredump configuration to sysfs rem

[PATCH v5 0/3] Extend coredump functionality

2020-06-23 Thread Rishabh Bhatnagar
coredump.c - Modify rproc_coredump to perform dump according to conf. set by userspace - Move the userspace configuration to debugfs from sysfs. - Keep the default coredump implementation as is v2 -> v1: - Introduce new file for coredump. - Add userspace sysfs configuration for dump type.

  1   2   >