Commit graph

573660 commits

Author SHA1 Message Date
Carter Cooper
aa29f6267f msm: kgsl: Add sparse memory support
Add support to allocate/reserve a virtual address range without
physically backing. Add support to allocate physically backing memory
without assigning it a virtual address. Add support to unite
the two forementioned allocations together. Add support to
divorce them from one another. Add support to let their kids
do cache operations as they see fit.

Create a 'dummy' page that is used to back virtual allocations
that are not yet backed by physical memory.

CRs-Fixed: 1046456
Change-Id: Ifaa687b036eeab22ab4cf0238abdfbe7b2311ed3
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
Signed-off-by: Tarun Karra <tkarra@codeaurora.org>
2016-08-15 10:23:46 -06:00
Taniya Das
81c61c7d71 clk: msm: Add memory barrier after reset assert/deassert
Memory barrier is required after the reset is asserted and de-asserted, so
add the same.

Change-Id: I17532984f546be97ba9862c07dd694b3fdd592fb
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-08-15 18:32:50 +05:30
Vidyakumar Athota
fba97387be ASoC: soundwire: fix out of boundary access issues
In soundwire read/write commands, register value is defined
as 8 bit but it is accessed through 32 bit pointer which
may cause out of boundary memory access. Fix this issue by
typecast appropriately.

BUG: KASan: out of bounds access in swrm_read+0x1dc/0x30c at
addr ffffffc089871880
Write of size 4 by task kworker/u8:5/236
==addr ffffffc089871880
[<ffffffc00081d174>] swrm_read+0x1d8/0x30c
[<ffffffc000819808>] swr_read+0x5c/0x74
[<ffffffc000741e58>] regmap_swr_read+0xd8/0x11c
[<ffffffc00073a350>] _regmap_raw_read+0x210/0x314
[<ffffffc00073a4b0>] _regmap_bus_read+0x5c/0xb4
[<ffffffc000739548>] _regmap_read+0xe0/0x1ec
[<ffffffc0007396b8>] regmap_read+0x64/0xa8
[<ffffffc000dc9dd4>] snd_soc_component_read+0x34/0x70
[<ffffffc000dc9f44>] snd_soc_read+0x6c/0x94
Memory state around the buggy address:
 ffffffc089871780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffffffc089871800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc

Change-Id: I3c56dffb4ca197e8fc23d54a44282a60254dd001
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-08-14 23:06:47 -07:00
Banajit Goswami
73dbd72c4d ARM: dts: msm: define pinctrl for MI2S and PCM devices for msmcobalt
msmcobalt target supports 4 MI2S and 4 PCM ports. Add pin-control
definitions for these ports.

Change-Id: I632c1dc7136a49c07b587a03181b5b4da42bdd4b
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2016-08-14 22:17:39 -07:00
Linux Build Service Account
2e45ea7281 Merge "ARM: dts: msm: add MSM External display node for msmcobalt" 2016-08-13 23:13:24 -07:00
Linux Build Service Account
39c747dfde Merge "msm: audio: soc: add null checks for hdmi ops" 2016-08-13 23:13:24 -07:00
Linux Build Service Account
f71490ad6f Merge "ARM: dts: msm: update pinctrl for touch gpios in msmcobalt" 2016-08-13 23:13:23 -07:00
Linux Build Service Account
47bd5a5b0c Merge "ARM: dts: msm: Update USB bus voting to allow SVS on msmcobalt" 2016-08-13 23:13:22 -07:00
Linux Build Service Account
5096eccb28 Merge "iommu/arm-smmu: support static context banks" 2016-08-13 23:13:21 -07:00
Linux Build Service Account
274f74b309 Merge "arm64: defconfig: msm: enable CPUSETS" 2016-08-13 23:13:20 -07:00
Linux Build Service Account
05feb03895 Merge "ARM: dts: msm: Modify csiphy timer clock rate on msmcobalt" 2016-08-13 23:13:19 -07:00
Linux Build Service Account
515b346c11 Merge "msm: camera: Add VAF active and suspend handles to eeprom node" 2016-08-13 23:13:18 -07:00
Linux Build Service Account
dfcec04e27 Merge "ARM: dts: msm: Fix qsee_ipc_irq_bridge IRQ clear mask for msmcobalt" 2016-08-13 23:13:16 -07:00
Linux Build Service Account
ac949b0d87 Merge "ARM: dts: msm: Remove clocks listed under the UFS GDSC node" 2016-08-13 23:13:15 -07:00
Linux Build Service Account
f2693fff2e Merge "msm: kgsl: update GPU busy statistics" 2016-08-13 23:13:14 -07:00
Linux Build Service Account
77e4349ae1 Merge "msm: mdss: fix dma fifo read watermark to 15/16 full" 2016-08-13 23:13:12 -07:00
Linux Build Service Account
0ec8200353 Merge "ARM: dts: msm: add jdi 1080p video mode panel support for msmcobalt" 2016-08-13 23:13:11 -07:00
Linux Build Service Account
98cdd5294e Merge "arm: dts: msm: Added missing features for HW Encryption support" 2016-08-13 23:13:10 -07:00
Linux Build Service Account
101be18f7b Merge "ice: added missing register dump in case of error for ICE 3.0" 2016-08-13 23:13:10 -07:00
Linux Build Service Account
4c9e200e82 Merge "ARM: dts: msm: Update the interrupt list for msmcobalt" 2016-08-13 23:13:09 -07:00
Linux Build Service Account
d736395565 Merge "qcom-charger: smblib: update batt capacity status from bms" 2016-08-13 23:13:08 -07:00
Linux Build Service Account
6ece03e7b9 Merge "ASoC: wcd-mbhc: enable micbias for special headset" 2016-08-13 23:13:08 -07:00
Linux Build Service Account
76a2edf258 Merge "ARM: dts: msm: Enable thermal mitigation for msmcobalt charger" 2016-08-13 23:13:07 -07:00
Linux Build Service Account
f4b1836237 Merge "qcom-charger: smblib: update ICL votings in parallel charging" 2016-08-13 23:13:06 -07:00
Linux Build Service Account
9d8e34f721 Merge "defconfig: msmcortex: Enable Seemp Log driver" 2016-08-13 23:13:06 -07:00
Linux Build Service Account
ed4b331fe7 Merge "ASoC: wcd9335: Update the Lineout path register configuration" 2016-08-13 23:13:04 -07:00
Linux Build Service Account
fb6752ab65 Merge "ASoC: wcd: change classh settings as per impedance value" 2016-08-13 23:13:04 -07:00
Linux Build Service Account
06a047a77f Merge "qcom-charger: qpnp-fg-gen3: remove wakelock when reading SRAM props" 2016-08-13 23:13:03 -07:00
Patrick Fay
573979dee2 perf: Add support for exclude_idle attribute
Use the exclude_idle attribute of the perf events to avoid reading
PMUs of idle CPUs. The counter values are updated when CPU enters
idle and the saved value is returned when the idle CPU is queried
for that event provided the attribute is set in the perf_event.

Change-Id: I61f7a7474856abf67ac6dfd9e531702072e108a5
Signed-off-by: Patrick Fay <pfay@codeaurora.org>
2016-08-13 15:11:24 -07:00
Patrick Fay
1f0f95c5fe perf: add hotplug support so that perf continues after hotplug
Current code doesn't restart perf after hotplug and power collapse
which makes monitoring in low power modes difficult. This patch adds
support for the hotplug notifier events and creates a common path for
the power collapse and hotplug events.

Change-Id: I52e6978b1c104fd78bc42e4600ceb111b47b3e11
Signed-off-by: Patrick Fay <pfay@codeaurora.org>
2016-08-13 15:05:21 -07:00
Linux Build Service Account
d43110ab63 Merge "clock: qcom: Update the list of clocks supported on MSMFalcon" 2016-08-13 04:51:59 -07:00
Linux Build Service Account
78acec7c45 Merge "soc: qcom: Fix error checks in service-notifier" 2016-08-13 04:51:59 -07:00
Linux Build Service Account
044c24aaaf Merge "Revert "genetlink: disallow subscribing to unknown mcast groups"" 2016-08-13 04:51:58 -07:00
Linux Build Service Account
f7d92b8f9f Merge "cpuset: Add allow_attach hook for cpusets on android." 2016-08-13 04:51:57 -07:00
Linux Build Service Account
bb5866bf9e Merge "usb: dwc3: Use clock API to control the memory power states" 2016-08-13 04:51:57 -07:00
Linux Build Service Account
ae5bb272c3 Merge "usb: dwc3: Remove tasklet bottom half handler" 2016-08-13 04:51:56 -07:00
Linux Build Service Account
c174c683da Merge "usb: pd: Only request current amount for explicit contract" 2016-08-13 04:51:55 -07:00
Linux Build Service Account
1aad9d6149 Merge "ASoC: msm: qdsp6v2: Fix crash during WFD playback and SSR" 2016-08-13 04:51:54 -07:00
Linux Build Service Account
0dba26514c Merge "ASoC: msm8x16: Initial change for internal codec support" 2016-08-13 04:51:53 -07:00
Linux Build Service Account
27d0d7b45c Merge "msm: ipa: Add support for IPA unit-test framework" 2016-08-13 04:51:52 -07:00
Linux Build Service Account
ab067aa67f Merge "ARM: dts: msm: Update USB core clock frequency to allow SVS" 2016-08-13 04:51:51 -07:00
Linux Build Service Account
8cd4d6c413 Merge "USB: dwc3-msm: Add support for setting specific frequency for core clock" 2016-08-13 04:51:51 -07:00
Linux Build Service Account
56e52f83b4 Merge "drivers: soc: Set APR Glink transport to SMEM" 2016-08-13 04:51:50 -07:00
Linux Build Service Account
d7a4057219 Merge "ASoC: msmcobalt: fix wrong platform device pointer assignment" 2016-08-13 04:51:49 -07:00
Linux Build Service Account
2e3eed9211 Merge "bluetooth: Add Split A2DP slimbus" 2016-08-13 04:51:48 -07:00
Linux Build Service Account
fb24f59004 Merge "ASoC: msm: qdsp6v2: support for AFE encoder" 2016-08-13 04:51:47 -07:00
Linux Build Service Account
1befb076f5 Merge "ASoC: msm: q6dspv2: add adm channel config support" 2016-08-13 04:51:46 -07:00
Linux Build Service Account
ddd4ffbe17 Merge "ARM: dts: msm: adjust mdp bw limits for msmcobalt v2" 2016-08-12 23:10:49 -07:00
Patrick Daly
471a5dd237 ion: system_heap: Add a new allocation method
Allocating new secure pages has very high latency. Ensure that the page
pool is completely empty before allocating new pages, splitting large order
pages as required.

Change-Id: I1353c5d9bdfd5c525c0c781c524630577c84b95e
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2016-08-12 18:55:15 -07:00
Patrick Daly
c939cf82c6 ion_page_pool: Remove GFP_COMP from page allocation mask
Using GFP_COMP to create compound pages prevents split_pages from being
used to split an order > 0 page into order 0 pages.

Required for future changes to the system_heap allocation algorithm.

Change-Id: I5ab82f717bb003e074124e1ffae3f112c405bc2b
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2016-08-12 18:55:15 -07:00