Commit graph

570472 commits

Author SHA1 Message Date
Deepak Katragadda
d4c48266b2 clk: msm: clock-gcc-cobalt: Add the cnoc_periph RPM resource support
Add support for modelling a new cnoc_periph RPM resource on
MSM COBALT. In addition, fix the rpm_res_type being used for
the mmssnoc_axi_clk and remove the pnoc resource support.

CRs-Fixed: 1003213
Change-Id: I9f9845fea425fc4463dae72e8f8ab6e8bda23121
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-06-02 16:15:33 -07:00
Siddartha Mohanadoss
5c5c7ecab5 defconfig: arm64: msmcortex: Enable IIO and RRADC driver
Enable Round robin ADC (RRADC) driver to enable clients
to read channels on pmicobalt such as battery ID, battery
thermistors. Enable IIO since RRADC driver registers with
the IIO framework and clients can use the IIO
framework to issue read requests for supported
RRADC channels.

Change-Id: I88b5922ab4dc817257042fdaa385768e6f14be57
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-06-02 16:15:22 -07:00
Xiaojun Sang
1057bc674e ASoC: compress: fix unsigned integer overflow check
Parameter fragments and fragment_size are type of u32. U32_MAX is
the correct check.

CRs-Fixed: 1014726
Change-Id: Ia6d4755408646ac4a75724f3c6f2177651875da3
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2016-06-02 16:15:12 -07:00
Shubhraprakash Das
5adaa69766 msm: camera: isp: For vfe version 4.8 do not reset vbif
Do not reset vbif for vfe version 4.8 based on recommendation
from h/w team.

Change-Id: Ia31c3f10c24380d9670cd0ca83834844435e593d
CRs-Fixed: 999619
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-06-02 16:15:00 -07:00
Deepak Katragadda
3eea6009d3 ARM: dts: msm: Enable the GPU clock driver on MSMCOBALT v2
Enable the linux clock driver support for graphics
clocks on MSMCOBALT v2.

CRs-Fixed: 1015446
Change-Id: I78f1d3a1ac9ed09d2f4f266f61a1c14d44b41f53
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-06-02 16:14:47 -07:00
Gidon Studinski
181365feb6 ARM: dts: msm: disable IPA and rmnet-ipa nodes on APQ8096
IPA HW does not exist on APQ8096, so disable it.

Change-Id: Ibd0041cea2ac47180110a1cfe96516d347d9816a
CRs-Fixed: 1019576
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
2016-06-02 16:14:36 -07:00
Osvaldo Banuelos
9479947bb7 ARM: dts: msm: Add full Silver cluster frequency plan for msmcobalt
Support Nominal and Turbo frequency scaling for the Silver
cluster of the msmcobalt chipset. This enables CPU clock scaling
up to the 1.881 GHz.

Change-Id: I1fdde432e267c1161ac5d28bdee4af57c23137ec
CRs-Fixed: 1022853 1021593
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-06-02 16:14:19 -07:00
Deepak Katragadda
587539cd1f clk: msm: clock-mmss-8996: Add graphics clocks support on msm8996 Pro
The graphics clock frequencies need to be updated for
msm8996 Pro. Add support for doing the same using the
bin fuse values.

CRs-Fixed: 1022663
Change-Id: I60185482ae9b5364e297370593d95cce056b314e
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-06-02 16:14:05 -07:00
Subash Abhinov Kasiviswanathan
cdd6e17060 net: core: neighbour: Change the print format for addresses
Print format %p displays the kernel address while bypassing the
kptr_restrict sysctl settings.

Change the print format for addresses from %p to %pK. If
kptr_restrict is enabled, addresses are printed as zeroes. To view
the actual addresses, disable kptr_restrict by -
echo 0 > /proc/sys/kernel/kptr_restrict

CRs-Fixed: 987041
Change-Id: I2eb33c63168ab26818dfdb3e11315f2ce8f24fa5
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2016-06-02 16:13:53 -07:00
Viswanadha Raju Thotakura
0ee5931d85 msm: camera: Configure some of the csiphy registers
Reset the ctrl register while releasing the hardware.

CRs-Fixed: 1021009
Change-Id: Id0687402d56f24ca851916f92f86a145136bb866
Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
2016-06-02 16:13:41 -07:00
Osvaldo Banuelos
9f4d90068f clk: msm: osm: increase unstall timer for PC/RET FSM to 5 us
Increase the power-collapse and retention FSM exit unstall
timer to 5 us. This timer is used to wait after a core asserts
its request to exit PC or RET.

Change-Id: Icb5c5f219a197a158e00f600e68111ff699062b7
CRs-Fixed: 1023187
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-06-02 16:13:28 -07:00
Osvaldo Banuelos
6032091894 clk: msm: osm: increase main PLL minimum L_VAL to 825.6 MHz
Increase miniumum PLL frequency to 825.6 MHz. This is necessary to
ensure stable operation when OSM engages the droop path to the
PLL.

Change-Id: Ide3309d4dc713892703e2eb5ee33c9db7f990156
CRs-Fixed: 1021593
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-06-02 16:13:14 -07:00
Harry Yang
ebfad685ef qcom-charger: use mutex instead of spinlock when calling the regmap API
Slow buses regmap holds a mutex lock, while for fast buses regmap holds a
spinlock. In order to remain compatible with slow buses spinlocks should
not be held before calling the regmap API.

CRs-Fixed: 1017800
Change-Id: I93aa6df8c7ec1916ba23d21d92e477510db949da
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-06-02 16:13:03 -07:00
Mitchel Humpherys
6a70911936 arm64: dma-mapping: Attach IOMMUs as groups
Some devices behind IOMMUs might end up in IOMMU groups due to DMA
aliasing.  The iommu_attach_device API expects a single device in a
group all by its lonesome, so it fails when a device is passed in that's
part of a group.  Use iommu_attach_group to accommodate these types of
devices.

CRs-Fixed: 1023180
Change-Id: I9601efd300c7f428c4576e6ecf6d31791d0b47bd
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2016-06-02 16:12:47 -07:00
Banajit Goswami
78f42e3578 ARM: dts: msm: add WCN3990 BT/FM support for msmcobalt devices
Pass device tree information for WCN3990 BT/FM chipset
presence on MSMCOBALT MTP and CDP targets to machine driver.

Change-Id: Iab4f544532e57682eb5dbfe7865850b8e978f1b4
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2016-06-02 16:12:35 -07:00
Skylar Chang
5e9c943aed ARM: dts: msm: Advertise SG support by rmnet_ipa on msmcobalt
This is needed to enable segmentation pkts offload feature
in IPA-HW called GSO (Generic Segmentation Offload).

Change-Id: If43428f0eb53370ca725480b3cd13e7b53e643c3
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-06-02 16:12:24 -07:00
Siddartha Mohanadoss
7e7f6db7c8 ARM: dts: msm: Add Round robin ADC channels for pmicobalt
Round robin ADC (RRADC) provides clients ability to read
supported channels from PMIcobalt RRADC such as battery ID,
battery thermistors, DCIN and USBIN voltage and current.

Change-Id: If4503b0e25ac151039d1743a007ba1624a2e90f4
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-06-02 16:12:11 -07:00
Skylar Chang
c6cac6d539 msm: rmnet_ipa3: add RMNET_IOCTL_GET_SG_SUPPORT support
While the transport always supports scatter-gather, the
capability advertised through this IOCTL is configured
from the device tree. Add support on ipav3.

Change-Id: Idf626cb5a22d2ed5152ab76dcc5fe56696a631a6
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-06-02 16:12:00 -07:00
Subbaraman Narayanamurthy
b265655edb ARM: dts: msm: rename the flash/WLED devices in pmicobalt
Rename the flash and WLED devices available in cobalt platform
to use the same naming convention.

Change-Id: I812f0f6b38e7e9973cc9a0c8bfd6fb5078f719ff
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-06-02 16:11:48 -07:00
Skylar Chang
9f3090c43d msm: ipa: support GRO feature on msmcobalt
For this GRO feature, IPA-driver should not
de-aggregate the pkt received from modem, also
no need to attach status. Also netmgrd will
call ioctl to wan-driver to indicate when
this feature will be enable.

Change-Id: I1bc6fb87684ee8da6126dc331debf5880adceb4f
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-06-01 15:27:49 -07:00
Rohit Gupta
7668a3726f PM / devfreq: memlat: Prevent deadlock with hotplug in start_hwmon
When start_hwmon() runs with another thread trying to hotplug a
CPU the two threads can enter a deadlock situation as follows:

Thread A (start_hwmon())		Thread B (CPU down)
get_online_cpus()
	|
atomic_inc(&cpu_hotplug.refcount)
					     CPU down
						|
				     mutex_lock(&cpu_add_remove_lock)
						|
				     cpu_hotplug_begin() waits on
				     cpu_hotplug.refcount to reset
register_cpu_notifier()
	|
mutex_lock(&cpu_add_remove_lock)

With this change the notifers are registered and unregistered per
device rather than having a common notifier block for all the memlat
devices and unregistration only happens on stop_hwmon. This makes it
possible to move the registration outside the hotplug lock without
any race between multiple memlat devices.

Change-Id: I6ad561fe4967042e45190aea2c9b7fcfe05bafdd
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
2016-06-01 15:27:34 -07:00
Siddartha Mohanadoss
8b2d1771d2 thermal: tsens: Update critical temperature threshold value
Existing controller health detection uses a critical
temperature threshold of -40degC. Update the value to -95degC
so that there are no false positives seen when min threshold
is disabled and temperature goes below the threshold value.

Change-Id: If27ecfbb7b080080074bfe142f493fbf8f53f673
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-06-01 15:27:21 -07:00
Skylar Chang
687ab4acbd msm: ipa: enable power save to ODU
Remove keep_awake flag from ODU bridge to allow IPA to
go to clock gating.

CRs-Fixed: 1013927
Change-Id: Ic9efb8555ec4bdad2c099719de4ed56677b194ca
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-06-01 15:27:08 -07:00
Skylar Chang
db200c1e6e msm: ipa3: fix to read hw tables from debugfs
Fix to IPA driver debugfs logic to read filtering
and routing directly from HW.

CRs-Fixed: 1020271
Change-Id: I6bb5f9a01e3f41107d7b5bdf7c19557546573463
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-06-01 15:26:55 -07:00
Tatenda Chipeperekwa
57799c7a59 Revert "msm: mdss: hdmi: check clk state before power on"
This reverts commit 05f3cbbe5c
("msm: mdss: hdmi: check clk state before power on"). The check
for clock state was required for earlier target's fast hot plug
use cases, and uses the clock framework for check for clock rates.
This approach does not work on msmcobalt and causes the power on
sequence for HDMI to fail.

CRs-Fixed: 1022772
Change-Id: I320427f810fd35b11335685bae95b3c5fb9c8fee
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-06-01 15:26:40 -07:00
Satya Durga Srinivasu Prabhala
7149162d4e ARM: dts: msm: Add support for MSM8996pro v1.1
Add device tree support for MSM8996pro v1.1 along with different PMIC
configurations it supports.

CRs-Fixed: 1004223
Change-Id: I46f2ec5170fb204e9e0535aca1482b5e39e21de3
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-06-01 15:26:24 -07:00
Susheel Khiani
3b2e2a3ded msm: secure_buffer: Fix possible NULL pointer dereference
Presently we were passing NULL dma_handle while
making dma_alloc_coherent call. This is an issue
as alloc function would try to populate handle
value with dma address and would end up getting
NULL pointer error. Fix this.

Change-Id: I38ebb9bbae2d6e1e1311fe438b3c8fc3f65e5692
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
2016-06-01 15:26:08 -07:00
Shiraz Hashim
9735edbe89 arm: dma-mapping: fix data types to hold size_t
size_t type data should not be held under variable of type
int, as this can truncate large values especially on a
64bit system. Fix it.

Change-Id: I5ad1ab321738772a99920e3fa287bda266cb05ed
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2016-06-01 15:25:54 -07:00
Gilad Landau
1750551815 msm: ipa3: Move IPA RAM mapping to DTS file
Use DTS configuration file to initialize IPA memory partitions
in order to allow per target configuration decoupled from code.

Change-Id: If770b9315807e51e46cd94dec6234ef186cf4fcb
CRs-Fixed: 1022125
Signed-off-by: Gilad Landau <glandau@codeaurora.org>
2016-06-01 15:25:42 -07:00
Chen Feng
13e4f13fde staging: ion : Donnot wakeup kswapd in ion system alloc
Since ion alloc can be called by userspace,eg gralloc.
When it is called frequently, the efficiency of kswapd is
to low. And the reclaimed memory is too lower. In this way,
the kswapd can use to much cpu resources.

With 3.5GB DMA Zone and 0.5 Normal Zone.

pgsteal_kswapd_dma 9364140
pgsteal_kswapd_normal 7071043
pgscan_kswapd_dma 10428250
pgscan_kswapd_normal 37840094

With this change the reclaim ratio has greatly improved
18.9% -> 72.5%

Change-Id: I20ea0e4ad0537f6e90efbc59fb8d56d691ee3bde
Signed-off-by: Chen Feng <puck.chen@hisilicon.com>
Signed-off-by: Lu bing <albert.lubing@hisilicon.com>
Reviewed-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 2ef230531ee171a475fc3ddad5516dd7e09a8a77
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[vinmenon@codeaurora.org: Resolved minor merge conflicts]
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2016-06-01 15:25:30 -07:00
Vijay kumar Tumati
c136a71701 msm: camera: Add support for DPCM modes
DPCM8 and DPCM6 are 10 bit to 8 and 10 bit
to 6 bit compression formats respectively
which sensor outputs and it is decompressed
to 10 bit in CSID

Change-Id: I8ec4de7d9cfa5e9c86d97bd9cb81feddc97dc7b8
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
Signed-off-by: Sureshnaidu Laveti <lsuresh@codeaurora.org>
2016-06-01 15:25:18 -07:00
Abhijeet Dharmapurikar
0849a61bdf platform: qpnp-revid: add definitions for pmicobalt versions
Some workarounds need to be applied only for v1.0 and v1.1 of
pmicobalt. For drivers to check and compare the versions, add
definitions for pmicobalt versions.

CRs-Fixed: 1018090
Change-Id: I3c6c0b470c7d15802c7cf4cb8ced85548dbb81c7
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2016-06-01 15:24:57 -07:00
Deepak Katragadda
6b6fc205b0 clk: msm: clock: Support graphics clocks on MSMCOBALT v2
Add support for controlling the graphics clocks on
MSMCOBALT v2.

CRs-Fixed: 1015446
Change-Id: Ia94606113b112a5e363e342a0ad1d977a48b3d72
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-06-01 15:24:46 -07:00
Deepak Katragadda
ddeec52110 ARM: dts: msm: Add MSMCOBALT v2 specific gfx_stub regulator changes
Use the gfx_stub_vreg regulator node for sourcing the graphics
clocks and GDSC on the pre-silicon platforms. Note that CPR
changes are still required for the graphics rail on the actual
target.

CRs-Fixed: 1015446
Change-Id: Ib92b11c23785e737f91ad09bcbb3d0b849d3a2bf
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-06-01 15:24:31 -07:00
Deepak Katragadda
d7a39b708a ARM: dts: msm: Enable the MMSS clock driver on MSMCOBALT v2
Enable the linux clock driver support for multimedia
clocks on MSMCOBALT v2.

CRs-Fixed: 1015446
Change-Id: Ice373ce1656f1ab045eefd57dcd700a4c20deedf
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-06-01 15:24:17 -07:00
Deepak Katragadda
ef382ea0ea clk: msm: clock: Support multimedia clocks on MSMCOBALT v2
Add support for controlling the multimedia clocks on
MSMCOBALT v2.

CRs-Fixed: 1015446
Change-Id: I636001ea91e7be1e2adec2ea7cd3d9aadfcc39a2
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-06-01 15:24:04 -07:00
Mayank Rana
30c04a7b2b Revert "usb: gadget: gsi: Decrement USB gadget pm usage count on cable disconnect"
'commit 3a7ce1db5661 ("usb: gadget: gsi: Decrement USB gadget pm usage
count on cable disconnect")' added decrementing USB gadget device's pm
usage count from STATE_INITIALIZED which results into multiple time
decrementing USB gadget device's pm usage count on USB cable disconnect
as below:

1. On USB cable disconnect, USB bus suspend event is being received which
post EVT_DISCONNECTED. If state is STATE_CONNECTED, ipa_work_handles()
decrements USB gadget device's pm usage count, and move state to
STATE_INITIALIZED.

2. Due to USB cable disconnect, gsi_disable() posts EVT_DISCONNECTED.
This event is processed into STATE_CONNECTED causing additional decrement
of USB gadget device's pm usage count.

Due to above case, USB goes into low power mode with dwc3's pm usage
count negative. On connecting USB host mode cable, xhci resume is failing
due to dwc3's (parent of xhci) is having negative usage count which results
into no USB host mode functionality (pm_runtime_get_sync() returns -EBUSY).
Hence revert commit to allow USB Host mode functionality.

CRs-Fixed: 1020388
Change-Id: I853aba1d2d03945ee49adde7f0ea483cd406ce2b
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-06-01 15:23:52 -07:00
Stephen Boyd
b06bf2fc36 clk: qcom: Add MSM8996 Global Clock Control (GCC) driver
Add support for the global clock controller found on MSM8996
based devices. This should allow most non-multimedia device
drivers to probe and control their clocks.

Change-Id: I559f5976b56bf8933df2c68fc4e29b2bd0ce1160
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-06-01 15:21:57 -07:00
Prashanth Bhatta
e8d675996c icnss: Add IPC logging
Add IPC logging mechanism so that all the driver logs can be
retrieved on the need basis.
Also use pr_fmt to format the logs so that icnss driver logs are
consistent.

Change-Id: I977b04964ac28c18f4ad85094746aa864f03d0c3
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-06-01 15:21:42 -07:00
Joonwoo Park
d009f9c149 sched: eliminate sched_enable_power_aware knob and parameter
Kill unused scheduler knob and parameter sched_enable_power_aware.  HMP
scheduler always take into account power cost for placing task.

Change-Id: Ib26a21df9b903baac26c026862b0a41b4a8834f3
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2016-06-01 15:21:29 -07:00
Joonwoo Park
462213d1ac sched: eliminate sched_freq_account_wait_time knob
Kill unused scheduler knob sched_freq_account_wait_time.

Change-Id: Ib74123ebd69dfa3f86cf7335099f50c12a6e93c3
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2016-06-01 15:21:18 -07:00
Joonwoo Park
5160d93b6d sched: eliminate sched_account_wait_time knob
Kill unused scheduler knob sched_account_wait_time.  With this change
scheduler always accounts task's wait time into demand.

Change-Id: Ifa4bcb5685798f48fd020f3d0c9853220b3f5fdc
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2016-06-01 15:21:04 -07:00
Laura Abbott
a2ac6d40d3 fs/buffer.c: Revoke LRU when trying to drop buffers
When a buffer is added to the LRU list, a reference is taken which is
not dropped until the buffer is evicted from the LRU list. This is the
correct behavior, however this LRU reference will prevent the buffer
from being dropped. This means that the buffer can't actually be dropped
until it is selected for eviction. There's no bound on the time spent
on the LRU list, which means that the buffer may be undroppable for
very long periods of time. Given that migration involves dropping
buffers, the associated page is now unmigratible for long periods of
time as well. CMA relies on being able to migrate a specific range
of pages, so these these types of failures make CMA significantly
less reliable, especially under high filesystem usage.

Rather than waiting for the LRU algorithm to eventually kick out
the buffer, explicitly remove the buffer from the LRU list when trying
to drop it. There is still the possibility that the buffer
could be added back on the list, but that indicates the buffer is
still in use and would probably have other 'in use' indicates to
prevent dropping.

Change-Id: I253f4ee2069e190c1115afc421dadd27a7fa87dc
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2016-06-01 15:20:51 -07:00
Sathish Ambley
7099c2a6d2 msm: ADSPRPC: Validate the SMMU session count
Make sure that the session count does not exceed the maximum
sessions to avoid buffer overflow.

Change-Id: I1a9830a6f859d7d525247d27d0a143997998d997
Acked-by: Bharath Kumar <bkumar@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2016-05-31 15:28:19 -07:00
Lior David
857cb953f0 wil6210: allow empty WMI commands in debugfs wmi_send
There are many valid WMI commands with only header without any
additional payload. Such WMI commands could not be sent using
the debugfs wmi_send facility. Fix the code to allow sending
of such commands.

Change-Id: I581e099db5d2ee81be4345101aa54352b1d9564f
Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 69218a48005d0c93b8e9ec483f42ead481a43034
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
CRs-Fixed: 1015627
Signed-off-by: Maya Erez <merez@codeaurora.org>
2016-05-31 15:28:08 -07:00
Ingrid Gallardo
6cdf8d4db4 msm: mdss: fix to enable danger for msmcobalt
Add msmcobalt revision to enable danger.

Change-Id: Ie02f67d00c8fe04bf90ded5d4a6ab85c86cf05ad
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-05-31 15:27:56 -07:00
Ram Chandrasekar
0c0bbe061d leds: led-class: Retain the latest user brightness request
Retain the latest user brightness request. This ensures
that when a max brightness limit is altered, the last
brightness request is taken into account, when restoring
the current brightness.

Change-Id: I6461e06f64abe336cabc27a3992d734f1fb745c6
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2016-05-31 15:27:45 -07:00
Mohan Pallaka
a5035ab809 leds: led-class: add support for max_brightness store
Add store interface for max_brightness to allow users
to change the maximum brightness to be supported by
the hardware.

Change-Id: I8b65debdc52ded24227483c4db21aaec63e27927
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2016-05-31 15:27:35 -07:00
Vinayak Menon
9e6c849ebb mm: zcache: remove __GFP_NO_KSWAPD
Remove __GFP_NO_KSWAPD. It no longer exist.

Change-Id: I8b50a06bdae050b3a3c47b80e21d0d2edf18b7c5
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2016-05-31 15:27:23 -07:00
Bob Liu
5248c3b4e4 mm: add WasActive page flag
Zcache could be ineffective if the compressed memory pool is full with
compressed inactive file pages and most of them will be never used again.

So we pick up pages from active file list only, those pages would probably
be accessed again. Compress them in memory can reduce the latency
significantly compared with rereading from disk.

When a file page is shrunk from active file list to inactive file list,
PageActive flag is also cleared.
So adding an extra WasActive page flag for zcache to know whether the
file page was shrunk from the active list.

Change-Id: Ida1f4db17075d1f6f825ef7ce2b3bae4eb799e3f
Signed-off-by: Bob Liu <bob.liu@oracle.com>
Patch-mainline: linux-mm @ 2013-08-06 11:36:17
[vinmenon@codeaurora.org: trivial merge conflict fixes, checkpatch fixes,
fix the definitions of was_active page flag so that it does not create
compile time errors with CONFIG_CLEANCACHE disabled. Also remove the
unnecessary use of PG_was_active in PAGE_FLAGS_CHECK_AT_PREP. Since
was_active is a requirement for zcache, make the definitions dependent on
CONFIG_ZCACHE rather than CONFIG_CLEANCACHE.]
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2016-05-31 15:27:11 -07:00