Commit Graph

858625 Commits

Author SHA1 Message Date
Tao Huang
daeddb16eb ARM: rockchip_defconfig: Enable CONFIG_DM_BOW
https://android.googlesource.com/kernel/configs
commit 8c7922ea12ed ("android-4.14, android-4.19, android-5.4: Disable KPROBES for R")

+CONFIG_DM_BOW=y

commit c85479e4c183 ("Add CONFIG_DM_BOW to recommended")
If you are using Q on ext4 userdata, you need this feature.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2b1f942a775656435104984c2e85095e78c91435
2020-09-25 11:07:19 +08:00
Tao Huang
f2b4beac41 ARM: rockchip_defconfig: merge r/android-4.19 android base config
https://android.googlesource.com/kernel/configs
commit 5f72fe526dfe ("Merge "Require CONFIG_ANDROID_BINDERFS for R launching devices." into rvc-dev")

android-base.config and android-base-conditional.xml:

+CONFIG_IKHEADERS=m
-CONFIG_RT_GROUP_SCHED=y
+CONFIG_NAMESPACES=y
-CONFIG_MODULE_FORCE_UNLOAD=y
+CONFIG_NETFILTER_XT_MATCH_QUOTA2_LOG=y
-CONFIG_IP6_NF_NAT=y
-CONFIG_IP6_NF_TARGET_MASQUERADE=y
+CONFIG_BPF_JIT=y
+# CONFIG_FW_CACHE is not set
+CONFIG_DM_SNAPSHOT=y
+CONFIG_DUMMY=y
+CONFIG_VETH=y
+# CONFIG_DEVMEM is not set
+CONFIG_EXT4_FS_POSIX_ACL=y
-# CONFIG_F2FS_FS_POSIX_ACL is not set
+CONFIG_FS_VERITY=y
+CONFIG_FS_VERITY_BUILTIN_SIGNATURES=y
+CONFIG_STATIC_USERMODEHELPER=y
+CONFIG_STATIC_USERMODEHELPER_PATH=""

Except CONFIG_ANDROID_BINDERFS=y which do not supported by Android before 11.
CONFIG_ANDROID_BINDERFS is set by Android.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I8de7e0392c1fb0fe05f957f1f2710b295cafea07
2020-09-25 10:40:18 +08:00
Tao Huang
b4befcdd6a Revert "ANDROID: sdcardfs: remove sdcardfs from system"
This reverts commit 7d8d128141.

Keep sdcardfs available for Android before 11.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ic1652698f81ad403cfdf13ebde5b1c8be685c516
2020-09-25 09:32:14 +08:00
Tao Huang
4d843f0419 Revert "Revert "ANDROID: fs: Restore vfs_path_lookup() export""
This reverts commit 0fb8b79adc.

For sdcardfs.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I910e0454b071be541de4bfa89eb4c724b2c75e05
2020-09-25 09:32:11 +08:00
Tao Huang
f9cb1a06e3 Revert "Revert "ANDROID: vfs: add d_canonical_path for stacked filesystem support""
This reverts commit fc411cf98a.

For sdcardfs.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I56fd2ee1acda8664548055c4b9ce14a3cb3233ce
2020-09-25 09:32:07 +08:00
Tao Huang
ebf16f78d6 Revert "Revert "ANDROID: vfs: Add permission2 for filesystems with per mount permissions""
This reverts commit 633920f372.

For sdcardfs.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ia24ead566b4b804ceef51a952988f707c2ffb9ac
2020-09-25 09:32:04 +08:00
Tao Huang
47046cdf6d Revert "Revert "ANDROID: vfs: Add setattr2 for filesystems with per mount permissions""
This reverts commit 3b7ef7882a.

For sdcardfs.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I9705b248bc301cd24ef9de53cd8de380c0202bc0
2020-09-25 09:31:59 +08:00
Tao Huang
445d582f54 Revert "Revert "ANDROID: fscrypt: add key removal notifier chain""
This reverts commit 4da740c10d.

For sdcardfs.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I863e5efdf4aeec130447b1a655659ce16db55bd4
2020-09-25 09:30:42 +08:00
Tao Huang
72c2e95348 arm64: rockchip_defconfig: merge r/android-4.19 android recommended config
https://android.googlesource.com/kernel/configs
commit 8c7922ea12ed ("android-4.14, android-4.19, android-5.4: Disable KPROBES for R")

android-recommended.config and android-recommended-arm64.config:

+CONFIG_HID_STEAM=y

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ie164a4a6028a51381e71302c30349bd5d90a88d9
2020-09-24 19:34:13 +08:00
Tao Huang
19e5ddd1ee arm64: rockchip_defconfig: merge r/android-4.19 android base config
https://android.googlesource.com/kernel/configs
commit 5f72fe526dfe ("Merge "Require CONFIG_ANDROID_BINDERFS for R launching devices." into rvc-dev")

android-base.config and android-base-conditional.xml:

+CONFIG_IKHEADERS=m
-CONFIG_RT_GROUP_SCHED=y
-# CONFIG_UTS_NS is not set
+CONFIG_BPF_JIT_ALWAYS_ON=y
-CONFIG_MODULE_FORCE_UNLOAD=y
+CONFIG_NETFILTER_XT_MATCH_QUOTA2_LOG=y
-CONFIG_IP6_NF_NAT=y
-CONFIG_IP6_NF_TARGET_MASQUERADE=y
+CONFIG_BPF_JIT=y
+# CONFIG_FW_CACHE is not set
+CONFIG_DM_SNAPSHOT=y
+CONFIG_DUMMY=y
+CONFIG_VETH=y
+CONFIG_EXT4_FS_POSIX_ACL=y
-# CONFIG_F2FS_FS_POSIX_ACL is not set
+CONFIG_FS_VERITY=y
+CONFIG_FS_VERITY_BUILTIN_SIGNATURES=y
+CONFIG_STATIC_USERMODEHELPER=y
+CONFIG_STATIC_USERMODEHELPER_PATH=""

Except CONFIG_ANDROID_BINDERFS=y which do not supported by Android before 11.
CONFIG_ANDROID_BINDERFS is set by Android.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ic63cfa0d0294ddc7c623c44d5a183979eed74b9c
2020-09-24 19:10:56 +08:00
Tao Huang
c3f6e699db leds: rgb13h: Fix for PWM duty/period with u64 data length
Fixes: d892c9f357 ("ANDROID: GKI: pwm: core: Add option to config PWM duty/period with u64 data length")
Fixes: a9d887dc1c ("pwm: Convert period and duty cycle to u64")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I1b22ce071efb768a7f68628c90282b5e222e9c52
2020-09-24 19:02:10 +08:00
Tao Huang
850bf5abc3 Revert "ANDROID: GKI: arm64: psci: Support for OS initiated scheme"
This reverts commit fd2e0c7338.

This patch is incomplete and halt system booting because of calling
trust with wrong idle paramter.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I8361bd1d585433dfbd41816c71f6de4b63d6cb49
2020-09-24 18:07:20 +08:00
Tao Huang
d47d281214 Revert "f2fs: fix memory leak in f2fs_try_convert_inline_dir()"
This reverts commit a8baa34ace.

Replaced by commit 62260dfc3b ("f2fs: don't leak filename in f2fs_try_convert_inline_dir()").

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I9b9e7c8278d40a42c679b9dd08b26c7a0b107b83
2020-09-24 18:02:43 +08:00
Simon Xue
3739a5c605 ANDROID: GKI: iommu: fix system crash
'commit e24979f0e7 ("ANDROID: GKI: iommu: Snapshot of vendor changes")'
would cause system crash, the main reason is __iommu_unmap need to do
iommu_pgsize for "iova and size", otherwise iommu page table
may overflow

Fixes: e24979f0e7 ("ANDROID: GKI: iommu: Snapshot of vendor changes")
Change-Id: I4712a2956ecaa74751b2b46dc32715d78e66c68b
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2020-09-24 18:02:31 +08:00
Simon Xue
7ee238f8c2 ANDROID: GKI: iommu/rockchip: Add .map_sg callback
Fixes: e24979f0e7 ("ANDROID: GKI: iommu: Snapshot of vendor changes")
Change-Id: I577f8d816e6332e9fa01a26c43ab1d4ab74f04d1
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2020-09-24 18:02:21 +08:00
Tao Huang
5bd3bf5983 f2fs: sync upstream for avoid gcc warning
fs/f2fs/inode.c: In function 'sanity_check_inode':
warning: format '%lu' expects argument of type 'long unsigned int',
but argument 6 has type 'blkcnt_t {aka long long unsigned int}'

Change-Id: Ibc600242dbdc600dd31111b5ba1413c329e26c5e
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2020-09-24 18:01:34 +08:00
Tao Huang
17823171af PM / QoS: Do not call pm_qos_set_value_for_cpus()
Which confuse pm_qos_request and dev_pm_qos_request.
So get this bug:
[    0.264863] ==================================================================
[    0.265600] BUG: KASAN: slab-out-of-bounds in find_next_bit+0x38/0x9c
[    0.266241] Read of size 8 at addr ffffffc0d27c4eb0 by task swapper/0/1
[    0.266887]
[    0.267055] CPU: 5 PID: 1 Comm: swapper/0 Not tainted 4.19.126 #121
[    0.267671] Hardware name: Rockchip RK3399 Evaluation Board v3 (Android) (DT)
[    0.268370] Call trace:
[    0.268632]  dump_backtrace+0x0/0x220
[    0.269004]  show_stack+0x14/0x1c
[    0.269344]  dump_stack+0xd8/0x118
[    0.269693]  print_address_description+0x80/0x2e4
[    0.270163]  __kasan_report+0x15c/0x1c4
[    0.270550]  kasan_report+0x10/0x18
[    0.270904]  __asan_load8+0x80/0x88
[    0.271259]  find_next_bit+0x38/0x9c
[    0.271620]  cpumask_next+0x20/0x28
[    0.271977]  pm_qos_update_target+0x380/0x65c
[    0.272417]  apply_constraint+0x94/0x13c
[    0.272813]  __dev_pm_qos_add_request+0x204/0x258
[    0.273284]  dev_pm_qos_expose_latency_limit+0x84/0x1ac
[    0.273806]  register_cpu+0x1a8/0x1c4
[    0.274177]  topology_init+0x90/0xd0
[    0.274539]  do_one_initcall+0x1fc/0x3d8
[    0.274937]  do_initcall_level+0x1c4/0x1f8
[    0.275350]  do_basic_setup+0x68/0x80
[    0.275722]  kernel_init_freeable+0x108/0x194
[    0.276161]  kernel_init+0x14/0x2a0
[    0.276514]  ret_from_fork+0x10/0x18
[    0.276870]
[    0.277027] Allocated by task 1:
[    0.277358]  __kasan_kmalloc+0xf0/0x1d4
[    0.277740]  kasan_kmalloc+0xc/0x14
[    0.278083]  __kmalloc+0x114/0x378
[    0.278424]  kobject_get_path+0x60/0xe4
[    0.278804]  kobject_uevent_env+0x174/0x81c
[    0.279217]  kobject_uevent+0x10/0x18
[    0.279581]  device_add+0xa3c/0xe68
[    0.279929]  device_register+0x1c/0x28
[    0.280300]  register_cpu+0x158/0x1c4
[    0.280664]  topology_init+0x90/0xd0
[    0.281018]  do_one_initcall+0x1fc/0x3d8
[    0.281410]  do_initcall_level+0x1c4/0x1f8
[    0.281814]  do_basic_setup+0x68/0x80
[    0.282183]  kernel_init_freeable+0x108/0x194
[    0.282610]  kernel_init+0x14/0x2a0
[    0.282957]  ret_from_fork+0x10/0x18
[    0.283305]
[    0.283461] Freed by task 1:
[    0.283758]  __kasan_slab_free+0x140/0x234
[    0.284164]  kasan_slab_free+0x10/0x1c
[    0.284533]  kfree+0x1a0/0x730
[    0.284840]  kobject_uevent_env+0x208/0x81c
[    0.285248]  kobject_uevent+0x10/0x18
[    0.285615]  device_add+0xa3c/0xe68
[    0.285962]  device_register+0x1c/0x28
[    0.286337]  register_cpu+0x158/0x1c4
[    0.286699]  topology_init+0x90/0xd0
[    0.287054]  do_one_initcall+0x1fc/0x3d8
[    0.287441]  do_initcall_level+0x1c4/0x1f8
[    0.287848]  do_basic_setup+0x68/0x80
[    0.288210]  kernel_init_freeable+0x108/0x194
[    0.288643]  kernel_init+0x14/0x2a0
[    0.288987]  ret_from_fork+0x10/0x18
[    0.289336]
[    0.289498] The buggy address belongs to the object at ffffffc0d27c4e00
[    0.289498]  which belongs to the cache kmalloc-128 of size 128
[    0.290726] The buggy address is located 48 bytes to the right of
[    0.290726]  128-byte region [ffffffc0d27c4e00, ffffffc0d27c4e80)
[    0.291915] The buggy address belongs to the page:
[    0.292395] page:ffffffbf0349f100 count:1 mapcount:0 mapping:ffffffc00a2c7c00 index:0x0
[    0.293184] flags: 0x200(slab)
[    0.293504] raw: 0000000000000200 dead000000000100 dead000000000200 ffffffc00a2c7c00
[    0.294273] raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
[    0.295028] page dumped because: kasan: bad access detected
[    0.295576]
[    0.295731] Memory state around the buggy address:
[    0.296194]  ffffffc0d27c4d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[    0.296905]  ffffffc0d27c4e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[    0.297617] >ffffffc0d27c4e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[    0.298323]                                      ^
[    0.298787]  ffffffc0d27c4f00: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc
[    0.299498]  ffffffc0d27c4f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[    0.300206] ==================================================================

Fixes: 723feab600 ("ANDROID: GKI: QoS: Enhance framework to support cpu/irq specific QoS requests")
Change-Id: I87d682d30d8147cdba6309a9d4ffd6dcb25e0960
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2020-09-24 18:01:24 +08:00
Tao Huang
48f4e7f7c2 Merge tag 'ASB-2020-09-05_4.19-stable' of https://android.googlesource.com/kernel/common
https://source.android.com/security/bulletin/2020-09-01
CVE-2020-0402
CVE-2020-0404
CVE-2020-0407

* tag 'ASB-2020-09-05_4.19-stable': (3616 commits)
  Linux 4.19.143
  ALSA: usb-audio: Update documentation comment for MS2109 quirk
  HID: hiddev: Fix slab-out-of-bounds write in hiddev_ioctl_usage()
  tpm: Unify the mismatching TPM space buffer sizes
  usb: dwc3: gadget: Handle ZLP for sg requests
  usb: dwc3: gadget: Fix handling ZLP
  usb: dwc3: gadget: Don't setup more than requested
  btrfs: check the right error variable in btrfs_del_dir_entries_in_log
  usb: storage: Add unusual_uas entry for Sony PSZ drives
  USB: cdc-acm: rework notification_buffer resizing
  USB: gadget: u_f: Unbreak offset calculation in VLAs
  USB: gadget: f_ncm: add bounds checks to ncm_unwrap_ntb()
  USB: gadget: u_f: add overflow checks to VLA macros
  usb: host: ohci-exynos: Fix error handling in exynos_ohci_probe()
  USB: Ignore UAS for JMicron JMS567 ATA/ATAPI Bridge
  USB: quirks: Ignore duplicate endpoint on Sound Devices MixPre-D
  USB: quirks: Add no-lpm quirk for another Raydium touchscreen
  usb: uas: Add quirk for PNY Pro Elite
  USB: yurex: Fix bad gfp argument
  drm/amd/pm: correct Vega12 swctf limit setting
  ...

Change-Id: Iece02c55e9b3446bdda5dc7bdfbe3e310b2dbc83

Conflicts:
	arch/arm/boot/dts/rk322x.dtsi
	arch/arm64/boot/dts/rockchip/rk3399.dtsi
	arch/arm64/kernel/cpuinfo.c
	drivers/clk/clk.c
	drivers/clk/rockchip/clk-cpu.c
	drivers/clk/rockchip/clk-rk3228.c
	drivers/devfreq/governor_simpleondemand.c
	drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
	drivers/gpu/drm/drm_edid.c
	drivers/hid/usbhid/hid-core.c
	drivers/media/i2c/ov5695.c
	drivers/media/v4l2-core/v4l2-ioctl.c
	drivers/regulator/core.c
	drivers/thermal/cpu_cooling.c
	drivers/usb/core/quirks.c
	drivers/usb/dwc2/platform.c
	drivers/usb/dwc3/core.c
	drivers/usb/dwc3/core.h
	drivers/usb/dwc3/gadget.c
	drivers/usb/host/ehci-platform.c
	drivers/usb/storage/unusual_uas.h
	include/drm/drm_connector.h
	include/linux/clk-provider.h
	include/linux/devfreq.h
	include/linux/pci_ids.h
	kernel/power/wakeup_reason.c
	mm/memory.c
	mm/swapfile.c
2020-09-24 17:59:50 +08:00
Ding Wei
b8861d8da0 ARM: dts: rv1126: add clk info for vepu
Change-Id: I8895b43e9599cf516402f31ee01b989ede3a3f25
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2020-09-24 16:15:03 +08:00
Ding Wei
58ae64b00c video: rockchip: mpp: vepu2: set clk_mode according to load
Change-Id: I0f9a738061dc3f33e167c92dc48a754f13e92dd6
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2020-09-24 16:15:03 +08:00
Yiqing Zeng
b65bd423d8 media: i2c: imx307 update exposure formula and max expsure
1. max exposure = vts - 2;
2. shs1 = vts - (exp_line + 1);

Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: Ibe955838d6f1c995f25ff2d29c911197b3186e0a
2020-09-23 17:58:37 +08:00
Zain Wang
4566926437 usb: gadget: f_uac1: disable IN/OUT ep if unused
Via p_chmask/c_chmask the user can define whether uac1 shall support
playback and/or capture. This has only effect on the created ALSA
device, but not on the USB descriptor. This patch adds playback/capture
descriptors dependent on that parameter.

Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com>
Signed-off-by: Zain Wang <wzz@rock-chips.com>
Change-Id: Iced9b9687ff3a760861f735d532825fb91707633
2020-09-22 19:33:26 +08:00
Allon Huang
94fcbe91a0 media: rockchip: cif: add hdr spin lock to protect hdr buf sync
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I1712b889949c6f192be7df99e88632660dce2237
2020-09-22 19:32:05 +08:00
Weiwen Chen
9a7f0d44ba ARM: dts: rv1126-ipc: enable monitor to restart if abnormal for ispp
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I99d5ab6ab6c2a65396910500664f0c7208919484
2020-09-22 16:02:23 +08:00
Tao Huang
3b31279237 clk: rockchip: rk3568: Fix gcc warning
drivers/clk/rockchip/clk-rk3568.c:162:2: warning: this decimal constant is unsigned only in ISO C90
  RK3568_CPUCLK_RATE(2208000000, 1, 1, 1, 9, 9, 9, 9),

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I697e4b2a9611cf49233d40361863cc820f20d1fa
2020-09-22 09:57:07 +08:00
Yiqing Zeng
b673079429 media: i2c: imx307 change 25fps to 30fps
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: I2871f0c69ea691c2c8ae6ce7d300394d5697ba16
2020-09-22 09:16:09 +08:00
Tao Huang
0e3ad9a0f4 net: wireless: rockchip_wlan: rtl8821cs: Fix clang warning
drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/phydm/phydm_dfs.c:1507:4:
warning: misleading indentation; statement is not part of the previous 'if'
[-Wmisleading-indentation]
                        dfs->pri_cond4 = 1;
                        ^

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2aabcd339f71061872327712fbfeb39176073c69
2020-09-21 18:41:38 +08:00
Simon Xue
56a06f65ac iommu: don't break detach if iommu shared by more than one master
Change-Id: I4fade6e770e124dcaca41d122965e8696f268556
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2020-09-21 16:38:10 +08:00
Hu Kejun
c6e7c35ce4 ARM: dts: rockchip: add csiphy0_pclk to thunder_boot_rkisp for rv1126-thunder-boot
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Id797c8cca9afc9a7d7582970eb5c96bd9c63e35e
2020-09-21 16:35:11 +08:00
Hu Kejun
75200228a6 media: rockchip: isp: fix scr clock is not disabled after app run
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I0fb35bcb4479b9741376fe20e2bf9ea388034abe
2020-09-21 16:35:11 +08:00
Herman Chen
0eca6b2097 video: rockchip: mpp: Add git version info
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I62b32a768c3c64d5477b56cc53527d5fdec7d4df
2020-09-21 16:34:16 +08:00
Lin Jianhua
a7b55392ab HACK: media: videobuf2: allow cache hints on all memory types
This is a workaround to bypass RKISP dma buf sync between MIPI TX(mmap)
and MIPI RX(userptr|dmabuf).

Change-Id: I3d4966f35f2f3330816ac8a3d614486aa3276ebf
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-09-21 14:51:37 +08:00
Yu Qiaowei
1e72e1fb40 video/rockchip: rga2: Support A+B->C blend mode.
The mode A is src, B is src1, and C is dst.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I124665d7b727d921b33c0efbe5f3b048141a3879
2020-09-21 10:15:03 +08:00
Ding Wei
34564b6204 video: rockchip: mpp: fix irq issue for rkvenc
1. before reset, it need set mask to avoid irq reentry.
2. rearranged the write of L1 register.

backtrace:
[   33.276048 ] Exception stack(0xee8b9e20 to 0xee8b9e68)
[   33.276059 ] 9e20: dd539040 ee0f6080 00000000 00000104 00000020
00000080 42800200 000000d2
[   33.276071 ] 9e40: 00000001 b0e2396c dd539040 ee0f6080 00000348
ee8b9e70 b03e5044 b03e0ec0
[   33.276080 ] 9e60: 80070013 ffffffff
[   33.276093 ] [<b0101a78>] (__irq_svc) from [<b03e0ec0>]
(mpp_write_req+0x4c/0x94)
[   33.276108 ] [<b03e0ec0>] (mpp_write_req) from [<b03e5044>]
(rkvenc_run+0x1e8/0x2a0)
[   33.276122 ] [<b03e5044>] (rkvenc_run) from [<b03e0bcc>]
(mpp_task_try_run+0x24c/0x3ac)
[   33.276137 ] [<b03e0bcc>] (mpp_task_try_run) from [<b013ccdc>]
(process_one_work+0x1f0/0x408)
[   33.276151 ] [<b013ccdc>] (process_one_work) from [<b013d9b4>]
(worker_thread+0x30/0x564)
[   33.276165 ] [<b013d9b4>] (worker_thread) from [<b014290c>]
(kthread+0x140/0x170)
[   33.276178 ] [<b014290c>] (kthread) from [<b01010d8>]
(ret_from_fork+0x14/0x3c)

Change-Id: I82c56ed384507dbd0d01973dc9d88fa7fc255ed4
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2020-09-21 09:49:15 +08:00
Cai YiWei
1dc03aa0c1 media: rockchip: isp/ispp procfs add work info
Change-Id: I297e7075abdbf83ae056406a928bc247acf6c1e2
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-09-18 10:30:26 +08:00
Cai YiWei
c5a7b6cd72 media: rockchip: ispp: add monitor to restart if abnormal
enable monitor:
add rockchip,restart-monitor-en to rkispp node on dts or
echo Y > /sys/module/video_rkispp/parameters/monitor

Change-Id: I481bb6021166a14dc8f115fe76fcfba092662a7a
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-09-18 10:30:26 +08:00
Cai YiWei
ac06ce8496 media: rockchip: isp and ispp version to v0.1.7
Change-Id: Id6c67618747b6b76ac119024675e8ad52228a647
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-09-18 10:28:33 +08:00
Yiqing Zeng
1434763f0e media: i2c: ov2718 add g_mbus_config
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: I15278582c25f91c31316611f269cabc2fa13311b
2020-09-18 10:27:33 +08:00
Yiqing Zeng
53ad625648 media: i2c: sc2310 add set flip ctrl
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: I33ae9ca26063b7195dbf088262e4f2bbafd1e55d
2020-09-18 10:22:46 +08:00
Cai YiWei
acb35835b0 media: rockchip: cif/isp/ispp vb2 support cache hints
Change-Id: Ib32ebe66eb912ca8bec84ed6512130801b2fdc27
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-09-17 11:32:28 +08:00
Cai YiWei
2f3804a21c media: rockchip: isp: clear csi rdbk fifo when first open
Change-Id: Ib6ccf4656d1ce4926364736bdba9f7c03aab8141
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-09-17 10:42:50 +08:00
Hu Kejun
be6c7ee5a3 media: rockchip: isp: fix rawaf is disabled in config function
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I9fe6243ffae3ceef409fd297c00406b892ab0737
2020-09-17 10:08:16 +08:00
Sergey Senozhatsky
59a5bae71b BACKPORT: media: videobuf2: do not sync caches when we are allowed not to
Skip ->prepare() or/and ->finish() cache synchronisation if
user-space requested us to do so (or when queue dma direction
permits us to skip cache syncs).

Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
(cherry picked from commit dcf3bfe7c7)

Conflicts:
	drivers/media/common/videobuf2/videobuf2-core.c

Change-Id: I9cb129fa00f5355fbcda552a3c08052c7c324743
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-09-17 10:07:58 +08:00
Sergey Senozhatsky
00d81d9d97 BACKPORT: media: videobuf2: handle V4L2 buffer cache flags
Set video buffer cache management flags corresponding to V4L2 cache
flags.

Both ->prepare() and ->finish() cache management hints should be
passed during this stage (buffer preparation), because there is
no other way for user-space to tell V4L2 to avoid ->finish() cache
flush.

Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
(cherry picked from commit f5f5fa73fb)

Conflicts:
	drivers/media/common/videobuf2/videobuf2-v4l2.c

Change-Id: I6d90d080a7468be5e8f96b26dcd36bf583bd5741
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-09-17 10:07:58 +08:00
Sergey Senozhatsky
8061fe2a75 BACKPORT: media: videobuf2: add cache management members
Extend vb2_buffer and vb2_queue structs with cache management
members.

V4L2 UAPI already contains two buffer flags which user-space,
supposedly, can use to control buffer cache sync:

- V4L2_BUF_FLAG_NO_CACHE_INVALIDATE
- V4L2_BUF_FLAG_NO_CACHE_CLEAN

None of these, however, do anything at the moment. This patch
set is intended to change it.

Since user-space cache management hints are supposed to be
implemented on a per-buffer basis we need to extend vb2_buffer
struct with two new members ->need_cache_sync_on_prepare and
->need_cache_sync_on_finish, which will store corresponding
user-space hints.

In order to preserve the existing behaviour, user-space cache
managements flags will be handled only by those drivers that
permit user-space cache hints. That's the purpose of vb2_queue
->allow_cache_hints member. Driver must set ->allow_cache_hints
during queue initialisation to enable cache management hints
mechanism.

Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
(cherry picked from commit 6d2199868a)

Conflicts:
	include/media/videobuf2-core.h

Change-Id: I26952d567d599d23e3867e8c1fb735d70e4cae5c
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-09-17 10:07:58 +08:00
Liang Chen
2a4bfd1585 ARM: config: rockchip: enable CONFIG_ARM_CPU_TOPOLOGY for rk3308 aarch32
We need enable CONFIG_ARM_CPU_TOPOLOGY for scheduler.
The default value of CONFIG_ARM_CPU_TOPOLOGY is y, so just delete
'# CONFIG_ARM_CPU_TOPOLOGY is not set'.

Change-Id: I6917cfe7d521fa00885e82743738f12f832512f9
Signed-off-by: Liang Chen <cl@rock-chips.com>
2020-09-16 19:28:59 +08:00
Nickey Yang
73ad27b791 ARM: dts: rockchip: correct battery info for rv1126-bat-ipc-v10
vcc_bat has no voltage divider, so correct it.

Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: Ibb3eb7b32c84414bf47677c422d2cbf3b1ddbac3
2020-09-16 17:28:11 +08:00
Ziyuan Xu
0dcb06bc14 ARM: configs: rv1126-battery.config: enable gpio-poweroff
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I770534fbd18f04d032130a04efc8f167a839b977
2020-09-16 17:23:54 +08:00
Ziyuan Xu
3991a76128 ARM: dts: rockchip: use gpio-poweroff to shutdown rv1126-bat-v10 board
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: Iad8106e9ad5896011120c38235d1a9ad9d7033fd
2020-09-16 17:23:45 +08:00
Ziyuan Xu
3694473201 power: reset: gpio-poweroff: force override pm_power_off for rockchip
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I4a8cdeaaf35d51ca39ee7b0336888219d3eca9e1
2020-09-16 17:23:34 +08:00