Commit Graph

1281258 Commits

Author SHA1 Message Date
Weiwen Chen
79fb79ef7a ARM: configs: rv1126b-ipc.config: update camera sensor
-CONFIG_VIDEO_SC3336=m
-CONFIG_VIDEO_SC530AI=m
+CONFIG_VIDEO_SC450AI=m
+CONFIG_VIDEO_SC850SL=m

Update with cmd:
    make ARCH=arm rv1126b_defconfig
    cp .config tmp.config
    make ARCH=arm rv1126b_defconfig rv1126b-ipc.config
    ./scripts/diffconfig -m tmp.config .config > rv1126b-ipc.config

Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I049cbec04bcee70e9b929c946ba8c88ae8da3a8e
2025-04-16 03:15:42 +00:00
Elaine Zhang
6d253a7dab net: can: rockchip: rk3576: support auto retx cnt setting
Change-Id: Ibe195527e08ed68c1f1262fe4957ab84c4426232
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2025-04-16 02:07:46 +00:00
Zefa Chen
9e061599fe media: rockchip: vicap fixes array out of bounds issue
Change-Id: Iaa4d6562aae6c0b43598253458d52b224246a18b
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-04-16 02:06:34 +00:00
Su Yuefu
bf9e78d287 arm64: dts: rockchip: rv1126b-evb3-v10: fix mclk and dphy error
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: I2dfcc163eb84c5e8cc2b1e55820b9036ff81fbe4
2025-04-16 02:04:06 +00:00
GangGuo Wang
1c80d2ad19 arm64: dts: rockchip: rv1126bp-evb: Add spi nand config in rv1126bp-evb-v14.dts
Signed-off-by: GangGuo Wang <gavin.wang@rock-chips.com>
Change-Id: If631127210307f66dcd852c0e4db2bec66cf2ed3
2025-04-15 12:14:34 +00:00
Zitong Cai
0d044fa811 arm64: dts: rockchip: rk3576-vehicle-evb: Fix the flashing screen issue
After completing the initialization of serdes in uboot, enter the kernel
to perform initialization again

Change-Id: I689c30f55d9e259e5adaa95029f7523026cbed0a
Signed-off-by: Zitong Cai <zitong.cai@rock-chips.com>
2025-04-15 09:46:50 +00:00
Zitong Cai
360ebad14a arm64: dts: rockchip: rk3576-vehicle-evb-v20.dts: Fix the flashing screen issue
After completing the initialization of serdes in uboot, enter the kernel
to perform initialization again

Change-Id: Ia603bd2b8892f1647d0c0fa37f38e1422f78a6b3
Signed-off-by: Zitong Cai <zitong.cai@rock-chips.com>
2025-04-15 09:46:08 +00:00
Caesar Wang
f7e3e42816 ARM: configs: Enable CONFIG_DRM_IGNORE_IOTCL_PERMIT for rv1126b-display.config
Change-Id: I6f60a766963ab11bba3866550c12ae0a4dc4c5f7
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2025-04-15 09:38:37 +00:00
Cai YiWei
6b1fd4927d media: rockchip: isp: fix isp32 lite stats error
error info
WARNING: CPU: 3 PID: 422 at drivers/media/common/videobuf2/videobuf2-core.c:2035 __vb2_queue_cancel+0x1f8/0x260
Modules linked in: bcmdhd(O)
CPU: 3 PID: 422 Comm: binder:422_2 Tainted: G        W  O       6.1.118 #390
Hardware name: Rockchip RK3562 EVB2 DDR4 V10 Board (DT)
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __vb2_queue_cancel+0x1f8/0x260
lr : __vb2_queue_cancel+0x38/0x260
sp : ffffffc00c3dbb60
x29: ffffffc00c3dbb60 x28: 0000000000000013 x27: ffffffc00c3dbcd0
x26: ffffffc0097266d8 x25: ffffff804b310e40 x24: ffffff800ff09a00
x23: ffffff80054f8538 x22: ffffff80054ee228 x21: ffffff80054ee228
x20: ffffff800ff09a00 x19: ffffff80054eded0 x18: ffffffc00bce1070
x17: 6e696d6165727473 x16: ffffffffffffffff x15: 0000000000000004
x14: ffffffc009ffc980 x13: 0000000000003fff x12: 0000000000000003
x11: 0000000000000000 x10: 0000000000000001 x9 : 32e96f8e48c96c00
x8 : 0000000000000001 x7 : 205b5d3038393739 x6 : 372e33303738205b
x5 : ffffffc00c3dba30 x4 : 0000000000000000 x3 : 0000000000000000
x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
 __vb2_queue_cancel+0x1f8/0x260
 vb2_core_streamoff+0x28/0xac
 vb2_ioctl_streamoff+0x84/0xb8
 v4l_streamoff+0x24/0x30
 __video_do_ioctl+0x2d8/0x3f0
 video_usercopy+0x418/0x9ac
 video_ioctl2+0x18/0x24
 v4l2_ioctl+0x4c/0x5c
 __arm64_sys_ioctl+0x90/0xc8
 invoke_syscall+0x40/0x104
 el0_svc_common+0xbc/0x168
 do_el0_svc+0x1c/0x28
 el0_svc+0x1c/0x68
 el0t_64_sync_handler+0x68/0xb4
 el0t_64_sync+0x164/0x168

Change-Id: Ic508f9f077333f951f396dc5ca05563238a5797c
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-04-15 09:07:15 +00:00
Xu Hongfei
ba50a2503c media: rockchip: fec: set the header offset for FBCE output
Signed-off-by: Xu Hongfei <xuhf@rock-chips.com>
Change-Id: Ib768695f7c75a95ad5779b95349aa34af64268d1
2025-04-15 08:20:30 +00:00
Xu Hongfei
7d79c22357 media: rockchip: fec: add frame timeout info to procfs
Signed-off-by: Xu Hongfei <xuhf@rock-chips.com>
Change-Id: Iafd172580d8ad04ecfc36d6bf361350536975ccb
2025-04-15 08:20:30 +00:00
Wang Panzhenzhuan
2a6adfdae4 media: i2c: ov16880: add read otp support
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Ib62e11283c4a1a59609d3cbe2c2fab1ae7ad8b2a
2025-04-15 08:06:22 +00:00
Elaine Zhang
5075a133a0 net: can: rockchip: rk3576: Fix dma function
Add dma thr setting.
Fix dma msize.

Change-Id: Ib4f5f4530ea42102793b8d5b790c44e165545cbf
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2025-04-15 14:58:13 +08:00
Jon Lin
4934e2a65f PCI: rockchip: dw: Optimize power down process
PCI Express Card Electromechanical Specification Revision 3.0
2.2.3. Power Down:
  3.3V/12V    _________________________________
                                               \__________
  PERST#      ______________
                            \_____________________________
  REFCLK      _________________________
                                       \__________________
  LINK        ______
                    \_____________________________________

Change-Id: I9f630c85a8022c02232f5898f35556f3eab20cfb
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-04-15 03:37:32 +00:00
Zefa Chen
1cb5049373 arm64: dts: rockchip: rk3588: move rkcif_mipi_lvds4/rkcif_mipi_lvds5 to rk3588s.dtsi
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I3d66d09c3ba8b33f7cb10c2225cda169307c480f
2025-04-15 10:57:12 +08:00
Damon Ding
1751c23835 drm/rockchip: vop2: disable/enable cluster sub wins when entering/exiting PSR mode
If the cluster sub wins are enabled, there will be POST_BUF_EMPTY
errors after entering the PSR mode, because cluster main wins are
disabled while the sub wins still are active. The patch can help
avoid these unexpected POST_BUF_EMPTY errors.

Change-Id: I3555e0c08c7c4eacf0ace472e3154693c03c6aa9
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-04-14 11:31:44 +00:00
Sugar Zhang
b831f32988 scripts: Add support for dts xlate from rv1126 to rv1126b
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I428eb77eef58cdcd035a633ffb5a2d4b813c09c3
2025-04-14 19:27:04 +08:00
Damon Ding
8d3d26903e drm/rockchip: vop2: add support mcu panel psr mode
Psr mode can help reduce power consumption when using the mcu panel,
which supports to refresh the image on its own while it remains
unchanged.

Change-Id: Ib9bd1bb472c996277eb374cc9ba1433ce3930d55
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-04-14 08:57:02 +00:00
Hu Kejun
2e47abd94d media: rockchip: aiisp: add procfs
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I602bc22b493ee51fda7c66656bec4ef38a5a6f2d
2025-04-14 08:56:24 +00:00
Wei Dun
bb324ace46 media: rockchip: vpss: support FBC format for rockit
Signed-off-by: Wei Dun <willam.wei@rock-chips.com>
Change-Id: I1a7f77cd77350071204051c0033cfb697da244fb
2025-04-14 16:53:21 +08:00
Damon Ding
41f6f64858 drm/rockchip: vop2: Leave vblank enabled after entering the PSR mode
According to the following commits:
commit 9d0e3cac35 ("drm/atomic: Allow vblank-enabled + self-refresh "disable"")
commit 2bdba9d4a3 ("drm/rockchip: vop: Leave vblank enabled in self-refresh")

It is better to leave vblank enabled after entering the PSR mode, in
order to ensure that the vblank APIs (like DRM_IOCTL_WAIT_VBLANK) can
work in PSR mode. User space is not aware when the display system is
already in PSR mode, so this appears to be an API violation.

Without this patch, there may be a warning according to the following
check in drivers/gpu/drm/drm_atomic_helper.c:

static void
disable_outputs(struct drm_device *dev, struct drm_atomic_state *old_state)
{
......
		ret = drm_crtc_vblank_get(crtc);
		/*
		 * Self-refresh is not a true "disable"; ensure vblank remains
		 * enabled.
		 */
		if (new_crtc_state->self_refresh_active)
			WARN_ONCE(ret != 0,
				  "driver disabled vblank in self-refresh\n");
		else
			WARN_ONCE(ret != -EINVAL,
				  "driver forgot to call drm_crtc_vblank_off()\n");
		if (ret == 0)
			drm_crtc_vblank_put(crtc);
......
}

Change-Id: I95ee15864c1dfa1045c41c7a9ed2985bb6107f2b
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-04-14 07:09:12 +00:00
Damon Ding
c190cb7219 drm/rockchip: vop: Leave vblank enabled after entering the PSR mode
According to the following commits:
commit 9d0e3cac35 ("drm/atomic: Allow vblank-enabled + self-refresh "disable"")
commit 2bdba9d4a3 ("drm/rockchip: vop: Leave vblank enabled in self-refresh")

It is better to leave vblank enabled after entering the PSR mode, in
order to ensure that the vblank APIs (like DRM_IOCTL_WAIT_VBLANK) can
work in PSR mode. User space is not aware when the display system is
already in PSR mode, so this appears to be an API violation.

Without this patch, there may be a warning according to the following
check in drivers/gpu/drm/drm_atomic_helper.c:

static void
disable_outputs(struct drm_device *dev, struct drm_atomic_state *old_state)
{
......
		ret = drm_crtc_vblank_get(crtc);
		/*
		 * Self-refresh is not a true "disable"; ensure vblank remains
		 * enabled.
		 */
		if (new_crtc_state->self_refresh_active)
			WARN_ONCE(ret != 0,
				  "driver disabled vblank in self-refresh\n");
		else
			WARN_ONCE(ret != -EINVAL,
				  "driver forgot to call drm_crtc_vblank_off()\n");
		if (ret == 0)
			drm_crtc_vblank_put(crtc);
......
}

Change-Id: Ide735636ab53fd6977de5034b8cfc4c8341220af
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-04-14 07:09:12 +00:00
Damon Ding
423cb65164 arm64: dts: rockchip: rk3588: Add LCD module NE160QAM-NX1 eDP display board
The module NE160QAM-NX1 support eDP v1.4b with the following
features:

- Support resolutions 3840x2400p60 and 3840x2400p120
- 4 lanes eDP interface with 8.1Gbps link rates
- DPCD v1.4
- PSR(Panel self Refresh)
- DSC(Display Stream Compression)

Change-Id: I41361dc5500cd35234bfdc8436a50e3117c6fba2
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-04-14 11:40:44 +08:00
Damon Ding
51842a03a9 arm64: dts: rockchip: rk3576: Add LCD module NE160QAM-NX1 eDP display board
The module NE160QAM-NX1 support eDP v1.4b with the following
features:

- Support resolutions 3840x2400p60 and 3840x2400p120
- 4 lanes eDP interface with 8.1Gbps link rates
- DPCD v1.4
- PSR(Panel self Refresh)
- DSC(Display Stream Compression)

Change-Id: Ibd0472e00cef827900ef78320ef08fc372e265d3
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-04-14 11:40:44 +08:00
Damon Ding
a205209330 drm/bridge: analogix_dp: Add &link_train.max_link_rate and &link_train.max_lane_count
The &link_train.link_rate and &link_train.lane_count are used as the
max_link_rate and max_lane_count to check the bandwidth limitation
, select output format and so on. However, they both also are used as
the actual link_rate and lane_count for the eDP controller and phy.

So we add &link_train.max_link_rate and &link_train.max_lane_count
in order to avoid the confusion in the use of above variables.

On the other hand, some unexpected errors will occur without this
patch in some cases.

When I test the PSR function of eDP panel module NE160QAM-NX1, the
link rate will be set to the 8.1G, which is the max supported link
rate of this module, after exiting the PSR state, but it should be
5.4G corresponding to 3840x2400p60 resolution.

analogix_dp_detect(): set the &link_train.link_rate to 8.1G
  -> analogix_dp_fast_link_train():
     use the &link_train.link_rate as the previous link config
    -> analogix_dp_set_link_bandwidth()
      -> phy_configure():
	 error: invalid link_rate config 8.1G

Change-Id: I1a4ae3c1eb308c9e0d25fb7736de52336ea7f880
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-04-14 11:40:44 +08:00
Liang Chen
44a8de7d98 clk: rockchip: clk-pvtpll: calibrate pvtpll init frequency of enc/aiisp for rv1126b
Change-Id: I1da682ade0ce83d8fdebb769368512f54edbb188
Signed-off-by: Liang Chen <cl@rock-chips.com>
2025-04-12 11:25:24 +08:00
Xu Hongfei
5b5bbdabd0 arm64: dts: rockchip: rv1126b: Add resets for fec
Signed-off-by: Xu Hongfei <xuhf@rock-chips.com>
Change-Id: I9f974e46f92cf9b792f31d0e82d1d282907b46c1
2025-04-11 11:50:54 +00:00
Cai YiWei
1220a99380 media: rockchip: isp: uv write on-off if black and white switch for isp35
Change-Id: Ib72fcbbc0520f81912b2af5e48a3aab61264af1b
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-04-11 10:31:47 +00:00
Cai YiWei
c747fe61ab media: rockchip: isp: fix w3a with aiisp for isp35
Change-Id: I17fd6a32670a609bac13cc4ccb0df92eff364817
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-04-11 10:31:47 +00:00
Algea Cao
db27b299b7 drm/bridge: synopsys: dw-hdmi-qp: Get uboot color format from avi regs in dsc mode
RK3588/RK3576 hdmi color format setting and dsc mode setting are
the same mask in the same register. If dsc is enabled for hdmi in
uboot, what color is hdmi output in uboot that cannot be obtained
from this register in kernel.
Since hdmi in dsc mode always sends avi infoframe, color format
of hdmi output in uboot can be read from the avi register.

Change-Id: I68157455342302338370feb9176b46e2051b4f01
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2025-04-11 09:57:03 +00:00
Algea Cao
f1c83fae2e drm/bridge: synopsys: dw-hdmi-qp: Clear edid property when hdmi plug out
If edid property is not cleared when hdmi plug out, edid value
maybe keep previous sink's when the hdmi is connected to another
sink.

Change-Id: I8d06de17040573de4ef4706183bd7b46c4002ae4
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2025-04-11 09:57:03 +00:00
Chaoyi Chen
eb9d019755 arm64: dts: rockchip: rv1126b: Add power domain for vop/mipi_dphy
Change-Id: Ie5413704450ea82de9a9520356ffb5bedcccc7cc
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2025-04-11 17:49:55 +08:00
Finley Xiao
db8da3e7b0 soc: rockchip: power-domain: Add protect for rv1126b pd npu and vdo
Change-Id: I7d688a4eb0e2ec71245c5a635ee05e7c74adb645
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2025-04-11 17:32:21 +08:00
ZhengRong Ruan
09d9e44876 arm64: dts: rockchip: rv1126b: add optee dts
Change-Id: I87e0bb9ba75735c599a8729f02d34da6f6af44eb
Signed-off-by: ZhengRong Ruan <ryan.ruan@rock-chips.com>
2025-04-11 09:26:06 +00:00
Yu Zheng
0387650099 ARM: configs: rv1126b-evb: enable icm42670
Signed-off-by: Yu Zheng <yu.zheng@rock-chips.com>
Change-Id: I3967dd7d71fbc001c10c6d1bd226f6db38c71756
2025-04-11 17:12:27 +08:00
Sandy Huang
86f79d2ce8 drm/rockchip: vop2: fix the logic error to control the sharp en
Fixes: cbb33e40aa (drm/rockchip: vop2: Ensure rk3576 sharp/post-scaler/split are mutually exclusive)
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ia1f572717604a420ec7aafc1a4cc383c99930f08
2025-04-11 08:55:46 +00:00
Sandy Huang
b8a12e45c0 drm/rockchip: vop2: add more log for debug
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Id31728617b26d2c744633aad770b869d814843e5
2025-04-11 08:55:37 +00:00
Sandy Huang
e7dbbdf6ba drm/rockchip: vop2: correctly get old/new vcstate
At atomic check stage, crtc->state is old state and equal to function
drm_atomic_get_old_crtc_state(), After swap state, the crtc->state is
new state and equel to drm_atomic_get_new_crtc_state().

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I32bf635dbadc7a771cec8d241fe943738f2d2567
2025-04-11 08:55:37 +00:00
Sandy Huang
fd72b2f4af drm/rockchip: vop2: init vp->output_if for logo state
vp->output_if will be used at vop2_crtc_atomic_disable(), so we need
init it at vop2_crtc_loader_protect() for logo display.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I259a858255abe701f8b8037ac09e84a46f8db489
2025-04-11 08:55:37 +00:00
Jason Zhu
384d229479 ASoC: rockchip: pdm: set pin as pdm function when record
Otherwise a pulse occur when the pdm resume and suspend.

Change-Id: If5d4d6f3212ce10a647948b72ab171c8740821d9
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2025-04-11 08:47:18 +00:00
Jkand Huang
190280e94e arm64: dts: rockchip: rv1126b-evb2-v10: Adapt the PMU IO states for the sleep mode
Signed-off-by: Jkand Huang <jkand.huang@rock-chips.com>
Change-Id: I52a1a08498fabb580b73a4576cb08dd1753ca680
2025-04-11 07:39:23 +00:00
Yu Zheng
e9486009e9 media: i2c: gc8613: add 3840x2160 30fps linear mode setting
Signed-off-by: Yu Zheng <yu.zheng@rock-chips.com>
Change-Id: I0d0b302840131c3c04090383ef83c9a1d380c255
2025-04-11 06:53:18 +00:00
Lin Jinhan
1f17ec4690 arm64: dts: rockchip: rv1126b: rkrng: add clock setting
The HCLK_RKRNG_NS clocks must be enabled on the RV1126B
to work properly.

Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I7b86bd02da17372abeb225fc318a1debfa9b60dc
2025-04-11 02:37:04 +00:00
Elaine Zhang
7d86a3f3c3 dt-bindings: clock: rv1126b: fix HCLK_RKRNG_S_NS ID
Fixes: 50b60d3d4c (clk: rockchip: rv1126b: export secure clks)
Change-Id: Ifa2dafce93f645cbbb5d51f594511a13082b13f8
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2025-04-11 02:36:12 +00:00
Xu Hongfei
bf07745f38 media: rockchip: fec: update procfs info
Signed-off-by: Xu Hongfei <xuhf@rock-chips.com>
Change-Id: I98c8b80f8ca959f1475fa2d5b567ee24c8a58caf
2025-04-10 21:42:42 +08:00
Zitong Cai
4334e5e39a mfd: display-serdes: Remove the loading of serdes child devices that are
not enabled by DTS

Change-Id: I7f151454fce6f5013812b7d2d824f44fae829bc4
Signed-off-by: Zitong Cai <zitong.cai@rock-chips.com>
2025-04-10 10:55:13 +00:00
Wei Dun
73566298af media: rockchip: vpss: support online FBC format input
Signed-off-by: Wei Dun <willam.wei@rock-chips.com>
Change-Id: Ie3c8a55e4e3691cae05141bc4d05400cfac5f99b
2025-04-10 07:13:27 +00:00
Lin Jinhan
23d4d45354 ARM: configs: rv1126b-evb: enable CONFIG_CRYPTO_DEV_ROCKCHIP
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: Id3392fab8932ebd6de5d88c5eae42b01ec162725
2025-04-10 06:49:30 +00:00
Chaoyi Chen
9fc0dafbd0 arm64: dts: rockchip: rv1126b: Increase size of vop regs
The write back related regs locate at offset 0x280, which is large
than origin reg size 0x200. Access these reg will cause reg bak
out of bounds.

[ 1011.665341] ==================================================================
[ 1011.665361] BUG: KASAN: slab-out-of-bounds in vop_mask_write+0xa1/0xd6
[ 1011.665389] Read of size 4 at addr b22e2ac0 by task vo_render_0/2007
[ 1011.665407]
[ 1011.665421] CPU: 1 PID: 2007 Comm: vo_render_0 Tainted: G    B      O       6.1.118 #2
[ 1011.665442] Hardware name: Generic DT based system
[ 1011.665462]  unwind_backtrace from show_stack+0xb/0xc
[ 1011.665495]  show_stack from dump_stack_lvl+0x2b/0x34
[ 1011.665531]  dump_stack_lvl from print_report+0x4b/0x304
[ 1011.665562]  print_report from kasan_report+0x71/0x80
[ 1011.665589]  kasan_report from vop_mask_write+0xa1/0xd6
[ 1011.665615]  vop_mask_write from vop_initial+0xbff/0x1bd0
[ 1011.665641]  vop_initial from vop_crtc_atomic_enable+0x519/0x6fbc
[ 1011.665669]  vop_crtc_atomic_enable from drm_atomic_helper_commit_modeset_enables+0x253/0x634
[ 1011.665705]  drm_atomic_helper_commit_modeset_enables from rockchip_drm_atomic_helper_commit_tail_rpm+0xa7/0x7c8
[ 1011.665744]  rockchip_drm_atomic_helper_commit_tail_rpm from commit_tail+0xe7/0x200
[ 1011.665780]  commit_tail from drm_atomic_helper_commit+0x159/0x164
[ 1011.665811]  drm_atomic_helper_commit from drm_atomic_commit+0x181/0x1b0
[ 1011.665851]  drm_atomic_commit from drm_mode_atomic_ioctl+0xbb5/0xe28
[ 1011.665888]  drm_mode_atomic_ioctl from drm_ioctl+0x4af/0x528
[ 1011.665925]  drm_ioctl from vfs_ioctl+0x57/0x64
[ 1011.665956]  vfs_ioctl from sys_ioctl+0x29f/0xc1c
[ 1011.665983]  sys_ioctl from ret_fast_syscall+0x1/0x54
[ 1011.666009] Exception stack(0xf1233fa8 to 0xf1233ff0)
[ 1011.666033] 3fa0:                   8b201608 8bbfe308 00000031 c03864bc 8bbfe308 8bbfe2d8
[ 1011.666056] 3fc0: 8b201608 8bbfe308 c03864bc 00000036 8b202630 8b202640 8b202650 8b202638
[ 1011.666079] 3fe0: 9c302ee4 8bbfe2c8 9c2e6f90 9c78bd18
[ 1011.666094]
[ 1011.666104] Allocated by task 61:
[ 1011.666117]  kasan_set_track+0x17/0x1a
[ 1011.666144]  ____kasan_kmalloc+0x4b/0x4e
[ 1011.666168]  devm_kmalloc+0x1f/0xe8
[ 1011.666191]  vop_bind+0xe81/0x2840
[ 1011.666212]  component_bind_all+0x211/0x518
[ 1011.666237]  rockchip_drm_bind+0x5c5/0x1030
[ 1011.666260]  try_to_bring_up_aggregate_device+0x33d/0x3d4
[ 1011.666285]  component_master_add_with_match+0x179/0x1b0
[ 1011.666310]  rockchip_drm_platform_probe+0x241/0x28c
[ 1011.666334]  platform_probe+0xa3/0xf4
[ 1011.666352]  really_probe+0x267/0x478
[ 1011.666376]  __driver_probe_device+0x225/0x240
[ 1011.666399]  driver_probe_device+0x41/0xb4
[ 1011.666423]  __device_attach_driver+0x99/0x130
[ 1011.666446]  bus_for_each_drv+0xe5/0x100
[ 1011.666467]  __device_attach+0x14f/0x1e0
[ 1011.666491]  bus_probe_device+0x7b/0x158
[ 1011.666513]  deferred_probe_work_func+0x177/0x18c
[ 1011.666537]  process_one_work+0x387/0x544
[ 1011.666561]  process_scheduled_works+0x37/0x38
[ 1011.666583]  worker_thread+0x43d/0x52c
[ 1011.666603]  kthread+0x179/0x18c
[ 1011.666623]  ret_from_fork+0x11/0x2c
[ 1011.666642]
[ 1011.666653] The buggy address belongs to the object at b22e2800
[ 1011.666653]  which belongs to the cache kmalloc-1k of size 1024
[ 1011.666672] The buggy address is located 704 bytes inside of
[ 1011.666672]  1024-byte region [b22e2800, b22e2c00)
[ 1011.666693]
[ 1011.666713] The buggy address belongs to the physical page:
[ 1011.666730] page:8dc7e73e refcount:1 mapcount:0 mapping:00000000 index:0x0 pfn:0x424e0
[ 1011.666756] head:8dc7e73e order:3 compound_mapcount:0 compound_pincount:0
[ 1011.666774] flags: 0x10200(slab|head|zone=0)
[ 1011.666805] raw: 00010200 ef0a2b00 00000002 b1201700 00000000 00100010 ffffffff 00000001
[ 1011.666823] page dumped because: kasan: bad access detected
[ 1011.666835]
[ 1011.666845] Memory state around the buggy address:
[ 1011.666861]  b22e2980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1011.666877]  b22e2a00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
[ 1011.666895] >b22e2a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 1011.666908]                                    ^
[ 1011.666922]  b22e2b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 1011.666938]  b22e2b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 1011.666953] ==================================================================

Fixes: 83aabef608 ("arm64: dts: rockchip: Add vop support for RV1126B")

Change-Id: I36cf27060350c32d6630be80a5e169cdafdfb26f
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2025-04-10 02:29:56 +00:00
Simon Xue
fd00c9eece iio: adc: rockchip_saradc: add support dma mode
Change-Id: I0bac2454c71948d9f753472fb72c3117efa8a16d
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2025-04-10 09:29:31 +08:00