linux/drivers
Sandy Huang f72adfb770 drm/rockchip: vop: fix out of memory when calc bandwidth
bug log:
[   21.432332] Internal error: Accessing user space memory outside uaccess.h routines: 96000005 [#1] PREEMPT SMP
[   21.433228] Modules linked in:
[   21.433530] CPU: 3 PID: 716 Comm: ndroid.settings Not tainted 4.4.83 #121
[   21.434130] Hardware name: Rockchip RK3399 Excavator Board edp (Android) (DT)
[   21.434768] task: ffffffc0cd63e800 task.stack: ffffffc0cd630000
[   21.435304] PC is at kmem_cache_alloc_trace+0xa8/0x204
[   21.435776] LR is at binder_transaction+0x58c/0x1c44
......
[   21.572340] [<ffffff80081ad584>] kmem_cache_alloc_trace+0xa8/0x204
[   21.572890] [<ffffff800893964c>] binder_transaction+0x58c/0x1c44
[   21.573424] [<ffffff800893cd08>] binder_thread_write+0xa44/0x136c
[   21.573968] [<ffffff800893d710>] binder_ioctl_write_read+0xe0/0x314
[   21.574523] [<ffffff800893db14>] binder_ioctl+0x1d0/0x668
[   21.575010] [<ffffff80081c77b8>] do_vfs_ioctl+0x5e4/0x720
[   21.575494] [<ffffff80081c7954>] SyS_ioctl+0x60/0x88
[   21.575936] [<ffffff8008083170>] el0_svc_naked+0x24/0x28

or:

[  549.171031] Internal error: Accessing user space memory outside uaccess.h routines: 96000005 [#1] PREEMPT SMP
[  549.171920] Modules linked in:
[  549.172213] CPU: 2 PID: 2575 Comm: surfaceflinger Not tainted 4.4.83 #121
[  549.172810] Hardware name: Rockchip RK3399 Excavator Board edp (Android) (DT)
[  549.173444] task: ffffffc0b851a700 task.stack: ffffffc0b2a40000
[  549.173973] PC is at kmem_cache_alloc_trace+0xa8/0x204
[  549.174437] LR is at drm_flip_work_allocate_task+0x2c/0x4c
[  549.174920] pc : [<ffffff80081ad584>] lr : [<ffffff800848ce04>] pstate: 60400145
......
[  549.285299] [<ffffff80081ad584>] kmem_cache_alloc_trace+0xa8/0x204
[  549.285845] [<ffffff800848ce04>] drm_flip_work_allocate_task+0x2c/0x4c
[  549.286422] [<ffffff800848d020>] drm_flip_work_queue+0x38/0xa4
[  549.286942] [<ffffff80084a7a30>] vop_crtc_atomic_flush+0x1f48/0x2274
[  549.287509] [<ffffff800846add4>] drm_atomic_helper_commit_planes+0x194/0x1bc
[  549.288136] [<ffffff80084a0584>] rockchip_atomic_commit_complete+0x58/0xa0
[  549.288750] [<ffffff80084a0750>] rockchip_drm_atomic_commit+0x184/0x1a4
[  549.289340] [<ffffff800848e678>] drm_atomic_commit+0x64/0x70
[  549.289848] [<ffffff800848f960>] drm_mode_atomic_ioctl+0x4fc/0x604
[  549.290393] [<ffffff8008473368>] drm_ioctl+0x278/0x3f8
[  549.290856] [<ffffff80081c77b8>] do_vfs_ioctl+0x5e4/0x720
[  549.291339] [<ffffff80081c7954>] SyS_ioctl+0x60/0x88
[  549.291778] [<ffffff8008083170>] el0_svc_naked+0x24/0x28

Change-Id: I101c7dfa881611f3ca9225542e767897efe8fc1d
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-03-06 14:08:00 +08:00
..
accessibility
acpi LSK 18.02 v4.4-android 2018-02-07 20:59:20 +08:00
adc rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
amba
android Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-01-26 19:26:47 +08:00
ata LSK 18.02 v4.4-android 2018-02-07 20:59:20 +08:00
atm
auxdisplay
base LSK 18.02 v4.4-android 2018-02-07 20:59:20 +08:00
bcma UPSTREAM: gpio: change member .dev to .parent 2018-02-28 14:55:00 +08:00
block rbd: set max_segments to USHRT_MAX 2018-01-17 09:35:30 +01:00
bluetooth rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
bus
cdrom
char hwrng: core - sleep interruptible in read 2018-01-17 09:35:28 +01:00
cir rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
clk clk: rockchip: px30: Add clock id and CLK_SET_RATE_NO_REPARENT for uart1 2018-03-05 14:54:02 +08:00
clocksource clocksource: arch_timer: make virtual counter access configurable 2018-01-22 13:16:20 +05:30
cmmb rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
connector
cpufreq
cpuidle Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android 2018-01-22 11:50:22 +05:30
crypto
dca
devfreq PM / devfreq: rockchip_dmc: protect video_info_list with mutex 2018-02-28 09:36:02 +08:00
dio
dma dmaengine: pl330: fix bug that chan descdone is null 2018-01-29 14:12:32 +08:00
dma-buf
edac
eisa
extcon
firewire
firmware Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-01-26 19:26:47 +08:00
fmc
fpga
gpio UPSTREAM: gpio: Add devm_ apis for gpiochip_add_data and gpiochip_remove 2018-02-28 14:55:00 +08:00
gpu drm/rockchip: vop: fix out of memory when calc bandwidth 2018-03-06 14:08:00 +08:00
headset_observe rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
hid UPSTREAM: gpio: change member .dev to .parent 2018-02-28 14:55:00 +08:00
hsi
hv x86/retpoline/hyperv: Convert assembler indirect jumps 2018-01-23 19:50:13 +01:00
hwmon Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-01-26 19:26:47 +08:00
hwspinlock
hwtracing
i2c Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-01-26 19:26:47 +08:00
ide
idle
iio
infiniband IB/srpt: Disable RDMA access by the initiator 2018-01-17 09:35:24 +01:00
input UPSTREAM: gpio: change member .dev to .parent 2018-02-28 14:55:00 +08:00
iommu iommu/rockchip: return -ENODEV when a disabled iommu node is referenced by master 2018-02-09 11:08:29 +08:00
ipack
irqchip Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-01-26 19:26:47 +08:00
isdn
leds UPSTREAM: gpio: change member .dev to .parent 2018-02-28 14:55:00 +08:00
lguest
lightnvm
macintosh
mailbox
mcb
md Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android 2018-02-01 12:02:38 +08:00
media UPSTREAM: gpio: change member .dev to .parent 2018-02-28 14:55:00 +08:00
memory
memstick
message
mfd mfd: rk808: remove suspend config for rk817&rk809 2018-03-05 16:53:13 +08:00
misc rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
mmc BACKPORT: FROMLIST: mmc: core: Don't try UHS-I mode if 4-bit mode isn't supported 2018-02-27 11:31:21 +08:00
mtd rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
net ethernet: stmmac: dwmac-rk: Add speed setting for gmac controller of px30 2018-02-24 10:37:58 +08:00
nfc
ntb
nubus
nvdimm
nvme
nvmem nvmem: rockchip-otp: Fix section mismatch when compile 2018-02-26 19:57:25 +08:00
of
oprofile
parisc
parport
pci LSK 18.02 v4.4-android 2018-02-07 20:59:20 +08:00
pcmcia
perf
phy phy: rockchip: inno-hdmi: fix hdmi can't display after change mode 2018-03-05 16:50:43 +08:00
pinctrl pinctrl: remove unused pinctrl-rk 2018-03-05 18:33:30 +08:00
platform UPSTREAM: gpio: change member .dev to .parent 2018-02-28 14:55:00 +08:00
pnp
power power: rk817: fix compile warning 2018-02-28 10:44:28 +08:00
powercap
pps
ps3
ptp
pwm pwm: rockchip: add pwm en for voppwm 2018-01-30 16:23:46 +08:00
rapidio
ras
regulator regulator: rk808: rk809: the sw1 enable bit intercnvert with sw2 2018-02-13 11:21:32 +08:00
remoteproc
reset
rk_nand drivers: rk_nand: add dev pm ops 2018-03-05 14:50:34 +08:00
rpmsg
rtc mfd: RK817 & RK809: Add new mfd driver for RK817 & RK809 2018-02-05 16:18:20 +08:00
s390
sbus
scsi Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android 2018-02-01 12:02:38 +08:00
sfi
sh
smc rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
sn
soc soc: rockchip: grf: disable jtag switching for PX30 Soc 2018-02-26 11:55:20 +08:00
spi spi: rockchip: set higher io driver when sclk higher than 24MHz 2018-03-05 09:37:13 +08:00
spmi
ssb
staging fiq_debugger: rockchip: deal with this_cpu and current_cpu are different 2018-02-08 14:29:02 +08:00
switch rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
target target: Avoid early CMD_T_PRE_EXECUTE failures during ABORT_TASK 2018-01-17 09:35:31 +01:00
tc
tee BACKPORT: tee: indicate privileged dev in gen_caps 2018-01-22 13:16:20 +05:30
testcode rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
thermal thermal: rockchip: fix channal invertion issue for px30 2018-02-10 11:34:03 +08:00
thunderbolt
tty UPSTREAM: gpio: change member .dev to .parent 2018-02-28 14:55:00 +08:00
uio
usb CHROMIUM: usb: dwc3: rockchip: reset host controller at resume 2018-02-10 09:03:29 +08:00
uwb
vfio
vhost
video video: rockchip: vpu: fix wrong freq assigned 2018-02-24 18:08:41 +08:00
virt
virtio
vlynq
vme
w1
watchdog
xen
zorro
Kconfig
Makefile