Commit graph

594013 commits

Author SHA1 Message Date
Alexei Avshalom Lazar
f0e4bc6843 ARM: dts: msm: update PCIe WAKE for msm8998 to be pull-up
PCIe WAKE for msm8998 is set to pull-down. This configuration
can cause the wake signal to be trigerred in some scenarios.
WAKE gpio should be always pull-up for preventing false wakes.

Change-Id: I893ef8908437d2118238c6fd45809703b1f5e3bb
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
2017-09-17 09:39:47 +03:00
Lior David
3a63c9e892 wil6210: support AOA in FTM session
Add support for running AOA measurement as part of an
FTM session.
In order to simplify the implementation both in the driver
and FW, AOA measurement is reported using the same vendor
event and not using QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS.
This way we can also report the antenna array mask which was
missing from the vendor commands API for AOA inside FTM session.

Change-Id: I3962487b2e6fd8e56e6e3953c86fd95abe6a9aa0
Signed-off-by: Lior David <liord@codeaurora.org>
2017-09-17 08:28:48 +03:00
Linux Build Service Account
3f06fc9b4a Merge "usb: gadget: f_fs: Do not free IPC log buffer when free instance" 2017-09-15 18:12:39 -07:00
Linux Build Service Account
809e35f581 Merge "ath10k: synchronize WLAN ON/OFF cmd during system suspend" 2017-09-15 18:12:38 -07:00
Linux Build Service Account
393bfcf232 Merge "cfg80211: Include length of kek in rekey data" 2017-09-15 18:12:36 -07:00
Subbaraman Narayanamurthy
4ce690327a power: qpnp-fg-gen3: synchronize ESR extraction control configuration
Currently, ESR extraction control is configured from two paths.
First is invoked when Qnovo is enabled or disabled. Second is
invoked when the pulse train is done and ESR measurement is
requested. When the latter is run, there is a sleep time of 1.5
seconds that is essential for allowing FG to do ESR measurement.
However in that time window, if Qnovo is disabled for some reason
then ESR extraction control will be kept disabled unexpectedly.

Fix this by protecting both the paths using a mutex lock as well
as checking for qnovo enable status before disabling ESR
extraction control after measuring ESR.

Change-Id: Ib93539071724a1ce59d198074854a8a9c5fd3ab3
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-09-15 13:57:01 -07:00
Linux Build Service Account
569fef54de Merge "nl80211: Update ERP info using NL80211_CMD_UPDATE_CONNECT_PARAMS" 2017-09-15 09:14:12 -07:00
Linux Build Service Account
63bd7326e4 Merge "msm: kgsl: Do not crash on context detach timeout failure" 2017-09-15 09:14:11 -07:00
Vidyullatha Kanchanapally
162b1e5303 cfg80211: Include length of kek in rekey data
With support for new AKM suites (example FILS-SHA256), the KEK length
can now be more than NL80211_KEK_LEN and the KCK length can be zero.
Add changes in cfg80211 to specify the length of KEK, and make KCK
optional. Make NL80211_REKEY_DATA_KEK as NLA_BINARY to enforce a maximum
length check.
Also add macro CFG80211_REKEY_DATA_KEK_LEN to indicate support for
including KEK length in rekey data.

CRs-Fixed: 2087759
Change-Id: Ica8dbb8614e0a9c3905e125b4a5254e43821984e
Signed-off-by: Vidyullatha Kanchanapally <vidyullatha@codeaurora.org>
2017-09-15 17:58:14 +05:30
Vatsal Bucha
3e3ba94fb5 ASoC: sdm660_cdc: Fix HPH CnP and kernel panic issue on sdm660-internal
Pop is observed after we start playback on hph.
This is because we do not enable both compander
channels at the same time which is not according to
qcrg. Amplitude of pop gets reduced after
corresponding change is made.
Also kernel panic is observed during SSR. This is because
DSP does not get sufficient time to bring up LPASS after SSR.
An increase in ADSP Ready timeout resolves the issue.

CRs-Fixed: 2101404
Change-Id: Iaea0f5060cdd87754e074ecbba18b5045cd4351a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2017-09-15 16:26:57 +05:30
Sarada Prasanna Garnayak
ae120800ba ath10k: synchronize WLAN ON/OFF cmd during system suspend
During system suspend/resume or WLAN interface up/down
by the network subsystem the ath10k SNOC WLAN driver
configure WLAN enable/disable cmd with the WLAN firmware
over QMI interface. The WLAN enable/disable cmd configuration
with the WLAN firmware during system suspend is preventing
the system suspend.

Register PM event notifier for the ath10k SNOC platform
driver and synchronize the WLAN HIF power down/up
configuration, WLAN enable/disable cmd configuration
with WLAN firmware according to the system power state.

CRs-Fixed: 2110607
Change-Id: I5eeda967ae11c21ab5164c18b3e0a3bf668c916a
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-09-15 02:10:04 -07:00
Linux Build Service Account
06d01bbd16 Merge "msm: kgsl: Fixing an uninitialized variable in _gpuobj_map_useraddr()" 2017-09-15 01:10:52 -07:00
Vidyullatha Kanchanapally
b0b2c85ac9 nl80211: Update ERP info using NL80211_CMD_UPDATE_CONNECT_PARAMS
Use NL80211_CMD_UPDATE_CONNECT_PARAMS to update new ERP information,
Association IEs and the Authentication type to driver / firmware which
will be used in subsequent roamings.

CRs-Fixed: 2087764
Change-Id: Ic296b66a39b9ceb8de992a9f37112439389946a2
Signed-off-by: Vidyullatha Kanchanapally <vidyullatha@codeaurora.org>
2017-09-15 00:44:27 -07:00
Linux Build Service Account
2b9593335e Merge "soc: qcom: pil: set device dma mask as 32 bit" 2017-09-14 17:08:02 -07:00
Linux Build Service Account
4f41b2e62b Merge "msm: ais: Synchronize camera open/close calls" 2017-09-14 17:08:01 -07:00
Linux Build Service Account
a1def3c899 Merge "USB: dwc3-msm: Protect enabling phy irqs with mutex" 2017-09-14 17:07:59 -07:00
Linux Build Service Account
211e3cc27d Merge "scsi: ufs: Get TX and RX FSM states for debug purpose" 2017-09-14 07:38:07 -07:00
Linux Build Service Account
abbce87082 Merge "USB: composite: Use snprintf instead of sprintf" 2017-09-14 07:38:06 -07:00
Linux Build Service Account
11d288aa74 Merge "mmc: core: Correct the checks while setting clock scaling frequencies" 2017-09-14 07:38:02 -07:00
Linux Build Service Account
14031d35b5 Merge "mmc: block: Add error handling in mmc_blk_cmdq_part_switch" 2017-09-14 07:38:01 -07:00
Linux Build Service Account
b713760afa Merge "power: qpnp-fg-gen3: Get the raw MSOC directly from FG register" 2017-09-14 07:38:00 -07:00
Kasin Li
d5628ce56c ARM: dts: msm: Override GPU speed bin 2 for MSM8996Pro
In DRM driver gpu clock don't change. override the initial gpu clock to
maximal value to ensure the performance in auto system.

Change-Id: I95515aedfb7b6e462d693cc5ae945ac21fcba7b8
Signed-off-by: Kasin Li <donglil@codeaurora.org>
2017-09-14 22:07:13 +08:00
Sankalp Sharma
062e9f67de msm: ais: Synchronize camera open/close calls
Synchronize camera_v4l2_open and camera_v4l2_close to avoid use
after free.

Change-Id: I4055f00ff30408cc0469015b3e49d877632726bf
CRs-fixed: 2048964
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2017-09-14 18:54:11 +05:30
Vijayavardhan Vennapusa
3caa870dee USB: dwc3-msm: Protect enabling phy irqs with mutex
Currently driver is enabling hsphy_irq and ssphy_irq at the end
of dwc3_msm_suspend() without any spinlock/mutex protection. But
if it happens that hsphy_irq or ssphy_irq gets fired right after
enablement of irqs, there is a chance that we might see warnings
related to unbalanced irq enable. This could happen due to flag
is not yet set to indicate phy irqs enabled in suspend(). This
might cause phy irq left enabled after resume and could cause
crash due to unclocked access in host mode. Fix the unbalance irq
enable by having mutex protection and also extend mutex protection
for dwc3_msm_suspend() and dwc3_msm_resume().

Change-Id: I8c2d26f82feb235add64305c1d0e5b686993e9e9
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-09-14 16:41:17 +05:30
Ashish Garg
93e91f73b2 msm: mdss: check the length of the external input buffer properly
dchdr->dlen is a short variable controlled by the user-provided data
(a string). If the value is negative, the condition does not pass
and loop continues, also increasing the value of "len". As a result
buffer overflow and overwrite occurs.

Change-Id: I5eacec446c9a8b5b82fc3bc6d1281303f336d4de
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
2017-09-14 14:27:31 +05:30
Hardik Arya
15a9d5118c diag: Add NULL pointer checks for mask info
Currently there is a possibility of NULL pointer
dereference issue due to NULL pointers checks are
missing for mask info. The patch fixes the issue by
adding NULL pointer checks.

CRs-Fixed: 2108911
Change-Id: I097aeacc90c8d88034bf799ee4e398ddda5e23f1
Signed-off-by: Hardik Arya <harya@codeaurora.org>
2017-09-14 11:53:53 +05:30
Arun KS
972d901c7c soc: qcom: pil: set device dma mask as 32 bit
APPS interact with MPSS through 32 bit register interface.
Set dma mask for 32 bit so that mba and mdt memory are allocated
from 32 bit physical address range.

Change-Id: I623f00097d464b1bdd8f609e2d6c9a126f4bea4d
Signed-off-by: Arun KS <arunks@codeaurora.org>
2017-09-13 22:05:08 -07:00
Sayali Lokhande
f48e6d64a2 mmc: block: Add error handling in mmc_blk_cmdq_part_switch
mmc_blk_cmdq_part_switch always returned 0 even in case of
failures as errors are not handled in this function.
We need to un-halt cmdq in case it's in halt state when
mmc_switch fails. This change adds error handling code and
returns error in case of any failure.

Change-Id: Icd7ec4b7b53fc56d39dbcea195ae44bf08de17e5
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2017-09-13 20:58:47 -07:00
Sayali Lokhande
8bcda652a9 scsi: ufs: Get TX and RX FSM states for debug purpose
In case of any UFS error or aborts, read TX and RX
FSM states which can be used for debugging purpose.

Change-Id: I24a989a9e1b07ba904ec639e26736a01769f0593
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2017-09-14 09:07:25 +05:30
Linux Build Service Account
4b449078db Merge "msm: vidc: Do a proper clean-up in case of session abort" 2017-09-13 18:59:43 -07:00
Linux Build Service Account
1a0b5a7c61 Merge "msm: ipa: Add new API to check for ipa uC readiness" 2017-09-13 18:59:42 -07:00
Linux Build Service Account
a13cc21099 Merge "msm: mdss: disable HDMI block before HDMI core off" 2017-09-13 18:59:41 -07:00
Linux Build Service Account
7daa979b05 Merge "msm: camera: isp: Check null pointer for VFE0 base" 2017-09-13 18:59:39 -07:00
Subash Abhinov Kasiviswanathan
721f345aa2 udpv6: Fix the checksum computation when HW checksum does not apply
While trying an ESP transport mode encryption for UDPv6 packets of
datagram size 1436 with MTU 1500, checksum error was observed in
the secondary fragment.

This error occurs due to the UDP payload checksum being missed out
when computing the full checksum for these packets in
udp6_hwcsum_outgoing().

CRs-Fixed: 2087660
Change-Id: I8f9066a5fa731a7c81b6713dc93b1cf4824646f0
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2017-09-13 19:08:51 -06:00
Skylar Chang
8909867b39 msm: ipa3: add lock for num_q6_rule
There is a race condition be observed
on global variable num_q6_rule used in
ipa wan-driver. The fix is to add lock
to prevent different threads are accessing
it at the same time.

Change-Id: Ia9190c60361cb5605b61963309beca3acdeac89d
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-09-13 15:22:58 -07:00
Skylar Chang
54225e4364 msm: ipa: Add new API to check for ipa uC readiness
Adding new API for IPA clients to check for IPA
uC ready before bringing up IPA uC offload data path.

CRs-Fixed: 2030217
Change-Id: I0328658cba829cacc89b7c0b8edf7e52aa16e45c
Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-09-13 11:29:18 -07:00
Linux Build Service Account
414269dd95 Merge "msm: mdss: dp: fix wdog_bite while disconnecting DP cable" 2017-09-13 10:58:19 -07:00
Linux Build Service Account
98fa67f230 Merge "msm: mdss: hdmi: correctly validate the cec msg frame size" 2017-09-13 10:58:18 -07:00
Linux Build Service Account
13ef16e98a Merge "msm: ais: isp: Reducing ISPIF stop waiting time" 2017-09-13 10:58:17 -07:00
Linux Build Service Account
3bbf983f45 Merge "msm: mdss: hdmi: fix no audio over HDMI on device bootup" 2017-09-13 10:58:15 -07:00
Linux Build Service Account
288edc578d Merge "msm: mdss: Increase the max layer count to 13" 2017-09-13 10:58:14 -07:00
Linux Build Service Account
0dc637a1af Merge "adv7481: return error when PLL lock fails" 2017-09-13 10:58:13 -07:00
Linux Build Service Account
28525322ac Merge "ARM: dts: msm: Early init changes for vendor image on msm8996" 2017-09-13 10:58:12 -07:00
Linux Build Service Account
fa2298d494 Merge "mmc: host: Update the USE_PIO_FOR_EMMC_TUNING quirk value" 2017-09-13 10:58:11 -07:00
Linux Build Service Account
d380a7c16b Merge "cgroup/cpuset: remove circular dependency deadlock" 2017-09-13 10:58:10 -07:00
Linux Build Service Account
b5939af1fd Merge "power: smblib: correct PD voting when inactive" 2017-09-13 10:58:09 -07:00
Linux Build Service Account
884b439578 Merge "adv7481: Add support for CSI 4 lane for ADV7481" 2017-09-13 10:58:08 -07:00
Linux Build Service Account
e3d53f3d2e Merge "msm: camera: fix off-by-one overflow in msm_isp_get_bufq" 2017-09-13 10:58:07 -07:00
Linux Build Service Account
9d4ca70315 Merge "msm: ais: sensor: flash: add conditional check for ioctl" 2017-09-13 10:58:06 -07:00
Linux Build Service Account
581c8764e2 Merge "msm: ais: Return -NOTTY on invalid ioctl command" 2017-09-13 10:58:05 -07:00