Commit graph

176 commits

Author SHA1 Message Date
Dhoat Harpal
4a9524cbec soc: qcom: smem: Update CDSP processor ID
The local table of processor IDs maintained by SMEM must match the table
of processor IDs maintained by SMEM on remote processors, because the
IDs are global.

Update the local table of processor IDs to match the table on remote
processors.

CRs-Fixed: 1077384
Change-Id: I24d3809450bf63cbc6b930575c310cee116910f7
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-10-13 17:10:19 +05:30
Linux Build Service Account
49042f0e43 Merge "icnss: Provide API to check QMI support" 2016-10-07 22:15:42 -07:00
Hardik Kantilal Patel
0cc08805eb icnss: Provide API to check QMI support
Provide API to check QMI support present or not to WLAN
host driver. Based on this information driver can pass the
DMA physical address info via shadow register to WLAN FW.

CRs-Fixed: 1073647
Change-Id: Iec9d3a3b468ddf6607e4a942bb3cf9133e9f0c34
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
2016-10-06 23:00:51 -07:00
Yuanyuan Liu
8f276a71c0 icnss: Remove unused suspend/resume functions
Remove unused suspend/resume functions as pm_suspend/pm_resume
are the functions that being called during system suspend/resume.

CRs-Fixed: 1074250
Change-Id: Ifd1d90402d6f79dc96246c4825d46d41296b0ba5
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-10-04 15:49:56 -07:00
Linux Build Service Account
b9a2515e19 Merge "msm: secure_buffer: Add VMID_CP_CAMERA_PREVIEW" 2016-09-30 18:24:04 -07:00
Liam Mark
c156aa8e2a msm: secure_buffer: Add VMID_CP_CAMERA_PREVIEW
Add support for VMID_CP_CAMERA_PREVIEW

Change-Id: Ifacc1ff95262c6240283d19cf02dcac37933c141
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2016-09-30 10:25:26 -07:00
Linux Build Service Account
bbf8724641 Merge "core_ctrl: Move core control into kernel" 2016-09-29 11:20:17 -07:00
Olav Haugan
7f2c523643 core_ctl_helper: Remove code since it is not used anymore
Remove the core control helper code since this is not needed anymore
with subsequent patches that moves core control into the kernel.

Change-Id: I62acddeb707fc7d5626580166b3466e63f45fd89
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2016-09-24 11:00:02 -07:00
Yuanyuan Liu
2d44f9a775 icnss: Provide ICNSS support of reading SOC serial number
Provide support of reading SOC serial number. This will be used
for auto-generate WLAN MAC address.

CRs-Fixed: 1069005
Change-Id: Ie2072768b2fab3bcbdc70798897ca66614ee8a06
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-09-20 12:18:34 -07:00
Puja Gupta
d7532eb42e soc: qcom: Add subsys state with service notifier notification
Propagate subsystem state received from SSR notification back to the
service notifier clients so they can know if subsystem crashed.

CRs-Fixed: 1066446
Change-Id: I5418d298290623ac66a2b64108a1f5dab034e5f3
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2016-09-13 18:43:40 -07:00
Yuanyuan Liu
1947a834f5 icnss: Add support of sending athdiag read/write messages
Add support of sending athdiag read/write commands through QMI.
This enhance the runtime debugging of WLAN Hardware.

CRs-Fixed: 1038933
Change-Id: I6639ecce6c24d8b9757a98757bcc3f0cd4b2e9b2
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-09-12 09:55:52 -07:00
Yuanyuan Liu
b56e6e2c96 icnss: Add support of suspend_noirq/resume_noirq
Register suspend_noirq and resume_noirq for WLAN driver.
This could make sure that no wake up is pending from FW
and if initial wake up is received then failing suspend_noirq
should trigger resume.

CRs-Fixed: 1060667
Change-Id: Ib233ce66ad21819d2d62155072f0bf985a12837b
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-09-12 09:51:38 -07:00
Yuanyuan Liu
6b6d7f362e icnss: Add ICNSS utility file
Add ICNSS utility file, which provides APIs for getting/setting
WLAN DFS channels.

CRs-Fixed: 1060783
Change-Id: Iae89ce7b26453f9a0ff3214bd5598ee11e181857
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-09-10 17:39:41 -07:00
Amir Samuelov
5a5b5183aa soc: qcom: pil: allow to set subsystem firmware name
Allow the PIL client to set the firmware file name
for a specific subsystem.

Change-Id: Ib410cae212afb067f5df2e5d25f4f23f583ed1f2
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2016-09-09 12:54:32 -07:00
Neeraj Upadhyay
63708968cc ARM: dts: msm: Add initial device tree files for msmtriton
Add device tree files necessary to support msmtriton SoC.
Also, add support for Rumi platform.

Change-Id: Ia18a2f53fc3bf7ca459182dc197ad6a2078c7f5c
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2016-09-07 11:08:59 +05:30
Zhen Kong
5baaa9beb0 qseecom: support whitelist memory for qseecom_send_modfd_cmd
qseecom_send_modfd_cmd converts ION buffer's virtual address to
scatter gather(SG) list and then sends them to TA by populating
SG list into message buffer. As the physical memory address in
SG list is used directly by TA, this allows a malicious TA to
access/corrupt arbitrary physical memory and may lead to the
process gaining kernel/root privileges. Thus, make changes to
have the QSEEComm driver passing a list of whitelist buffers
that is allowed to be mapped by TA, and the QSEE kernel, in turn,
should add checks to the register_shared_buffer syscall to make
sure the shared buffers an application is mapping falls within
one of these whitelist buffers.

CRs-fixed: 1021945
Change-Id: I776ead0030cad167afcf41ab985db7151a42d126
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-08-23 14:08:27 -07:00
Linux Build Service Account
521c0c89d9 Merge "slim: ngd: Handle Process Domain restart" 2016-08-19 05:29:18 -07:00
Linux Build Service Account
86f3aea3e0 Merge "soc: qcom: smem: Renaming smem item SMEM_SMEM_SLOW_CLOCK_SYNC" 2016-08-18 12:03:53 -07:00
Avaneesh Kumar Dwivedi
503eb88359 soc: qcom: Fix compilation error
Fix compilation error for service-locator when Kconfig option
is not enabled as in perf build.

Change-Id: I42bfe4417de8ed7a2e74500bf4f3aee0bedc811c
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2016-08-18 17:46:45 +05:30
Linux Build Service Account
c185b7a8e4 Merge "soc: qcom: Fix compilation warning/error" 2016-08-16 16:34:55 -07:00
Linux Build Service Account
442c0b0c36 Merge "icnss: Provide APIs for getting SMMU mapping context" 2016-08-16 10:20:21 -07:00
Linux Build Service Account
02a6f0f1c2 Merge "ARM: dts: msm: Add SMP2P entries for MSMFALCON" 2016-08-16 10:20:16 -07:00
Puja Gupta
4fe225dbd9 soc: qcom: Fix compilation warning/error
Fix couple of compilation error for service-locator when Kconfig option
is not enabled.

CRs-Fixed: 1048345
Change-Id: I5eb1318d1e3a62619869033b36479c4e68f1602f
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2016-08-15 17:25:17 -07:00
Yuanyuan Liu
a207e02a1d icnss: Provide APIs for getting SMMU mapping context
Provide APIs for getting SMMU mapping context to WLAN
driver.

CRs-Fixed: 1049889
Change-Id: Id7c6aa45608911ae2510e953e4c7d8ae19f8a111
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-08-11 15:47:30 -07:00
Dhoat Harpal
75b0a3ebc6 soc: qcom: smem: Add SMEM items for CDSP SMP2P communication.
Smem item definitions must be kept in sync with remote processors; if
the definitions do not match, item lookup can fail between processors.

Add smem item definitions so that the local definition table matches
the table on remote processors.

CRs-Fixed: 1043377
Change-Id: I7d23da099b5ed9deb3d074c1b72d286560fd705c
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-08-09 17:41:07 +05:30
Runmin Wang
1fd42a381d soc: qcom: irq-helper: Add header file of irq-helper
Add header file of irq-helper to export black_list on/off api to
other module.

CRs-Fixed: 1051104
Change-Id: I4737975961b18f1095e3cd78d07a2bca22931291
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-08-05 17:08:57 -07:00
Linux Build Service Account
0cd21ace7b Merge "icnss: pass fw version to wlan driver" 2016-08-04 21:39:47 -07:00
Yuanyuan Liu
74c99fcb90 socinfo: Export API for getting SOC serial number
Export API for getting SOC serial number so that other modules
can use it.

CRs-Fixed: 1050491
Change-Id: I24f735159a38dffdc4f44babacc4d758cd0a8365
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-08-04 10:13:09 -07:00
Linux Build Service Account
a1307ec818 Merge "soc: qcom: socinfo: Add support for APQCOBALT" 2016-08-03 04:58:27 -07:00
Linux Build Service Account
aa738fdd92 Merge "msm: camera: Add support for multiple flash nodes" 2016-08-01 21:56:43 -07:00
Viswanadha Raju Thotakura
bd8d73bb72 msm: camera: Add support for multiple flash nodes
Add support for flash nodes for front and rear
camera.

CRs-Fixed: 1021009
Change-Id: I52537562214d439e9652bb6ba90f0d29e5b24fda
Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
2016-07-29 15:41:32 -07:00
Dhoat Harpal
278c107ded soc: qcom: smem: Renaming smem item SMEM_SMEM_SLOW_CLOCK_SYNC
SMEM_SMEM_SLOW_CLOCK_SYNC is currently unused as its usecase has
been deprecated for a long time. Reallocate the ID to
SMEM_WLAN_CONFIG.

CRs-Fixed: 1000088
Change-Id: Ib49db26ce93a682f282c393278b51da7b6bf00a4
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-07-29 19:57:29 +05:30
Runmin Wang
9791b32e85 soc: qcom: socinfo: Add support for APQCOBALT
Add soc chip ID information to support APQCOBALT platform.

CRs-Fixed: 1047772
Change-Id: I17817fbf6692829959314923c514b377e612aff8
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-07-28 16:36:17 -07:00
Yuanyuan Liu
c31155183b icnss: pass fw version to wlan driver
Update wlan fw version when wlan driver calls icnss_get_soc_info.

Change-Id: I1fda7209901cba2746d6d933796a07416cd1b021
CRs-Fixed: 1046753
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-07-27 10:18:25 -07:00
Avaneesh Kumar Dwivedi
077bf167f0 soc: qcom: Make service locator call asynchronous
Make get_service_location() asynchronous, which was a blocking call
before. This also means every client will have it's own thread and
doesn't need to create thread on their end.

CRs-Fixed: 1045353
Change-Id: Ibcccf56d41779b808d1835f62969e3c9365939e8
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2016-07-22 14:32:23 -07:00
Dhoat Harpal
a3f2ed3879 soc: qcom: smem: Add CDSP processor ID
The local table of processor IDs maintained by SMEM must match the table
of processor IDs maintained by SMEM on remote processors, because the
IDs are global.

Update the local table of processor IDs to match the table on remote
processors.

CRs-Fixed: 1043377
Change-Id: I6df0575cf54003374a5ebdbfa54e169d3545ffe7
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-07-21 17:40:52 +05:30
Deepak Katragadda
a1d8269396 clk: msm: clock-local: Add RCG support for DP pixel source
Add a new RCG op specific for the DP pixel clock source.

CRs-Fixed: 1028725
Change-Id: I65dcac9f4d17d30dfa1a00f4edabef33a3d75c6a
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-07-12 08:32:26 -07:00
Dhoat Harpal
9986d0f710 soc: qcom: smem: Renaming smem item SMEM_SMEM_STATIC_LOG_EVENTS
SMEM_SMEM_STATIC_LOG_EVENTS is currently unused as its usecase has
been deprecated for a long time. Reallocate the ID to
SMEM_CHARGER_BATTERY_INFO.

CRs-Fixed: 1032131
Change-Id: I35a8307001ac14e3ade733d5f41d6231fe63ebd0
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-06-24 15:03:06 -07:00
Amir Samuelov
f956c61bd2 spcom: add spcom_is_sp_subsystem_link_up
Add implementation of spcom_is_sp_subsystem_link_up() kernel API.
Remove Load App API declaration,
as it is not supported for kernel drivers.

Change-Id: I76a43a04d454d1f25a640831f43b51dbb7e75943
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2016-06-21 15:12:33 -07:00
Neeraj Upadhyay
84e1573bd0 ARM: dts: msm: Add initial device tree files for MSMFALCON
Add the device tree files necessary to support the MSMFALCON
SoC and the MSMFALCON Simulator platform.

Change-Id: Iabdb1c21757ad6dead50fdc4aa3b12077f8f840f
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2016-06-09 15:09:14 -07:00
Yuanyuan Liu
ffb92f5b33 icnss: Export APIs for power on/off WLAN hardware
Export APIs to WLAN driver to power on/off WLAN hardware.

CRs-Fixed: 1017496
Change-Id: I4b09b7e9ee97129f952d737a530fc04205259f24
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-06-07 11:58:05 -07:00
Prashanth Bhatta
e8d675996c icnss: Add IPC logging
Add IPC logging mechanism so that all the driver logs can be
retrieved on the need basis.
Also use pr_fmt to format the logs so that icnss driver logs are
consistent.

Change-Id: I977b04964ac28c18f4ad85094746aa864f03d0c3
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-06-01 15:21:42 -07:00
Sameer Thalappil
090978665c icnss: Add API to return the CE IRQ number
API retrieves the IRQ number for the CE ID passed.

Change-Id: I87cca1215134e6d406f60d54f6d0430978eeae9c
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
2016-05-26 15:26:58 -07:00
Prashanth Bhatta
3cc4528523 icnss: Remove unused APIs
Remove unused APIs icnss_register_ce_irq &
icnss_unregister_ce_irq. These APIs are divided into multiple APIs
to provide flexibility to WLAN driver.

Change-Id: Icd56b61a372cb18e6600617184d8b185b78ce99d
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-05-24 17:56:54 -07:00
Shashank Mittal
90fb2251c8 memory-dump: add support to allocate memory for scan dumps
Add support to allocate memory for CPU scan dumps. This momeory can be
used to save CPU scan dumps at the time of a crash.

Change-Id: I9d644f18882729d187075e885bc2e8c02c5caf36
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16 20:10:44 -07:00
Shashank Mittal
c82110ccb6 qcom: memory_dump: add support to dump DCC data.
Data Capture and Compare (DCC) is a DMA engine, to capture or to
perform CRC over configuration data or system memory.

Add ids for DCC registers and sram data.

Change-Id: If76ef1325b1be623626742b0f0172a1675f21d63
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16 20:10:26 -07:00
Sarangdhar Joshi
6f938760b7 qcom: common_log: add support to dump rpm code ram
Allocate memory to dump RPM CODE RAM at the time of crash.

Change-Id: I5062d65a095538a508944315e6cc06f430382bf5
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16 20:10:24 -07:00
Shashank Mittal
eb3bb2fc33 qcom: common_log: add support to dump VSENSE registers
Allocate memory to dump VSENSE registers at the time of crash.

Change-Id: Ibd896873bc40b723071c66ca7cf1a4bc9b38ad5e
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16 20:10:24 -07:00
Neeti Desai
ef0aa942f0 qcom: common_log: add support to dump PMIC registers
Register for dumping 4KB of memory to dump PMIC
registers which can be parsed in case of device crash.

Change-Id: Idbf26d6241ab9a87e4dcea42723428289f2a869d
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
[spjoshi@codeaurora.org: fix merge conflict]
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
[mittals@codeaurora.org: fix merge conflict]
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16 20:10:23 -07:00
Deepak Katragadda
8516d6c280 clk: msm: clock-local2: Add support for enabling clock HW_CTL
Add a new hw_ctl_clk type to allow clock clients to enable
hardware dynamic gating of the clock branch.
Clients should use the clk_enable API on a separate hw_ctl_clk
clock structure to set this bit. Vice-versa for clearing it.
It is mandatory that the clients call clk_enable on the actual
branch clock before enabling the hw_ctl_clk clock.

CRs-Fixed: 1012355
Change-Id: I24e78353fa07f537bafc322dba6b1ffac913cd1d
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-05-10 13:20:07 -07:00