A internal PD can only power off by vsync when it attached
to a activated VP.
This fix this log:
[drm:vop2_crtc_atomic_disable] *ERROR* unexpected power on pd7
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Ia6694ccc761f93e36dca3218a455f8ef73d04e86
1. set all irq non-secure
2. add gic_set_irq_secure and gic_set_irq_priority
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: Ie84ed3dae3110d8a4bb538ecbf96ea971ca29846
Sometimes, no need to use more DMA buffer, add a configurable
option from DTB.
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I81883c1a3531b8805d554a34e07dc50735829ecc
To save memory space for ROCKCHIP_MINI_KERNEL
Changes to vmlinux size:
Before:
text data bss dec hex filename
4249223 1766500 134616 6150339 5dd8c3 vmlinux
After:
text data bss dec hex filename
4248379 1763012 134616 6146007 5dc7d7 vmlinux
delta: 4332 (dec)
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: Ib1cefe62cf968489cffe37043b29c341d4c60788
When do uvc hotplug test on RV1126 EVB, it may crash in the
uvc_v4l2_streamon() with the following error log. Because
it tries to enable the video stream after usb disconnect.
[ 1748.947755] configfs-gadget gadget: uvc_function_disable
[ 1748.947947] android_work: sent uevent USB_STATE=DISCONNECTED
[ 1748.955347] Unable to handle kernel NULL pointer dereference at virtual address 00000003
[ 1748.956158] pgd = ef2a7e72
[ 1748.956550] [00000003] *pgd=6dde7835
[ 1748.956893] Internal error: Oops: 17 [#1] PREEMPT SMP ARM
[ 1748.957381] Modules linked in: galcore(O) bcmdhd
[ 1748.957819] CPU: 3 PID: 2706 Comm: uvc_gadget_pthr Tainted: G W O 4.19.111 #9
[ 1748.958567] Hardware name: Generic DT based system
[ 1748.959218] PC is at uvcg_video_enable+0xb8/0x228
[ 1748.959775] LR is at vb2_core_streamon+0x11c/0x15c
......
[ 1749.041063] [<b056a2cc>] (uvcg_video_enable) from [<b0569968>] (uvc_v4l2_streamon+0x28/0x70)
[ 1749.041906] [<b0569968>] (uvc_v4l2_streamon) from [<b0590b54>] (__video_do_ioctl+0x1c8/0x3a0)
[ 1749.042681] [<b0590b54>] (__video_do_ioctl) from [<b0594288>] (video_usercopy+0x200/0x494)
[ 1749.043475] [<b0594288>] (video_usercopy) from [<b0220c38>] (do_vfs_ioctl+0xac/0x798)
[ 1749.044178] [<b0220c38>] (do_vfs_ioctl) from [<b0221358>] (ksys_ioctl+0x34/0x58)
[ 1749.044843] [<b0221358>] (ksys_ioctl) from [<b0101000>] (ret_fast_syscall+0x0/0x4c)
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I6bb58133aaade0ff389fa4af2cfc05fe598de250
This patch fix NULL pointer dereference with the following log
when usb gadget is configured as uvc.
PC is at usb_gadget_disconnect+0x3c/0x4a
LR is at dwc3_gadget_pullup+0xllb/0xl28
pc : [<b0lfa202>] lr : [<b0le67a7>] psr : 60000033
......
[<b0lfa202>] (usb_gadget_disconnect) from [<b0lfa227>] (usb_gadget_deactivate+0xl7/0x34)
[<b0lfa227>] (usb gadget-deactivate) from [<b0lf6e3b>] (usb function deactivate+0x3d/0x86)
[<b0lf6e3b>] (usb_function_deactivate) from [<b0202421>](uvc_function_disconnect+0xd/0x30)
[<b0202421>] (uvc_function_disconnect) from [<b0202a9b>](uvc_v412_release+0xlb/0x52)
[<b0202a9b>] (uvc_v412_release) from [<b0210291>](v412_release+0x73/0x7e)
[<b0210291>] (v412_release) from [<b007ea9f>] (_fput+0x43/0xc8)
[<b007ea9f>] (_fput) from[<b00239db>](task_work_run+0x5d/0x76)
[<b00239db>] (task_work_run) from [<b0016767>] (do_exit+0x2db/0x648)
[<b0016767>] (do_exit) from [<b0017343>] (do_group_exit+0x33/0x84)
[<b0017343>] (do_group_exit) from [<b00id2bf>](get_signal+0xl91/0x49a)
[<b00ld2bf>] (get_signal) from [<b000delf>] (do_work pending+0x87/0x26e)
[<b000delf>] (do_work pending) from [<b000828f>](slow_work _pending+0x9/0xl6)
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I838d62244e38a20f37ad9b530d5171c5e8de25c4
Add interruption every quarter frame to trigger vepu.
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
Change-Id: I57bc0476677f325902224a7dfda3acc2f83c0424
Support to build as module and push to /oem/usr/ko/.
Tested on rv1106 evb:
Step1: insmod /oem/usr/ko/rk_cma_procfs.ko
Step2: cat /proc/rk_cma/rk-dma-heap-cma
Then shows:
Total: 65536 KiB
Used: 24052 KiB
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Iab8312cb2467e445259b572c823b775a8b95171a
Dahua issues a series sd cards against SD spec that cannot support
CMD23 as a mandatory. We need to fix them.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Ic2f4b082df9094e264e20f51a3a79dc0819f191c
Generally speaking, the RV1106/RV1103 differential mode
via 1-MIC can meet the needs of most users. If the user
has other ADC mode usage requirements, you can configure
the corresponding ADC mode before starting the recording.
Please do not switch during recording as it will cause
pop noise due to the need to deinitialize the ADC.
Also, the RV1103 does not support full-differential
inputs for both ADCs.
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I72c2aec3cc061dcf5884da55dca4deeb2dabd98b
cause ircut gpios are different between rv1106 and rv1103
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: I851ec2279184a3e5e06d4e4ce42a4de912c6506b
Don't need to re-init MICs and keep ADC_BIST_MODE_SEL
by default.
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I5dd81e724bd8aeda1f5dce816625ed26eafa00b2