Eric Dumazet
07b78bf6d0
BACKPORT: net/sched: cls_u32: fix netns refcount changes in u32_change()
...
commit 3db09e762d upstream.
We are now able to detect extra put_net() at the moment
they happen, instead of much later in correct code paths.
u32_init_knode() / tcf_exts_init() populates the ->exts.net
pointer, but as mentioned in tcf_exts_init(),
the refcount on netns has not been elevated yet.
The refcount is taken only once tcf_exts_get_net()
is called.
So the two u32_destroy_key() calls from u32_change()
are attempting to release an invalid reference on the netns.
syzbot report:
refcount_t: decrement hit 0; leaking memory.
WARNING: CPU: 0 PID: 21708 at lib/refcount.c:31 refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31
Modules linked in:
CPU: 0 PID: 21708 Comm: syz-executor.5 Not tainted 5.18.0-rc2-next-20220412-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31
Code: 1d 14 b6 b2 09 31 ff 89 de e8 6d e9 89 fd 84 db 75 e0 e8 84 e5 89 fd 48 c7 c7 40 aa 26 8a c6 05 f4 b5 b2 09 01 e8 e5 81 2e 05 <0f> 0b eb c4 e8 68 e5 89 fd 0f b6 1d e3 b5 b2 09 31 ff 89 de e8 38
RSP: 0018:ffffc900051af1b0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff8160a0c8 RDI: fffff52000a35e28
RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff81604a9e R11: 0000000000000000 R12: 1ffff92000a35e3b
R13: 00000000ffffffef R14: ffff8880211a0194 R15: ffff8880577d0a00
FS: 00007f25d183e700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f19c859c028 CR3: 0000000051009000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
__refcount_dec include/linux/refcount.h:344 [inline]
refcount_dec include/linux/refcount.h:359 [inline]
ref_tracker_free+0x535/0x6b0 lib/ref_tracker.c:118
netns_tracker_free include/net/net_namespace.h:327 [inline]
put_net_track include/net/net_namespace.h:341 [inline]
tcf_exts_put_net include/net/pkt_cls.h:255 [inline]
u32_destroy_key.isra.0+0xa7/0x2b0 net/sched/cls_u32.c:394
u32_change+0xe01/0x3140 net/sched/cls_u32.c:909
tc_new_tfilter+0x98d/0x2200 net/sched/cls_api.c:2148
rtnetlink_rcv_msg+0x80d/0xb80 net/core/rtnetlink.c:6016
netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2495
netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
netlink_unicast+0x543/0x7f0 net/netlink/af_netlink.c:1345
netlink_sendmsg+0x904/0xe00 net/netlink/af_netlink.c:1921
sock_sendmsg_nosec net/socket.c:705 [inline]
sock_sendmsg+0xcf/0x120 net/socket.c:725
____sys_sendmsg+0x6e2/0x800 net/socket.c:2413
___sys_sendmsg+0xf3/0x170 net/socket.c:2467
__sys_sendmsg+0xe5/0x1b0 net/socket.c:2496
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f25d0689049
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f25d183e168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f25d079c030 RCX: 00007f25d0689049
RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000005
RBP: 00007f25d06e308d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd0b752e3f R14: 00007f25d183e300 R15: 0000000000022000
</TASK>
Bug: 233075473
Fixes: 35c55fc156 ("cls_u32: use tcf_exts_get_net() before call_rcu()")
Signed-off-by: Eric Dumazet <edumazet@google.com >
Reported-by: syzbot <syzkaller@googlegroups.com >
Cc: Cong Wang <xiyou.wangcong@gmail.com >
Cc: Jiri Pirko <jiri@resnulli.us >
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com >
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: Lee Jones <lee.jones@linaro.org >
Change-Id: I7b19da654a2615bf602d692fe0f5f91e3d33c371
2022-06-06 10:51:21 +01:00
Shunhua Lan
63318e7269
media: rockchip: hdmirx: fix compilation warn of missing error code ret
...
Fixes: 0260220515 ("media: rockchip: hdmirx: add hdmirx class for audio info")
Signed-off-by: Shunhua Lan <lsh@rock-chips.com >
Change-Id: Ie8d93b19666233e6903dac2499022ccb85b37fda
2022-06-06 15:38:02 +08:00
Lin Jinhan
427fe90066
ARM: dts: rockchip: rv1106-smd-cam: fix pinctrl conflicts
...
Fix pinctrk conflicts between rkcif_mipi_lvds1 and rkisp
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com >
Change-Id: I57335c652cde902b6408d7c49cd6f0dab51128a1
2022-06-06 15:35:56 +08:00
Wangqiang Guo
2fe91f92a1
input: sensor: accel: fix gsensor da223 calibrate fail
...
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com >
Change-Id: If0868cb0b198dfc58cb9b380667a7a9a350a1507
2022-06-06 15:35:23 +08:00
Sandy Huang
2b5f381883
drm/rockchip: vop: fix missing error code 'ret' warning
...
Signed-off-by: Sandy Huang <hjc@rock-chips.com >
Change-Id: Ib01215115fba9e234a139215a29d64617616f7e3
2022-06-06 15:32:26 +08:00
Algea Cao
60fcb4a299
phy: rockchip-samsung-hdptx-hdmi: Fix missing error code 'ret'
...
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
Change-Id: Iabaaf76b47f767d8234633ace4215c715d0f51c2
2022-06-06 15:30:49 +08:00
Finley Xiao
2b306539cc
soc: rockchip: power-domain: Add missing error code in rockchip_pm_add_one_domain()
...
Fixes: 8b9bedf44e ("soc: rockchip: power-domain: support qos node status get")
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: I9cbb532b48615115c97615f746f3303efd1496e1
2022-06-06 15:29:13 +08:00
Finley Xiao
d088c2e8a7
driver: rknpu: Add missing error code in npu_opp_helper()
...
Fixes: b6b135b2f6 ("driver: rknpu: Change clock rate and read margin only when pd is on")
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: If4fc249f86d6f406157944afabee477908a56fa1
2022-06-06 15:26:12 +08:00
Finley Xiao
2598d85d44
MALI: bifrost: Add missing error code in kbase_devfreq_opp_helper()
...
Fixes: eb26be047e ("MALI: bifrost: Set intermediate rate before change read margin")
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: Id4df3e3b990762bc737d1b78f44e95fa00d12aff
2022-06-06 15:24:53 +08:00
Yu Qiaowei
d5c52c11c1
video: rockchip: rga3: specify ABC mode when src and dst use the same memory
...
In ABB mode, the wr output will calculate the offset output first address
according to the offset of win0, so it is necessary to use the ABC mode
to ensure that the output is to the correct address.
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: I3daf6e2793b64689df07c62074bc637055883d8a
2022-06-06 14:10:28 +08:00
Herman Chen
89ff0a2a21
video: rockchip: mpp: rkvenc2: Dump status reg on timeout
...
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
Change-Id: If69e18d1597fd40206d991eb962110f78fc8d3f2
2022-06-06 14:09:09 +08:00
Zhen Chen
8fd4cab89d
MALI: bifrost: kernel_map_user_io_pages(): log error if vmap() returns NULL.
...
Change-Id: Ie1d3682cc32fc191815210f19198b1b4922d830d
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com >
2022-06-06 11:10:53 +08:00
Zhen Chen
9eccd1f8a3
MALI: bifrost: prevent a rare null pointer exception in update_on_slot_queues_offsets()
...
The most recent situation is that the null pointer exception
is only reported from repeated reboot test on rk3588_EDGE_SDK,
not on rk3588_Linux_SDK or rk3588_Android_SDK.
Change-Id: I1e5ce9eb9fd32c29294e115e6014a8114c896754
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com >
2022-06-06 11:09:35 +08:00
Herman Chen
fd0f184a8e
video: rockchip: mpp: rkvenc2: Optimize slice mode
...
1. Reduce extra zero length last slice transaction.
2. Add slice write / read counter.
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
Change-Id: I55836d8c1bcc4a8f1d5d131a46af26d3018bea7c
2022-06-02 20:43:51 +08:00
Frank Wang
ec5b6a188a
usb: typec: tcpm: fix multiple times discover svids error
...
PD3.0 Spec 6.4.4.3.2 say that only Responder supports 12 or more SVIDs,
the Discover SVIDs Command Shall be executed multiple times until a
Discover SVIDs VDO is returned ending either with a SVID value of
0x0000 in the last part of the last VDO or with a VDO containing two
SVIDs with values of 0x0000.
In the current implementation, if the last VDO does not find that the
Discover SVIDs Command would be executed multiple times even if the
Responder SVIDs are less than 12, and we found some odd dockers just
meet this case. So fix it.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com >
Change-Id: I3bcb68d452af1946557a4781ecc4752b20562b16
2022-06-02 20:41:22 +08:00
Wu Liangqing
69865c4ec1
arm64: dts: rockchip: rk3588s-tablet-single: adjust rk806 LDO1/LDO2
...
avcc_1v8_s0 add vcc_1v8_s0 to adapter hardware design
Change-Id: I720a9a9abb496be250c899a44791762dd1337d64
Signed-off-by: Wu Liangqing <wlq@rock-chips.com >
2022-06-02 20:38:47 +08:00
Frank Wang
fc9b20c17a
usb: dwc3: set the usb role to usb2 phy
...
Concurrently set the USB role to the USB2 PHY when we received
role_switch set from the TCPM (Type-C Port Manager).
Signed-off-by: Frank Wang <frank.wang@rock-chips.com >
Signed-off-by: William Wu <william.wu@rock-chips.com >
Change-Id: Ie677ee7f5c62b1c26fb38080ce46ea0a6cabbbc7
2022-06-02 20:26:54 +08:00
Frank Wang
3ff4580f86
phy: rockchip: inno_usb2: add submode setting support
...
For Type-C scene, the TCPM notify the USB role to the USB
controller driver. However, the USB2-PHY is imperceptible.
So use submode to get the desired USB role from the USB
controller driver. Later, we can use the phy_set_mode_ext
in the USB controller driver to pass the desired USB role
to USB2-PHY.
With this patch, it can avoid to do battery charger detection
if the Type-C USB role is Host.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com >
Signed-off-by: William Wu <william.wu@rock-chips.com >
Change-Id: I37d3a43d5e0e82e37d45e2e49fb19c4add595b40
2022-06-02 20:26:54 +08:00
Wang Panzhenzhuan
619b882219
dt-bindings: media: i2c: add dw9800w
...
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com >
Change-Id: I86f8a184337c64f22022ade327a6aeda3d675131
2022-06-02 20:20:00 +08:00
Wang Panzhenzhuan
96201a0c4e
media: i2c: add vcm driver dw9800w
...
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com >
Change-Id: I1fa84ba018c376b79b952b6b0da9ab667d92fbb2
2022-06-02 20:19:42 +08:00
Lin Jianhua
e43dd4e3e3
ARM: dts: rockchip: rk312x: fixup the wrong voltage of opp-table
...
Fixes: 1bdf8f7722 ("ARM: dts: rockchip: rk312x: adjust opp-table for chips with low performance")
Signed-off-by: Lin Jianhua <linjh@rock-chips.com >
Change-Id: I24e6223a82bc8a93f49132b2136f3d5534c04601
2022-06-02 20:07:37 +08:00
Joseph Chen
b4fa954b4c
clk: rockchip: rk3588: fix 32-bit compile warning
...
"warn: should 'fout_hz << s' be a 64 bit type?"
Signed-off-by: Joseph Chen <chenjh@rock-chips.com >
Change-Id: I3b842974c2c1709878702c35963df74acd7f4d2f
2022-06-02 16:01:25 +08:00
Finley Xiao
aa41f82fc5
arm64: dts: rockchip: rk3588s: Add rockchip,leakage-voltage-sel for dmc
...
Change voltage according to logic leakage.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: Ic9d3fcf7ab3bd2730ec2a7edb3430ffc22f7e92f
2022-06-02 10:44:44 +08:00
Finley Xiao
ce865184a6
arm64: dts: rockchip: rk3588s: Add mem supply for dmc
...
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: I728dc5f0e64b4c9b9e43fed0b8a0fcc88fe7efaf
2022-06-02 10:28:27 +08:00
Finley Xiao
6a1d3bccc8
PM / devfreq: rockchip_dmc: Implement rockchip_dmcfreq_adjust_opp_table()
...
The dev_pm_opp_add() can't be used to add opp with multiple voltage
ranges, and there's no need to add new opp, just need adjust opp rate
according to the rate support by DDR.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: Ic9dd29bedd22d0b7928110c6d0c6483414b48415
2022-06-02 10:25:47 +08:00
Finley Xiao
d388ec1af3
PM / devfreq: rockchip_dmc: Add multiple regulators support
...
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: I46f38c4b40031d09bd3881ff65fb11c64fa63d13
2022-06-02 09:49:21 +08:00
Jens Axboe
95e278bdc8
UPSTREAM: io_uring: always use original task when preparing req identity
...
If the ring is setup with IORING_SETUP_IOPOLL and we have more than
one task doing submissions on a ring, we can up in a situation where
we assign the context from the current task rather than the request
originator.
Always use req->task rather than assume it's the same as current.
No upstream patch exists for this issue, as only older kernels with
the non-native workers have this problem.
Bug: 233078742
Reported-by: Kyle Zeng <zengyhkyle@gmail.com >
Signed-off-by: Jens Axboe <axboe@kernel.dk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: Akilesh Kailash <akailash@google.com >
(cherry picked from commit 29f077d070
from linux-5.10.y stable branch)
Change-Id: I4cc543950a95e1df201fa9867c5e9c272fd54b6f
2022-06-01 16:15:00 +00:00
Damon Ding
8556761fe1
ARM: dts: rockchip: rv1106-evb: add mcu ext board support
...
A 320x480 RGB/MCU screen K350C4516T.
Signed-off-by: Damon Ding <damon.ding@rock-chips.com >
Change-Id: I69fb045703cc882e0536b5e44df0874c1b1b90ce
2022-06-01 17:03:50 +08:00
Yongzhen
7802c2a45e
ARM: dts: rockchip: rv1106g-38x38: change include dtsi
...
Signed-off-by: Yongzhen <yuyz@rock-chips.com >
Change-Id: I8b04246302bc449addd87808b4c16f2c37e37c51
2022-06-01 17:02:15 +08:00
Sach Lin
c66fae821e
media: rockchip: isp: use lager clk in 4 vir-isp mode
...
Signed-off-by: Sach Lin <sach.lin@rock-chips.com >
Change-Id: I6b2441a33a5c2f13879631090d1af62ec9d9b6cd
2022-06-01 16:59:55 +08:00
Zhang Yubing
42b3b26f75
arm64: dts: rockchip: rk3588-nvr: support dynamic switch dclk
...
It need enable the hdmi phy pll clock function node when the hdmi
phy pll want be used.
For support dynamic switch dclk with hdmi phy pll, the hdmi phy pll
need config in display subsystem node.
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com >
Change-Id: I740b6154b37c1e5d9491fafd33c0b6c0c9ffd149
2022-06-01 16:48:33 +08:00
Zhang Yubing
ca98cd18e8
arm64: dts: rockchip: rk3588: add hdmi phy child node for clock function
...
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com >
Change-Id: I4319af5a7e642caa58b61211ca8900080380a713
2022-06-01 16:48:33 +08:00
Zhang Yubing
9be2da2d2f
phy: rockchip-samsung-hdptx-hdmi: register clk in child device
...
In uboot, a device can't be used as both phy device and clock
device. So It better to register a child device as clock device.
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com >
Change-Id: I6d06f3c3b0f0b48741a5c53f51df1766b2cb0740
2022-06-01 16:48:33 +08:00
Zhang Yubing
9afbb1484f
arm64: dts: rockchip: rk3588: remove hdmiphy pll config
...
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com >
Change-Id: Ib72a7a0384f564699926af4b60d978021e995eb8
2022-06-01 16:48:33 +08:00
Zhang Yubing
436e63d852
drm/rockchip: vop2: move expend clk in display sub-system node
...
Moving expend clk in display sub-system node, which make it
easier when add extend clk for vop.
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com >
Change-Id: I3175d54c8a44fc6b205fcd3623e3c5656b308fe8
2022-06-01 16:48:33 +08:00
Jianqun Xu
9d8e12c075
ARM: configs: rk3308_linux_aarch32_defconfig: CONFIG_STMMAC_ETH=y
...
Select stmmac ethernet for rockchip dw mac.
+CONFIG_STMMAC_ETH=y
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com >
Change-Id: I21d83b96cf9e1759ea40aa2b180dff35bc936384
2022-06-01 16:40:41 +08:00
Jianqun Xu
7f2240e541
arm64: configs: rk3308_linux_defconfig: CONFIG_STMMAC_ETH=y
...
Select stmmac ethernet for rk3308 gmac.
+CONFIG_STMMAC_ETH=y
Change-Id: Ife31b97e1d4aa3aa749544c42dbc7fe8ab74274f
Signed-off-by: Lin Jianhua <linjh@rock-chips.com >
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com >
2022-06-01 16:27:00 +08:00
Lian Xu
bd0cebb689
media: rockchip: isp: read the color_ctrl reg for isp32
...
Change-Id: I4c06d7944b0fb61bfd5f39560a7bd4afefa4f761
Signed-off-by: Lian Xu <xu.lian@rock-chips.com >
2022-06-01 14:36:37 +08:00
Jianqun Xu
cd6d4b33c5
arm64: configs: rockchip_linux_defconfig set IOMMU IOVA ALIGN to 64KiB
...
Set iommu iova align to lowest value 64KiB.
+CONFIG_IOMMU_LIMIT_IOVA_ALIGNMENT=y
+CONFIG_IOMMU_IOVA_ALIGNMENT=4
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com >
Change-Id: I52bb3dea9ff49e2cc032d643442176d312a185b6
2022-06-01 14:33:37 +08:00
Finley Xiao
7b7086f75d
clk: rockchip: rk3588: Remove CLK_IS_CRITICAL for CLK_650M_SRC
...
The CLK_650M_SRC is unused.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: I54d473d27220b7620f1c25e21abadb1c9613e3f9
2022-06-01 14:31:53 +08:00
Finley Xiao
fc8a889a83
Revert "clk: rockchip: rk3588: Remove CLK_IGNORE_UNUSED for lpll, b0pll and b1pll"
...
This reverts commit 7b43769a16 .
Change-Id: I3f24c6403e91f9a7e1e2bfe86f9035984298d0b5
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
2022-06-01 14:31:53 +08:00
Chen Shunqing
8cd9b111b1
media: rockchip: hdmirx: fix get timing fail after set edid
...
Signed-off-by: Chen Shunqing <csq@rock-chips.com >
Change-Id: I8459fb4a57f83e4f301cdfb9215ba052a97c1f12
2022-06-01 11:20:33 +08:00
Tao Huang
ae520a187c
ARM: rv1106-evb.config: Update by diffconfig
...
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: I15631c039350f58d64e14331f7b75fd8a3703ee4
2022-06-01 09:48:10 +08:00
Lin Jinhan
8d6900a1f5
ARM: configs: rv1106-smart-door: add camera module driver enable
...
CONFIG_RK803=y
CONFIG_VIDEO_GC2093=y
CONFIG_VIDEO_SC132GS=y
Startup time : increased by 34ms.
Firmware size : increased by 6KByte.
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com >
Change-Id: I1697803d36d1cecaee46b0f91097c52b72cfa9cb
2022-06-01 09:47:03 +08:00
Lin Jinhan
9d79315abd
ARM: dts: rockchip: rv1106-smd-cam: add rk803 & sc132gs node
...
RMSL132 module contains RK803 and SC132GS.
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com >
Change-Id: Ifc7d36c76c319645d5f7d8dce2c2ddff018bc306
2022-06-01 09:44:31 +08:00
Lin Jinhan
0cb5f462d0
misc: rk803: add power supplies control
...
The RK803 in the RMSL312 needs power control to work properly.
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com >
Change-Id: Icc8a60e1a87dd2c3b32bda8598dc65d73e28f917
2022-06-01 09:40:26 +08:00
Lin Jinhan
93e191ebba
media: i2c: add SC132GS driver
...
add reset gpio control
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com >
Change-Id: I3b39752bddb2035bbd61828c8c86427901c973db
2022-06-01 09:36:20 +08:00
Algea Cao
50f3fd6b3d
drm/rockchip: dw_hdmi: Update RK3588 color selection policy
...
1.If mode can't support yuv420, change color to rgb.
2.If mode is 10 bit color deep mode, tmds clk is greater than
tv's max tmds clk and mode can't support yuv420, change color
deep to 8bit.
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
Change-Id: I947f68b75c5dedaf9e8b4db2c87bb2381186a63a
2022-06-01 09:24:50 +08:00
Algea Cao
e1cf1f3db7
drm/bridge: synopsys: dw-hdmi-qp: Fix 4K30 vic is zero
...
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
Change-Id: I6d25db1643ae93ea11e1a3503d5632c1f8ae8906
2022-06-01 09:11:00 +08:00
Mark-PK Tsai
0f77129416
FROMLIST: remoteproc: Fix dma_mem leak after rproc_shutdown
...
Release dma coherent memory before rvdev is free in
rproc_rvdev_release().
Below is the kmemleak report:
unreferenced object 0xffffff8051c1a980 (size 128):
comm "sh", pid 4895, jiffies 4295026604 (age 15481.896s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000003a0f3ec0>] dma_declare_coherent_memory+0x44/0x11c
[<00000000ad243164>] rproc_add_virtio_dev+0xb8/0x20c
[<00000000d219c8e9>] rproc_vdev_do_start+0x18/0x24
[<00000000e694b468>] rproc_start+0x22c/0x3e0
[<000000000b938941>] rproc_boot+0x4a4/0x860
[<000000003c4dc532>] state_store.52856+0x10c/0x1b8
[<00000000df2297ac>] dev_attr_store+0x34/0x84
[<0000000083a53bdb>] sysfs_kf_write+0x60/0xbc
[<000000008ed830df>] kernfs_fop_write+0x198/0x458
[<0000000072b9ad06>] __vfs_write+0x50/0x210
[<00000000377d7469>] vfs_write+0xe4/0x1a8
[<00000000c3fc594e>] ksys_write+0x78/0x144
[<000000009aef6f4b>] __arm64_sys_write+0x1c/0x28
[<0000000003496a98>] el0_svc_common+0xc8/0x22c
[<00000000ea3fe7a3>] el0_svc_compat_handler+0x1c/0x28
[<00000000d1a85a4e>] el0_svc_compat+0x8/0x24
Signed-off-by: Mark-PK Tsai <mark-pk.tsai@mediatek.com >
Bug: 233721768
Link: https://lore.kernel.org/lkml/20220422062436.14384-3-mark-pk.tsai@mediatek.com/
Change-Id: I77ba09a8cb86d90f6498e6a9e9747aa5c155c7da
Signed-off-by: Mark-PK Tsai <mark-pk.tsai@mediatek.com >
(cherry picked from commit 5eee510aa3aa92fd8409cfcc29bda06cc9e4fe37)
2022-05-31 17:47:14 +00:00