Commit graph

582251 commits

Author SHA1 Message Date
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
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
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
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
Hemant Kumar
45d15ab1e6 defconfig: msm8998: Enable USB CCID function driver
This enables CCID bridge between CCID Host and CCID
daemon in userspace.

Change-Id: Ie68bf6c98b53d992f43b2a4daa168a8b3caac5b6
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-02-01 15:24:52 -08:00
Hemant Kumar
12ad811e3f usb: gadget: add configfs support in ccid function driver
This allows ccid device to enumerate using usb compostion
driver supporting config file system. Also fix compliation
errors.

Change-Id: I363b8f967781ab162fbd7ded0b397c86cf3d3fc5
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-02-01 15:24:20 -08:00
Hemant Kumar
3796885dba usb: dwc3: Prevent pipe_PowerDown transition during U1 exit
During U1 exit, the controller might send LFPS ping at the same
time when the P1 to P0 transition occurs(GUSB3PIPECTL[27] = '0').
The de-assertion of the pipe_TxElecIdle signal during the
pipe_PowerDown signal transition violates the PIPE specification.
Fix this by setting GUSB3PIPECTL[27] = '1' so that there is no
pipe_PowerDown transition during U1 exit. This fix is applicable
for DWC3 revision 3.10 or older.

Change-Id: I7708d42c0f8b67d315be59e9ff9f04ccb74b9b5c
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-02-01 11:39:10 -08:00
Sathish Ambley
f696ed9755 ARM: dts: msm: Modify adsp-region node for SDM660
Modified size and alignment in adsp-region node to allow for
HLOS memory to be used for growing of heap and for loading
shared objects on DSP.

Change-Id: I41e95100d67141e30f02f4e718f66e3b2dfe157b
Acked-by: Ashwini Patil <aapatil@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2017-02-01 09:41:01 -08:00
Amir Levy
2b5076cf51 msm: ipa3: Use proper allocation flag in case of shutdown
In case of device shutdown DMA memory allocation might
fail with GFP_KERNEL flag. This failure might occur
since the calling process received SIGKILL.In order to
avoid that scenario perform the DMA allocation with atomic
flag.

CRs-Fixed: 1116368
Signed-off-by: Amir Levy <alevy@codeaurora.org>
Change-Id: Id4d29d0f4a25f5630911db79c236fb08da752be4
2017-02-01 19:18:35 +02:00
Govind Singh
701c8c3650 ath10k: Add ce gather support for WCN3990 target
WCN3990 target uses different bit filed for ce
gather support.

Populate valid src descriptor buffers and gather
flag for WCN3990 target.

CRs-Fixed: 1115328
Change-Id: Ia7e73bd3009823357bb7df06eddb4903efb47286
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-02-01 04:23:34 -08:00