Commit graph

595262 commits

Author SHA1 Message Date
Aditya Bavanari
c0e1cac7ec ASoC: msm: qdsp6v2: Update dap driver to support Instance ID
Add support to set and get dap modules params with
Instance ID support for both Dolby and DS2.
Maintain support for non Instance ID set and get param
structures as well. Use common pack and set param
functions to set and get parameters to DSP instead of
handling them at an individual module level.

CRs-Fixed: 2151551
Change-Id: Ic2722cf5d686a7b10c682ca7866f7900da9d0cdb
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-21 11:17:53 +05:30
Aditya Bavanari
2ee870a5d5 ASoC: msm: qdsp6v2: Update ADM driver to support Instance ID
Add support to set and get ADM module params with
Instance ID support. Maintain support for non
Instance ID set and get param structures as well.
Use common pack and set param functions to set and
get parameters to DSP instead of handling them at an
individual module level.

CRs-Fixed: 2151551
Change-Id: Ida9591e96501a2edbffe080eb8531c860bde8539
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-21 11:16:58 +05:30
Aditya Bavanari
36ed1afb56 ASoC: msm: qdsp6v2: Update rtac driver to support Instance ID
Add support to set and get rtac params with
Instance ID support. Maintain support for non
Instance ID set and get param structures as well.
Use common pack and set param functions to set and
get parameters to DSP instead of handling them at an
individual module level.

CRs-Fixed: 2151551
Change-Id: Ic07cb109b9e469dccf510f89ba9917e8c9eccbd8
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-21 11:11:41 +05:30
Aditya Bavanari
43f8fb6053 ASoC: msm: qdsp6v2: Update AFE driver to support Instance ID
Add support to set and get AFE module params with
Instance ID support. Maintain support for non
Instance ID set and get param structures as well.
Use common pack and set param functions to set and
get parameters to DSP instead of handling them at an
individual module level.

CRs-Fixed: 2151551
Change-Id: I9f2cc097a0f1a99a4639bb0cd636500b41a41b1b
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-21 11:10:35 +05:30
Aditya Bavanari
cd9c139d62 ASoC: msm: qdsp6v2: Update voice driver to support Instance ID
Add support to set and get voice module params with
Instance ID support. Maintain support for non
Instance ID set and get param structures as well.
Use common pack and set param functions to set and
get parameters to DSP instead of handling them at an
individual module level.

CRs-Fixed: 2151551
Change-Id: If18c89ef6e0e98419d271923387eae10d45cb7f3
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-21 11:09:15 +05:30
Aditya Bavanari
d17e5ec06a ASoC: msm: qdsp6v2: Update LSM driver to support Instance ID
Add support to set and get LSM module params with
Instance ID support. Maintain support for non
Instance ID set and get param structures as well.

CRs-Fixed: 2151551
Change-Id: I138cceb5165443da899e7c152fd6c8a05a6efe98
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-21 11:08:50 +05:30
Aditya Bavanari
067a92850f ASoC: msm: qdsp6v2: Add common items needed for Instance ID
Add common headers and functions needed to support instance ID.

CRs-Fixed: 2151551
Change-Id: I8a167be29cdb5c365ac957530789007e90a91a97
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-21 11:07:50 +05:30
Aditya Bavanari
832723d733 ASoC: msm: qdsp6v2: Expose APIs to get and set Instance ID support
Expose APIs to get and set instance ID support by exposing
a mixer control for HAL to set the support status as well as APIs for
kernel components to querry for instance ID support.

CRs-Fixed: 2151551
Change-Id: I76a97c92cd02e28f03a0efb73757c4be75152d1f
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-04 18:02:27 +05:30
Linux Build Service Account
501a8de7b6 Merge "qseecom: fix a race condition when TA is blocked" 2017-12-03 09:32:20 -08:00
Linux Build Service Account
96081867a4 Merge "qseecom: fix a common lib loading issue" 2017-12-03 09:32:19 -08:00
Zhen Kong
69fb586ddb qseecom: fix a race condition when TA is blocked
When the thread processing blocked TA wakes up when listener
becames available, the listener may be unavailable again before
this thread grabs the global mutex, so make change to add a
while loop to check if listener available after wake up and hold
mutex.

Change-Id: Ib386faca7a44325142da1dc54e19a99f3173ec86
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2017-12-02 08:25:16 -08:00
Zhen Kong
6fadad98bf qseecom: fix a common lib loading issue
cmnlib_ion_handle is only used within qseecom_load_commonlib_image()
and is not a shared resource, so change it to a local variable and
avoid potential reuse or free by another thread in case of reentrancy.

Change-Id: I9e1f25cd024a19a7379b7409bdc6521bcd8bcae5
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2017-12-02 08:17:10 -08:00
Zhen Kong
db3336d536 qseecom: fix an app unloading issue when the app is blocked
Reset app_crash flag to make sure app entry is not freed when
there is another client still being blocked on the same app.

Change-Id: I25d236abc97e60fe8a4abbbc8c086291c764a9c1
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2017-12-02 08:02:10 -08:00
Linux Build Service Account
55cbbe6873 Merge "msm: kgsl: Capture all the shader data in the snapshot" 2017-12-01 13:29:13 -08:00
Lynus Vaz
dec0aecf7f msm: kgsl: Capture all the shader data in the snapshot
The shader block size is in dwords. Make sure we copy out all the
bytes that we want.

Change-Id: I42364350ee6314b4830ed11cc06e61d854122543
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
Signed-off-by: Archana Obannagari <aobann@codeaurora.org>
2017-12-01 17:55:08 +05:30
Linux Build Service Account
d580be2b5d Merge "msm: ipa3: Remove ep_delay on disconnect sequence" 2017-12-01 04:19:57 -08:00
Linux Build Service Account
9a65cf65cd Merge "cnss2: Add a debug option to skip any kind of recovery" 2017-12-01 04:19:56 -08:00
Mohammed Javid
e0f095e420 msm: ipa3: Remove ep_delay on disconnect sequence
When device in Low Power Mode, usb driver invokes
suspend and then disconnect upon cable disconnection.
Remove the ep_delay if it is set.

Change-Id: I203d57d70e8c189a2f3bc7f7830392fac98cfbb1
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2017-12-01 10:55:48 +05:30
Yue Ma
081d3dfb37 cnss2: Add a debug option to skip any kind of recovery
After firmware crashes, driver will try to recover the device by
resetting hardware and reloading firmware. Add a debug quirk option
to skip the recovery so that WLAN device can still remain the status
after crash for live debugging.

Change-Id: Ifff26df9ae5ab4c25573ca84e29eed73a79c6525
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2017-11-30 16:34:22 -08:00
Linux Build Service Account
511b3b485d Merge "sound: usb: Update QMI indication message" 2017-11-30 14:02:16 -08:00
Linux Build Service Account
63dbbf58d1 Merge "usb: host: xhci: Remove helper API retuning dcba dma address" 2017-11-30 14:02:16 -08:00
Linux Build Service Account
b3b6467d66 Merge "soc: qcom: glink_pkt: Modify conversion of CTS/DTR signals" 2017-11-30 14:02:14 -08:00
Linux Build Service Account
9123b63f98 Merge "msm: kgsl: Fix the process sysfs refcounting" 2017-11-30 14:02:13 -08:00
Linux Build Service Account
dc25cb3595 Merge "scsi: ufs: Add counter for hibernate and gear switch" 2017-11-30 14:02:12 -08:00
Lynus Vaz
d8475cbda7 msm: kgsl: Fix the process sysfs refcounting
The kobject used for the process's sysfs node did not provide a
release function, so it did not correctly implement the refcounting.
Add a release callback so that we keep the process structure valid
as long as the kobject is alive.

Change-Id: I6db54092ed29ecd4d2f157188a4f1a5fc70f1edf
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
2017-11-30 06:42:01 -08:00
Dhoat Harpal
3946f6ea3f soc: qcom: glink_pkt: Modify conversion of CTS/DTR signals
SMD_DTR_SIG and SMD_CTS_SIG signals are converted to TIOCM_DTR
and TIOCM_RTS respectively, for client notification. This is
incorrect conversion.

SMD_DTR_SIG and SMD_CTS_SIG signals conversion is modified to
TIOCM_DSR and TIOCM_CTS respectively.

CRs-Fixed: 2148119
Change-Id: I7cd61afe4639fc7c5fd993f4047fad3ff04c53a7
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2017-11-30 17:27:52 +05:30
Linux Build Service Account
fca788d095 Merge "ARM: dts: msm: Pass usb controller id for 8996" 2017-11-30 03:23:40 -08:00
Linux Build Service Account
645b737572 Merge "smb1351: Fix parallel ICL configuration" 2017-11-30 03:23:38 -08:00
Linux Build Service Account
ddf3b70d70 Merge "battery: fix ordering of ICL/FCC configuration" 2017-11-30 03:23:38 -08:00
Linux Build Service Account
aa5d40233b Merge "leds: qpnp-wled: Fix the check to disable AUTO_PFM" 2017-11-30 03:23:36 -08:00
Linux Build Service Account
39312eaf10 Merge "ath10k: Add phyerr event changes for HL1.0" 2017-11-30 03:23:35 -08:00
Linux Build Service Account
c414a49ede Merge "mmc: core: Return card status if sdr104_wa is not present" 2017-11-29 15:24:44 -08:00
Linux Build Service Account
9dc5296df5 Merge "ARM: dts: msm: modify HDMI configuration for msm8996 auto ADP/CDP" 2017-11-29 15:24:43 -08:00
Linux Build Service Account
4782da7011 Merge "ath10k: fix the potential buffer overflow in wow offload" 2017-11-29 15:24:42 -08:00
Linux Build Service Account
de7627fc2a Merge "icnss: Add dev to all export APIs in ICNSS" 2017-11-29 15:24:41 -08:00
Linux Build Service Account
27cf3c894b Merge "msm: camera: Synchronize v4l2 subscribe and unsubscribe event in camera.c" 2017-11-29 15:24:40 -08:00
Linux Build Service Account
63eb29fe2b Merge "defconfig: msm: Enable CONFIG_ESOC_DRV for msm8996 auto" 2017-11-29 15:24:37 -08:00
Linux Build Service Account
bcc563a061 Merge "DRM: SDE: Update the hdmi bridge to handle HPD clock" 2017-11-29 04:26:11 -08:00
Linux Build Service Account
eddaa51931 Merge "defconfig: msm: Enable USB audio QMI service driver for 8996" 2017-11-29 04:26:10 -08:00
Linux Build Service Account
989790f157 Merge "mmc: core: add power on to SD card detect" 2017-11-29 04:26:09 -08:00
Linux Build Service Account
eb08666211 Merge "msm: ipa: dynamic memory leak fix" 2017-11-29 04:26:08 -08:00
Linux Build Service Account
0f011956d5 Merge "sound: usb: Provide controller number in QMI response" 2017-11-29 04:26:05 -08:00
Linux Build Service Account
63624a4104 Merge "usb: core: Add helper function to return controller id" 2017-11-29 04:26:04 -08:00
Linux Build Service Account
e648f8c78b Merge "icnss: Remove MSA0 permission only when modem is crashed" 2017-11-29 04:26:03 -08:00
Rahul Sharma
4b94735d85 ARM: dts: msm: modify HDMI configuration for msm8996 auto ADP/CDP
Automotive use case requirement is to have HDMI display as non-pluggable.
This change also set a custom mode as 1920x1080p@60Hz.

Change-Id: Ic2baec180d51dc6a91eaf72c44df1da066f04d2e
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2017-11-29 15:54:00 +05:30
Sarada Prasanna Garnayak
f2bec47224 ath10k: fix the potential buffer overflow in wow offload
Update the arp and ns tuple for arp-ns tlv cmd and pass
the size of IP address and wlan net dev name during mem
copy and comparison.

CRs-Fixed: 2149966
Change-Id: I9457af4578c70f876c3a58e3d8c655dcaa476e07
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-11-29 01:35:56 -08:00
Sarada Prasanna Garnayak
f89e708410 icnss: Add dev to all export APIs in ICNSS
Add device pointer in all export symbol to
add support for numerous WLAN module.

CRs-Fixed: 2138446
Change-Id: I981155c165e4e5c2794b778afe647f8a588dd860
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-11-29 01:33:36 -08:00
Trishansh Bhardwaj
5553436c21 msm: camera: Synchronize v4l2 subscribe and unsubscribe event in camera.c
If same event is unsubscribed before v4l2_event_subscribe returned,
Then function v4l2_event_subscribe have possibility use-after-free.

Serialize msm_subscribe_event and msm_unsubscribe_event to
prevent parallel invocation of v4l2_event_subscribe and
v4l2_event_unsubscribe.

Change-Id: Ia28cfb9d46550d58221f157337a1468f524753e3
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
2017-11-29 00:03:04 -08:00
Rakesh Pillai
8be2a9ef5d ath10k: Add phyerr event changes for HL1.0
HL1.0 firmware sends phyerr_mask in the phyerr
event, which needs to be used to determine the
type of phyerr.

Add the phyerr_mask parameters for HL1.0 in the
phyerr wmi event.

CRs-Fixed: 2150566
Change-Id: Ib2d5286fbf45d41229e68d817d65714d18811a4e
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2017-11-29 11:20:19 +05:30
Sayali Lokhande
cf2ea6ea6a scsi: ufs: Add counter for hibernate and gear switch
This change adds few more debugfs entries to capture
statistics regarding the ufs driver.
This information include:
1. ufs hibernate exit count
2. ufs power mode change count
usage : cat /sys/kernel/debug/ufshcd0/show_hba

Change-Id: I75ac694c1f7e98d527392372300d16ad911ac512
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2017-11-29 11:11:42 +05:30