Commit graph

568907 commits

Author SHA1 Message Date
Subbaraman Narayanamurthy
71baf3a48a power: Add snapshot of smb1351/smb135x charger DT bindings documentation
This devicetree bindings documentation snapshot is taken as of
msm-3.18 commit 85b7eb8ac225be (Merge "ASoC: soc-core: Fix
integer overflow").

Change-Id: I50640b74ffe7b3aa29f9f6ca29a012c25c52d157
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-03-23 21:22:57 -07:00
Subbaraman Narayanamurthy
b495f1af5c power: Remove DT bindings documentation for drivers not present
Since the following drivers are not present under drivers/power,
remove the DT bindings documentation for them.

Change-Id: I41c08c186b649e21ac376a21632df1414904b1c0
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-03-23 21:22:56 -07:00
Subbaraman Narayanamurthy
5cd9c9057b Revert "power: move QTI charger drivers to a new sub-directory qcom-charger"
This reverts commit e4d364b91cf5fabcca10ff8fee31af1ca25b3d1b.
2016-03-23 21:22:55 -07:00
David Keitel
eee3bef6a2 Revert "net: unix: Fix uninitialized warnings when building for ARCH=um"
This reverts commit f8aac738feb06363f4db715754f1e91d39ace021 ("net: unix:
Fix uninitialized warnings when building for ARCH=um").

Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-03-23 21:22:54 -07:00
Jing Zhou
0dc5b22545 msm: camera: isp: fix two corner case handling for the framedrop pattern
This change fixes two corner case handling for the framedrop pattern

a) return the buffer when it is required in the drop frame handling

b) correct an incorrect framedrop pattern update when we miss the reg
   update

Change-Id: I6d9b7715d3f0545a673d70e7744141f92bbc3a9d
Signed-off-by: Jing Zhou <jzhou70@codeaurora.org>
2016-03-23 21:22:53 -07:00
Shubhraprakash Das
da01b594e1 msm: camera: isp: Reduce burst count
Decrement the burst count for dual stream in case of dual vfe. The
count is tracked in both streams and hence should be reduced for
both streams once buffer is done from both vfe.

Change-Id: I681390c2b3a2a0c4861721204ac19302335bf542
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-03-23 21:22:52 -07:00
Jing Zhou
ffa7e518d5 msm: camera: isp: fix a cts test failure due to framedrop pattern
The ITS HAL3 test failed due to broken frames and green frames. The
root cause of the issue is due to the framedrop pattern setting in the
isp driver. This change fixes the following issues:

a) Keep tracking the hw framedrop pattern even after the reg update ack
miss.

b) Remove a race condition between the framedrop pattern setting and
request frame ioctl handling.

c) Correctly set the framedrop pattern after the request frame.

Change-Id: I862046c718d6e3a28d5f372eb2eb5e371471eb58
Signed-off-by: Jing Zhou <jzhou70@codeaurora.org>
2016-03-23 21:22:51 -07:00
Xu Han
39385c4921 msm: camera: Update combo clk mask in CSIPHY
For 14nm CSIPHY, the 5th lane is the clock lane
in combo mode. So update the mask value to 0x10.

Change-Id: I628031b19c1bd99d6c117e8b8db05af95f540106
Signed-off-by: Xu Han <hanxu@codeaurora.org>
2016-03-23 21:22:51 -07:00
Vijay kumar Tumati
ca20ea97a9 msm: camera: Enable ov2685 on msm8937
Changing csiphy clock lane setting and removing a
register write in combo mode to enable ov2685 on
msm8937.

Change-Id: I8e6d987a8072a0c2679f7b53bfd3522b8dfa5297
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
2016-03-23 21:22:50 -07:00
Abhishek Kondaveeti
ab75fe5eea msm: isp: Handle pingpong bit mismatch gracefully
Ping pong mismatch occurs when the interrupts miss happens.
Handle this scenario properly by sending error to userspace.

Change-Id: Idd8f9979a9b0e8c6a1989dd89ed6b98ccaa54ac9
Signed-off-by: Abhishek Kondaveeti <akondave@codeaurora.org>
2016-03-23 21:22:49 -07:00
Harsh Shah
a2b1739e1e msm: isp: Make HALT independent from disable_camif
AXI should be halted whenever all HW streams are stopping. This will
improve KPI even for RDI streams. Currently halt is determined using
Disable_Camif which is only valid for PIX streams. Decouple the two to
improve KPI on RDI and avoid wait.
Also, cleanup after timeout in start_axi. Remove handling of SD_SHUTDOWN
to avoid multiple release.

Change-Id: I09db8adb766d2e7889443f779a716aaa2f6c09d1
Signed-off-by: Harsh Shah <harshs@codeaurora.org>
2016-03-23 21:22:48 -07:00
Lakshmi Narayana Kalavala
e29112a1f7 msm: camera: Update camera drivers
Add changes to update camera drivers to:

1. Update necessary Kconfig files to support camera driver
compilation.
2. Support minor changes to V4L framework.
3. Export uapi headers to header_install export location.

Signed-off-by: Seemanta Dutta <seemanta@codeaurora.org>
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
2016-03-23 21:22:47 -07:00
Xu Han
8d9a297fc5 msm: camera: Decouple CSIPHY 3phase clocks
3phase clock is required in CPHY mode but not in DPHY mode.
Decouple 3phase clocks from other CSIPHY clocks in order to
not enable 3phase clock when camera is in DPHY mode.

Change-Id: I10f9a175ef937dab30afd9604cca3e870451b0c2
Signed-off-by: Xu Han <hanxu@codeaurora.org>
2016-03-23 21:22:46 -07:00
Jing Zhou
a69176361c msm: camera: isp: Remove buffer queue shared list
Remove the shared list of buffer queue that is used in case of
dual vfe. Whenever a buffer is dequeued from the buffer queue
program it on both vfe and ensure that buffer is dequeued only
once by compositing the buf done irq.
Also, program scratch buffer for stats stream

Change-Id: I96cd0a97b24bf6bc0223cbee8d1fc6bf2ecc7c49
Signed-off-by: Harsh Shah <harshs@codeaurora.org>
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
Signed-off-by: Jing Zhou <jzhou70@codeaurora.org>
2016-03-23 21:22:45 -07:00
Lakshmi Narayana Kalavala
ee68f004ec msm: camera: Fix memory corruption with vb2 buffers
The camera generic buffer manager and isp buffer
manager keep references of vb2 buffers locally during
buffer circulation. If for some reason the vb2 buffers
are freed from a cleanup call from mediaserver. The memory
for the buffers is freed. But the camera buffer managers
still access them for a fraction of time before the cleanup
call is triggered from daemon process. Hence make sure
to access the vb2 buffers only after checking for
the existence in vb2 queues to avoid memory corruption.

Change-Id: I7a1e5f9a3af3345e0c37d3208facbab107a6b9ed
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
2016-03-23 21:22:45 -07:00
Jing Zhou
102fd824c1 msm: isp: use proper spin lock on isr and tasklet
When CPU do spin lock irq save, it will disable irq/preemption.
If the same CPU do spin lock (without disabling irq),
then irq context can preempt and acuire the lock hold by user,
which will possibly hang CPU.

Avoid the issue to use spin lock irq save consistantly.

Change-Id: I52e17d189668166ae126dc5948fe51bd79ae9859
Signed-off-by: Peter Liu <pingchie@codeaurora.org>
Signed-off-by: Jing Zhou <jzhou70@codeaurora.org>
2016-03-23 21:22:44 -07:00
Jing Zhou
58753fcfa3 msm: camera: isp: Remove false error message in isp driver
Due to the tasklet scheduling, SOF and Epoch irq handling can be out of
order. This causes some false isp error message being reported. This change
removes the false error message due to the out of order irq handling.
This change will remove this unnecessary check.

Change-Id: I7dd7d36692f63a53e54e7afcee4d9ed32cb22bc6
Signed-off-by: Jing Zhou <jzhou70@codeaurora.org>
2016-03-23 21:22:43 -07:00
Shubhraprakash Das
e97d470d3e msm: camera: isp: Remove memset and spin lock initialization
Do not memset the buffer queue since its already reset during free.
This also removes the requirement to reinitialize the buffer queue
lock

Change-Id: Ifccbd3fbffb822f47898cff5bfcae0e53ef7f275
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
Signed-off-by: Jing Zhou <jzhou70@codeaurora.org>
2016-03-23 21:22:42 -07:00
Harsh Shah
725a1ccf1f msm: camera: isp: Track put_buf per VFE
Update bit mask per VFE for put_buf instead of only count. In flush buf
update put buf mask first and put buffer if put_mask is same as get_mask

Change-Id: I8b128094e4ae62e5676a46e6a4624e4933234266
Signed-off-by: Harsh Shah <harshs@codeaurora.org>
Signed-off-by: Jing Zhou <jzhou70@codeaurora.org>
2016-03-23 21:22:41 -07:00
Jing Zhou
cc999c3a99 msm: camera: isp: Debug double add state check
Add changes to track buffer being added to list. Add error
messages if buffer is found to be added twice. Add state checking
in the isp driver.

Change-Id: I1504e8984db3578009b8944719bbd559ad57d63d
Signed-off-by: Harsh Shah <harshs@codeaurora.org>
Signed-off-by: Jing Zhou <jzhou70@codeaurora.org>
2016-03-23 21:22:40 -07:00
Seemanta Dutta
0288b6f43b Revert "msm: camera: Update camera drivers"
This reverts commit 282882c50fe26957c00bd598e8cab75d00251e2e.

Signed-off-by: Seemanta Dutta <seemanta@codeaurora.org>
2016-03-23 21:22:39 -07:00
Arun Menon
bd997521e6 msm: vidc: Enable Video driver in defconfig
Enable Video driver in both defconfigs - msm-perf_defconfig
and msm_defconfig.

Signed-off-by: Arun Menon <avmenon@codeaurora.org>
2016-03-23 21:22:39 -07:00
Arun Menon
c9647fc5cf msm: vidc: Add Video driver for MSM targets
Add snapshot for Video driver source for MSM targets. The code is
migrated from msm-3.18 kernel at the below commit level -
d5809484bb1bf5864dad2f081b0145224762963a.

Signed-off-by: Arun Menon <avmenon@codeaurora.org>
2016-03-23 21:22:38 -07:00
Tapas Kumar Kundu
a7d146c290 defconfig: 8996: Enable msm_performance module
This module provides support to userspace entity for hotplugging
and setting cpufreq policy min/max limits. It can also detect
cpu/io workload and notify userspace via sysfs nodes.

A userspace entity can specify a CPU mask and the number of CPUs
it wants online within that mask and this module will try to make
a best effort to keep those many CPUs online. Userspace can also
specify the min and max limits on CPUs instead of writing to the
scaling_min/max nodes from sysfs so that if any CPU is offline
this module maintains a vote for it which is applied
once the CPU comes back online.

A userspace entity can also set threshold value in sysfs nodes of
this module for cpu/io workload detection and this module can notify
userspace entity when that crietia is met via sysfs nodes.

Change-Id: Ib8185b684e92e28b766f20954df0f63cdbeec1e4
Signed-off-by: Tapas Kumar Kundu <tkundu@codeaurora.org>
2016-03-23 21:22:37 -07:00
Tapas Kumar Kundu
3296f0718a soc: qcom: msm_perf: update description for msm_performance
This updates description of msm_performance module in kernel
menuconfig.

Signed-off-by: Tapas Kumar Kundu <tkundu@codeaurora.org>
2016-03-23 21:22:36 -07:00
Tapas Kumar Kundu
03e7659014 soc: qcom: msm_perf: Replace obsolete cpulist_scnprintf api
Replace obsolete cpulist_scnprintf api with cpumap_print_to_pagebuf
for kernel-4.4

Signed-off-by: Tapas Kumar Kundu <tkundu@codeaurora.org>
2016-03-23 21:22:35 -07:00
Vijay Ganti
5151ee897d soc: qcom: msm_perf: Detect and notify when peak perf Cluster load is seen
Detect Perf cluster peak loads near FMAX based on the trigger
thresholds set. On meeting the peak load criteria, the userspace
is notified to take action by applying parameters to enhance performance.

CRs-Fixed: 969499
Change-Id: Ie9687bf1aa832434dc61d20056f91a096d7be4f0
Signed-off-by: Vijay Ganti <viganti@codeaurora.org>
2016-03-23 21:22:34 -07:00
Tapas Kumar Kundu
5e635690ee soc: qcom: msm_perf: use device_offline/device_online api
Replace obsolute cpu_up/cpu_down api with device_online/
device_offline api for cpu hotplugging

Change-Id: I808c733b0109ee6cf6183be229592d67f760d5cc
Signed-off-by: Tapas Kumar Kundu <tkundu@codeaurora.org>
2016-03-23 21:22:33 -07:00
Tapas Kumar Kundu
56f6d6c352 soc: qcom: msm_perf: free allocated memory if error happens
If any error happens during allocating memory or initializing cluster
structure then it returns error but it does not free already
allocated memory. This may cause memory leak in certain scenerios.

This change prevents memory leak by freeing memory when error
happens during initialization.

Change-Id: I820acd676dc5baff270c2093ca24a1014c25dabb
Signed-off-by: Tapas Kumar Kundu <tkundu@codeaurora.org>
2016-03-23 21:22:33 -07:00
Tapas Kumar Kundu
7a391c8e10 soc: qcom: msm_perf: prevent cpumask bits to be NULL
This changes fixes NULL pointer derefence issue for
cpumask variabls for clusters.

Change-Id: Ifa73a43213b6afdfde57285393f9729a954acfc3
Signed-off-by: Tapas Kumar Kundu <tkundu@codeaurora.org>
2016-03-23 21:22:32 -07:00
Omprakash Dhyade
025f0650f0 soc: qcom: msm_perf: Add sysfs node to report cpu hotplug events
cpufreq governor tunables could be updated
only when cpu is online. Userspace might need
to apply and restore these tunables depending
on the power/perf need.
Provide sysfs node for userspace to poll over
and which gets notified on CPU_ONLINE and CPU_DEAD
events for any cpu. This mechanism could be
utilized to know when cpus come online
and then restoring or applying cpufreq governor
tunables. CPU_DEAD notification is also provided
for completeness.

Change-Id: I221a97c49a72da217e5e4b46a16a26042ef5c83f
Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org>
2016-03-23 21:22:31 -07:00
Tapas Kumar Kundu
c022987819 soc: qcom: msm_perf: Add support for enter/exit cycle for io detection
Add support for enter/exit cycle sysfs nodes for io detection

There are some usecases which may benefit from different enter/exit
cycle load criteria for IO load. This change adds support for
that.

Change-Id: Iff135ed11b92becc374ace4578e0efc212d2b731
Signed-off-by: Tapas Kumar Kundu <tkundu@codeaurora.org>
2016-03-23 21:22:30 -07:00
Tapas Kumar Kundu
9ccb569bd7 soc: qcom: msm_perf: Add support for multi_cycle entry/exit nodes
Add support for multi_enter_cycles/multi_exit_cycles per cluster

There are some usecases which may benefit from different enter/exit
cycle load criteria for multimode cpu load. This change adds support for
that.

Change-Id: I3408405307ca03b9bba3f03e216ef59b98f29832
Signed-off-by: Tapas Kumar Kundu <tkundu@codeaurora.org>
2016-03-23 21:22:29 -07:00
Tapas Kumar Kundu
e85e0f6452 soc: qcom: msm_perf: Add timers to exit SINGLE mode
Certain governors may stop sending out notifications once CPUs enter
idle at min frequency.If governor's notifications stop then single mode
will not exit for long time. It can happen only if the exit conditions are
set in such a way that the time taken to exit single mode exceeds the time
for the governor to ramp down, idle out and hence stop sending
notifications leaving the system in single mode indefinitely.

This change adds separate enter/exit cycle sysfs nodes along with a per
cluster non-deferrable timer for single mode exit. The timer is armed only
when the load starts falling below the exit load threshold and is
cancelled when either the load starts going up or SINGLE mode is exited
due to exceeding exit cycle count. On expiry the timer resets SINGLE mode
and the enter/exit cycle counts.

Change-Id: I13552b2f4085c435b917833a2993f8c64ff4ed2f
Signed-off-by: Tapas Kumar Kundu <tkundu@codeaurora.org>
2016-03-23 21:22:28 -07:00
Prachee Ramsinghani
010aa5bd7c soc: qcom: msm_perf: Optionally compile out hotplug tunables
If msm_performance module and some other module with the
core hotplug capability (like core_ctl) co-exist and
both of them try to hotplug the cores system inconsistencies
can occur. To avoid such behavior sysfs nodes needed for hotplug
support in msm_performance module are compiled out.

Change-Id: I25e8404ce0581e718d6b55cd0e1f5c7da8e92db5
Signed-off-by: Prachee Ramsinghani <pracheer@codeaurora.org>
2016-03-23 21:22:27 -07:00
Rohit Gupta
ad20b57ffb soc: qcom: msm_perf: Detect & notify userspace about heavy CPU loads
Detect single and multi threaded heavy workloads based on loads
received from interactive governor.
- If the max load across all the CPUs is greater than a
  user-specified threshold for certain number of governor windows
  then the load is detected as a single-threaded workload.
- If the total load across all the CPUs is greater than a
  user-specified threshold for certain number of governor windows
  then the load is detected as a multi-threaded workload.
If one of these is detected then a notification is sent to the
userspace so that an entity can read the nodes exposed to get an
idea of the nature of workload running.

Change-Id: Iba75d26fb3981886b3a8460d5f8999a632bbb73a
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
2016-03-23 21:22:27 -07:00
Rohit Gupta
d1e73b2919 soc: qcom: msm_perf: Add detection for heavy IO workloads
Some workloads spend a lot of time in IO activity and need higher
performance from system resources (for eg. CPU/DDR frequencies)to
complete with decent performance. Unfortunately cpufreq governors and
other system resources crucial for IO are tuned for general usecases
and hence might be slower to react to such demanding IO workloads.

This patch adds functionality to detect IO workloads and then send
hints to userspace of the detected activity so that userspace can
take necessary tuning action to prepare the system for such activity.
IO activity is tracked every interactive governor timer boundary and
if the percentage of iowait time in each cycle exceeds certain
threshold continuously for certain number of cycles then heavy IO
activity is detected.

Change-Id: I73859517cb436e50340ef14739183e61fc62f90f
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
2016-03-23 21:22:26 -07:00
Rohit Gupta
fd98405874 soc: qcom: msm_perf: Rename the hotplug structure as cluster
The structure cpu_hp responsible for keeping stats related to CPU
hotplug operations is basically doing so for each cluster. Renaming
it as 'cluster' in this patch so that it can be used to store any
cluster-specific stats in future modifications to the code.

Change-Id: I8ae34c883b932631341379baaa6c39e144c5c86f
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
2016-03-23 21:22:25 -07:00
Rohit Gupta
11ff15ea43 soc: qcom: msm_perf: Fix a race condition in hotplug callback
msm_performance relies on userspace to initialize cluster related
variables such as num_clusters, managed_cpus etc. Once num_clusters
is set the cluster related data structures are initialized and
userspace is allowed to set them.
However there could be a race where between num_clusters being set
and the cluster data structures being allocated, there is a hotplug
activity which would invoke the hotplug callback which in turn tries
to access managed_cpus. managed_cpus might not have been allocated by
that time resulting in a NULL pointer access in the callback causing
kernel panic.

Change-Id: Ia40af624322a89e0c0f9598bf7eea059e6969ebe
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
2016-03-23 21:22:24 -07:00
Pracheer
a47233f55b soc: qcom: Avoid accessing invalid CPU ids
While getting input for min and max freq from userspace,
checking against just the number of present CPUs can
cause an access to an invalid CPU id if the userspace
input is not properly constructed for a particular
target.
This change prevents that from happening by
checking against num_present_cpus() - 1 so that
invalid CPU ids are not considered while accepting
input from userspace.

Change-Id: I9e52a175ff8ea9448a0676695a63ffddfa12419e
Signed-off-by: Pracheer <pracheer@codeaurora.org>
2016-03-23 21:22:23 -07:00
Pracheer
d4fe676390 soc: qcom: Fix for loop exit condition in msm_perf module
Fix the upper limit on the number of cores to be offlined
in try_hotplug function.

Change-Id: I8bcfddac16727b907f40bd319cf4128d49937293
Signed-off-by: Pracheer <pracheer@codeaurora.org>
2016-03-23 21:22:22 -07:00
Rohit Gupta
ab06a7e2c0 soc: qcom: msm_perf: Offline cores based on their power cost
Some CPUs might have higher operating power costs than others.
While honoring hotplug requests, offline cores with higher power
costs than others within a cluster.
Fallback to the conventional way of offlining CPUs if the power
costs for CPUs are unavaialable.

Change-Id: Ia970bbe751ef5ffbc716ab5d8a7069ee373d8846
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
2016-03-23 21:22:22 -07:00
Rohit Gupta
a6928ae603 soc: qcom: msm_performance: Maintain correct CPU offline status
As per the current code, if any other entity decides to offline a
CPU and the module disallows it from coming up to meet the current
request, when cluster control is released the CPU in question might
be left offline since the module only plugs back in cores which it
itself offlined. Hence it is crucial to maintain a correct status of
offlined cores to be brought back up online on control release request.

This change identifies the CPU that module prevents from being onlined
so that it is restored back when cluster control is released.

Change-Id: I87831eca879d1cf7d33f88a881e0427641e39bd6
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
2016-03-23 21:22:21 -07:00
Rohit Gupta
86d4e1554f soc: qcom: Manage multipe clusters at a time in msm_perf module
Adding support to manage multiple clusters at a time in
msm_performance driver. The number of clusters and the respective
masks are initialized once from userspace and then the max_cpus
tunable can be used to manage the CPUs to be put online in the
cluster thereafter.

Change-Id: I35a80af37e1ecedbc53670edd65698170fe349e1
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
2016-03-23 21:22:20 -07:00
Rohit Gupta
5c8690eb75 soc: qcom: Add cpufreq limits voting mechanism to msm_perf module
Userspace might need to set scaling_min/scaling_max for different
usecases based on perf/power requirement.
Currently available userspace nodes exposed by cpufreq framework
might not be appropriate in situations where userspace wants to
revert back its vote and the CPU in question is offline. Add support
to msm_performance module to set min/max limits on cpufreq for
different CPUs such that the module maintains the userspace vote
across hotplugs and applies it whenever CPU policy gets updated
(after it comes online).

Change-Id: I1fab2a8b63d4ba13465ecd36adecddcb7c63b43a
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
2016-03-23 21:22:19 -07:00
Rohit Gupta
c4d4ef627d soc: qcom: Add a msm_performance module
Sometimes for power saving reasons we might want to keep fewer CPUs
online without adversely affecting performance for certain real world
usecases. This module helps to provide that hotplug support to the
userspace such that it tries to make a best effort in keeping a certain
number of CPUs online as specified by the userspace.
It allows any userspace entity to specify the CPUs that it wants to
manage with this module and of those, the number of CPUs that should be
kept online.

Change-Id: I82c6d6e998d3740ad6f8c67b47344ce87f328b8b
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
2016-03-23 21:22:18 -07:00
Stepan Moskovchenko
5c564b7cca arm64: Log the machine name string during boot up
The change to refactor kernel/setup.c to use the common
of_flat_dt_get_machine_name() API has apparently removed
the line which prints the device tree model string during
boot. Having the model string in the kernel log is helpful,
so add it back in. This change was already merged in past
but possibly got overridden during upmerge. Add it back.
While at it, add back print for the processor name and
its rev id as well.

Change-Id: I7dccc3ab00f5b67753cdd256846a522596c5058f
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
[satyap: trivial merge conflict resolution]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-03-23 21:22:17 -07:00
Sanrio Alvares
d220700089 ARM: dts: apq: add apq8096pro Liquid device support
Add support for apq8096 Liquid devices, using msm8996pro Liquid data
as a starting point.

Change-Id: I0597d9dbdd7fc1d2e6f4492e90e6fcfd2e80c3fd
Signed-off-by: Sanrio Alvares <salvares@codeaurora.org>
2016-03-23 21:22:17 -07:00
Liam Mark
60eb84a548 skbuff: support disabling of skb fragment cache
Add config support to disable the network skb fragment cache.
Enabling this option ensures that when allocating skbs the network
skb fragment cache will not be used.

Disabling use of the fragment cache can be useful on some low end
targets because it reduces memory pressure.

Change-Id: If3be82741a51d9275e41ca2eca99db3d1a4b2fcb
Signed-off-by: Liam Mark <lmark@codeaurora.org>
[satyap: trivial merge conflict resolution]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-03-23 21:22:16 -07:00
Christoph Lameter
8cc0e37a56 vmstat: Remove BUG_ON from vmstat_update
If we detect that there is nothing to do just set the flag and do not
check if it was already set before.  Races really do not matter.  If the
flag is set by any code then the shepherd will start dealing with the
situation and reenable the vmstat workers when necessary again.

Since commit 0eb77e988032 ("vmstat: make vmstat_updater deferrable again
and shut down on idle") quiet_vmstat might update cpu_stat_off and mark
a particular cpu to be handled by vmstat_shepherd.  This might trigger a
VM_BUG_ON in vmstat_update because the work item might have been
sleeping during the idle period and see the cpu_stat_off updated after
the wake up.  The VM_BUG_ON is therefore misleading and no more
appropriate.  Moreover it doesn't really suite any protection from real
bugs because vmstat_shepherd will simply reschedule the vmstat_work
anytime it sees a particular cpu set or vmstat_update would do the same
from the worker context directly.  Even when the two would race the
result wouldn't be incorrect as the counters update is fully idempotent.

Change-Id: I4b46e471024ff4cac2b32234dffb3dfcf91713b6
Reported-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Git-commit: 587198ba5206cdf0d30855f7361af950a4172cd6
[shashim@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2016-03-23 21:22:15 -07:00