Commit graph

595391 commits

Author SHA1 Message Date
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
Daocai
5394b5a5a6 ARM: dts: msm: Remove adv7533 power commands for 600p DSI panel
Remove "qcom,mdss-dsi-on-command" and "mdss-dsi-off command"
commands for boot up performance optimization.
The two commands are for native DSI panels without a bridge
chip. However,AUTO platform has adv7533 bridge chip,which
is controlled by I2C instead of the above two commands.
In addition,the two command will cause extra wait for about
210ms in dsi_panel_tx_cmd_set() for dsi_display_enbale().
This make drmAtomicCommit() in libdrm a little slower,
so total boot time will be longer.

Change-Id: I1c95456b1734acb05cf2f38bb4c95441343bffab
Signed-off-by: Daocai <daocai@codeaurora.org>
2017-12-01 15:06:52 +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
Sharat Masetty
8ec33ac38f drm/msm: Correctly retrieve gpu's active power level
The parsing logic wrongly assumes the position of the initial/active power
level value in the gpu dts file. This leads to the active power level
always defaulting to a value of 1. Look for the initial power level
one level up in the device tree.

Change-Id: I63f8c8efd05ad3693c6f399f58bed44ac84105d2
Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
2017-11-30 15:41:22 +05:30
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
Linux Build Service Account
5ae2acd95c Merge "platform: msm: Set USB speed to SUPER before calling notifier" 2017-11-28 13:00:56 -08:00
Michael Adisumarta
313711415d msm: ipa: dynamic memory leak fix
This is a fix for dynamic memory leak seen with incorrectly
allocating memory of a different size than with intended
size.

Change-Id: I821442ee6728ea90ceab7644e194f4e06369333a
Acked-by: Jyothi Jayanthi <jyothij@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2017-11-28 05:07:39 -08:00
Sharat Masetty
c399b38fc9 drm/msm: Save buffer iova's for rd-dump
rd-dump needs the buffer iova's captured in the submit path. This helps
the offline parser construct the relocs correctly. Save the buffer
iova's for the buffers which were not mapped yet and then call the API
to rd-dump the submission.

Change-Id: Ic771f3e76d8b3b943300e69fd62320f387c2d4c0
Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
2017-11-28 17:34:01 +05:30
Sharat Masetty
1ff6f9bca6 drm/msm: Add API support for getting GPU hang timeout
Userspace needs to know the GPU timeout value to support Khronos robust
GPU timeout extension. The timeout value is returned to the user in
millisecond resolution.

Change-Id: Iba2ff43fce6d21da240356b392afa7a6e7a618ad
Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
2017-11-28 17:23:13 +05:30
Linux Build Service Account
2e22873571 Merge "defconfig: msm: Enable SPI slave framework on 8996 Auto" 2017-11-28 03:16:33 -08:00
Linux Build Service Account
24209a5db6 Merge "defconfig: msm: enable memory hotplug support" 2017-11-28 03:16:28 -08:00
Linux Build Service Account
9f8441d764 Merge "arm64: Honor limits set by bootloader" 2017-11-28 03:16:28 -08:00
Linux Build Service Account
f830b1a444 Merge "arm64: Add "remove" probe driver for memory hot-remove" 2017-11-28 03:16:27 -08:00