Commit graph

582456 commits

Author SHA1 Message Date
yidongh
192fc99e6e ASOC: msm: Restrict loop index to avoid buffer overread
Add restriction in msm_dolby_dap_param_to_get_control_get
function to avoid reading buffer data with index over
buffer size.

Change-Id: I2bd443d4db1a272d20341fbb5b15891a8acf0bc8
CRs-Fixed: 1096076
Signed-off-by: Yidong Huang <yidongh@codeaurora.org>
2017-02-01 23:39:56 -08:00
Rakesh Pillai
9cd9125bc4 ath10k: Refactor HTT RX datapath for WCN3990
WCN3990 is a 37 bit target and needs DMA_MAP of 37 bits.
The HTT RX datapath currently uses 32-bit address.
Refactor the HTT RX datapath to enable DMA MAP of 37 bits for WCN3990.
Fix ath10k_htt_rx_h_ppdu API usage.

CRs-Fixed: 2000491
Change-Id: I3d1505202a899796b0bfa7975844e3700326bfdf
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2017-02-02 13:09:41 +05:30
Brahmaji K
fb77e96735 crypto: ice: Fix NULL pointer exception in ice.
While enabling ICE setup and on error conditions, the regulator
is disabled. Before disabling the regulator, check if the
regulator is up and able to access the registers of regulator.

Change-Id: I94dd2b3e25444818f7bdf2f791f4fa9efaefce15
Signed-off-by: Brahmaji K <bkomma@codeaurora.org>
2017-02-02 12:56:34 +05:30
Conner Huff
85cccedb0c net: rmnet_data: Fix incorrect netlink handling
rmnet_data netlink handler currently does not check for the
incoming process pid and instead just loops back the pid.
A malicious root user could potentially send a message with
source pid 0 and this could cause rmnet_data to loop the message
back till an out of memory situation occurs.

rmnet_data also does not check for the message length of the
incoming netlink messages and instead casts the netlink message
without checking for the boundary.

Fix these two scenarios by adding the pid and message length checks
respectively.

Bug: 31252965
CRs-Fixed: 1098801
Change-Id: I172c1a7112e67e82959b397af7ddfd963d819bdc
Signed-off-by: Conner Huff <chuff@codeaurora.org>
2017-02-02 00:15:23 -07:00
Raviteja Tamatam
8591cb9b7b msm: mdss: fix mdp vbif writeback qos settings
Updated changes to apply writeback qos vbif remapper
settings for the writeback xin id.

Change-Id: I284598f0d5df5348220bae8ef9f2a83c3405a1ce
Signed-off-by: Raviteja Tamatam <travitej@codeaurora.org>
2017-02-02 12:05:44 +05:30
Dhoat Harpal
4513fe91d7 soc: qcom: glink_ssr: Set NULL after free
In function close_ch_worker variable ss_info->cb_data is not set to
NULL after free, this results in crash due to  use after free in
notify_for_subsystem function.

This variable is set to NULL to avoid any crash due to use after free.

CRs-Fixed: 2000384
Change-Id: Ia0c7b52e4c8f5d0215fd0ebfbca5e823530f205c
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2017-02-02 11:23:56 +05:30
Vamsi Krishna Samavedam
4a4acb8a9e USB: dwc3-msm: Add sysfs entry to manually set speed
In some cases it is useful to manually force the controller to
run at certain speeds (USB 2.0 or USB 3.0 speeds). For example,
EUD (Emebedded USB Debug) can only work when controller is
operating in USB 2.0 speeds.  User can force USB 2.0 if EUD is
required.

Change-Id: Id022f372014a9218537bd1b5477d4555aff4578c
Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org>
2017-02-01 21:36:04 -08:00
Linux Build Service Account
110e102fe3 Merge "msm: thermal: Apply frequency limit on online CPU to LMH DCVSh" 2017-02-01 19:24:01 -08:00
Linux Build Service Account
7fba111f4f Merge "defconfig: msm8998: Enable USB CCID function driver" 2017-02-01 19:24:00 -08:00
Linux Build Service Account
6f6896aa64 Merge "usb: dwc3: Prevent pipe_PowerDown transition during U1 exit" 2017-02-01 19:23:59 -08:00
Linux Build Service Account
fd98835c43 Merge "usb: dwc3: Add maximum hw supported speed flag" 2017-02-01 19:23:58 -08:00
Linux Build Service Account
de0a1abf3d Merge "msm: ipa3: Use proper allocation flag in case of shutdown" 2017-02-01 19:23:57 -08:00
Linux Build Service Account
70c97d9407 Merge "sched: maintain group busy time counters in runqueue" 2017-02-01 19:23:56 -08:00
Linux Build Service Account
62e878fd30 Merge "Merge remote-tracking branch 'quic/dev/msm-4.4-drm_kms' into msm-4.4-01-29-tip" 2017-02-01 19:23:55 -08:00
Linux Build Service Account
989bc41eed Merge "mmc: sdhci-msm-ice: Add new sdhci host_op for updating ice config" 2017-02-01 19:23:54 -08:00
Linux Build Service Account
9bd6335532 Merge "mmc: sdhci-mmc-ice: Factor out ice_cfg_start from sdhci_msm_ice_cfg" 2017-02-01 19:23:53 -08:00
Linux Build Service Account
08450fb01c Merge "mmc: sdhci-msm-ice: Factor out update config from sdhci_msm_ice_cfg" 2017-02-01 19:23:53 -08:00
Linux Build Service Account
55f794cbfe Merge "ARM: dts: msm: enable pin control mode for RF clock of wcn3990 on sdm660" 2017-02-01 19:23:52 -08:00
Linux Build Service Account
ca8caf1a3a Merge "ARM: dts: msm: Enable WSA for sdm660 internal codec" 2017-02-01 19:23:51 -08:00
Linux Build Service Account
5a96c0ead1 Merge "ASoC: Enable WSA speaker over soundwire on SDM660" 2017-02-01 19:23:50 -08:00
Linux Build Service Account
56c25adf26 Merge "ARM: dts: msm: Enable cache-always for WSA in sdm660 internal codec" 2017-02-01 19:23:49 -08:00
Linux Build Service Account
f627f7aaa3 Merge "ASoC: wsa881x: Add cache-always mode for sdm660" 2017-02-01 19:23:49 -08:00
Linux Build Service Account
664d80e845 Merge "msm: kgsl: refcount irq to avoid racing against idle check" 2017-02-01 19:23:48 -08:00
Linux Build Service Account
48f5a37e3b Merge "ath10k: Add ce gather support for WCN3990 target" 2017-02-01 19:23:47 -08:00
Linux Build Service Account
1c2725e780 Merge "ARM: dts: msm: enable ESD feature for SDM660 target" 2017-02-01 19:23:46 -08:00
Linux Build Service Account
651b36e8c2 Merge "ath10k: Enable single queue NAPI for WCN3990 target" 2017-02-01 19:23:45 -08:00
Linux Build Service Account
20340ad56e Merge "ARM: dts: msm: Update Temperature sensor support for sdm660" 2017-02-01 19:23:44 -08:00
Linux Build Service Account
3474dde0ac Merge "ARM: dts: msm: Configure WLED for SDM630" 2017-02-01 19:23:43 -08:00
Linux Build Service Account
bc9cbaaa71 Merge "ARM: dts: msm: Disable two-pass-wfi quirk for SDM660 GPU" 2017-02-01 19:23:42 -08:00
Linux Build Service Account
f4bc6601e2 Merge "ext4/fscrypto: avoid RCU lookup in d_revalidate" 2017-02-01 19:23:41 -08:00
Linux Build Service Account
ebe8fc6799 Merge "clk: qcom: Add support for cpu clock for sdm630" 2017-02-01 19:23:41 -08:00
Linux Build Service Account
2427f88ff6 Merge "ARM: dts: msm: Modify adsp-region node for SDM660" 2017-02-01 19:23:39 -08:00
Linux Build Service Account
e30623db8b Merge "qcom: qnovo: fix the enable reporting" 2017-02-01 19:23:38 -08:00
Linux Build Service Account
a49eaec204 Merge "power_supply: remove PARALLEL_PERCENT property" 2017-02-01 19:23:35 -08:00
Linux Build Service Account
5e7d385625 Merge "power: qcom-charger: separate parallel code" 2017-02-01 19:23:35 -08:00
Linux Build Service Account
ffaa506460 Merge "clk: msm: Update the frequency table for csi clocks on MSM8998 v2" 2017-02-01 19:23:34 -08:00
Linux Build Service Account
f98e28a051 Merge "icnss: Enable FW rejuvenate feature by default" 2017-02-01 19:23:33 -08:00
Linux Build Service Account
4bf506f0d8 Merge "qcom: fg-memif: improve retry mechanism for IMA read/write" 2017-02-01 19:23:32 -08:00
Linux Build Service Account
b1254c1d1f Merge "usb: pd: Ensure VBUS is below 0.8V before turning it on" 2017-02-01 19:23:31 -08:00
Linux Build Service Account
ab2de9e5d9 Merge "usb: pd: Support Programmable Power Supply as sink" 2017-02-01 19:23:29 -08:00
Linux Build Service Account
6fc458fc32 Merge "icnss: rename and change the type of enable_fw_log" 2017-02-01 19:23:29 -08:00
Linux Build Service Account
e03dcc5888 Merge "defconfig: arm64: Add coresight TMC support for msm8998" 2017-02-01 19:23:27 -08:00
Veerabhadrarao Badiganti
2801a3b8c5 ARM: config: Enable CONFIG_MMC_SDHCI_MSM_ICE flag
Enable CONFIG_MMC_SDHCI_MSM_ICE flag for encrypting/decrypting
the eMMC data transfers.

Change-Id: Iab391bf51233aff69f5217cf2f1b19cbeed69446
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-02-02 07:04:42 +05:30
Veerabhadrarao Badiganti
5f133c6433 mmc: sdhci-msm-ice: Changes for supporting ICE HCI in non CMDQ mode
SDHC v5.0 onwards, SDHC includes the inline interface for
cryptographic operations which is ICE HCI.

This patch includes the driver changes for supporting crypto
operations with ICE HCI in noncq mode.

Change-Id: I3253b796212f63853cb3f6cf130f0a8542595428
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-02-02 06:56:59 +05:30
Veerabhadrarao Badiganti
2df488a185 mmc: cmdq_hci: ice: Changes for supporting ICE HCI in CMDQ mode
On SDHC v5.0 onwards, SDHC includes the inline interface
for cryptographic operations which is ICE HCI.

This patch includes the driver changes for supporting crypto
operations with ICE HCI in cmdq mode.

Change-Id: I618a0a4b7356f2f19c31d67fca1664daa51b09f9
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-02-02 06:56:58 +05:30
Veerabhadrarao Badiganti
a60300ce47 mmc: sdhci-msm-ice: Add new sdhci host_op for updating ice config
Add new sdhci host_op for updating ice configuration while sending
request through cmdq. Adding provision for supporting the ice
context configuration for ICE HCI.

Change-Id: I0e7299cfb1064c117aa94fb2416cc5cc4f1ec5f6
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-02-02 06:56:58 +05:30
Veerabhadrarao Badiganti
0a8547207f mmc: sdhci-mmc-ice: Factor out ice_cfg_start from sdhci_msm_ice_cfg
Factor out the logic of getting ice config parameters from
sdhci_msm_ice_cfg().

With ICE2.0, same sdhci_msm_ice_cfg function is being called from cmdq
and noncq. But with ICE3.0 support, cmdq needs a separate host op.
Since this logic of getting ice config is common for noncq and cmdq,
by having it in separate function, same can be reused
in cmdq host op as-well.

Change-Id: If2cf26667acd54cb7ee7bd6283d8f24fcbf60791
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-02-02 06:54:03 +05:30
Veerabhadrarao Badiganti
bd4fadcb01 mmc: sdhci-msm-ice: Factor out update config from sdhci_msm_ice_cfg
Factor out the logic of updating the SDHC ICE config registers
from sdhci_msm_ice_cfg().

For ICE3.0, different set of SDHC ICE registers are need to be updated.
So having this logic in separate functions, we can have logical
separation for ICE2.0 and ICE3.0.

Change-Id: Ib3d3f9701875000985dc9382bdcdf5fb0e872a43
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-02-02 06:35:34 +05:30
Subbaraman Narayanamurthy
fc4171dde4 spmi: pmic-arb: do not ack and clear peripheral interrupts in cleanup_irq
Currently, cleanup_irq() is invoked when a peripheral's interrupt
fires and there is no mapping present in the interrupt domain of
spmi interrupt controller.

The cleanup_irq clears the arbiter bit, clears the pmic interrupt
and disables it at the pmic in that order. The last disable in
cleanup_irq races with request_irq() in that it stomps over the
enable issued by request_irq. Fix this by not writing to the pmic
in cleanup_irq. The latched bit will be left set in the pmic,
which will not send us more interrupts even if the enable bit
stays enabled.

When a client wants to request an interrupt, use the activate
callback on the irq_domain to clear latched bit. This ensures
that the latched, if set due to the above changes in cleanup_irq
or when the bootloader leaves it set, gets cleaned up, paving way
for upcoming interrupts to trigger.

With this, there is a possibility of unwanted triggering of
interrupt right after the latched bit is cleared - the interrupt
may be left enabled too. To avoid that, clear the enable first
followed by clearing the latched bit in the activate callback.

Change-Id: If126d6f6cdf6c944ca513c53a71a91e225ee63e2
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-01 17:00:01 -08:00
Ram Chandrasekar
8b22d5db34 msm: thermal: Apply frequency limit on online CPU to LMH DCVSh
KTM won't apply a frequency mitigation request for an offline cluster.
Instead when the CPU is brought back online, the cpufreq will ask for
new request and KTM will limit the frequency at that time. With the LMH
DCVSh doing the frequency mitigation, the frequency request is not
applied when the CPU comes back online.

For targets with LMH DCVSh frequency mitigation, apply the latest
frequency mitigation request when the CPU comes back online.

Change-Id: If280e4e19fc5dd717aae4f0992d2e2950c057c57
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2017-02-01 16:51:24 -07:00