summaryrefslogtreecommitdiff
path: root/drivers/soc/qcom (follow)
Commit message (Collapse)AuthorAge
...
| * | | | | | icnss: Add support to handle SSR within SSRAnurag Chouhan2017-04-28
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add state bit to defer recursive shutdown. This state bit adds support for synchronization between reinit and shutdown method during SSR within SSR. Change-Id: Ifb857ecdb6545709706380631c423f0e24269e11 Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>
* | | | | | Merge "qcom: PMRESR register read returns zero for un supported group events"Linux Build Service Account2017-04-28
|\ \ \ \ \ \
| * | | | | | qcom: PMRESR register read returns zero for un supported group eventsPrasad Sodagudi2017-04-28
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kryo has 3 groups of events PMRESR0, 1, 2. If kryo_read_pmresr() is asked to read other than these 3 event groups, return ZERO value. Change-Id: Ifa348baa749182bb0dcb67562195472699301b1a Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org> Signed-off-by: Mohammed Khajapasha <mkhaja@codeaurora.org>
* / / / / / soc: qcom: ipc_router_mhi_xprt: Handle xfer event in atomic contextChris Lew2017-04-27
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MHI driver requires the MHI_CB_XFER event handling be atomic. This change makes the addr map locks into spinlocks so sleep is avoided while processing the XFER event. CRs-Fixed: 1089824 Change-Id: I7bd8f606f92095bb47741aa54a846b687fe948b9 Signed-off-by: Chris Lew <clew@codeaurora.org>
* | | | | Merge "Revert "soc:qcom: Synchronize service notifier task's""Linux Build Service Account2017-04-26
|\ \ \ \ \
| * | | | | Revert "soc:qcom: Synchronize service notifier task's"Avaneesh Kumar Dwivedi2017-04-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts 'commit 79618505009d ("soc:qcom: Synchronize service notifier task's")' This commit was made for synchronizing two notifier tasks that were in race in back to back ADSP SSR testing. The change was to synchronize two threads by queuing both threads in dedicated work queue. However this caused certain corner case timing issues in notification to clients of ADSP PD. So, revert it. Change-Id: I69b27e2e4529b5f45ce0cc1f4a036412cbf5fab1 Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
* | | | | | Merge "spcom: always wait for glink LOCAL_DISCONNECT event after glink_close()"Linux Build Service Account2017-04-25
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | spcom: always wait for glink LOCAL_DISCONNECT event after glink_close()Amir Samuelov2017-04-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wait for glink LOCAL_DISCONNECT event, even if the channel is not connected. Change-Id: I03f20b6dbb2f46d7abd6996e8d298e991cf3f82b Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
* | | | | | Merge "soc: qcom: Request GFP_NOIO for effective memory reclaim"Linux Build Service Account2017-04-24
|\ \ \ \ \ \
| * | | | | | soc: qcom: Request GFP_NOIO for effective memory reclaimNeeraj Soni2017-04-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Request for memory with GFP_NOIO so that new IO request is not raised while reclaiming the memory when system is having low memory. With GFP_KERNEL a deadlock is possible with scm function requsting for memory during PFK operation intiated by block layer through storage driver. With low memory system will try to reclaim some memory. If GFP_KERNEL is used this will lead to IO operation through storage driver which is already serving PFK encryption call hence can not take up this IO request causing deadlock. Change-Id: I1a4abbea31f430ca5f8ba030babf958a9ab51fdf Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
* | | | | | | Merge "spcom: use mutex on spcom_unlock_ion_buf()"Linux Build Service Account2017-04-24
|\ \ \ \ \ \ \
| * | | | | | | spcom: use mutex on spcom_unlock_ion_buf()Amir Samuelov2017-04-23
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only the channel owner app can lock/unlock a channel ion buf. However, if the app share the ION buf FD with its child tasks, they might wrongly free the same ion buf twice. The ion driver panic if a non-valid ION buff handle is provided. Change-Id: Ia8166df5ea314949090f7e94e90eff3a3ed78b19 Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
* | | | | | | Merge "soc: qcom: glink: Change GFP_ATOMIC flag for intentless rx"Linux Build Service Account2017-04-24
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | soc: qcom: glink: Change GFP_ATOMIC flag for intentless rxChris Lew2017-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manually use __GFP_ATOMIC and __GFP_HIGH flag instead of GFP_ATOMIC to avoid setting the __GFP_KWAPD_RECLAIM flag. This will avoid undefine GIC access during power collapse. CRs-Fixed: 2032636 Change-Id: I9e34af58afaee2f9c78b3e190dcdc4c6b9a524a7 Signed-off-by: Chris Lew <clew@codeaurora.org>
* | | | | | | Merge "soc: qcom: pil: Avoid possible buffer overflow during Modem boot"Linux Build Service Account2017-04-21
|\ \ \ \ \ \ \
| * | | | | | | soc: qcom: pil: Avoid possible buffer overflow during Modem bootKishor PK2017-04-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Buffer overflow can occur if MBA firmware size exceeds 1MB. So validate size before copying the firmware. CRs-Fixed: 2001803 Change-Id: I070ddf85fbc47df072e7258369272366262ebf46 Signed-off-by: Kishor PK <kpbhat@codeaurora.org>
* | | | | | | | soc: qcom: Add Minidump supportLingutla Chandrasekhar2017-04-20
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Minidump support for clients to get minimum required data at the time of system crash. The Minidump table resides in SMEM, BOOT(SBL) will iterate the table entries and dumps out (to USB/Flash) the data in address location. Any client can register to this table with static or known addresses, as currently Minidump doesn't support dumping of dynamic data structures. To simplify post processing, we create an ELF header, where each entry in the minidump table is a section in elf header. If Memory dump table enabled, Dump all data entries registered with MDT. Enable Minidump: echo mini > /sys/kernel/dload/dload_mode Change-Id: I0fc8d21aef71ded34a498426ee3d7f86b063a639 Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
* | | | | | | Merge "soc: qcom: qpnp-haptic: Optimize updating RATE_CFG registers"Linux Build Service Account2017-04-18
|\ \ \ \ \ \ \
| * | | | | | | soc: qcom: qpnp-haptic: Optimize updating RATE_CFG registersSubbaraman Narayanamurthy2017-04-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, RATE_CFG registers are updated when the auto resonance is enabled and no errors are seen with auto resonance or the play rate is within allowed limits. However, it is getting updated multiple times with the same play rate multiple times. This adds up some delay in a critical path when the haptics duration is small. While at it, add APIs to do multiple read/writes to the peripheral registers like AUTO_RES_LO/HI and RATE_CFG1/2. Change-Id: I1b5625cc1f9aa3f07552a6b4ef23f2d34241b6a1 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
| * | | | | | | qpnp-haptic: Fix writing incorrect value to EN_CTL1 when disabling hapticsSubbaraman Narayanamurthy2017-04-13
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, variable "val" is used for caching the last value written to EN_CTL1 register and also it is used to read STATUS register. This causes an incorrect value being written to EN_CTL1 register when the module is disabled. Fix it. CRs-Fixed: 2032850 Change-Id: Ib3cbe1b41962e5dff38d9c4d343d8f3f43fc0009 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
* | | | | | | soc: qcom: spcom: validate rx_buf in spcom_rx before usageOfir Cohen2017-04-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Checking for rx_buf validity before performing copy operation. Change-Id: I4651a8cc822fd1537bd92f01bf59ac3b5a500b3a Signed-off-by: Ofir Cohen <ofirc@codeaurora.org>
* | | | | | | soc:qcom: Synchronize service notifier task'sAvaneesh Kumar Dwivedi2017-04-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Queue the msg receive task in service notifier queue so that it does not run concurrently with other notifier task. This avoid an issue where adsp ssr is stuck due to deadlock between msg receive and service arrive task. Change-Id: I6ef9b765ae74eeb32021c2848ffc06d70df19c1b Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
* | | | | | | Merge "soc: qcom: remove debugfs interface from ssr, service locator & notifier"Linux Build Service Account2017-04-14
|\ \ \ \ \ \ \
| * | | | | | | soc: qcom: remove debugfs interface from ssr, service locator & notifierSatya Durga Srinivasu Prabhala2017-04-12
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As debugfs interface is intended to test the respective framework, remove from the driver to make sure it won't be available by default. CRs-Fixed: 2025661 Change-Id: I6af9a8333c8028611f889cc2f9b0beb37ef12c9b Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
* | | | | | | Merge "ASoC: msm: qdsp6v2: Initialize variables before use"Linux Build Service Account2017-04-14
|\ \ \ \ \ \ \
| * | | | | | | ASoC: msm: qdsp6v2: Initialize variables before useKarthikeyan Mani2017-03-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initialize variable before use to avoid invalid memory access. CRs-fixed: 2004067 Change-Id: I1ede035a71a620e6981731f0c76d90625c4898b8 Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
* | | | | | | | Merge "soc: qcom: rpm: Use GENMASK APIs to generate bit masks"Linux Build Service Account2017-04-14
|\ \ \ \ \ \ \ \
| * | | | | | | | soc: qcom: rpm: Use GENMASK APIs to generate bit masksMahesh Sivasubramanian2017-04-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bit mask macro GEN_FIELD(24,8) causes overflow as it tries to shift by 32 bits. Using kernel's builtin GENMASK macro to avoid such overflows. Change-Id: I614a68eb009eb8b223a4da45349124a70c0a8134 Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
* | | | | | | | | Merge "apq8098: rename apq8998 to apq8098"Linux Build Service Account2017-04-13
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | apq8098: rename apq8998 to apq8098Runmin Wang2017-04-11
| | |_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update "apq8998" to "apq8098" as a proper name for all files and strings used by apq8098 platform. Change-Id: Id633d346946251751829fb597c860c8d41944265 Signed-off-by: Runmin Wang <runminw@codeaurora.org>
* | | | | | | | | soc: qcom: socinfo: Protect current_image using semaphore lock.Swetha Chikkaboraiah2017-04-12
| |_|_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Variable current_image can be modified by multiple threads. This change will protect current_image getting modified by multiple threads. Change-Id: I33df463311b24f73b1ba124d388731a72bd13263 CRs-Fixed: 2016485 Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
* | | | | | | | Merge "soc: qcom: glink_smem_native_xport: Check smem item in non cache region"Linux Build Service Account2017-04-11
|\ \ \ \ \ \ \ \
| * | | | | | | | soc: qcom: glink_smem_native_xport: Check smem item in non cache regionDhoat Harpal2017-04-11
| | |_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Smem item is searched in cached region only, however it depends on remote processor if smem exist in cache region or non cache region of smem memory. Check for smem item in both cached and non cached region. CRs-Fixed: 2031705 Change-Id: Ib11fd15c6c49353950c0892b45d0eec1fbc33f46 Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
* | | | | | | | Merge "soc: qcom: glink: Get additional reference in glink open"Linux Build Service Account2017-04-11
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | |
| * | | | | | | soc: qcom: glink: Get additional reference in glink openDhoat Harpal2017-04-11
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Inside glink_open reference for channel context is only initialized, but additional reference is not taken. It creates the possibility of use after free if SSR happens before glink_open function completes. Additional reference is taken to ensure context stay valid during glink_open, even if SSR happens. CRs-Fixed: 2031123 Change-Id: I94650d2f937416aff33a82073c4db76fab0d0e96 Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
* | | | | | | Merge "soc: qcom: glink_pkt: Add mutex in glink_pkt_read"Linux Build Service Account2017-04-06
|\ \ \ \ \ \ \
| * | | | | | | soc: qcom: glink_pkt: Add mutex in glink_pkt_readDhoat Harpal2017-04-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Glink_pkt_read calls glink_queue_rx_intent without mutex lock. This result in race condition where glink_queue_rx_intent generates same intent id for two intents. Mutex lock is added to avoid race condition in glink_queue_rx_intent. CRs-Fixed: 2026579 Change-Id: Iedb9a8874193479154ebb932fa8ff80703402215 Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
* | | | | | | | icnss: Make driver register asynchronous to probeAnurag Chouhan2017-04-05
| |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Driver register doesn't have to be synchronous with probe call back. Keep the driver registered till unregister gets called and never reset ops during probe failure. CRs-fixed: 2029329 Change-Id: I61331c7f33b29b0bc4833a8e4c52ee94f17660e7 Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>
* | | | | | | Merge "drivers: soc: apr: remove GLINK_TX_REQ_INTENT flag in apr write"Linux Build Service Account2017-04-04
|\ \ \ \ \ \ \
| * | | | | | | drivers: soc: apr: remove GLINK_TX_REQ_INTENT flag in apr writeSurendar Karka2017-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Glink will return failure if there are no intents available at the remote endpoint. Remove the GLINK_TX_REQ_INTENT flag so that glink returns EAGAIN error code so that apr_tal can retry. CRs-Fixed: 2002511 Signed-off-by: Surendar karka <sukark@codeaurora.org> Change-Id: I494bd26ed48ea2d80b1f76c8ee871ec76d428e4c
* | | | | | | | Merge "soc: qcom: service-locator: Return in case of no matching domains found"Linux Build Service Account2017-04-04
|\ \ \ \ \ \ \ \
| * | | | | | | | soc: qcom: service-locator: Return in case of no matching domains foundSatya Durga Srinivasu Prabhala2017-03-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If no matching domains found in response to the request, return error instead of going ahead with memory allocation which would lead to other issues. CRs-Fixed: 2025293 Change-Id: I327b3494812cddc643f6b355c04f85f4baa7c399 Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
* | | | | | | | | Merge "icnss: Send FW CRASHED uevent only if driver is probed"Linux Build Service Account2017-04-03
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | icnss: Send FW CRASHED uevent only if driver is probedAnurag Chouhan2017-04-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If host driver fails to probed for the first time, and SSR/PDR get triggered, as part of PD down uevent is sent to host driver which inturn set recovery in progress which never gets reset and the next time on FW Ready host driver is not able to probe successfully To fix this add a check if driver is probed or not before sending the uevent. Change-Id: Idceab059821c0b0e2a8806ad9fee5b6c75aec8c7 CRs-fixed: 2027920 Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>
| * | | | | | | | | icnss: Send FW Down indication to WLAN host driverAnurag Chouhan2017-04-03
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If FW is down irrespective of crash, a uevent is sent to wlan host driver to indicate FW is down. Change-Id: I9fe2a2a11178f72ea27150d74d93a1e411eac030 CRs-fixed: 2027902 Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org> Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>
* | | | | | | | | Merge "icnss: pre-alloc memory leak check on probe failure and remove"Linux Build Service Account2017-04-03
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | icnss: pre-alloc memory leak check on probe failure and removeHardik Kantilal Patel2017-03-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After wlan host driver probe failure and driver unload check the memory leak and reset the memory pool. CRs-Fixed: 2027407 Change-Id: Id6e413416ec7ea1d1bf0e69aab7eccb06de753d7 Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
* | | | | | | | | | Merge "icnss: Separate debug and verbose log"Linux Build Service Account2017-03-31
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | icnss: Separate debug and verbose logPrashanth Bhatta2017-03-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Right now all the logs are dumped to IPC log buffer but there are some logs which are logged most often and they overwrite log buffer where in important logs required for debugging may be lost. Create debug and verbose log level such that logs which are logged most often and not as important as debug logs are moved to verbose log level. Change-Id: Iccab3e5485700efe71ffc85dc7c5f39b0872dfb4 CRs-fixed: 2025867 Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
* | | | | | | | | | | Merge "msm: qpnp-haptic: Enable HW auto-resonance for PM660"Linux Build Service Account2017-03-31
|\ \ \ \ \ \ \ \ \ \ \