Commit Graph

564054 Commits

Author SHA1 Message Date
mydongistiny
df6d5689c2 cpufreq: implement cultivation governor v1.5
cpufreq: cultivation: bring in initial release
 -based off of caf 4.4 commits
 -uses per-cpu timers
 -use display_state for screen off timer
    with option to set different timer rate when screen off
 -improrted fastlane with threshold from blu_active
Signed-off-by: mydongistiny <jaysonedson@gmail.com>

cpufreq: cultivation: update with a few new tuneables
added in:
go_lowspeed_load
validate above_hispeed_delay
check hispeed_freq is within the policy limits
powersave_bias
version bump to 1.5
Signed-off-by: mydongistiny <jaysonedson@gmail.com>
2018-07-19 15:26:16 +02:00
djb77
8819ba6315 cpufreq: Add cpufreq_notify_utilization
cpufreq_notify_utilization - notify CPU userspace about CPU utilization change

This function is called everytime the CPU load is evaluated by the
ondemand governor. It notifies userspace of cpu load changes via sysfs.
2018-07-19 15:26:06 +02:00
Rohit Gupta
c839449f34 cpufreq: Add a notifer chain that governors can use to report information
Some modules can benefit from getting additional information cpufreq
governors use to make frequency switch decisions.
This change lays down a basic framework that the governors can use
to report additional information (Eg: CPU's load) information to
the clients that subscribe to cpufreq govinfo notifier chain.

Change-Id: I511b4bdb7d12394a31ce5352ae47553861e49303
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
[imaund@codeaurora.org: resolved context conflicts]
Signed-off-by: Ian Maund <imaund@codeaurora.org>
2018-07-19 15:25:38 +02:00
Noxxx
b46f9c3532 drivers: cpufreq: merge 8895 Interactive Gov DYNAMIC_MODE 2018-07-19 15:24:04 +02:00
BlackMesa123
8e4fa59b26 jackpot: config: enable state notifier
Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-19 15:23:49 +02:00
BlackMesa123
15c016996b dpu_7885: add state notifier hooks
Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-19 15:23:39 +02:00
DarkLord1731
2ef6aaec58 Update State Notifier 2018-07-19 15:23:24 +02:00
Pranav Vashi
e6cb8af990 samsung: Add state notifier driver
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Luca Grifo <lg@linux.com>
Signed-off-by: djb77 <dwayne.bakewell@gmail.com>
2018-07-19 15:23:01 +02:00
BlackMesa123
6b8b7b6d66 jackpot: config: enable wireguard
Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-19 15:22:46 +02:00
Jason A. Donenfeld
ab705983a5 net/wireguard: add wireguard importer
Signed-off-by: djb77 <dwayne.bakewell@gmail.com>
2018-07-19 15:22:34 +02:00
ananjaser1211
7bc62ee95b jackpot: config: Enable NTFS Support 2018-07-19 15:22:23 +02:00
Barna Keresztes
7ebe8f2cd7 Enable Dex with any HDMI adapter
Adapted to S2MU004 CCIC Drivers

Signed by Noxxxious <f.catzgerald@gmail.com>
2018-07-19 15:21:12 +02:00
BlackMesa123
2476b0fe15 jackpot: config: enable dynamic fsync
Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-19 15:20:21 +02:00
BlackMesa123
b376f3add4 fs: convert dynamic fsync to state notifier
Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-19 15:19:59 +02:00
googyanas
40c33a5cc2 fs: implement Dynamic FSync 2.0 (thx andip71) 2018-07-19 15:16:18 +02:00
googyanas
7295c7e958 fs/sync.c: make sync_file_range(2) use WB_SYNC_NONE writeback
sync_file_range(2) is documented to issue writeback only for pages that
are not currently being written.  After all the system call has been
created for userspace to be able to issue background writeout and so
waiting for in-flight IO is undesirable there.  However commit
ee53a89 ("mm: do_sync_mapping_range integrity fix") switched
do_sync_mapping_range() and thus sync_file_range() to issue writeback in
WB_SYNC_ALL mode since do_sync_mapping_range() was used by other code
relying on WB_SYNC_ALL semantics.

These days do_sync_mapping_range() went away and we can switch
sync_file_range(2) back to issuing WB_SYNC_NONE writeback.  That should
help PostgreSQL avoid large latency spikes when flushing data in the
background.

Andres measured a 20% increase in transactions per second on an SSD
disk.

Signed-off-by: Jan Kara <jack@suse.com>
Reported-by: Andres Freund <andres@anarazel.de>
Tested-By: Andres Freund <andres@anarazel.de>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2018-07-18 23:29:39 +02:00
Francisco Franco
20672b91d9 fs: sync: if we're blocking fsync then we should also avoid getting the file descriptor, avoiding some overhead 2018-07-18 18:39:41 +02:00
franciscofranco
13e761dc8a fs: fsync: add a toggle to enable or disable fsync()
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Tkkg1994 <luca.grifo@outlook.com>
2018-07-18 18:39:28 +02:00
googyanas
0e22910714 fs/sync: Make sync() satisfy many requests with one invocation
Dave Jones reported RCU stalls, overly long hrtimer interrupts, and
amazingly long NMI handlers from a trinity-induced workload involving
lots of concurrent sync() calls (https://lkml.org/lkml/2013/7/23/369).
There are any number of things that one might do to make sync() behave
better under high levels of contention, but it is also the case that
multiple concurrent sync() system calls can be satisfied by a single
sys_sync() invocation.

Given that this situation is reminiscent of rcu_barrier(), this commit
applies the rcu_barrier() approach to sys_sync().  This approach uses
a global mutex and a sequence counter.  The mutex is held across the
sync() operation, which eliminates contention between concurrent sync()
operations.  The counter is incremented at the beginning and end of
each sync() operation, so that it is odd while a sync() operation is in
progress and even otherwise, just like sequence locks.

The code that used to be in sys_sync() is now in do_sync(), and
sys_sync()
now handles the concurrency.  The sys_sync() function first takes a
snapshot of the counter, then acquires the mutex, and then takes another
snapshot of the counter.  If the values of the two snapshots indicate
that
a full do_sync() executed during the mutex acquisition, the sys_sync()
function releases the mutex and returns ("Our work is done!").
Otherwise,
sys_sync() increments the counter, invokes do_sync(), and increments
the counter again.

This approach allows a single call to do_sync() to satisfy an
arbitrarily
large number of sync() system calls, which should eliminate issues due
to large numbers of concurrent invocations of the sync() system call.

Changes since v1 (https://lkml.org/lkml/2013/7/24/683):

o	Add a pair of memory barriers to keep the increments from
	bleeding into the do_sync() code.  (The failure probability
	is insanely low, but when you have several hundred million
	devices running Linux, you can expect several hundred instances
	of one-in-a-million failures.)

o	Actually CC some people who have experience in this area.

Reported-by: Dave Jones <davej@redhat.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Jan Kara <jack@suse.cz>
Cc: Curt Wohlgemuth <curtw@google.com>
Cc: Jens Axboe <jaxboe@fusionio.com>
Cc: linux-fsdevel@vger.kernel.org

Signed-off-by: Paul Reioux <reioux@gmail.com>
2018-07-18 18:39:10 +02:00
Pavel
fbb8261e42 drivers: mmc: sysfs interface to Enable / Disable CRC
Enabling software CRCs on the data blocks can be a significant (30%) performance cost, and for other reasons may not always be desired. CRC is a mechanism aiming to prevent data corruption when enabled (reduce the performance around 30%). So if you disable it (improve the performance) but your data can be corrupted. Use it at your risk.

 * ***** SysFs interface :
 *
 * /sys/module/mmc_core/parameters/crc
 *
 * Enable / Disable CRC
 *
 * echo N > /sys/module/mmc_core/parameters/crc (Disabled) or
 * echo 0 > /sys/module/mmc_core/parameters/crc (Disabled)
 *
 * echo Y > /sys/module/mmc_core/parameters/crc (Enabled) or
 * echo 1 > /sys/module/mmc_core/parameters/crc (Enabled)
 *
 *
 * ***** (default = Enabled)

Signed-off-by: Pafcholini <pafcholini@gmail.com>
Signed-off-by: Pafcholini <nadyaivanova14@gmail.com>
2018-07-18 18:38:55 +02:00
Dave Kleikamp
46b6f0c2da AIO: Don't plug the I/O queue in do_io_submit()
Asynchronous I/O latency to a solid-state disk greatly increased between the 2.6.32 and 3.0 kernels.
By removing the plug from do_io_submit(), we observed a 34% improvement in the I/O latency.
Unfortunately, at this level, we don't know if the request is to
a rotating disk or not.

Change-Id: I7101df956473ed9fd5dcff18e473dd93b688a5c1
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Cc: linux-aio@kvack.org
Cc: Chris Mason <chris.mason@oracle.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: ahmedradaideh <ahmed.radaideh@gmail.com>
2018-07-18 18:38:26 +02:00
FAROVITUS
5d9ace0bbc Kernel: Reduce time to sleep 2018-07-18 18:38:05 +02:00
Steve Muckle
f09f5bb968 kernel: reduce sleep duration in wait_task_inactive
Sleeping for an entire tick adds unnecessary latency to
hotplugging a cpu (cpu_up).

Change-Id: Iab323a79f4048bc9101ecfd368e0f275827ed4ab
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
[rameezmustafa@codeaurora.org]: Port to msm-3.18]
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2018-07-18 18:36:32 +02:00
Chester Kener
59d149cc7b block: Disable add_random
add_random was implemented for spinning hard disks.  It only slows SSDs down.  Read here http://wiki.samat.org/SSD for more info.

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
2018-07-18 18:36:09 +02:00
BlackMesa123
1230ac4e61 jackpot: config: enable selinux fake enforcing
Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-17 20:12:10 +02:00
BlackMesa123
39a5dc82cb selinux: togglable selinux status
This commit allows to enable/disable via config @jesec Fake Enforcing Status patch or @jcadduono SELinux Force Enforcing/Permissive patch

Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-17 19:02:01 +02:00
BlackMesa123
61146cf242 selinux: togglable SEC_SELINUX implementation
Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-17 18:47:29 +02:00
Tkkg1994
b04e106853 selinux: remove debug and enforce flag 2018-07-17 18:05:56 +02:00
Tkkg1994
0838961e48 af_inet: let knox be disablable 2018-07-17 17:26:55 +02:00
BlackMesa123
4e3915f09c jackpot: config: disable Knox/Security related features
Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-17 15:25:33 +02:00
BlackMesa123
05c050cc42 drivers: camera-pp: fix typo
Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-17 15:21:29 +02:00
BlackMesa123
ce5d528cc3 arm64: Kconfig: fix typo
Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-17 15:15:59 +02:00
BlackMesa123
8a5686514a firmware: fix duplicated warning
Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-17 14:59:35 +02:00
BlackMesa123
641ba66640 drivers: scsc: fix uninitialized warning
Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-17 14:58:37 +02:00
BlackMesa123
90568e47d9 Fix GCC6 compile warnings (-Wmisleading-indentation)
Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-17 14:56:47 +02:00
BlackMesa123
399d0bd1f8 drivers: zinitix: fix compile warnings
Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-17 14:19:29 +02:00
BlackMesa123
60fc92b6cb jackpot: config: enable dtb.img compile
Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-17 14:10:37 +02:00
BlackMesa123
02d452e21e dts: togglable jackpot dts compile
Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-17 14:08:19 +02:00
James Christopher Adduono
cdc35a950b Introduce Exynos dtbtool to the Linux build system 2018-07-17 14:03:19 +02:00
BlackMesa123
21acf76397 jackpot: config: enable MODULE_FORCE_LOAD/UNLOAD
Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-17 13:51:10 +02:00
Christopher N. Hesse
92d600f937 kernel: module: Ignore all magic mismatches 2018-07-17 13:49:09 +02:00
Lukas0610
62368bda90 proc: squashed cmdline-patches
proc: update or inserted cmdline-flags required for proper SafetyNet-support

proc: cmdline: set warranty bit-flags to 0

proc: cmdline: fix invalid handling of value-changing

Change-Id: Idec862bcf9125a79ac9505a938495f114636b4fc
2018-07-17 13:48:46 +02:00
remyz17
e8f472af6c script : remove the - in kernel name 2018-07-17 13:47:32 +02:00
BlackMesa123
9363e5dd72 Makefile: set Android version
Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-17 13:43:02 +02:00
ananjaser1211
7446f9c6b4 makefile: Enable ccache 2018-07-17 13:41:17 +02:00
DarkLord1731
4f62d3c3f9 makefile: Enable Graphite and -Ofast optimizations 2018-07-17 13:38:49 +02:00
BlackMesa123
aefd9d0d7c Makefile: add some compiler optimizations
This fixes compiling with GCC 6.x

Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-17 13:35:35 +02:00
remyz17
d4eb7f6407 Makefile : allow error to be printed 2018-07-17 13:33:47 +02:00
BlackMesa123
7608e6b787 A530FXXU2BRG1
Signed-off-by: BlackMesa123 <brother12@hotmail.it>
2018-07-16 20:05:35 +02:00
Greg Kroah-Hartman
ba760d4302 Linux 4.4.13 2016-06-07 18:14:51 -07:00