Jianqun Xu
ebc7e6d848
irqchip/gic-v3: get free page instead of kmalloc for itt
...
Since kmalloc may not care about GFP_DMA32, change to use get free pages
for itt on its device.
To reduce the impact of this change, we only applied it to rk3566/rk3568.
Change-Id: I2e91c97bd4d61d2542cf437363fc3dd1d9fa669c
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com >
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com >
2022-12-07 18:15:05 +08:00
Guochun Huang
0b2f07b378
drm/rockchip: dsi: driver may retry bind when panel or bridge not register
...
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com >
Change-Id: I8687da829e61a170e52c83f8565c2db879fd958a
2022-12-07 18:14:51 +08:00
Huibin Hong
f8080404df
soc: rockchip: debug: rockchip_show_interrupts print all cpu
...
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com >
Change-Id: I929a9cee5d596a8d9f1280f8232eefc2fecf2f31
2022-12-07 17:37:42 +08:00
Finley Xiao
2438e94364
arm64: dts: rockchip: rk3588s: Add hardware version for rk3588m and rk3588j
...
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: Ide13f6d0c8d38c1e46be52c4b407b1147a08ad8a
2022-12-07 17:21:51 +08:00
Finley Xiao
63e89b6e63
driver: rknpu: Implement set_soc_info and set_soc_info for rk3588
...
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: I8cfe13ffded798363388153bfbf305f6fc9f9f33
2022-12-07 17:21:51 +08:00
Finley Xiao
b1bae8a36b
MALI: bifrost: Implement set_soc_info and set_soc_info for rk3588
...
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: Ic5dddbd667b63b61f60b80270ba8bae8b1086852
2022-12-07 17:21:51 +08:00
Finley Xiao
1e655030ce
soc: rockchip: opp_select: Add support to set soc info
...
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: I101ff42d9e175535cfab9b58781c472b00b700e1
2022-12-07 17:21:51 +08:00
Finley Xiao
c25a99d05f
cpufreq: rockchip: Add support for rk3588j
...
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: I13d2ffae1253c7e5b3513c6aefcf15fb8e16eb5d
2022-12-07 17:21:51 +08:00
William Wu
ee7c3ab6b5
usb: dwc2: fix waiting time for host only mode
...
The current code uses 50ms sleep to wait for host only
mode, the delay time is not enough for some Rockchip
platforms (e.g RK3036G EVB1).
Test on RK3036G EVB1, the dwc2 host only controller reg
GOTGCTL.ConIDSts = 1'b1 (device mode) if only wait for
50ms. And the host fails to detect usb2 device with the
following error log:
usb usb2-port1: connect-debounce failed
This patch checks the GOTGCTL.ConIDSts for host only
mode and increases the maximum waiting time to 200ms.
Signed-off-by: William Wu <william.wu@rock-chips.com >
Change-Id: Ie28299934aba09907ea08f5fd3b34bf2fb35822e
2022-12-07 16:56:58 +08:00
Elaine Zhang
7a22993077
clk: rockchip: update the frac clk parent
...
Fixes: cd10522093 ("clk: rockchip: fix up frac clk parent no update")
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
Change-Id: I9fd76eb118f925ec4eeb8b928a7acb3ee2b93deb
2022-12-07 15:38:11 +08:00
Herman Chen
1a04192711
video: rockchip: mpp: vepu2: Fix core id limit
...
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
Change-Id: I52268e292c8527bd377da1574a64ff09621d4971
2022-12-07 15:34:01 +08:00
Sandy Huang
1abf5c42d2
drm/rockchip: drv: split pre mapping into two mapping
...
At 32 bit platform size_t maximum value is 0xffffffff, SZ_4G(0x100000000) will
be cliped to 0, so we split into two mapping.
Fixes: 0da77f77c0 ("drm/rockchip: drv: add support pre mapping for vop iommu")
Signed-off-by: Sandy Huang <hjc@rock-chips.com >
Change-Id: I4066b1e20cfb9e29033b72f2035bf5e24a1f1f23
2022-12-07 15:32:27 +08:00
Damon Ding
ffa6d4f255
drm/rockchip: vop: add support for cvbs interface on rk3036
...
CVBS only support for 480i and 576i display mode. It is
needed for rk3036 to enable scaling when using interlace
mode, which also updated in this commit.
Signed-off-by: Damon Ding <damon.ding@rock-chips.com >
Change-Id: I1d131ec71c0b31680280353e1690f8c01eb3c94e
2022-12-07 15:22:41 +08:00
Damon Ding
e327d3bb1a
drm/rockchip: drv: register rockchip tve driver
...
Signed-off-by: Damon Ding <damon.ding@rock-chips.com >
Change-Id: I40cce413d738ad16473eb35ce6c2adf4897380d6
2022-12-07 15:20:14 +08:00
ZhiZhan Chen
c9d18638d6
drm/rockchip: add config options of TVE driver
...
Change-Id: I059808111bfa96724eb629b6fc37915a4852e234
Signed-off-by: ZhiZhan Chen <zhizhan.chen@rock-chips.com >
Signed-off-by: Damon Ding <damon.ding@rock-chips.com >
2022-12-07 15:08:12 +08:00
Damon Ding
47855807ea
ARM: configs: rockchip_linux_defconfig: enable tve
...
Signed-off-by: Damon Ding <damon.ding@rock-chips.com >
Change-Id: I6c1b81809b31873e751207c29feb045fdcfc1a63
2022-12-07 15:08:12 +08:00
Damon Ding
7ffd80939a
drm/rockchip: tve: add tve support for rk3036/rk312x/rk322x
...
The related codes are ported from kernel-3.10. Tve interface
function has been tested on rk3036/rk3128/rk3228.
Signed-off-by: Damon Ding <damon.ding@rock-chips.com >
Change-Id: I5395bdccd7c645dfd34e9ccf166f3c94086e3134
2022-12-07 15:08:12 +08:00
Damon Ding
657133eb06
ARM: dts: rockchip: rk3036: add tve node
...
Signed-off-by: Damon Ding <damon.ding@rock-chips.com >
Change-Id: Ia912356862fc30ad79506dc75c9bc105ca3bba6e
2022-12-07 15:00:36 +08:00
Cai YiWei
25cbf08d91
media: rockchip: isp: fix rockit stream pause if readback mode
...
Change-Id: I8482c9cd365f34adbb6ded979cd4d58d4b299776
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2022-12-06 18:44:51 +08:00
Su Yuefu
6564f48d22
media: rockchip: fix vicap captures raw not responding
...
caused by commit of thunderboot support
be07e90202262ebfe8b008e7ec5b0142ee54a99c
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com >
Change-Id: I54c19bd9084a004bb15fc6f9054138f2c81ff059
2022-12-06 18:10:52 +08:00
Zefa Chen
d2293b5e0c
media: rockchip: vicap do dma reset before dma capture enable
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I0450794d584bb7918e1c1e21f099ee649e76d736
2022-12-06 18:08:05 +08:00
Jon Lin
79c73e2fb5
arm64: dts: rockchip: rk3588-h0: Set clkreq as gpio property
...
The clkreq is recommended:
1.Set as gpio property
2.Set as function io with supports-clkreq property enable
Change-Id: Idc72fa9190a3ec51876f3f5dce09d7e7a5201009
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2022-12-06 14:32:10 +08:00
Kever Yang
cbf3eb9b7f
phy: rockchip-snps-pcie3: update fw when init
...
This fw fix some RX issue:
1. connect detect error;
2. transfer error in ssd huge data write(more than 10GB).
Signed-off-by: Kever Yang <kever.yang@rock-chips.com >
Change-Id: If9b8d7fbe4414ae4d28ff6bbd4415d88b582113d
2022-12-06 14:27:00 +08:00
Kever Yang
1b493c5412
Revert "phy: phy-rockchip-snps-pcie3: Update calibration controls for rk356x"
...
This reverts commit 8e908294a5 .
Signed-off-by: Kever Yang <kever.yang@rock-chips.com >
Change-Id: I063f98312f5fa94309fc72c983516f222d0addf7
2022-12-06 14:26:31 +08:00
Cai YiWei
8a3d4599c6
media: rockchip: isp: fix dmatx loss first buf
...
Change-Id: I7355529f6ff4f39cba7206b3201d434d110bd4a6
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2022-12-06 11:18:16 +08:00
Yandong Lin
56353bf118
video: rockchip: mpp: fix jpege dma coherence issue
...
Allocate multiple jpeg enc cores to encode the same frame at the same time,
and than there is a dma cache coherence issue when the user
space copies bitstream data to another buffer.
So, need to invalid cache after every core encoding done.
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com >
Change-Id: I0868398f09787cdbd2be6f6a2cd3c1adbe61e4b5
2022-12-06 10:54:29 +08:00
Zefa Chen
9461447888
media: rockchip: vicap fixs toisp ctrl register updata fail
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I1d96ff04ae1b9372476f7d03ad1f015b67862c7d
2022-12-05 20:57:32 +08:00
Guochun Huang
697dac415b
drm/rockchip: dsi: compatible for GKI
...
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com >
Change-Id: I64f7b209a5121ef3f4d4b7b1f27358ec56430e1d
2022-12-05 09:47:57 +00:00
Wu Liangqing
b160d2b44f
arm64: dts: rockchip: rk3588-h0: set dp-lane-mux=<0 1 2 3>
...
Change-Id: I5ada157b4e5cd35feca0dc082f8ea355faeabe14
Signed-off-by: Wu Liangqing <wlq@rock-chips.com >
2022-12-05 08:04:01 +00:00
William Wu
061c383405
phy: rockchip-naneng-combo: config usb3 port in phy init
...
Rockchip platforms support to force usb3 to usb2 only
via the property "rockchip,dis-u3otg*-port". With this
property, we can disable the usb3 port and select the
clk utmi for the source clk of usb3 controller.
However, during system PM suspend, the related registers
may lost power, so the usb3 port configurations will
lost. This patch initializes the usb3 port in the usb3
phy init, and it doesn't need to configure the usb3 mode
if the property "rockchip,dis-u3otg*-port" is set.
Change-Id: If82cfb9e3e34dc799db32b2b84f843fce2028df5
Signed-off-by: William Wu <william.wu@rock-chips.com >
2022-12-05 15:34:33 +08:00
Jon Lin
f6989fdac8
pcie: rockchip: dw: Fix the error of repeatedly initializing dma object
...
Change-Id: I215e38d0b78403fd688a8a9d4afd6c4a7b5460bb
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2022-12-05 15:30:45 +08:00
Lin Jianhua
35bcabc502
ARM: dts: rk312x: dmc disable 200M freq
...
DDR Dvfs tress test failed, disable 200M freq to test OK.
so disabled temporary.
Signed-off-by: Lin Jianhua <linjh@rock-chips.com >
Change-Id: I2f41b1f9c8bfbb33b399a49bbc6a730b87ce9b3d
2022-12-05 15:25:03 +08:00
David Wu
00b877ac98
ethernet: arc: Fix the device for dma_map_single/dma_unmap_single
...
The ndev->dev and pdev->dev aren't the same device, use ndev->dev.parent
which has dma_mask, ndev->dev.parent is just pdev->dev.
Or it would cause the following issue:
[ 39.933526] ------------[ cut here ]------------
[ 39.938414] WARNING: CPU: 1 PID: 501 at kernel/dma/mapping.c:149 dma_map_page_attrs+0x90/0x1f8
Signed-off-by: David Wu <david.wu@rock-chips.com >
Change-Id: I18e9b655524d2aba9fbde654c54c0bde9fc32aa7
2022-12-02 20:18:55 +08:00
Wenchao Chen
24ae565a72
UPSTREAM: mmc: hsq: Fix data stomping during mmc recovery
...
The block device uses multiple queues to access emmc. There will be up to 3
requests in the hsq of the host. The current code will check whether there
is a request doing recovery before entering the queue, but it will not check
whether there is a request when the lock is issued. The request is in recovery
mode. If there is a request in recovery, then a read and write request is
initiated at this time, and the conflict between the request and the recovery
request will cause the data to be trampled.
Signed-off-by: Wenchao Chen <wenchao.chen@unisoc.com >
Fixes: 511ce378e1 ("mmc: Add MMC host software queue support")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220916090506.10662-1-wenchao.chen666@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
Change-Id: I879d746f578ba7c6f27029d81c980c743c3215ba
(cherry picked from commit e7afa79a3b )
2022-12-02 18:42:28 +08:00
Finley Xiao
567e355611
arm64: dts: rockchip: rk3588: Add memory read margin for litcore and dsu
...
It may improve stability.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: I8d41ee7348bff9d280b5d22e42d8ad356d2db7eb
2022-12-02 18:42:12 +08:00
Tao Huang
e5e0f7afd8
clk: rockchip: rk3588: allow insmod to succeed if no DT match
...
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: I175e3200a41fd3a81059b90d1d6b77d47ea39913
2022-12-02 18:36:48 +08:00
Tao Huang
5305ba2860
clk: rockchip: rk3568: allow insmod to succeed if no DT match
...
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: I3e6326773603509ae076229fb71f188b2edae3fe
2022-12-02 18:36:48 +08:00
Tao Huang
ea5e44076e
soc: rockchip: grf: allow insmod to succeed if no DT match
...
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: I1bc31e2e67bfcedf91f890780bcbae62d538b6d9
2022-12-02 18:33:15 +08:00
Jon Lin
7c2d6bfd55
drivers: rkflash: Fix the error definition of SFC dll cells
...
Change-Id: I7429a115df0719c918834886c4f6ef7823ef1414
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2022-12-01 22:59:08 +08:00
Liang Chen
545e8565ef
PM / devfreq: rockchip_dmc: Add SYS_STATUS_VIDEO_4K_60P
...
Signed-off-by: Liang Chen <cl@rock-chips.com >
Change-Id: I091f395dfcf8f6b11f77d03b860f4ea8450678b2
2022-12-01 16:48:32 +08:00
Liang Chen
d0fdfb8dcd
soc: rockchip: rockchip_system_monitor: Add support set video 4k 60fps status
...
Signed-off-by: Liang Chen <cl@rock-chips.com >
Change-Id: If3250c44e8340585003a64b9b3a3145292086cd6
2022-12-01 16:40:42 +08:00
Zhihuan He
e50ad473db
PM / devfreq: rockchip-dfi: rk3588: fix total counter get err for lp5
...
Signed-off-by: Zhihuan He <huan.he@rock-chips.com >
Change-Id: I5e267a3ed4eb5d501d5634111f67ec4cc6d690d6
2022-12-01 16:08:49 +08:00
Tao Huang
ea5fb26011
drm/rockchip: tve: Fix shutdown panic when no bind
...
Unable to handle kernel access to user memory outside uaccess routines at virtual address 0000000000000830
Mem abort info:
ESR = 0x96000005
Exception class = DABT (current EL), IL = 32 bits
SET = 0, FnV = 0
EA = 0, S1PTW = 0
Data abort info:
ISV = 0, ISS = 0x00000005
CM = 0, WnR = 0
user pgtable: 4k pages, 39-bit VAs, pgdp = 00000000aaff8145
[0000000000000830] pgd=000000007a5c9003, pud=000000007a5c9003, pmd=0000000000000000
Internal error: Oops: 96000005 [#1 ] PREEMPT SMP
Modules linked in:
Process init (pid: 1, stack limit = 0x00000000722656e6)
CPU: 3 PID: 1 Comm: init Not tainted 4.19.232 #72
Hardware name: Rockchip RK3528 EVB1 DDR4 V10 Board (DT)
pstate: 60400005 (nZCv daif +PAN -UAO)
pc : __ll_sc___cmpxchg_case_acq_8+0x4/0x20
lr : mutex_lock+0x18/0x40
sp : ffffff800802bc60
x29: ffffff800802bc60 x28: ffffffc07c8e0000
x27: 0000000000000000 x26: 0000000000000000
x25: ffffff8009510d78 x24: ffffff8009cde040
x23: ffffffc07c9e3890 x22: ffffff8009d89000
x21: ffffff8009b73b30 x20: 0000000000000000
x19: 0000000000000830 x18: ffffffffffffffff
x17: 0000000000000000 x16: 0000000000000002
x15: ffffff80095ed278 x14: ffffff8089ce4196
x13: ffffff8009ce41b0 x12: ffffff8009ce45d0
x11: ffffff8009adf3b8 x10: 0000000005f5e0ff
x9 : 00000000ffffffd0 x8 : 6873203a73756c70
x7 : 0000000000000058 x6 : 0000000000000001
x5 : 0000000000000005 x4 : 0000000000000004
x3 : 0000000000000830 x2 : ffffffc07c8e0000
x1 : 0000000000000000 x0 : 0000000000000830
Call trace:
__ll_sc___cmpxchg_case_acq_8+0x4/0x20
rockchip_tve_shutdown+0x1c/0x38
platform_drv_shutdown+0x20/0x30
device_shutdown+0x118/0x200
kernel_restart_prepare+0x34/0x40
kernel_restart+0x14/0x78
__se_sys_reboot+0x1cc/0x208
__arm64_sys_reboot+0x18/0x20
el0_svc_common.constprop.0+0x64/0x178
el0_svc_handler+0x28/0x78
el0_svc+0x8/0xc
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: Ic1e85b963548e5e66ef78fae5af8dcc12e928fa2
2022-12-01 15:29:12 +08:00
Liang Chen
9368d30479
ARM: dts: rockchip: rk3128-evb-ddr3-v10-linux: correct node name for rk805 regualtors
...
error log:
[ 3.079253] rk808 0-0018: using lookup tables for GPIO lookup
[ 3.079269] rk808 0-0018: No GPIO consumer dvs found
[ 3.079285] rk808-regulator rk808-regulator: there is no dvs1 gpio
[ 3.086236] DCDC_REG1: supplied by regulator-dummy
[ 3.092350] DCDC_REG2: supplied by regulator-dummy
[ 3.092948] <<GTP-INF>>[gt1x_get_chip_type:903] Chip Type: GT1X
[ 3.097899] DCDC_REG3: supplied by regulator-dummy
[ 3.109098] DCDC_REG4: supplied by regulator-dummy
[ 3.112873] <<GTP-INF>>[gt1x_read_version:859] IC VERSION:GT917S_000203(Patch)_0101(Mask)_00(SensorID)
[ 3.123382] <<GTP-INF>>[gt1x_init_panel:604] Config group0 used, length:239
[ 3.123744] LDO_REG1: supplied by regulator-dummy
[ 3.130454] <<GTP-INF>>[gt1x_init_panel:655] X_MAX=720,Y_MAX=1280,TRIGGER=0x01,WAKEUP_LEVEL=1
[ 3.144571] LDO_REG2: supplied by regulator-dummy
[ 3.150481] LDO_REG3: supplied by regulator-dummy
[ 3.160549] rk808-rtc rk808-rtc: registered as rtc1
root@rk312x:/#
root@rk312x:/# ls /sys/kernel/debug/regulator/
0-0018-DCDC_REG1 supply_map
0-0018-DCDC_REG2 vcc3v3_lcd_n
0-0018-DCDC_REG3 vcc5v0_sys
0-0018-DCDC_REG4 vcc_2v8_cam
0-0018-LDO_REG1 vcc_host_5v
0-0018-LDO_REG2 vcc_hub_5v
0-0018-LDO_REG3 vcc_phy
reg-dummy-regulator-dummy vcc_sdmmc
regulator_summary vccio_wifi
Signed-off-by: Liang Chen <cl@rock-chips.com >
Change-Id: Iac0857006b09b56981c6033f74318eb80a2936e0
2022-12-01 15:26:01 +08:00
Simon Xue
22dccf0395
iommu/rockchip: fix devm_free_irq
...
RK3128 vop-iommu skip request the irq due to register read issue.
So don't free irq when shut down or belowing error will output
[ 102.107589] WARNING: CPU: 3 PID: 1013 at kernel/irq/devres.c:143 devm_free_irq+0x68/0x9c
[ 102.115720] Modules linked in:
[ 102.118862] CPU: 3 PID: 1013 Comm: init Not tainted 5.10.110 #15
[ 102.124907] Hardware name: Generic DT based system
[ 102.129732] Backtrace:
[ 102.132230] [<c0bb9218>] (dump_backtrace) from [<c0bb95b8>] (show_stack+0x20/0x24)
[ 102.139843] r7:600f0013 r6:c0e96442 r5:00000000 r4:c1219d6c
[ 102.145553] [<c0bb9598>] (show_stack) from [<c0bbc7f8>] (dump_stack_lvl+0x94/0xac)
[ 102.153171] [<c0bbc764>] (dump_stack_lvl) from [<c0bbc824>] (dump_stack+0x14/0x1c)
[ 102.160780] r7:00000000 r6:00000000 r5:00000009 r4:c017ac34
[ 102.166488] [<c0bbc810>] (dump_stack) from [<c011fd80>] (__warn+0xd4/0x100)
[ 102.173497] [<c011fcac>] (__warn) from [<c0bb9cd8>] (warn_slowpath_fmt+0x8c/0xc4)
[ 102.181026] r9:00000000 r8:00000009 r7:c017ac34 r6:0000008f r5:c0df4ea4 r4:c353c000
[ 102.188820] [<c0bb9c50>] (warn_slowpath_fmt) from [<c017ac34>] (devm_free_irq+0x68/0x9c)
[ 102.196962] r9:c0e44260 r8:c128d018 r7:c12ea690 r6:c1a17f40 r5:0000002e r4:c353c000
[ 102.204759] [<c017abcc>] (devm_free_irq) from [<c051e934>] (rk_iommu_shutdown+0x58/0x5c)
[ 102.212895] r6:c1a17f40 r5:00000001 r4:c197ec00
[ 102.217558] [<c051e8dc>] (rk_iommu_shutdown) from [<c05b134c>] (platform_drv_shutdown+0x2c/0x30)
[ 102.226385] r7:c12ea690 r6:c12285f0 r5:c197ec10 r4:c197ec14
[ 102.232094] [<c05b1320>] (platform_drv_shutdown) from [<c05ad464>] (device_shutdown+0x15c/0x1dc)
[ 102.240938] [<c05ad308>] (device_shutdown) from [<c01441d4>] (kernel_restart_prepare+0x3c/0x48)
[ 102.249684] r10:00000058 r9:01234567 r8:00000010 r7:c353c000 r6:4321fedc r5:c11168ec
[ 102.257548] r4:00000000
[ 102.260124] [<c0144198>] (kernel_restart_prepare) from [<c01442f4>] (kernel_restart+0x1c/0x60)
[ 102.268785] [<c01442d8>] (kernel_restart) from [<c01445d8>] (__do_sys_reboot+0x154/0x1e0)
[ 102.277004] r5:c11168ec r4:00000000
[ 102.280617] [<c0144484>] (__do_sys_reboot) from [<c01446d4>] (sys_reboot+0x18/0x1c)
[ 102.288326] r9:c353c000 r8:c01002c4 r7:00000058 r6:005241c4 r5:00524140 r4:00000000
[ 102.296121] [<c01446bc>] (sys_reboot) from [<c0100060>] (ret_fast_syscall+0x0/0x54)
[ 102.303821] Exception stack(0xc353dfa8 to 0xc353dff0)
[ 102.308912] dfa0: 00000000 00524140 fee1dead 28121969 01234567 00000010
[ 102.317141] dfc0: 00000000 00524140 005241c4 00000058 beddbefc 0044b1a8 b6f39d00 b6f3a010
[ 102.325364] dfe0: 00523b5c beddbc90 004dadf4 b6e584c8
[ 102.330545] ---[ end trace adc766c58fa6634f ]---
[ 102.335275] ------------[ cut here ]------------
[ 102.339948] WARNING: CPU: 3 PID: 1013 at kernel/irq/manage.c:1756 free_irq+0x26c/0x29c
[ 102.347907] Trying to free already-free IRQ 46
[ 102.352381] Modules linked in:
[ 102.355479] CPU: 3 PID: 1013 Comm: init Tainted: G W 5.10.110 #15
[ 102.362907] Hardware name: Generic DT based system
[ 102.367721] Backtrace:
[ 102.370212] [<c0bb9218>] (dump_backtrace) from [<c0bb95b8>] (show_stack+0x20/0x24)
[ 102.377824] r7:600f0093 r6:c0e96442 r5:00000000 r4:c1219d6c
[ 102.383532] [<c0bb9598>] (show_stack) from [<c0bbc7f8>] (dump_stack_lvl+0x94/0xac)
[ 102.391150] [<c0bbc764>] (dump_stack_lvl) from [<c0bbc824>] (dump_stack+0x14/0x1c)
[ 102.398759] r7:c353dd34 r6:00000000 r5:00000009 r4:c017823c
[ 102.404466] [<c0bbc810>] (dump_stack) from [<c011fd80>] (__warn+0xd4/0x100)
[ 102.411473] [<c011fcac>] (__warn) from [<c0bb9cd8>] (warn_slowpath_fmt+0x8c/0xc4)
[ 102.419002] r9:c0df48e7 r8:00000009 r7:c017823c r6:000006dc r5:c0df4854 r4:c353c000
[ 102.426799] [<c0bb9c50>] (warn_slowpath_fmt) from [<c017823c>] (free_irq+0x26c/0x29c)
[ 102.434676] r9:600f0013 r8:0000002e r7:c1a17f40 r6:c1978a6c r5:00000000 r4:c1978a00
[ 102.442471] [<c0177fd0>] (free_irq) from [<c017ac40>] (devm_free_irq+0x74/0x9c)
[ 102.449832] r10:c197ec54 r9:c0e44260 r8:c128d018 r7:c12ea690 r6:c1a17f40 r5:0000002e
[ 102.457700] r4:c353c000
[ 102.460278] [<c017abcc>] (devm_free_irq) from [<c051e934>] (rk_iommu_shutdown+0x58/0x5c)
[ 102.468414] r6:c1a17f40 r5:00000001 r4:c197ec00
[ 102.473075] [<c051e8dc>] (rk_iommu_shutdown) from [<c05b134c>] (platform_drv_shutdown+0x2c/0x30)
[ 102.481901] r7:c12ea690 r6:c12285f0 r5:c197ec10 r4:c197ec14
[ 102.487611] [<c05b1320>] (platform_drv_shutdown) from [<c05ad464>] (device_shutdown+0x15c/0x1dc)
[ 102.496453] [<c05ad308>] (device_shutdown) from [<c01441d4>] (kernel_restart_prepare+0x3c/0x48)
[ 102.505200] r10:00000058 r9:01234567 r8:00000010 r7:c353c000 r6:4321fedc r5:c11168ec
[ 102.513066] r4:00000000
[ 102.515642] [<c0144198>] (kernel_restart_prepare) from [<c01442f4>] (kernel_restart+0x1c/0x60)
[ 102.524302] [<c01442d8>] (kernel_restart) from [<c01445d8>] (__do_sys_reboot+0x154/0x1e0)
[ 102.532521] r5:c11168ec r4:00000000
[ 102.536134] [<c0144484>] (__do_sys_reboot) from [<c01446d4>] (sys_reboot+0x18/0x1c)
[ 102.543833] r9:c353c000 r8:c01002c4 r7:00000058 r6:005241c4 r5:00524140 r4:00000000
[ 102.551626] [<c01446bc>] (sys_reboot) from [<c0100060>] (ret_fast_syscall+0x0/0x54)
[ 102.559324] Exception stack(0xc353dfa8 to 0xc353dff0)
[ 102.564414] dfa0: 00000000 00524140 fee1dead 28121969 01234567 00000010
[ 102.572641] dfc0: 00000000 00524140 005241c4 00000058 beddbefc 0044b1a8 b6f39d00 b6f3a010
[ 102.580864] dfe0: 00523b5c beddbc90 004dadf4 b6e584c8
[ 102.585947] ---[ end trace adc766c58fa66350 ]---
Change-Id: Ic0603d4d00528dc6b5ef6d480b15d3c14585dec3
Signed-off-by: Simon Xue <xxm@rock-chips.com >
2022-12-01 10:31:42 +08:00
Frank Wang
f07500720b
phy: rockchip: usbdp: init flip variable in fixed lane mux case
...
It should be initialized the USB flip for fixed lane mapping case
if the USB lanes are assigned. The ln0/ln1 is normal (!flip) and ln2/ln3
is reverse (flip).
This also amend "rx cdr lock timeout" log level to notice since it
may not cause the functional defect in most cases.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com >
Change-Id: I693f772b87df97581a60f89219ec4dc6cafb79a3
2022-11-30 16:22:03 +08:00
Elaine Zhang
cd10522093
clk: rockchip: fix up frac clk parent no update
...
For some special conditions, the parent clock of fractional
is not updated correctly.
before clk summary:
clk_spdif2_dp0_src
clk_spdif2_dp0
mclk_spdif2
mclk_spdif2_dp0
clk_spdif2_dp0_frac
after clk summary:
clk_spdif2_dp0_src
clk_spdif2_dp0_frac
clk_spdif2_dp0
mclk_spdif2
mclk_spdif2_dp0
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
Change-Id: I9e9027774bf25f0f0ea6d8df6491a7feef4ffc48
2022-11-30 15:06:38 +08:00
Finley Xiao
37158d1f2b
clk: rockchip: rk3128: Change SCLK_DDRC to composite
...
Change-Id: I6aeae7103c1eaed0b4515d8d11863c4b190b6918
Signed-off-by: Liang Chen <cl@rock-chips.com >
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
2022-11-30 15:03:05 +08:00
Jianqun Xu
649f030b09
video: rockchip: mpp: fix gcc-6 compile error without AV1DEC driver
...
drivers/video/rockchip/mpp/mpp_service.o: In function `mpp_add_driver':
drivers/video/rockchip/mpp/mpp_service.c:102: undefined reference to `av1dec_driver_register'
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com >
Change-Id: Ibf2effb98ce7c0c2219d3bbd762dd8c34530626f
2022-11-30 14:54:18 +08:00
Simon Xue
17dc73a159
drm/rockchip: logo: fix rockchip_free_loader_memory
...
Add "mem=0x40000000" to COMMAND LINE, kernel will crash:
[ 18.379633][ T35] Unable to handle kernel paging request at virtual address ffffffff01d7c000
[ 18.380412][ T35] Mem abort info:
[ 18.380726][ T35] ESR = 0x96000006
[ 18.381060][ T35] EC = 0x25: DABT (current EL), IL = 32 bits
[ 18.381587][ T35] SET = 0, FnV = 0
[ 18.381920][ T35] EA = 0, S1PTW = 0
[ 18.382264][ T35] Data abort info:
[ 18.382585][ T35] ISV = 0, ISS = 0x00000006
[ 18.383029][ T35] CM = 0, WnR = 0
[ 18.383360][ T35] swapper pgtable: 4k pages, 39-bit VAs, pgdp=0000000001c47000
[ 18.384014][ T35] [ffffffff01d7c000] pgd=0000000040f2f003, p4d=0000000040f2f003, pud=0000000040f2f003, pmd=0000000000000000
[ 18.385299][ T35] Internal error: Oops: 96000006 [#1 ] PREEMPT SMP
[ 18.385862][ T35] Modules linked in:
[ 18.386205][ T35] CPU: 2 PID: 35 Comm: kworker/2:1 Not tainted 5.10.110 #324
[ 18.386843][ T35] Hardware name: Rockchip RK3568 EVB1 DDR4 V10 Board (DT)
[ 18.387470][ T35] Workqueue: events rockchip_drm_fb_destroy_work
[ 18.388026][ T35] pstate: 80c00009 (Nzcv daif +PAN +UAO -TCO BTYPE=--)
[ 18.388626][ T35] pc : rockchip_free_loader_memory+0x100/0x1a0
[ 18.389156][ T35] lr : rockchip_free_loader_memory+0xc8/0x1a0
[ 18.389683][ T35] sp : ffffffc0125abd00
[ 18.390039][ T35] x29: ffffffc0125abd00 x28: 0000000000001000
[ 18.390570][ T35] x27: ffffff807df00000 x26: 0000008000000000
[ 18.391099][ T35] x25: fffffffeffe00000 x24: 0000000000000001
[ 18.391628][ T35] x23: ffffff80043d6300 x22: ffffff807df00000
[ 18.392157][ T35] x21: ffffff807dfb7000 x20: ffffff80043a8480
[ 18.392686][ T35] x19: ffffffff01d7c000 x18: 0000000000000000
[ 18.393215][ T35] x17: 0000000000000000 x16: 0000000000000000
[ 18.393744][ T35] x15: 00000072e03fbb78 x14: 0000000000000000
[ 18.394273][ T35] x13: 000000000000003d x12: 0000000000000000
[ 18.394802][ T35] x11: 00000000fffffff6 x10: ffffffc0122f8000
[ 18.395330][ T35] x9 : 0000000000010000 x8 : 0000000000000008
[ 18.395859][ T35] x7 : 0000000000818000 x6 : ffffff801ad909f0
[ 18.396387][ T35] x5 : 0000000000000039 x4 : ffffffc0122d01b8
[ 18.396917][ T35] x3 : 0000000000000000 x2 : 0000000000000000
[ 18.397445][ T35] x1 : ffffff80032622d8 x0 : 0000000000001000
[ 18.397975][ T35] Call trace:
[ 18.398255][ T35] rockchip_free_loader_memory+0x100/0x1a0
[ 18.398762][ T35] __rockchip_drm_fb_destroy+0xa4/0xc8
[ 18.399233][ T35] rockchip_drm_fb_destroy_work+0x14/0x20
[ 18.399728][ T35] process_one_work+0x1b0/0x490
[ 18.400142][ T35] worker_thread+0x4c/0x3f8
[ 18.400534][ T35] kthread+0x140/0x160
[ 18.400882][ T35] ret_from_fork+0x10/0x30
Logo buffer allocated from Uboot which may removed in kernel for any
purpose such as "debug". So, before freeing to the buddy system, we
must check if the buffer are valid.
Change-Id: I9a27c4552a3c7f450b034d2a6c6c3a321bb2fc54
Signed-off-by: Simon Xue <xxm@rock-chips.com >
2022-11-30 09:37:58 +08:00