Commit graph

582297 commits

Author SHA1 Message Date
Aditya Bavanari
f4ac3dd042 ASoC: msm: qdsp6v2: Add mixer controls for PRI/SEC TDM
Add mixer controls and port mixer controls applicable for
Primary TDM Rx, Primary TDM Tx, Secondary TDM Tx
and Secondary TDM Rx  in the routing driver.

CRs-fixed: 1089445
Change-Id: I51a765c38439b21b4b56e4089c863eb17c7dc1f8
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-02-02 21:28:57 -08:00
Linux Build Service Account
336e245503 Merge "defconfig: msm: Enable HWBinder for msmcortex" 2017-02-02 12:31:36 -08:00
Linux Build Service Account
4331c08bf9 Merge "android: binder: support for scatter-gather." 2017-02-02 12:31:35 -08:00
Linux Build Service Account
fe9a5e6da7 Merge "ath10k: Add support for the management over wmi" 2017-02-02 12:31:33 -08:00
Linux Build Service Account
21f46f2e15 Merge "net: rmnet_data: Fix incorrect netlink handling" 2017-02-02 12:31:32 -08:00
Linux Build Service Account
0769d8a501 Merge "ath10k: disable HW checksum for WCN3990" 2017-02-02 12:31:31 -08:00
Linux Build Service Account
7ac59f9642 Merge "crypto: ice: Fix NULL pointer exception in ice." 2017-02-02 12:31:30 -08:00
Linux Build Service Account
00b5ea2384 Merge "ARM: dts: msm: Enable CXIP LM feature for sdm660" 2017-02-02 12:31:29 -08:00
Linux Build Service Account
31b90dbf3f Merge "ARM: dts: msm: correct spi master number for sdm660" 2017-02-02 12:31:27 -08:00
Linux Build Service Account
5784dca5b5 Merge "ath10k: Refactor HTT RX datapath for WCN3990" 2017-02-02 12:31:26 -08:00
Neeraj Upadhyay
30b32775a5 defconfig: msm: Enable HWBinder for msmcortex
Enable HWBinder Domain for msmcortex.

Change-Id: Id3f9b7065b089a200278a50f77f6da5a6824c4fd
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2017-02-02 09:36:11 -08:00
Martijn Coenen
5029e5bfb6 android: binder: support for file-descriptor arrays.
This patch introduces a new binder_fd_array object,
that allows us to support one or more file descriptors
embedded in a buffer that is scatter-gathered.

Change-Id: I273d7e00807eda4defc5c94c4bd86e4812e2c7a8
Signed-off-by: Martijn Coenen <maco@google.com>
Git-commit: 5b3e17679b
Git-repo: https://git.linaro.org/kernel/linux-linaro-stable
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2017-02-02 09:32:03 -08:00
Martijn Coenen
edaed8a883 android: binder: support for scatter-gather.
Previously all data passed over binder needed
to be serialized, with the exception of Binder
objects and file descriptors.

This patchs adds support for scatter-gathering raw
memory buffers into a binder transaction, avoiding
the need to first serialize them into a Parcel.

To remain backwards compatibile with existing
binder clients, it introduces two new command
ioctls for this purpose - BC_TRANSACTION_SG and
BC_REPLY_SG. These commands may only be used with
the new binder_transaction_data_sg structure,
which adds a field for the total size of the
buffers we are scatter-gathering.

Because memory buffers may contain pointers to
other buffers, we allow callers to specify
a parent buffer and an offset into it, to indicate
this is a location pointing to the buffer that
we are fixing up. The kernel will then take care
of fixing up the pointer to that buffer as well.

Change-Id: Ia9bb2c588d932b6627a04baf4a62a09ae6aca087
Signed-off-by: Martijn Coenen <maco@google.com>
Git-commit: 34b8f97791
Git-repo: https://git.linaro.org/kernel/linux-linaro-stable
[tsoni@codeaurora.org: Fixed 32 bit compilation]
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
2017-02-02 09:30:50 -08:00
Martijn Coenen
d7a51e2fb5 android: binder: add extra size to allocator.
The binder_buffer allocator currently only allocates
space for the data and offsets buffers of a Parcel.
This change allows for requesting an additional chunk
of data in the buffer, which can for example be used
to hold additional meta-data about the transaction
(eg a security context).

Change-Id: Iabf59a64ff66a0457a9aa7077aef219c3dc05ba8
Signed-off-by: Martijn Coenen <maco@google.com>
Git-commit: d7c114e9e7
Git-repo: https://git.linaro.org/kernel/linux-linaro-stable
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2017-02-02 09:26:29 -08:00
Martijn Coenen
ed43f90999 android: binder: refactor binder_transact()
Moved handling of fixup for binder objects,
handles and file descriptors into separate
functions.

Change-Id: If68c2d93c3a42765cefda40dc807b39f6ab774c2
Signed-off-by: Martijn Coenen <maco@google.com>
Git-commit: 6ea3f1848b
Git-repo: https://git.linaro.org/kernel/linux-linaro-stable
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2017-02-02 09:25:46 -08:00
Martijn Coenen
4bebf250e4 android: binder: support multiple /dev instances.
Add a new module parameter 'devices', that can be
used to specify the names of the binder device
nodes we want to populate in /dev.

Each device node has its own context manager, and
is therefore logically separated from all the other
device nodes.

The config option CONFIG_ANDROID_BINDER_DEVICES can
be used to set the default value of the parameter.

This approach was favored over using IPC namespaces,
mostly because we require a single process to be a
part of multiple binder contexts, which seemed harder
to achieve with namespaces.

Change-Id: Idc765f6186282bdfcf95960d7b4168c5f0992c31
Signed-off-by: Martijn Coenen <maco@google.com>
Git-commit: 5711c305d2
Git-repo: https://git.linaro.org/kernel/linux-linaro-stable
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2017-02-02 09:24:22 -08:00
Martijn Coenen
b97cf99fe4 android: binder: deal with contexts in debugfs.
Properly print the context in debugfs entries.

Change-Id: I409a5a3854e5071bca4ad79a986c2aa129d42952
Signed-off-by: Martijn Coenen <maco@google.com>
Git-commit: 830ceaa588
Git-repo: https://git.linaro.org/kernel/linux-linaro-stable
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2017-02-02 09:23:27 -08:00
Martijn Coenen
635272a18f android: binder: support multiple context managers.
Move the context manager state into a separate
struct context, and allow for each process to have
its own context associated with it.

Change-Id: I2a1c9adbc01ce1125e4f8661898e7ea4b4904ebe
Signed-off-by: Martijn Coenen <maco@google.com>
Git-commit: e11560a518
Git-repo: https://git.linaro.org/kernel/linux-linaro-stable
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2017-02-02 09:22:49 -08:00
Martijn Coenen
c3d9b5c8a8 android: binder: split flat_binder_object.
flat_binder_object is used for both handling
binder objects and file descriptors, even though
the two are mostly independent. Since we'll
have more fixup objects in binder in the future,
instead of extending flat_binder_object again,
split out file descriptors to their own object
while retaining backwards compatibility to
existing user-space clients. All binder objects
just share a header.

Change-Id: Ife64444979fba493c1865d2e4f4213ec26d03720
Signed-off-by: Martijn Coenen <maco@google.com>
Git-commit: d8e0aca03a
Git-repo: https://git.linaro.org/kernel/linux-linaro-stable
[neeraju@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2017-02-02 09:22:15 -08:00
Rakesh Pillai
ffc6ad74b8 ath10k: Add support for the management over wmi
With the new chipset wcn3990 and new firmware HL-1.0, management
is supported via the WMI rather than legacy HTT.
Add support for the management over wmi for the ath10k driver.

CRs-Fixed: 2000484
Change-Id: Iaf387243d63870e063b3b5bf34cd7232dae921fc
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2017-02-02 06:43:10 -08:00
Rakesh Pillai
1e29e91126 ath10k: Refactor start scan cmd and add peer flag for WCN3990
WCN3990 target needs different value for scan flags.
Add proper scan flags for WCN3990 and attach based
on hardware detected.

CRs-Fixed: 1115143
Change-Id: Ie4c02adb5ae65e12d250389d945e048cb6720479
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2017-02-02 06:42:42 -08:00
Govind Singh
15f7852689 ath10k: Add support for NON BMI platform
WCN3990 does not uses BMI for fw download.
Refactor startup sequence to support non BMI
platform.

CRs-Fixed: 1114413
Change-Id: I1e1f5c3808decf319474629ab257ae908895f3a8
Signed-off-by: Govind Singh <govinds@codeaurora.org>
2017-02-02 06:32:25 -08:00
Govind Singh
9c3ac0ca01 ath10k: disable HW checksum for WCN3990
HW checksum is not enabled in current release
of WCN3990.

Disable HW checksum for WCN3990.

CRs-Fixed: 2000365
Change-Id: I3b8ee3664150ee8c0c2a8fe9ed1d61c6d32f16b0
Signed-off-by: Govind Singh <govinds@codeaurora.org>
2017-02-02 04:09:31 -08:00
Govind Singh
02ed94d532 ath10k: Fix STA disconnect issue
vdev params are being set after vdev is in down state, this
is resulting in firmware crash.

Fix this by skipping vdev access after vdev is in down state.

CRs-Fixed: 2000365
Change-Id: Ib15f038624682fb324fbd5c43fa5cddf462443cd
Signed-off-by: Govind Singh <govinds@codeaurora.org>
2017-02-02 04:08:51 -08:00
Linux Build Service Account
8ae485387d Merge "ASOC: msm: Restrict loop index to avoid buffer overread" 2017-02-02 04:00:06 -08:00
Linux Build Service Account
c0ce43f344 Merge "msm: kgsl: Add efuse read capabilities for A512 GPU" 2017-02-02 04:00:05 -08:00
Linux Build Service Account
e2bbb8045f Merge "USB: dwc3-msm: Add sysfs entry to manually set speed" 2017-02-02 04:00:04 -08:00
Linux Build Service Account
063de8de6b Merge "spmi: pmic-arb: do not ack and clear peripheral interrupts in cleanup_irq" 2017-02-02 04:00:03 -08:00
Linux Build Service Account
154a46eb53 Merge "msm: kgsl: Relocate the pagefault tracepoint" 2017-02-02 04:00:02 -08:00
Linux Build Service Account
fa68c42f78 Merge "ARM: dts: msm: add support for R63417 truly 1080p panel on sdm660" 2017-02-02 04:00:01 -08:00
Linux Build Service Account
df19f1baeb Merge "ARM: config: Enable CONFIG_MMC_SDHCI_MSM_ICE flag" 2017-02-02 04:00:00 -08:00
Linux Build Service Account
d7f59ad382 Merge "mmc: sdhci-msm-ice: Changes for supporting ICE HCI in non CMDQ mode" 2017-02-02 03:59:59 -08:00
Linux Build Service Account
8249790ee9 Merge "mmc: cmdq_hci: ice: Changes for supporting ICE HCI in CMDQ mode" 2017-02-02 03:59:59 -08:00
Linux Build Service Account
bbe6f5b291 Merge "defconfig: arm64: Enabled msm Ipv4 multicast support in kernel" 2017-02-02 03:59:54 -08:00
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
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