[PATCH v8 3/4] remoteproc: qcom: Make secure world call for mem ownership switch

2017-10-24 Thread Avaneesh Kumar Dwivedi
MSS proc on msm8996 can not access fw loaded region without stage second translation of memory pages where mpss image are loaded. This patch in order to enable mss boot on msm8996 invoke scm call to switch or share ownership between apps and modem. Signed-off-by: Avaneesh Kumar Dwivedi <ak

[PATCH v8 3/4] remoteproc: qcom: Make secure world call for mem ownership switch

2017-10-24 Thread Avaneesh Kumar Dwivedi
MSS proc on msm8996 can not access fw loaded region without stage second translation of memory pages where mpss image are loaded. This patch in order to enable mss boot on msm8996 invoke scm call to switch or share ownership between apps and modem. Signed-off-by: Avaneesh Kumar Dwivedi

[PATCH v8 1/4] firmware: scm: Add new SCM call API for switching memory ownership

2017-10-24 Thread Avaneesh Kumar Dwivedi
-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- drivers/firmware/qcom_scm-32.c | 7 +++ drivers/firmware/qcom_scm-64.c | 27 drivers/firmware/qcom_scm.c| 98 ++ drivers/firmware/qcom_scm.h| 5 +++ include/linux/qcom

[PATCH v8 1/4] firmware: scm: Add new SCM call API for switching memory ownership

2017-10-24 Thread Avaneesh Kumar Dwivedi
-by: Avaneesh Kumar Dwivedi --- drivers/firmware/qcom_scm-32.c | 7 +++ drivers/firmware/qcom_scm-64.c | 27 drivers/firmware/qcom_scm.c| 98 ++ drivers/firmware/qcom_scm.h| 5 +++ include/linux/qcom_scm.h | 16 +++ 5 files

[PATCH v8 0/4] Add memory ownership switch support and enable mss rproc on msm8996

2017-10-24 Thread Avaneesh Kumar Dwivedi
, using "true" in place of "1", renaming certain local variables for better clarity and modifying code to look more uniform as per comment on last patch etc. Avaneesh Kumar Dwivedi (4): firmware: scm: Add new SCM call API for switching memory ownershi

[PATCH v8 0/4] Add memory ownership switch support and enable mss rproc on msm8996

2017-10-24 Thread Avaneesh Kumar Dwivedi
, using "true" in place of "1", renaming certain local variables for better clarity and modifying code to look more uniform as per comment on last patch etc. Avaneesh Kumar Dwivedi (4): firmware: scm: Add new SCM call API for switching memory ownershi

[PATCH v8 2/4] remoteproc: qcom: refactor mss fw image loading sequence

2017-10-24 Thread Avaneesh Kumar Dwivedi
This patch refactor code to first load all firmware blobs and then update modem proc to authenticate and boot fw. Tested-and-acked-by: Bjorn Andersson <bjorn.anders...@linaro.org> Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- drivers/remoteproc/qcom_q6v

[PATCH v8 2/4] remoteproc: qcom: refactor mss fw image loading sequence

2017-10-24 Thread Avaneesh Kumar Dwivedi
This patch refactor code to first load all firmware blobs and then update modem proc to authenticate and boot fw. Tested-and-acked-by: Bjorn Andersson Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/remoteproc/qcom_q6v5_pil.c | 19 --- 1 file changed, 8 insertions(+), 11

[PATCH v8 4/4] remoteproc: qcom: Add support for mss remoteproc on msm8996

2017-10-24 Thread Avaneesh Kumar Dwivedi
This patch add support for mss boot on msm8996. Major changes include initializing mss rproc for msm8996, making appropriate change for executing mss reset sequence etc. Tested-and-acked-by: Bjorn Andersson <bjorn.anders...@linaro.org> Signed-off-by: Avaneesh Kumar Dwivedi

[PATCH v8 4/4] remoteproc: qcom: Add support for mss remoteproc on msm8996

2017-10-24 Thread Avaneesh Kumar Dwivedi
This patch add support for mss boot on msm8996. Major changes include initializing mss rproc for msm8996, making appropriate change for executing mss reset sequence etc. Tested-and-acked-by: Bjorn Andersson Signed-off-by: Avaneesh Kumar Dwivedi --- .../devicetree/bindings/remoteproc/qcom,q6v5

[PATCH v7 1/4] firmware: scm: Add new SCM call API for switching memory ownership

2017-07-21 Thread Avaneesh Kumar Dwivedi
-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- drivers/firmware/qcom_scm-32.c | 7 drivers/firmware/qcom_scm-64.c | 27 drivers/firmware/qcom_scm.c| 94 ++ drivers/firmware/qcom_scm.h| 5 +++ include/linux/qcom

[PATCH v7 1/4] firmware: scm: Add new SCM call API for switching memory ownership

2017-07-21 Thread Avaneesh Kumar Dwivedi
-by: Avaneesh Kumar Dwivedi --- drivers/firmware/qcom_scm-32.c | 7 drivers/firmware/qcom_scm-64.c | 27 drivers/firmware/qcom_scm.c| 94 ++ drivers/firmware/qcom_scm.h| 5 +++ include/linux/qcom_scm.h | 16 +++ 5 files

[PATCH v7 2/4] remoteproc: qcom: refactor mss fw image loading sequence

2017-07-21 Thread Avaneesh Kumar Dwivedi
This patch refactor code to first load all firmware blobs and then update modem proc to authenticate and boot fw. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- drivers/remoteproc/qcom_q6v5_pil.c | 19 --- 1 file changed, 8 insertions(+), 11 del

[PATCH v7 2/4] remoteproc: qcom: refactor mss fw image loading sequence

2017-07-21 Thread Avaneesh Kumar Dwivedi
This patch refactor code to first load all firmware blobs and then update modem proc to authenticate and boot fw. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/remoteproc/qcom_q6v5_pil.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers

[PATCH v7 4/4] remoteproc: qcom: Add support for mss remoteproc on msm8996

2017-07-21 Thread Avaneesh Kumar Dwivedi
This patch add support for mss boot on msm8996. Major changes include initializing mss rproc for msm8996, making appropriate change for executing mss reset sequence etc. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt

[PATCH v7 4/4] remoteproc: qcom: Add support for mss remoteproc on msm8996

2017-07-21 Thread Avaneesh Kumar Dwivedi
This patch add support for mss boot on msm8996. Major changes include initializing mss rproc for msm8996, making appropriate change for executing mss reset sequence etc. Signed-off-by: Avaneesh Kumar Dwivedi --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 1 + drivers/remoteproc

[PATCH v7 3/4] remoteproc: qcom: Make secure world call for mem ownership switch

2017-07-21 Thread Avaneesh Kumar Dwivedi
MSS proc on msm8996 can not access fw loaded region without stage second translation of memory pages where mpss image are loaded. This patch in order to enable mss boot on msm8996 invoke scm call to switch or share ownership between apps and modem. Signed-off-by: Avaneesh Kumar Dwivedi <ak

[PATCH v7 3/4] remoteproc: qcom: Make secure world call for mem ownership switch

2017-07-21 Thread Avaneesh Kumar Dwivedi
MSS proc on msm8996 can not access fw loaded region without stage second translation of memory pages where mpss image are loaded. This patch in order to enable mss boot on msm8996 invoke scm call to switch or share ownership between apps and modem. Signed-off-by: Avaneesh Kumar Dwivedi

[PATCH v7 0/4] Add memory ownership switch support and enable mss rproc on msm8996

2017-07-21 Thread Avaneesh Kumar Dwivedi
- Uses dma_alloc_coherent() that dma_alloc_attrs() 2- Fixes warning from checkpatch with --strict option 3- Fixes other minor comments Avaneesh Kumar Dwivedi (4): firmware: scm: Add new SCM call API for switching memory ownership remoteproc: qcom: refactor mss fw image loading

[PATCH v7 0/4] Add memory ownership switch support and enable mss rproc on msm8996

2017-07-21 Thread Avaneesh Kumar Dwivedi
- Uses dma_alloc_coherent() that dma_alloc_attrs() 2- Fixes warning from checkpatch with --strict option 3- Fixes other minor comments Avaneesh Kumar Dwivedi (4): firmware: scm: Add new SCM call API for switching memory ownership remoteproc: qcom: refactor mss fw image loading

[PATCH v6 0/4] Add memory ownership switch support and enable mss rproc on msm8996

2017-06-22 Thread Avaneesh Kumar Dwivedi
: - Reorganization of q6v5_xfer_mem_ownership function. - Other indentation and small errors. Avaneesh Kumar Dwivedi (4): firmware: scm: Add new SCM call API for switching memory ownership remoteproc: qcom: refactor mss fw image loading sequence remoteproc: qcom: Make secure world call

[PATCH v6 0/4] Add memory ownership switch support and enable mss rproc on msm8996

2017-06-22 Thread Avaneesh Kumar Dwivedi
: - Reorganization of q6v5_xfer_mem_ownership function. - Other indentation and small errors. Avaneesh Kumar Dwivedi (4): firmware: scm: Add new SCM call API for switching memory ownership remoteproc: qcom: refactor mss fw image loading sequence remoteproc: qcom: Make secure world call

[PATCH v6 1/4] firmware: scm: Add new SCM call API for switching memory ownership

2017-06-22 Thread Avaneesh Kumar Dwivedi
-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- drivers/firmware/qcom_scm-32.c | 6 +++ drivers/firmware/qcom_scm-64.c | 27 + drivers/firmware/qcom_scm.c| 92 ++ drivers/firmware/qcom_scm.h| 5 +++ include/linux/qcom

[PATCH v6 1/4] firmware: scm: Add new SCM call API for switching memory ownership

2017-06-22 Thread Avaneesh Kumar Dwivedi
-by: Avaneesh Kumar Dwivedi --- drivers/firmware/qcom_scm-32.c | 6 +++ drivers/firmware/qcom_scm-64.c | 27 + drivers/firmware/qcom_scm.c| 92 ++ drivers/firmware/qcom_scm.h| 5 +++ include/linux/qcom_scm.h | 16 5 files

[PATCH v6 4/4] remoteproc: qcom: Add support for mss remoteproc on msm8996

2017-06-22 Thread Avaneesh Kumar Dwivedi
This patch add support for mss boot on msm8996. Major changes include initializing mss rproc for msm8996, making appropriate change for executing mss reset sequence etc. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt

[PATCH v6 4/4] remoteproc: qcom: Add support for mss remoteproc on msm8996

2017-06-22 Thread Avaneesh Kumar Dwivedi
This patch add support for mss boot on msm8996. Major changes include initializing mss rproc for msm8996, making appropriate change for executing mss reset sequence etc. Signed-off-by: Avaneesh Kumar Dwivedi --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 1 + drivers/remoteproc

[PATCH v6 2/4] remoteproc: qcom: refactor mss fw image loading sequence

2017-06-22 Thread Avaneesh Kumar Dwivedi
This patch refactor code to first load all firmware blobs and then update modem proc to authenticate and boot fw. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- drivers/remoteproc/qcom_q6v5_pil.c | 19 --- 1 file changed, 8 insertions(+), 11 del

[PATCH v6 3/4] remoteproc: qcom: Make secure world call for mem ownership switch

2017-06-22 Thread Avaneesh Kumar Dwivedi
MSS proc on msm8996 can not access fw loaded region without stage second translation of memory pages where mpss image are loaded. This patch in order to enable mss boot on msm8996 invoke scm call to switch or share ownership between apps and modem. Signed-off-by: Avaneesh Kumar Dwivedi <ak

[PATCH v6 2/4] remoteproc: qcom: refactor mss fw image loading sequence

2017-06-22 Thread Avaneesh Kumar Dwivedi
This patch refactor code to first load all firmware blobs and then update modem proc to authenticate and boot fw. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/remoteproc/qcom_q6v5_pil.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers

[PATCH v6 3/4] remoteproc: qcom: Make secure world call for mem ownership switch

2017-06-22 Thread Avaneesh Kumar Dwivedi
MSS proc on msm8996 can not access fw loaded region without stage second translation of memory pages where mpss image are loaded. This patch in order to enable mss boot on msm8996 invoke scm call to switch or share ownership between apps and modem. Signed-off-by: Avaneesh Kumar Dwivedi

[PATCH v5 3/4] remoteproc: qcom: Make secure world call for mem ownership switch

2017-06-01 Thread Avaneesh Kumar Dwivedi
MSS proc on msm8996 can not access fw loaded region without stage second translation of memory pages where mpss image are loaded. This patch in order to enable mss boot on msm8996 invoke scm call to switch or share ownership between apps and modem. Signed-off-by: Avaneesh Kumar Dwivedi <ak

[PATCH v5 3/4] remoteproc: qcom: Make secure world call for mem ownership switch

2017-06-01 Thread Avaneesh Kumar Dwivedi
MSS proc on msm8996 can not access fw loaded region without stage second translation of memory pages where mpss image are loaded. This patch in order to enable mss boot on msm8996 invoke scm call to switch or share ownership between apps and modem. Signed-off-by: Avaneesh Kumar Dwivedi

[PATCH v5 0/4] Add memory ownership switch support and enable mss rproc on msm8996

2017-06-01 Thread Avaneesh Kumar Dwivedi
of the SCM API has been changed as per comment. 5- logging of fail cases during memory ownership swiitch has been readjusted. 5- Other indentation and small errors. Avaneesh Kumar Dwivedi (4): firmware: scm: Add new SCM call API for switching memory ownership remoteproc: qcom

[PATCH v5 2/4] remoteproc: qcom: refactor mss fw image loading sequence

2017-06-01 Thread Avaneesh Kumar Dwivedi
This patch refactor code to first load all firmware blobs and then update modem proc to authenticate and boot fw. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- drivers/remoteproc/qcom_q6v5_pil.c | 19 --- 1 file changed, 8 insertions(+), 11 del

[PATCH v5 0/4] Add memory ownership switch support and enable mss rproc on msm8996

2017-06-01 Thread Avaneesh Kumar Dwivedi
of the SCM API has been changed as per comment. 5- logging of fail cases during memory ownership swiitch has been readjusted. 5- Other indentation and small errors. Avaneesh Kumar Dwivedi (4): firmware: scm: Add new SCM call API for switching memory ownership remoteproc: qcom

[PATCH v5 2/4] remoteproc: qcom: refactor mss fw image loading sequence

2017-06-01 Thread Avaneesh Kumar Dwivedi
This patch refactor code to first load all firmware blobs and then update modem proc to authenticate and boot fw. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/remoteproc/qcom_q6v5_pil.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers

[PATCH v5 1/4] firmware: scm: Add new SCM call API for switching memory ownership

2017-06-01 Thread Avaneesh Kumar Dwivedi
-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- drivers/firmware/qcom_scm-32.c | 6 +++ drivers/firmware/qcom_scm-64.c | 27 + drivers/firmware/qcom_scm.c| 92 ++ drivers/firmware/qcom_scm.h| 5 +++ include/linux/qcom

[PATCH v5 4/4] remoteproc: qcom: Add support for mss remoteproc on msm8996

2017-06-01 Thread Avaneesh Kumar Dwivedi
This patch add support for mss boot on msm8996. Major changes include initializing mss rproc for msm8996, making appropriate change for executing mss reset sequence etc. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt

[PATCH v5 1/4] firmware: scm: Add new SCM call API for switching memory ownership

2017-06-01 Thread Avaneesh Kumar Dwivedi
-by: Avaneesh Kumar Dwivedi --- drivers/firmware/qcom_scm-32.c | 6 +++ drivers/firmware/qcom_scm-64.c | 27 + drivers/firmware/qcom_scm.c| 92 ++ drivers/firmware/qcom_scm.h| 5 +++ include/linux/qcom_scm.h | 16 5 files

[PATCH v5 4/4] remoteproc: qcom: Add support for mss remoteproc on msm8996

2017-06-01 Thread Avaneesh Kumar Dwivedi
This patch add support for mss boot on msm8996. Major changes include initializing mss rproc for msm8996, making appropriate change for executing mss reset sequence etc. Signed-off-by: Avaneesh Kumar Dwivedi --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 1 + drivers/remoteproc

[RESEND: PATCH v4 2/4] remoteproc: qcom: refactor mss fw image loading sequence

2017-05-16 Thread Avaneesh Kumar Dwivedi
This patch refactor code to first load all firmware blobs and then update modem proc to authenticate and boot fw. Also make a trivial change in a error log. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- drivers/remoteproc/qcom_q6v5_pil.c | 25 --

[RESEND: PATCH v4 2/4] remoteproc: qcom: refactor mss fw image loading sequence

2017-05-16 Thread Avaneesh Kumar Dwivedi
This patch refactor code to first load all firmware blobs and then update modem proc to authenticate and boot fw. Also make a trivial change in a error log. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/remoteproc/qcom_q6v5_pil.c | 25 - 1 file changed, 12 insertions

[RESEND: PATCH v4 4/4] remoteproc: qcom: Add support for mss boot on msm8996

2017-05-16 Thread Avaneesh Kumar Dwivedi
This patch add support for mss boot on msm8996. Major changes include initializing mss rproc for msm8996, making appropriate change for executing mss reset sequence etc. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt

[RESEND: PATCH v4 0/4] Add memory ownership switch support and enable mss rproc on msm8996

2017-05-16 Thread Avaneesh Kumar Dwivedi
and then transfer ownership of memory region to MSS for authentication and boot etc. 7- Other Minor changes 8- kbuild robot gave error so added dummy definition of __qcom_scm_assign_mem() in qcom_scm-32.c as well Avaneesh Kumar Dwivedi (4): firmware: scm: Add new SCM call

[RESEND: PATCH v4 3/4] remoteproc: qcom: Make secure world call for mem ownership switch

2017-05-16 Thread Avaneesh Kumar Dwivedi
MSS proc on msm8996 can not access fw loaded region without stage second translation of memory pages where mpss image are loaded. This patch in order to enable mss boot on msm8996 invoke scm call to switch or share ownership between apps and modem. Signed-off-by: Avaneesh Kumar Dwivedi <ak

[RESEND: PATCH v4 4/4] remoteproc: qcom: Add support for mss boot on msm8996

2017-05-16 Thread Avaneesh Kumar Dwivedi
This patch add support for mss boot on msm8996. Major changes include initializing mss rproc for msm8996, making appropriate change for executing mss reset sequence etc. Signed-off-by: Avaneesh Kumar Dwivedi --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 4 +- drivers/remoteproc

[RESEND: PATCH v4 0/4] Add memory ownership switch support and enable mss rproc on msm8996

2017-05-16 Thread Avaneesh Kumar Dwivedi
and then transfer ownership of memory region to MSS for authentication and boot etc. 7- Other Minor changes 8- kbuild robot gave error so added dummy definition of __qcom_scm_assign_mem() in qcom_scm-32.c as well Avaneesh Kumar Dwivedi (4): firmware: scm: Add new SCM call

[RESEND: PATCH v4 3/4] remoteproc: qcom: Make secure world call for mem ownership switch

2017-05-16 Thread Avaneesh Kumar Dwivedi
MSS proc on msm8996 can not access fw loaded region without stage second translation of memory pages where mpss image are loaded. This patch in order to enable mss boot on msm8996 invoke scm call to switch or share ownership between apps and modem. Signed-off-by: Avaneesh Kumar Dwivedi

[RESEND: PATCH v4 1/4] firmware: scm: Add new SCM call for switching memory ownership

2017-05-16 Thread Avaneesh Kumar Dwivedi
-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- drivers/firmware/qcom_scm-32.c | 6 drivers/firmware/qcom_scm-64.c | 27 +++ drivers/firmware/qcom_scm.c| 75 ++ drivers/firmware/qcom_scm.h| 4 +++ include/linux/qcom

[RESEND: PATCH v4 1/4] firmware: scm: Add new SCM call for switching memory ownership

2017-05-16 Thread Avaneesh Kumar Dwivedi
-by: Avaneesh Kumar Dwivedi --- drivers/firmware/qcom_scm-32.c | 6 drivers/firmware/qcom_scm-64.c | 27 +++ drivers/firmware/qcom_scm.c| 75 ++ drivers/firmware/qcom_scm.h| 4 +++ include/linux/qcom_scm.h | 14 5 files

[PATCH v4 2/4] remoteproc: qcom: refactor mss fw image loading sequence

2017-05-15 Thread Avaneesh Kumar Dwivedi
This patch refactor code to first load all firmware blobs and then update modem proc to authenticate and boot fw. Also make a trivial change in a error log. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- drivers/remoteproc/qcom_q6v5_pil.c | 25 --

[PATCH v4 2/4] remoteproc: qcom: refactor mss fw image loading sequence

2017-05-15 Thread Avaneesh Kumar Dwivedi
This patch refactor code to first load all firmware blobs and then update modem proc to authenticate and boot fw. Also make a trivial change in a error log. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/remoteproc/qcom_q6v5_pil.c | 25 - 1 file changed, 12 insertions

[PATCH v4 4/4] remoteproc: qcom: Add support for mss boot on msm8996

2017-05-15 Thread Avaneesh Kumar Dwivedi
This patch add support for mss boot on msm8996. Major changes include making appropriate change for executing mss reset sequence, adding private data initialization etc. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt

[PATCH v4 4/4] remoteproc: qcom: Add support for mss boot on msm8996

2017-05-15 Thread Avaneesh Kumar Dwivedi
This patch add support for mss boot on msm8996. Major changes include making appropriate change for executing mss reset sequence, adding private data initialization etc. Signed-off-by: Avaneesh Kumar Dwivedi --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 4 +- drivers/remoteproc

[PATCH v4 0/4] Add new SCM call for stage two mem translation and enable mss rproc on msm8996

2017-05-15 Thread Avaneesh Kumar Dwivedi
Kumar Dwivedi (4): firmware: scm: Add support for shared access of a memory remoteproc: qcom: refactor mss fw image loading sequence remoteproc: qcom: Add new secure monitor call for access remoteproc: qcom: Add support for mss boot on msm8996 .../devicetree/bindings/remoteproc/qcom,q6v5

[PATCH v4 3/4] remoteproc: qcom: Add new secure monitor call for access

2017-05-15 Thread Avaneesh Kumar Dwivedi
MSS proc on msm8996 can not access fw loaded region without stage second translation of memory pages where mpss image are loaded. This patch to enable mss boot on msm8996 add these secure monitor calls to switch ownership between apps and modem. Signed-off-by: Avaneesh Kumar Dwivedi <ak

[PATCH v4 0/4] Add new SCM call for stage two mem translation and enable mss rproc on msm8996

2017-05-15 Thread Avaneesh Kumar Dwivedi
Kumar Dwivedi (4): firmware: scm: Add support for shared access of a memory remoteproc: qcom: refactor mss fw image loading sequence remoteproc: qcom: Add new secure monitor call for access remoteproc: qcom: Add support for mss boot on msm8996 .../devicetree/bindings/remoteproc/qcom,q6v5

[PATCH v4 3/4] remoteproc: qcom: Add new secure monitor call for access

2017-05-15 Thread Avaneesh Kumar Dwivedi
MSS proc on msm8996 can not access fw loaded region without stage second translation of memory pages where mpss image are loaded. This patch to enable mss boot on msm8996 add these secure monitor calls to switch ownership between apps and modem. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers

[PATCH v4 1/4] firmware: scm: Add support for shared access of a memory

2017-05-15 Thread Avaneesh Kumar Dwivedi
two subsystems. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- drivers/firmware/qcom_scm-64.c | 27 +++ drivers/firmware/qcom_scm.c| 75 ++ drivers/firmware/qcom_scm.h| 4 +++ include/linux/qcom_scm.h

[PATCH v4 1/4] firmware: scm: Add support for shared access of a memory

2017-05-15 Thread Avaneesh Kumar Dwivedi
two subsystems. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/firmware/qcom_scm-64.c | 27 +++ drivers/firmware/qcom_scm.c| 75 ++ drivers/firmware/qcom_scm.h| 4 +++ include/linux/qcom_scm.h | 14 4 files changed

[PATCH v3 0/2] Enable mss rproc support on msm8996

2017-03-08 Thread Avaneesh Kumar Dwivedi
repository at: git://github.com/andersson/remoteproc tags/rproc-v4.11 or to say this patchset is based on top of commit id 01625cc5e65f420dbea57f7de6b9552a0f807a84 in Bjorn's git repo. Avaneesh Kumar Dwivedi (2): soc: qcom: Add support of scm call for mss rproc to share access of ddr

[PATCH v3 2/2] remoteproc: qcom: Enable mss rproc support on msm8996

2017-03-08 Thread Avaneesh Kumar Dwivedi
This patch add msm8996 mss reset sequence and other minor changes for enabling mss rproc support. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 1 + drivers/remoteproc/qcom_q6v5_pil.c

[PATCH v3 1/2] soc: qcom: Add support of scm call for mss rproc to share access of ddr

2017-03-08 Thread Avaneesh Kumar Dwivedi
This patch add scm call support to make hypervisor call to enable access of fw regions in ddr to mss subsystem on arm-v8 arch soc's. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- drivers/firmware/qcom_scm-64.c | 25 +++ drivers/firmware/qcom_scm.c

[PATCH v3 0/2] Enable mss rproc support on msm8996

2017-03-08 Thread Avaneesh Kumar Dwivedi
repository at: git://github.com/andersson/remoteproc tags/rproc-v4.11 or to say this patchset is based on top of commit id 01625cc5e65f420dbea57f7de6b9552a0f807a84 in Bjorn's git repo. Avaneesh Kumar Dwivedi (2): soc: qcom: Add support of scm call for mss rproc to share access of ddr

[PATCH v3 2/2] remoteproc: qcom: Enable mss rproc support on msm8996

2017-03-08 Thread Avaneesh Kumar Dwivedi
This patch add msm8996 mss reset sequence and other minor changes for enabling mss rproc support. Signed-off-by: Avaneesh Kumar Dwivedi --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 1 + drivers/remoteproc/qcom_q6v5_pil.c | 161 ++--- 2 files changed

[PATCH v3 1/2] soc: qcom: Add support of scm call for mss rproc to share access of ddr

2017-03-08 Thread Avaneesh Kumar Dwivedi
This patch add scm call support to make hypervisor call to enable access of fw regions in ddr to mss subsystem on arm-v8 arch soc's. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/firmware/qcom_scm-64.c | 25 +++ drivers/firmware/qcom_scm.c| 93

[PATCH v3 4/4] arm64: dts: msm8996: Add SLPI SMP2P dt node.

2017-01-30 Thread Avaneesh Kumar Dwivedi
Add smp2p support to communicate with slpi processor. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm6

[PATCH v3 4/4] arm64: dts: msm8996: Add SLPI SMP2P dt node.

2017-01-30 Thread Avaneesh Kumar Dwivedi
Add smp2p support to communicate with slpi processor. Signed-off-by: Avaneesh Kumar Dwivedi --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi

[PATCH v3 1/4] remoteproc: qcom: Compatible string based resource initialization.

2017-01-30 Thread Avaneesh Kumar Dwivedi
This patch initialize certain driver related data based on compatible string. This enable driver to handle more than one similar device in by differentiating in probe their private data. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- drivers/remoteproc/qcom_adsp_pil.

[PATCH v3 1/4] remoteproc: qcom: Compatible string based resource initialization.

2017-01-30 Thread Avaneesh Kumar Dwivedi
This patch initialize certain driver related data based on compatible string. This enable driver to handle more than one similar device in by differentiating in probe their private data. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/remoteproc/qcom_adsp_pil.c | 47

[PATCH v3 3/4] remoteproc: qcom: Add SLPI rproc support to load and boot slpi proc.

2017-01-30 Thread Avaneesh Kumar Dwivedi
This patch add slpi remoteproc support in existing adsp rproc driver. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- .../devicetree/bindings/remoteproc/qcom,adsp.txt | 28 ++ drivers/remoteproc/qcom_adsp_pil.c | 10 +++- 2

[PATCH v3 0/4]remoteproc: qcom: Add support for Qualcomm low pass sensor peripheral loader.

2017-01-30 Thread Avaneesh Kumar Dwivedi
comments on patchset 2. Avaneesh Kumar Dwivedi (4): remoteproc: qcom: Compatible string based resource initialization. remoteproc: qcom: Add additional agree2_clk and px regulator resource. remoteproc: qcom: Add SLPI rproc support to load and boot slpi proc. arm64: dts: msm8996: Add SLPI

[PATCH v3 3/4] remoteproc: qcom: Add SLPI rproc support to load and boot slpi proc.

2017-01-30 Thread Avaneesh Kumar Dwivedi
This patch add slpi remoteproc support in existing adsp rproc driver. Signed-off-by: Avaneesh Kumar Dwivedi --- .../devicetree/bindings/remoteproc/qcom,adsp.txt | 28 ++ drivers/remoteproc/qcom_adsp_pil.c | 10 +++- 2 files changed, 37 insertions(+), 1

[PATCH v3 0/4]remoteproc: qcom: Add support for Qualcomm low pass sensor peripheral loader.

2017-01-30 Thread Avaneesh Kumar Dwivedi
comments on patchset 2. Avaneesh Kumar Dwivedi (4): remoteproc: qcom: Compatible string based resource initialization. remoteproc: qcom: Add additional agree2_clk and px regulator resource. remoteproc: qcom: Add SLPI rproc support to load and boot slpi proc. arm64: dts: msm8996: Add SLPI

[PATCH v3 2/4] remoteproc: qcom: Add additional agree2_clk and px regulator resource.

2017-01-30 Thread Avaneesh Kumar Dwivedi
This patch add additional clock and regulator resource which are initialized based on compatible and has no impact on existing driver working. This resourse addition enable the existing driver to handle. low pass sensor processor device also. Signed-off-by: Avaneesh Kumar Dwivedi <ak

[PATCH v3 2/4] remoteproc: qcom: Add additional agree2_clk and px regulator resource.

2017-01-30 Thread Avaneesh Kumar Dwivedi
This patch add additional clock and regulator resource which are initialized based on compatible and has no impact on existing driver working. This resourse addition enable the existing driver to handle. low pass sensor processor device also. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers

[PATCH v2 1/3] soc: qcom: Add scm call to protect modem mem in qcom scm driver.

2017-01-30 Thread Avaneesh Kumar Dwivedi
-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- drivers/firmware/qcom_scm-64.c | 17 + drivers/firmware/qcom_scm.c| 14 ++ drivers/firmware/qcom_scm.h| 3 +++ include/linux/qcom_scm.h | 1 + 4 files changed, 35 insertions(+) diff --git a/d

[PATCH v2 1/3] soc: qcom: Add scm call to protect modem mem in qcom scm driver.

2017-01-30 Thread Avaneesh Kumar Dwivedi
-by: Avaneesh Kumar Dwivedi --- drivers/firmware/qcom_scm-64.c | 17 + drivers/firmware/qcom_scm.c| 14 ++ drivers/firmware/qcom_scm.h| 3 +++ include/linux/qcom_scm.h | 1 + 4 files changed, 35 insertions(+) diff --git a/drivers/firmware/qcom_scm-64.c b

[PATCH v2 3/3] remoteproc: qcom: Add msm8996 specific changes in mss rproc driver.

2017-01-30 Thread Avaneesh Kumar Dwivedi
This patch add msm8996 support in existing mss rproc driver. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 1 + drivers/remoteproc/qcom_q6v5_pil.c | 178 ++--- 2 files change

[PATCH v2 3/3] remoteproc: qcom: Add msm8996 specific changes in mss rproc driver.

2017-01-30 Thread Avaneesh Kumar Dwivedi
This patch add msm8996 support in existing mss rproc driver. Signed-off-by: Avaneesh Kumar Dwivedi --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 1 + drivers/remoteproc/qcom_q6v5_pil.c | 178 ++--- 2 files changed, 154 insertions(+), 25 deletions

[PATCH v2 2/3] remoteproc: qcom: Add scm call to protect modem mem in mss rproc drv.

2017-01-30 Thread Avaneesh Kumar Dwivedi
This patch add hypervisor call support for second stage translation from mss remoteproc driver, this is required so that modem on msm8996 which is based on armv8 architecture can access DDR region where modem firmware are loaded. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.

[PATCH v2 0/3] Enable msm8996 support in mss rproc driver.

2017-01-30 Thread Avaneesh Kumar Dwivedi
call one additional function is added in rproc driver itself. 2- Address other comments by sboyd on RFC patch. This patch series is dependednt on https://patchwork.kernel.org/patch/9492177/ Avaneesh Kumar Dwivedi (3): soc: qcom: Add scm call to protect modem mem in qcom scm driver

[PATCH v2 2/3] remoteproc: qcom: Add scm call to protect modem mem in mss rproc drv.

2017-01-30 Thread Avaneesh Kumar Dwivedi
This patch add hypervisor call support for second stage translation from mss remoteproc driver, this is required so that modem on msm8996 which is based on armv8 architecture can access DDR region where modem firmware are loaded. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/remoteproc

[PATCH v2 0/3] Enable msm8996 support in mss rproc driver.

2017-01-30 Thread Avaneesh Kumar Dwivedi
call one additional function is added in rproc driver itself. 2- Address other comments by sboyd on RFC patch. This patch series is dependednt on https://patchwork.kernel.org/patch/9492177/ Avaneesh Kumar Dwivedi (3): soc: qcom: Add scm call to protect modem mem in qcom scm driver

[RFC ADD HYPERVISOR CALL SUPPORT 0/2]: Add hypervisor call support to enable mss rproc on msm8996

2017-01-09 Thread Avaneesh Kumar Dwivedi
This Patch series consist two patches. 1- Add hypervisor call support to enable stage two translation applicable for armv8 and above. 2- Add and enable mss remoteproc support for msm8996 This patchseries is dependednt on https://patchwork.kernel.org/patch/9492177/ Avaneesh Kumar

[RFC ADD HYPERVISOR CALL SUPPORT 0/2]: Add hypervisor call support to enable mss rproc on msm8996

2017-01-09 Thread Avaneesh Kumar Dwivedi
This Patch series consist two patches. 1- Add hypervisor call support to enable stage two translation applicable for armv8 and above. 2- Add and enable mss remoteproc support for msm8996 This patchseries is dependednt on https://patchwork.kernel.org/patch/9492177/ Avaneesh Kumar

[RFC ADD HYPERVISOR CALL SUPPORT 1/2] soc: qcom: Add hypervisor stage two translation request support.

2017-01-09 Thread Avaneesh Kumar Dwivedi
This patch add hypervisor support for mss bring up on msm8996. MSS rproc driver make hypervisor request to add certain region in IPA table owned by hepervisor and assign access permission to modem. These regions are used to load MBA, MDT, FW into DDR. Signed-off-by: Avaneesh Kumar Dwivedi <ak

[RFC ADD HYPERVISOR CALL SUPPORT 2/2] remoteproc: qcom: Add mss rproc support for msm8996.

2017-01-09 Thread Avaneesh Kumar Dwivedi
This patch add msm8996 specific code piece to take mss out of reset. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 2 +- drivers/remoteproc/qcom_q6v5_pil.c | 179 ++--- 2 files c

[RFC ADD HYPERVISOR CALL SUPPORT 1/2] soc: qcom: Add hypervisor stage two translation request support.

2017-01-09 Thread Avaneesh Kumar Dwivedi
This patch add hypervisor support for mss bring up on msm8996. MSS rproc driver make hypervisor request to add certain region in IPA table owned by hepervisor and assign access permission to modem. These regions are used to load MBA, MDT, FW into DDR. Signed-off-by: Avaneesh Kumar Dwivedi

[RFC ADD HYPERVISOR CALL SUPPORT 2/2] remoteproc: qcom: Add mss rproc support for msm8996.

2017-01-09 Thread Avaneesh Kumar Dwivedi
This patch add msm8996 specific code piece to take mss out of reset. Signed-off-by: Avaneesh Kumar Dwivedi --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 2 +- drivers/remoteproc/qcom_q6v5_pil.c | 179 ++--- 2 files changed, 155 insertions(+), 26

[PATCH v6 1/3] remoteproc: qcom: Compatible string based private resource initialization.

2016-12-30 Thread Avaneesh Kumar Dwivedi
to load and boot modem fw and which may differ from chip to chip. This patch also add new compatible string for msm8916, msm8974 platform. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 4 +++- drivers/remo

[PATCH v6 3/3] remoteproc: qcom: Initialize and enable proxy and active regulators.

2016-12-30 Thread Avaneesh Kumar Dwivedi
and active regulators separately. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- drivers/remoteproc/qcom_q6v5_pil.c | 226 - 1 file changed, 172 insertions(+), 54 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_pil.c b/d

[PATCH v6 2/3] remoteproc: qcom: Initialize and enable proxy and active clocks.

2016-12-30 Thread Avaneesh Kumar Dwivedi
separately. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- drivers/remoteproc/qcom_q6v5_pil.c | 152 +++-- 1 file changed, 111 insertions(+), 41 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_pil.c b/drivers/remoteproc/qcom_q6v5

[PATCH v6 0/3]remoteproc: qcom: Modification of MSS rproc driver for future platform support.

2016-12-30 Thread Avaneesh Kumar Dwivedi
- Skipping MSS RESET Support patch as that is merged on linux-next. Avaneesh Kumar Dwivedi (3): remoteproc: qcom: Compatible string based private resource initialization. remoteproc: qcom: Initialize and enable proxy and active clocks. remoteproc: qcom: Initialize and enable proxy and active

[PATCH v6 1/3] remoteproc: qcom: Compatible string based private resource initialization.

2016-12-30 Thread Avaneesh Kumar Dwivedi
to load and boot modem fw and which may differ from chip to chip. This patch also add new compatible string for msm8916, msm8974 platform. Signed-off-by: Avaneesh Kumar Dwivedi --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 4 +++- drivers/remoteproc/qcom_q6v5_pil.c | 24

[PATCH v6 3/3] remoteproc: qcom: Initialize and enable proxy and active regulators.

2016-12-30 Thread Avaneesh Kumar Dwivedi
and active regulators separately. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/remoteproc/qcom_q6v5_pil.c | 226 - 1 file changed, 172 insertions(+), 54 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_pil.c b/drivers/remoteproc/qcom_q6v5_pil.c index

[PATCH v6 2/3] remoteproc: qcom: Initialize and enable proxy and active clocks.

2016-12-30 Thread Avaneesh Kumar Dwivedi
separately. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/remoteproc/qcom_q6v5_pil.c | 152 +++-- 1 file changed, 111 insertions(+), 41 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_pil.c b/drivers/remoteproc/qcom_q6v5_pil.c index d875448..1e5e27b

[PATCH v6 0/3]remoteproc: qcom: Modification of MSS rproc driver for future platform support.

2016-12-30 Thread Avaneesh Kumar Dwivedi
- Skipping MSS RESET Support patch as that is merged on linux-next. Avaneesh Kumar Dwivedi (3): remoteproc: qcom: Compatible string based private resource initialization. remoteproc: qcom: Initialize and enable proxy and active clocks. remoteproc: qcom: Initialize and enable proxy and active

[PATCH v5 5/7] remoteproc: qcom: Modify clock enable and disable interface.

2016-12-15 Thread Avaneesh Kumar Dwivedi
Clock enable/disable routine will get additional input parameter of pointer of array of clock struct's and clock count, it will use these pre initialized values to turn them up/down. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- drivers/remoteproc/qcom_q6v5_pil.

[PATCH v5 3/7] remoteproc: qcom: Add and initialize proxy and active regulators.

2016-12-15 Thread Avaneesh Kumar Dwivedi
by supplying proxy and active regulator string name. Signed-off-by: Avaneesh Kumar Dwivedi <akdwi...@codeaurora.org> --- drivers/remoteproc/qcom_q6v5_pil.c | 118 +++-- 1 file changed, 100 insertions(+), 18 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_pi

  1   2   >