Linux kernel source tree
Go to file
Liang Chen f7a1c6f2a1 cpufreq: interactive: fix deadlock
up_read() may wakeup some tasks, so do not call up_read() in scheduler,
or it will cause deadlock as below:

Thread #4 5 (Name: cpu3, state: debug-request) (Suspended : Container)
	queued_spin_lock_slowpath() at qspinlock.c:369 0xffffff8008119120
	queued_spin_lock() at qspinlock.h:88 0xffffff8008f0a470
	do_raw_spin_lock() at spinlock.h:180 0xffffff8008f0a470
	__raw_spin_lock() at spinlock_api_smp.h:143 0xffffff8008f0a470
	_raw_spin_lock() at spinlock.c:144 0xffffff8008f0a470
	rq_lock() at sched.h:1,244 0xffffff80080f2f4c
	ttwu_queue() at core.c:2,442 0xffffff80080f2f4c
	try_to_wake_up() at core.c:2,658 0xffffff80080eb998
	wake_up_q() at core.c:450 0xffffff80080eb6a8
	rwsem_wake() at rwsem-xadd.c:703 0xffffff800811a44c
	__up_read() at rwsem.h:107 0xffffff8008118930
	up_read() at rwsem.c:122 0xffffff8008118930
	cpufreq_task_boost() at cpufreq_interactive.c:1,449 0xffffff8008a4bdb4
	enqueue_task_fair() at fair.c:5,285 0xffffff80080f7814
	enqueue_task() at core.c:1,324 0xffffff80080ec15c
	activate_task() at core.c:1,346 0xffffff80080ec15c
	ttwu_activate() at core.c:2,240 0xffffff80080f2fc0
	ttwu_do_activate() at core.c:2,299 0xffffff80080f2fc0
	ttwu_queue() at core.c:2,444 0xffffff80080f2fc0
	try_to_wake_up() at core.c:2,658 0xffffff80080eb998
	wake_up_q() at core.c:450 0xffffff80080eb6a8
	futex_wake() at futex.c:1,636 0xffffff8008159e78
	do_futex() at futex.c:3,714 0xffffff8008158fb0
	__do_sys_futex() at futex.c:3,770 0xffffff800815bd98
	__se_sys_futex() at futex.c:3,738 0xffffff800815bd98
	__arm64_sys_futex() at futex.c:3,738 0xffffff800815bd98
	__invoke_syscall() at syscall.c:36 0xffffff8008098d6c
	invoke_syscall() at syscall.c:48 0xffffff8008098d6c
	el0_svc_common() at syscall.c:117 0xffffff8008098d6c
	el0_svc_handler() at syscall.c:163 0xffffff8008098ccc
	el0_svc() at entry.S:940 0xffffff8008083d08

Fixes: 2d367d61e8 (cpufreq: interactive: introduce boost cpufreq interface for task)

Change-Id: I9607faa5ede3a662e7f2f55da29b08fc328f4d43
Signed-off-by: Liang Chen <cl@rock-chips.com>
2020-12-14 14:11:26 +08:00
android ANDROID: GKI: update the ABI xml 2020-10-30 12:21:53 +08:00
arch arm64: rockchip_defconfig: enable CONFIG_VM_EVENT_COUNTERS by default. 2020-12-11 17:54:47 +08:00
block UPSTREAM: Revert "block: ratelimit handle_bad_sector() message" 2020-11-03 19:54:04 +08:00
certs
crypto Merge tag 'ASB-2020-11-05_4.19-stable' of https://android.googlesource.com/kernel/common 2020-11-03 18:36:42 +08:00
Documentation dt-bindings: media: Add bindings for OV12D2Q 2020-12-11 15:48:41 +08:00
drivers cpufreq: interactive: fix deadlock 2020-12-14 14:11:26 +08:00
firmware
fs Merge tag 'ASB-2020-11-05_4.19-stable' of https://android.googlesource.com/kernel/common 2020-11-03 18:36:42 +08:00
include clk: rockchip: rk3568: export cpll_xxx clk id for more function 2020-12-07 09:18:27 +08:00
init init: Introduce config ROCKCHIP_ONE_INITRD 2020-09-27 17:18:41 +08:00
ipc Revert "Revert "ANDROID: vfs: Add permission2 for filesystems with per mount permissions"" 2020-09-25 09:32:04 +08:00
kernel Merge tag 'ASB-2020-11-05_4.19-stable' of https://android.googlesource.com/kernel/common 2020-11-03 18:36:42 +08:00
lib Merge tag 'ASB-2020-11-05_4.19-stable' of https://android.googlesource.com/kernel/common 2020-11-03 18:36:42 +08:00
LICENSES
mm Merge tag 'ASB-2020-11-05_4.19-stable' of https://android.googlesource.com/kernel/common 2020-11-03 18:36:42 +08:00
net Merge tag 'ASB-2020-11-05_4.19-stable' of https://android.googlesource.com/kernel/common 2020-11-03 18:36:42 +08:00
samples This is the 4.19.154 stable release 2020-10-30 11:43:26 +01:00
scripts scripts: dtc: delete empty node after omit_unused_nodes 2020-12-01 09:26:26 +08:00
security Merge tag 'ASB-2020-11-05_4.19-stable' of https://android.googlesource.com/kernel/common 2020-11-03 18:36:42 +08:00
sound ASoC: es7243e: modify the names of compatible 2020-12-05 18:04:53 +08:00
tools UPSTREAM: perf arm64: Fix mksyscalltbl when system kernel headers are ahead of the kernel 2020-11-10 19:33:08 +08:00
usr initramfs: restore default compression behavior 2020-04-13 10:44:59 +02:00
virt KVM: arm64: Assume write fault on S1PTW permission fault on instruction fetch 2020-10-01 13:14:54 +02:00
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.scmversion
build.config.aarch64 ANDROID: Publish uncompressed Image on aarch64 2020-11-01 15:13:43 +00:00
build.config.allmodconfig ANDROID: build.config.allmodconfig: Re-enable XFS_FS 2020-04-17 08:41:31 +00:00
build.config.allmodconfig.aarch64 ANDROID: drop KERNEL_DIR setting in build.config.common 2020-09-25 15:14:51 +08:00
build.config.allmodconfig.arm ANDROID: drop KERNEL_DIR setting in build.config.common 2020-09-25 15:14:51 +08:00
build.config.allmodconfig.x86_64 ANDROID: drop KERNEL_DIR setting in build.config.common 2020-09-25 15:14:51 +08:00
build.config.arm ANDROID: move builds to use gas prebuilts 2020-10-19 21:13:08 +00:00
build.config.common ANDROID: clang: update to 11.0.5 2020-10-27 11:18:23 -07:00
build.config.gki ANDROID: gki: Removed cf modules from gki_defconfig 2020-01-31 16:23:38 -08:00
build.config.gki_kasan ANDROID: drop KERNEL_DIR setting in build.config.common 2020-09-25 15:14:51 +08:00
build.config.gki_kasan.aarch64 ANDROID: drop KERNEL_DIR setting in build.config.common 2020-09-25 15:14:51 +08:00
build.config.gki_kasan.x86_64 ANDROID: drop KERNEL_DIR setting in build.config.common 2020-09-25 15:14:51 +08:00
build.config.gki-debug.aarch64 ANDROID: drop KERNEL_DIR setting in build.config.common 2020-09-25 15:14:51 +08:00
build.config.gki-debug.x86_64 ANDROID: drop KERNEL_DIR setting in build.config.common 2020-09-25 15:14:51 +08:00
build.config.gki.aarch64 ANDROID: GKI: prevent removal of monitored symbols 2020-09-29 11:48:43 +01:00
build.config.gki.x86_64 ANDROID: drop KERNEL_DIR setting in build.config.common 2020-09-25 15:14:51 +08:00
build.config.x86_64 ANDROID: move builds to use gas prebuilts 2020-10-19 21:13:08 +00:00
COPYING
CREDITS
Kbuild
Kconfig
logo_kernel.bmp
logo.bmp
MAINTAINERS Merge tag 'ASB-2020-11-05_4.19-stable' of https://android.googlesource.com/kernel/common 2020-11-03 18:36:42 +08:00
Makefile Merge tag 'ASB-2020-11-05_4.19-stable' of https://android.googlesource.com/kernel/common 2020-11-03 18:36:42 +08:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.