Commit Graph

1065258 Commits

Author SHA1 Message Date
Wang Jie
b1302e6a83 usb: typec: tcpm: add pd handler lock
Quickly plug and unplug the Type-C device with DP function test, there
is a low probability of unplugging the Type-C dongle, DP work cannot
acquire the mutex(port->lock), and it will always be stuck in the
tcpm_unregister_altmodes() function during the rest port process, causing
the Type-C device to be inserted again to fail to be detected or the reboot
system to be stuck. The exception process is as follows:
(1) Thread#1: unplug the Type-C device to trigger cc status changes interrupt, in the
    tcpm_pd_event_handler() function, first acquire the mutex(port->lock),
    then start state_machine work, and finally release the mutex(port->lock);
tcpm_cc_change()
  -->tcpm_pd_event_handler()
    -->mutex_lock(&port->lock)  /* step 1 */
    -->_tcpm_cc_change(port, cc1, cc2) /* step 2 */
      -->tcpm_set_state(port, SRC_UNATTACHED, 0)
        -->kthread_queue_work(port->wq, &port->state_machine) /* step 3 */
    --> mutex_unlock(&port->lock)  /* step 4 */

(2) Thread#2: before the execution of "step 2" is completed, DP work calls
    the callback function registered by the tcpm framework to initiate a VDM
    Message, such as Enter Mode Message, in the tcpm_queue_vdm_unlocked()
    acquires the mutex(port->lock) fails and goes to sleep;
dp_altmode_work()
  --> typec_altmode_enter(dp->alt)
    --> tcpm_altmode_enter()
      --> tcpm_queue_vdm_unlocked()
        --> mutex_lock(&port->lock) /* dp work enter sleep */

(3) After step 4, tcpm_queue_vdm_unlocked() did not acquire for the mutex
    (port->lock), but was preempted by the state_machine work to enter the reset
    port process. In the reset port process, call the tcpm_unregister_altmodes()
    function to release altmode and cancel dp work. Because tcpm_queue_vdm_unlocked()
    did not acquire the mutex(port->lock), causing it to be stuck in cancel dp work.
tcpm_state_machine_work()
  -->mutex_lock(&port->lock)
  -->tcpm_reset_port(port)
    -->tcpm_unregister_altmodes(port)
      ......
      --> dp_altmode_remove()
        --> cancel_work_sync(&dp->work) /* always stuck in cancel dp work */
  ......

Therefore, after adding a new mutex to wait for the tcpm_pd_event_handler() function
to complete the processing, if the port is in the disconnect state, there is no need
to acquire the mutex(port->lock) in the tcpm_queue_vdm_unlocked() function.

Change-Id: I364a035568ddc35ef7242b42f6d6d0ee3f5586fd
Signed-off-by: Wang Jie <dave.wang@rock-chips.com>
2022-03-10 20:55:51 +08:00
Andy Yan
aacefe9c74 drm/rockchip: vop2: A workaround for PD_CLUSTER0 off
The internal PD of VOP2 on rk3588 take effect immediately
for power up and take effect by vsync for power down.

And the PD_CLUSTER0 is a parent PD of PD_CLUSTER1/2/3,
we may have this use case:
Cluster0 is attached to VP0 for HDMI output,
Cluster1 is attached to VP1 for MIPI DSI,

When we enable Cluster1 on VP1, we should enable PD_CLUSTER0 as
it is the parent PD, event though HDMI is plugout, VP1 is disabled,
the PD of Cluster0 should keep power on.

When system go to suspend:
(1) Power down PD of Cluster1 before VP1 standby(the power down is take
    effect by vsync)
(2) Power down PD of Cluster0

But we have problem at step (2), Cluster0 is attached to VP0. bus VP0
is in standby mode, as it is never used or hdmi plugout. So there is
no vsync, the power down will never take effect.

According to IC designer: We must power down all internal PD of VOP
before we power down the global PD_VOP.

So we get this workaround:
We we found a VP is in standby mode when we want power down a PD is
attached to it, we release the VP from standby mode, than it will
run a default timing and generate vsync. Than we can power down the
PD by this vsync. After all this is done, we standby the VP at last.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Ib9be8628f07d783c6bc3b7678c5eebfc63aabe1c
2022-03-10 20:20:16 +08:00
Andy Yan
c9c9555075 drm/rockchip: vop2: Fix PD_ESMART usage on rk3588
PD_ESMART is shared between Esmart1/2/3, Esmart0 has
no PD

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I5d11ec065f6226e130c93469b1757e4c4fe82067
2022-03-10 20:17:11 +08:00
Andy Yan
e5cb1f01cd drm/rockchip: vop2: Disable aclk of video port when it unused
To reduce some power consumption.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Iebe8d071380ed998579942aeab7662a6ffda3cb0
2022-03-10 20:04:48 +08:00
Guochun Huang
073fa994fa drm/rockchip: dsi2: add user-split-mode property
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: I507034edb7a91b776cb66aa7e3aedcc22521467c
2022-03-10 20:00:48 +08:00
Cai YiWei
3549b11f93 media: rockchip: isp: add get isp information api
Change-Id: I774cc2d215e1b57a427fbf9f3f7bdcf0ea7a0391
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-03-10 19:54:46 +08:00
Cai YiWei
6b70848540 media: rockchip: isp: add cgc config
Change-Id: I235207147a7c4bd14c195d5bb53dec5992a1c3c3
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-03-10 19:54:46 +08:00
Cai YiWei
8a1aeac9b2 media: rockchip: isp: isp32 support raw data compression
Change-Id: I62b7a39982ba661034856cce79fb873104f2c4ba
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-03-10 19:54:46 +08:00
Cai YiWei
c76be98cdc media: rockchip: isp: isp32 support mirror and flip
Change-Id: I8e067cddee9bb314d97e2fd09b62886e8f9b222d
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-03-10 19:54:46 +08:00
Cai YiWei
5409c91052 media: rockchip: isp: isp32 bls2 remove to awb
Change-Id: Ieea6a4fd4ee796c5a02a46dbf9e7650d2a345170
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-03-10 19:54:46 +08:00
Cai YiWei
8bffb2d344 media: rockchip: isp: add isp32 for rv1106
Change-Id: I3f02927df17cb04868d868f8c3a72079a99fea77
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-03-10 19:54:46 +08:00
Cai YiWei
68dc2bca0c media: rockchip: isp: fix mp uyvy format error for isp30
mainpath is bytes per line for Y_LLENGTH but
selfpath is pixels per line.

Change-Id: I3321f01ee3466bae99e65a6ac10ffbe0acdeed71
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-03-10 19:54:46 +08:00
Cai YiWei
0dc12b0118 media: rockchip: isp: add version to querycap
Change-Id: Idb3fc5e57d5ecf0ea8dfe82bc7072998f2472940
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-03-10 19:54:46 +08:00
Wang Panzhenzhuan
02275b5be1 arm64: dts: rockchip: rk3566-evb2: enable csi2_dphy0 for gc8034
For ov5695 has been stop production, so replace
 ov5695 module config with gc8034

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I06aa7d18a82f11a98e6c8bee40a1dd9d5ae60e66
2022-03-10 19:41:16 +08:00
Sugar Zhang
d49247b9e3 ARM: configs: rv1106: Disable NET_VENDOR
- CONFIG_NET_VENDOR_GOOGLE
- CONFIG_NET_VENDOR_PENSANDO
- CONFIG_NET_VENDOR_XILINX

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ia6c75f1759ba6507049d14f78cd72ab9238dc4fb
2022-03-10 18:21:12 +08:00
Li Huang
dbb3dbcdd2 video: rockchip: rga3: rga3_reg: fixup yuv/rgb convert to rgba missing alpha channel
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I1ca62b1481b1b2968567c3a9714d757a690bfb8d
2022-03-10 14:36:07 +08:00
Sugar Zhang
890ca19516 ARM: dts: rockchip: rv1106: fix compatible string for gmac, wdt
Fixes: 51d12f9d67 ("ARM: dts: rockchip: Add gmac support for rv1106")
Fixes: 7a58edc59d ("ARM: dts: rockchip: rv1106: add saradc/wdt_ns/hw_decompress")
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I7abd4528a1cb7a603d8e66d09c59cadf44f3c99c
2022-03-10 14:28:45 +08:00
Zefa Chen
f31433ff94 phy: rockchip: csi2-dphy: support rv1106
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I8381b75f2d404470510606e307524b097796a140
2022-03-10 14:17:28 +08:00
Zhijun Xie
af9c3f34cd arm64: dts: rockchip: rk3588-linux: add TEE support for linux
Change-Id: I4b1977454c8488872ae8c5881b4bf2947203d2b5
Signed-off-by: Zhijun Xie <xzj@rock-chips.com>
2022-03-10 14:17:12 +08:00
Sugar Zhang
a0019992e1 fiq_debugger_arm: Replace %pF with %pS to print Symbols or Function
%pS and %ps are now the preferred conversion specifiers to print function
names. The functionality is equivalent; remove the old, deprecated %pF
and %pf support.

[1] 9af7706492 ("lib/vsprintf: Remove support for %pF and %pf in favour of %pS and %ps")

Before:

debug> bt
pid: 0  comm: swapper/0
 r0 00000000  r1 00014590  r2 eef00418  r3 b01191c0
 r4 ffffe000  r5 b0e04f14  r6 b0e04f50  r7 00000001
 r8 b0e04ec8  r9 00000000 r10 b0d54af0 r11 00000000  mode SVC
 ip b0e05018  sp b0e01f58  lr b010777c  pc b0107780 cpsr 600d0013
  pc: b0107780 (ad65a2fd), lr b010777c (f187b55b), sp b0e01f58, fp 00000000
  pc: b0918f30 (0c9cfd0c), lr b0918f30 (0c9cfd0c), sp b0e01f60, fp 00000000
  pc: b01518b0 (71d36883), lr b01518b0 (71d36883), sp b0e01f68, fp 00000000
  pc: b0151c30 (cd1f0787), lr b0151c30 (cd1f0787), sp b0e01fa8, fp b0d36254
  pc: b0d00e40 (c723bc9c), lr b0d00e40 (c723bc9c), sp b0e01fb0, fp b0d36254

After this patch:

debug> bt
pid: 0  comm: swapper/0
 r0 00000000  r1 0000f7d4  r2 eef00418  r3 b01191c0
 r4 ffffe000  r5 b0e04f14  r6 b0e04f50  r7 00000001
 r8 b0e04ec8  r9 00000000 r10 b0d54af0 r11 00000000  mode SVC
 ip 3e1aa000  sp b0e01f58  lr b010777c  pc b0107780 cpsr 600d0013
  pc: b0107780 (arch_cpu_idle+0x38/0x3c), lr b010777c (arch_cpu_idle+0x34/0x3c), sp b0e01f58, fp 00000000
  pc: b0918f30 (default_idle_call+0x2c/0x3c), lr b0918f30 (default_idle_call+0x2c/0x3c), sp b0e01f60, fp 00000000
  pc: b01518b0 (do_idle+0x1f8/0x284), lr b01518b0 (do_idle+0x1f8/0x284), sp b0e01f68, fp 00000000
  pc: b0151c30 (cpu_startup_entry+0x18/0x20), lr b0151c30 (cpu_startup_entry+0x18/0x20), sp b0e01fa8, fp b0d36254
  pc: b0d00e40 (start_kernel+0x4f4/0x520), lr b0d00e40 (start_kernel+0x4f4/0x520), sp b0e01fb0, fp b0d36254

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I5e6e66cba5f094bad98a275b5fabd196997406e8
2022-03-10 14:16:52 +08:00
Finley Xiao
3e0f904b83 PM / devfreq: rockchip-dfi: build depends on CPU config
This optimizes the size of rockchip-otp.o, details as follows.

./scripts/bloat-o-meter rockchip-dfi-old.o rockchip-dfi.o
add/remove: 0/20 grow/shrink: 0/1 up/down: 0/-3564 (-3564)
Function                                     old     new   delta
rk3368_dfi_set_event                           8       -      -8
rk3288_dfi_set_event                           8       -      -8
rk3128_dfi_set_event                           8       -      -8
rk3368_dfi_ops                                20       -     -20
rk3288_dfi_ops                                20       -     -20
rk3128_dfi_ops                                20       -     -20
rk3368_dfi_disable                            36       -     -36
rk3288_dfi_disable                            36       -     -36
rk3128_dfi_disable                            36       -     -36
rk3368_dfi_enable                             40       -     -40
rk3288_dfi_enable                             40       -     -40
rk3128_dfi_enable                             40       -     -40
rk3368_dfi_init                               76       -     -76
rk3128_dfi_init                               76       -     -76
rk3328_dfi_init                              212       -    -212
rk3128_dfi_get_event                         212       -    -212
rk3288_dfi_init                              240       -    -240
rockchip_dfi_init                            256       -    -256
rk3368_dfi_get_event                         260       -    -260
rk3288_dfi_get_event                         352       -    -352
rockchip_dfi_id_match                       1960     392   -1568
Total: Before=5144, After=1580, chg -69.28%

Change-Id: Ibb2b001fb9afdcb6fec5db9d075c71b3abb6fbf3
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2022-03-10 11:42:20 +08:00
Finley Xiao
9867d6e0e6 nvmem: rockchip-otp: build depends on CPU config
This optimizes the size of rockchip-otp.o, details as follows.

./scripts/bloat-o-meter rockchip-otp-old.o rockchip-otp.o
add/remove: 0/9 grow/shrink: 0/1 up/down: 0/-2224 (-2224)
Function                                     old     new   delta
px30_otp_clocks                               12       -     -12
rk3568_otp_clocks                             16       -     -16
rk3568_data                                   24       -     -24
px30_data                                     24       -     -24
rockchip_otp_reset                           128       -    -128
px30_otp_ecc_enable                          164       -    -164
px30_otp_wait_status                         176       -    -176
px30_otp_read                                416       -    -416
rockchip_otp_match                           980     392    -588
rk3568_otp_read                              676       -    -676
Total: Before=4721, After=2497, chg -47.11%

Change-Id: I960a51e826a17112d822daa2b77470e482e729d7
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2022-03-10 11:39:22 +08:00
Finley Xiao
11829be4d3 cpufreq: rockchip: Fix compile error when disable rockchip cpufreq
Fixes: 85556b1e7f ("cpufreq: rockchip: Implement rockchip_cpufreq_opp_set_rate()")
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I4d142a4a2319c87657e742616d8b27f1691df3a8
2022-03-10 10:43:11 +08:00
Sugar Zhang
52ea05a769 ARM: dts: rockchip: rv1106: Fix typo
Fixes: b61d06ed70 ("ARM: dts: rockchip: Add RGA2 node for RV1106")
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Icff13e47935bad9a1e8422d71d9e89f58668849e
2022-03-10 10:40:26 +08:00
Shawn Lin
cf6bed3a03 PCI: rockchip: dw: Simplify clock handling
Use new API to manage them.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Id8536ddda7fe14ede9d6df2435c34243913e39a1
2022-03-09 17:57:54 +08:00
Shawn Lin
c7215f118f PCI: rockchip: dw: Add inband msi support
Rockchip platforms supported outband msi routine via GIC ITS.
If msi irq is set, that means we start to support inband msi on
some specific platforms.

For inband msi support, we need SoC to provide msi specified interrupt
and MSI message can be interpreted by PCIe controller to manage MSI
routine.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I5ea019dd2889cd9cfc630d8a618ebd739c984f7d
2022-03-09 17:55:29 +08:00
Simon Xue
a67c19583f dma-buf: heaps: rk-dma-heap: refactor dma_buf_vmap
I don't know why rk_vmap_contig_pfn is not work on ARM32 platform.
May need more debug on this issue. Refactor dma_buf_vmap to use vmap
directly just let things go on.

Change-Id: I9aded08ddb75a6fb8745111a897ab5566d82a71d
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2022-03-09 17:27:53 +08:00
Algea Cao
1035e72482 drm/rockchip: vop2: Keep dclk:v_pixclk = 1:2 for HDMI split mode
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ib55cee1b45ea8f92ad72fb34844d10b6a25214b8
2022-03-09 16:45:03 +08:00
Algea Cao
5efa70a0f1 drm/rockchip: dw_hdmi: Support hdmi split mode
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I71c5785ecfb9480f9569d3c55dd634579a5176fb
2022-03-09 16:45:03 +08:00
XiaoDong Huang
02a8204f6b arm64: dts: rockchip: rk3588-rk806: close vdd_log in suspend
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: Id483d4ac5d448f25247bccac8fc9308284eda6d7
2022-03-09 16:34:16 +08:00
XiaoDong Huang
3c26e3d113 arm64: dts: rockchip: rk3588s: modify rockchip_suspend node
1. Enable ARMOFF_LOGOFF suspend mode.
2. Disable pmu debug function.

Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I77e758b34136d1603af999990b3e968fc8d482f1
2022-03-09 16:31:15 +08:00
Max Kellermann
837450ac42 UPSTREAM: lib/iov_iter: initialize "flags" in new pipe_buffer
commit 9d2231c5d7 upstream.

The functions copy_page_to_iter_pipe() and push_pipe() can both
allocate a new pipe_buffer, but the "flags" member initializer is
missing.

Fixes: 241699cd72 ("new iov_iter flavour: pipe-backed")
To: Alexander Viro <viro@zeniv.linux.org.uk>
To: linux-fsdevel@vger.kernel.org
To: linux-kernel@vger.kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit b19ec7afa9)
Bug: 220741611
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I91076a0b6327ee8dd87e75fc875062b6adf2de4c
2022-03-09 16:28:11 +08:00
Herman Chen
a1cfa3f557 video: rockchip: mpp: rkvenc2: Add split output
Add rkvenc2 slice split mode with slice irq enabled path.
1. Add split task detection for rkvenc2.
2. Add slice irq handling and read slice length fifo in irq.
3. Add poll request with parameter to return slice length in fifo.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I170c1be38deeb28d55057f9e19d50efe790a0989
2022-03-09 16:13:09 +08:00
Herman Chen
b158513048 video: rockchip: mpp: Add partition timing function
On encoder slice output mode the timing of each slice can be recorded.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Iceac5b8488dbfa85068e1460709f278cc2d3ebe4
2022-03-09 16:08:28 +08:00
XiaoDong Huang
21b6c3c6b4 arm64: dts: rockchip: rk3588-nvr-demo: keep vdd_log on in suspend
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: Id554241aa8242a04ffd26d397fcd9c0bb10b068d
2022-03-09 14:36:51 +08:00
Li Huang
e15a0fb6bd ARM: dts: rockchip: rv1106-evb-v10 enable rve node
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I3d397cdf27d459deba32c6327233dcfe58d51cdf
2022-03-09 14:34:18 +08:00
Sandy Huang
6cbe6c4e1d drm/rockchip: logo: add mutex lock protect for drm mm node
[02-10 13:20:47][ 6.774909][ T399] ------------[ cut here ]------------
[02-10 13:20:47][ 6.775778][ T399] kernel BUG at lib/list_debug.c:56!
[02-10 13:20:47][ 6.776233][ T399] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
[02-10 13:20:47][ 6.776776][ T399] Modules linked in: bcmdhd r8168
[02-10 13:20:47][ 6.777203][ T399] CPU: 4 PID: 399 Comm: HwBinder:379_2 Not tainted 5.10.66 #1083
[02-10 13:20:47][ 6.777865][ T399] Hardware name: Rockchip RK3588 EVB1 LP4 V10 Board (DT)
[02-10 13:20:47][ 6.778463][ T399] pstate: 60400009 (nZCv daif +PAN UAO -TCO BTYPE=-)
[02-10 13:20:47][ 6.779051][ T399] pc : __list_del_entry_valid+0xa8/0xac
[02-10 13:20:47][ 6.779528][ T399] lr : __list_del_entry_valid+0xa8/0xac
...
[02-10 13:20:47][ 6.788175][ T399] Call trace:
[02-10 13:20:47][ 6.788448][ T399] __list_del_entry_valid+0xa8/0xac
[02-10 13:20:47][ 6.788894][ T399] rm_hole+0x24/0x2bc
[02-10 13:20:47][ 6.789231][ T399] drm_mm_insert_node_in_range+0x614/0x64c
[02-10 13:20:47][ 6.789731][ T399] rockchip_gem_iommu_map+0x5c/0x164
[02-10 13:20:47][ 6.790186][ T399] rockchip_gem_prime_import_sg_table+0x9c/0x1c8
[02-10 13:20:47][ 6.790729][ T399] rockchip_drm_gem_prime_import_dev+0xc4/0x17c
[02-10 13:20:47][ 6.791260][ T399] rockchip_drm_gem_prime_import+0x18/0x28
[02-10 13:20:47][ 6.791758][ T399] drm_gem_prime_fd_to_handle+0x9c/0x1f4
[02-10 13:20:47][ 6.792235][ T399] drm_prime_fd_to_handle_ioctl+0x30/0x48
[02-10 13:20:47][ 6.792723][ T399] drm_ioctl+0x24c/0x3b8
[02-10 13:20:47][ 6.793084][ T399] __arm64_sys_ioctl+0x94/0xd0
[02-10 13:20:47][ 6.793487][ T399] el0_svc_common+0xb8/0x1a4
[02-10 13:20:47][ 6.793878][ T399] do_el0_svc+0x28/0x88
[02-10 13:20:47][ 6.794228][ T399] el0_svc+0x14/0x24
[02-10 13:20:47][ 6.794554][ T399] el0_sync_handler+0x88/0xec
[02-10 13:20:47][ 6.794955][ T399] el0_sync+0x1a8/0x1c0

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ifd0ec4628d3afb4a2337998737c6e0ba7b6c52ca
2022-03-09 14:25:43 +08:00
Li Huang
8ba4c48772 video: rockchip: rga3: fixup scale error
even multiples of 128 (act w/h) require a scaling factor -1

Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I8dc3faeb3863fbf4f285ca8423ac8633fdc36de4
2022-03-09 14:13:22 +08:00
Li Huang
acacd9e2f9 ARM: dts: rockchip: rv1106 add rve node
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I921a194aeeaa672ca1a6c7abcdd148773462b412
2022-03-08 16:20:49 +08:00
Li Huang
ccef10af4a video: rockchip: rve: init ver 1.0.0
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I21d912272a7a0789c86fee033fa74cb01980f477
2022-03-08 16:20:40 +08:00
Algea Cao
fb88ec443d drm/bridge: dw-hdmi-qp-cec: Write cec reg after cec data path enabled
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I45f00a9ad2875283e707fd36755659a75c76e744
2022-03-08 16:13:18 +08:00
Finley Xiao
392333d356 arm64: dts: rockchip: rk3588s: Add low temp config for opp table
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I2521cf3d713bdd6a3a64b2d918c9098877dcc58f
2022-03-08 16:07:44 +08:00
Finley Xiao
eb910e20ee soc: rockchip_system_monitor: Add support to change mem volt when low temp
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I7ce9959bb56617c2fc1111d047af5ec7e88ce60e
2022-03-08 16:07:27 +08:00
Finley Xiao
ebe79f43ab ARM: dts: rockchip: Add cpuinfo node for rv1106
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I52f2db5452f1880dcb9b027c1ada211b750d8c05
2022-03-08 16:00:54 +08:00
Finley Xiao
16bfe2ef56 ARM: dts: rockchip: Add otp node for rv1106
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ie67e55359794c9f22209904fb47f23094d165581
2022-03-08 16:00:54 +08:00
Finley Xiao
ff4269a817 nvmem: rockchip-otp: Add support for rv1106-otp
This adds the necessary data for handling otp on the rv1106.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I7a608546148faaeaa5a31506e90825f5295c5b97
2022-03-08 16:00:54 +08:00
Zefa Chen
d466135aef media: rockchip: vicap: fix hdr mode timestamp bug
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ie355235dd0568b3c790c7bfca558da870edb922e
2022-03-08 14:34:28 +08:00
Finley Xiao
2b2bf23ccd opp: Ignore unavailable opp when show opp summary
Fixes: 37d5c1a6fd ("opp: Add a summary tree in debugfs")
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I70c97957b48abe2417857f8aff5d4175d418b1e6
2022-03-08 11:43:55 +08:00
Finley Xiao
3c58fbc9c9 soc: rockchip: opp_select: Ignore unavailable opp
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I5db20c0cf95499a942768050713287dad73a22dc
2022-03-08 10:01:43 +08:00
Finley Xiao
a1f8ddc7bf soc: rockchip_system_monitor: Ignore unavailable opp
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I830feb91f6f6249f1b666c5a46bbeee9b395aaa3
2022-03-08 09:49:25 +08:00