Commit Graph

1267909 Commits

Author SHA1 Message Date
Tao Huang
d847fc30ee Merge commit 'beb9974b6fb001eb197b613257ef57fd603db652'
* commit 'beb9974b6fb001eb197b613257ef57fd603db652':
  media: i2c: sc850sl: fix gain discontinuity issue
  media: rockchip: isp: fix resume mi no enable

Change-Id: If8e1a2004de712a6b59d64206f2a26bb92b92ea7
2024-01-15 15:02:59 +08:00
Tao Huang
5a80764225 Merge commit '982e655deb1a079300c8dd83b6678922b728e576'
Merge made by the 'ours' strategy.

* commit '982e655deb1a079300c8dd83b6678922b728e576':
  arm64: dts: rockchip: rk3568: Add nfc

Change-Id: I5e4ef3d736525cdf1068a2537e6c979c2282d0e4
2024-01-15 15:01:37 +08:00
Jon Lin
7ee5a221e8 arm64: dts: rockchip: rk3568: Add nfc
Change-Id: I3fb8fae8b63925d58e6889af4df80e920b3d4881
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-01-12 19:06:54 +08:00
Tao Huang
c5179f362e Merge commit '08c66b08ce17798f3bbdcdee5b247628817f91d3'
* commit '08c66b08ce17798f3bbdcdee5b247628817f91d3':
  media: rockchip: isp: sync irq_ends
  mfd: rkx110_x120: cru: fix to get a avialble pll rate
  arm64: dts: rockchip: rk3562: adjust regulator-init-microvolt of vdd_cpu/vdd_logic for rk3562 boards
  arm64: dts: rockchip: rk3562: adjust low-temp-min-volt for cpu/dmc

Change-Id: I49f5c03bf5edee290cf7d4d2b2d4ab2436d26f89
2024-01-12 18:58:11 +08:00
Tao Huang
2410c01daf Merge commit '5e9dee2ebe5c633887ee7d8f695259a7b5445b71'
* commit '5e9dee2ebe5c633887ee7d8f695259a7b5445b71':
  media: i2c: add sc830ai sensor driver
  dmaengine: pl330: Use tasklet_hi_schedule
  mtd: spinand: XINCUN: Support new device XCSP1AAPK
  arm64: dts: rockchip: rk3562-amp: change mcu ram address

Change-Id: Ia03dea594134a3bee9843767d63f6a9be91f1de5
2024-01-12 18:57:27 +08:00
Tao Huang
ead5797a9c Merge commit 'aa47569d066e59b2f40b29d9b9bc5106eab8833e'
* commit 'aa47569d066e59b2f40b29d9b9bc5106eab8833e':
  media: i2c: lt8668sx: add lt8668sx hdmi2csi driver
  video: rockchip: mpp: remove av1dec l2 cache
  ARM: rockchip: rv1106_pm: do wdt save/restore
  media: rockchip: isp: add buf cnt info to procfs
  media: rockchip: isp: fix wait timeout with thunderboot
  arm64: dts: rockchip: rk3528: Add thermal for macphy
  ARM: dts: rv1106: Add thermal for macphy
  net: phy: RK630: Add dynamically adjusting the configuration
  drm/bridge: dw-hdmi-qp: Fixes compilation errors when cec core is not compiled
  drm/bridge: synopsys: Fixes compilation errors when cec core is not compiled
  media: i2c: imx415 adapt sleep_wakeup
  media: rockchip: hdmirx: make sure to bind to big cpu1

Change-Id: I8b8edd66fc15b60a5b1f4a37d4e3258c7772b335
2024-01-12 18:52:58 +08:00
Tao Huang
24a25815d1 Merge commit 'ca7627f2a44b6815b2f23f4da2d0fc996bd20424'
Merge made by the 'ours' strategy.

* commit 'ca7627f2a44b6815b2f23f4da2d0fc996bd20424':
  tee: optee: interrupt an RPC depend on shutdown flag

Change-Id: Ia6a2fe4287c0f1b05518c58cb90d5e66be0205cf
2024-01-12 18:45:48 +08:00
Hisping Lin
b0b2892b93 tee: optee: interrupt an RPC depend on shutdown flag
Change-Id: I33f33af02afb75bda5d68c9731fe636bb97132fe
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
2024-01-12 08:44:25 +08:00
Tao Huang
06dab2ccf7 Merge commit '5f0de7c5d524f0934c83848c6d20526364fc5bb9'
Merge made by the 'ours' strategy.

* commit '5f0de7c5d524f0934c83848c6d20526364fc5bb9':
  drm/rockchip: vop2: Add devfreq support

Change-Id: I184a624c00cf2bade2a64a929c5d32dd15d75302
2024-01-10 15:36:26 +08:00
Tao Huang
14caa4fb96 Merge commit '44ee8c59b5db9d4421709a581d30ceea24ad5b87'
* commit '44ee8c59b5db9d4421709a581d30ceea24ad5b87':
  MALI: bifrost: log: Disable WARNINGs in validate_tracepoint_data()
  Mali: bifrost: Fix: When calling devfreq_add_device(), restore passing of '&ondemand_data'

Change-Id: I85be6940359cb6f4f77ed59189fd9ba65461f300
2024-01-10 15:34:35 +08:00
Tao Huang
9c1fb62faa Merge commit 'a94d0b968ad6275250a6b6bd66f75dcb688ef253'
Merge made by the 'ours' strategy.

* commit 'a94d0b968ad6275250a6b6bd66f75dcb688ef253':
  MALI: rockchip: upgrade bifrost DDK to g21p0-01eac0, from g18p0-01eac0

Change-Id: I01e96d04dd801e7f9d05ac35f934886ca949c1dc
2024-01-10 15:33:39 +08:00
Tao Huang
568fc8768a Merge commit 'e2f9938790a6d9eed3c285c90be45575b6e4c70f'
* commit 'e2f9938790a6d9eed3c285c90be45575b6e4c70f':
  phy: rockchip-samsung-hdptx-hdmi: Calculate the pll frequency based on the register value
  drm/rockchip: analogix_dp: add dual channel mode support
  media: rockchip: vicap: support use reserved mem for aov when run with thunderboot mode
  mfd: rkx110_x120: reset dsi tx host when generator pattern
  media: i2c: cam-sleep-wakeup: optimize sensor wakeup workflow for reset
  mfd: rkx110_x120: disable phy when stop video stream
  media: i2c: os04d10: add reg list of 1440p@30fps and 360p@120fps
  media: i2c: os04d10: fix adapter fastboot issue

Change-Id: I03320bfe99fb028b977197dc04d490288dcc4c34
2024-01-10 15:31:15 +08:00
Lan Honglin
beb9974b6f media: i2c: sc850sl: fix gain discontinuity issue
sync update from 4.19

Change-Id: I432669771e6a3a5c9e07811f94f5bd77ed5b2e63
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com>
2024-01-09 11:14:28 +08:00
Cai YiWei
ce956f7a33 media: rockchip: isp: fix resume mi no enable
Change-Id: Ic7aa8eb5528e97b4d425971d5189ef85c0c1c6c9
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-01-08 11:03:52 +08:00
Jon Lin
982e655deb arm64: dts: rockchip: rk3568: Add nfc
Change-Id: I3fb8fae8b63925d58e6889af4df80e920b3d4881
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-01-05 09:25:15 +08:00
Cai YiWei
08c66b08ce media: rockchip: isp: sync irq_ends
irqs in different cpu will change irq_ends flag, lock to sync.

Change-Id: Ie5467825173a16c796c7ab84c15286af44edc5d9
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-01-05 08:52:32 +08:00
Zhang Yubing
eaa1941ab7 mfd: rkx110_x120: cru: fix to get a avialble pll rate
In some case, the pll rate will be change to get a target
rate for it's child. we want set the pll rate closest to
the max pll rate. However, It's not all the rate can get
a set of legal paramters to config the pll. So when this
case happen, we try a lower rate as the target pll rate.

Change-Id: I45abec2114f74634904cf3c34655d8df331d171b
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-01-04 18:08:02 +08:00
Liang Chen
801e11b222 arm64: dts: rockchip: rk3562: adjust regulator-init-microvolt of vdd_cpu/vdd_logic for rk3562 boards
Raise initial voltage of vdd_cpu/vdd_logic when startup to improve stability.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I223a21351424cb3fb47e5b3cae4f8e0324bd9a25
2024-01-04 15:11:44 +08:00
Liang Chen
ff902937c0 arm64: dts: rockchip: rk3562: adjust low-temp-min-volt for cpu/dmc
Raise voltage of cpu/dmc when low temperature to improve stability.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I80321c0454c98c62a237192b46fa00da1b48d336
2024-01-04 15:07:18 +08:00
LongChang Ma
5e9dee2ebe media: i2c: add sc830ai sensor driver
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com>
Change-Id: Ib22fb1d354cbb3ee26f5a94c969675cbb28990ff
2024-01-03 19:46:07 +08:00
Sugar Zhang
1bbb558966 dmaengine: pl330: Use tasklet_hi_schedule
Use tasklet_hi_schedule for better audio performance,
especially for LLA (Low Latency Audio) situation.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ic5a215a269e718b0e5613132cb9fe9b58940d0e1
2024-01-03 19:45:53 +08:00
Jon Lin
c08e952374 mtd: spinand: XINCUN: Support new device XCSP1AAPK
Change-Id: Ia8de254547f40499a501e20421efb0f443842b87
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-01-03 19:42:57 +08:00
Jiahang Zheng
14119c4f7f arm64: dts: rockchip: rk3562-amp: change mcu ram address
Change-Id: If7311abee120fef2a0259845e202612f8c67372a
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com>
2024-01-03 17:55:24 +08:00
Jianwei Fan
aa47569d06 media: i2c: lt8668sx: add lt8668sx hdmi2csi driver
Change-Id: I4fba2eb4aca597ba41a08a89c6444f9a715c4630
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2024-01-03 17:50:49 +08:00
Yandong Lin
77a1b08896 video: rockchip: mpp: remove av1dec l2 cache
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: If018c12464264f62db4baa658b75d8942504a765
2024-01-03 17:48:01 +08:00
XiaoDong Huang
4227edfdb3 ARM: rockchip: rv1106_pm: do wdt save/restore
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: Ie805d22a99110162015a51718ec29de2e6008614
2024-01-03 17:09:20 +08:00
Cai YiWei
2846affd16 media: rockchip: isp: add buf cnt info to procfs
Change-Id: I78ce99dad93e57c544e150013ccac02868d43f88
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-01-03 17:06:39 +08:00
Cai YiWei
f8d9b2d3b4 media: rockchip: isp: fix wait timeout with thunderboot
Change-Id: Ied63c17c68e1cd565a3f246655fa9ec66be638b3
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-01-03 17:06:39 +08:00
David Wu
10ed38ef37 arm64: dts: rockchip: rk3528: Add thermal for macphy
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ifd46d8a3ae7fd8eca31f413a6d8b7b584c983636
2024-01-03 15:38:28 +08:00
David Wu
cbf09af6d1 ARM: dts: rv1106: Add thermal for macphy
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I3319dfc7cd6377cc6e4ade4b9930474a59441aac
2024-01-03 15:38:28 +08:00
David Wu
bf7e43d9fe net: phy: RK630: Add dynamically adjusting the configuration
Adjustments occur at two cases:
  - No linkup within 5s;
  - The number of packets received within 10 seconds is less than 3,
    or the packet loss rate is greater than 15%.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I8b48bb4377ddb4231fa6f26b4373695fd85cbb26
2024-01-03 15:38:28 +08:00
Algea Cao
5f2dd30238 drm/bridge: dw-hdmi-qp: Fixes compilation errors when cec core is not compiled
Fix error: implicit declaration of function 'cec_queue_pin_hpd_event'.

Fixes: b73433e36e ("drm/rockchip: Add dw-hdmi-qp driver")
Change-Id: I9268259d42dddd285b3bb8d92a55b7df9ae3c3c1
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-01-03 15:13:24 +08:00
Algea Cao
5a0f616be9 drm/bridge: synopsys: Fixes compilation errors when cec core is not compiled
Fix error: implicit declaration of function 'cec_queue_pin_hpd_event'.

Fixes: 5fe797153d ("drm: bridge: dw-hdmi: Support report cec hpd")
Change-Id: I4ddae31d5b72b17fdd33fbc28ca454dc57377f74
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-01-03 15:13:24 +08:00
William Wu
2f6e7d9700 FROMLIST: usb: dwc2: Disable clock gating feature on Rockchip SoCs
The DWC2 IP on the Rockchip SoCs doesn't support clock gating.
When a clock gating is enabled, system hangs.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
Link: https://lore.kernel.org/all/1703575199-23638-1-git-send-email-william.wu@rock-chips.com/
Change-Id: I8548b3c1f2e68fada7cbfc28a4d302607a22645e
2024-01-02 16:48:26 +08:00
Quentin Schulz
4041c1759e UPSTREAM: usb: dwc2: disable lpm feature on Rockchip SoCs
LPM feature of DWC2 module integrated in Rockchip SoCs doesn't work
properly or needs some additional handling, so disable it for now.
Without disabling LPM feature, the USB ADB communication fail with
the following error log:

dwc2 ff580000.usb: new address 27
dwc2 ff580000.usb: Failed to exit L1 sleep state in 200us.
dwc2 ff580000.usb: dwc2_hsotg_send_reply: cannot queue req
dwc2 ff580000.usb: dwc2_hsotg_process_req_status: failed to send reply
dwc2 ff580000.usb: dwc2_hsotg_enqueue_setup: failed queue (-11)
dwc2 ff580000.usb: Failed to exit L1 sleep state in 200us.

[diff vs vendor kernel: added lpm_clock_gating, besl and
 hird_threshold_en settings as seen in  commit 53febc9569 ("usb: dwc2:
 disable Link Power Management on STM32MP15 HS OTG")]

Signed-off-by: William Wu <william.wu@rock-chips.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Link: https://lore.kernel.org/r/20221206-dwc2-gadget-dual-role-v1-1-36515e1092cd@theobroma-systems.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 42a317d076)
Change-Id: I96a344c5e3940907b6f470110c843b69c68b60b7
2024-01-02 16:48:26 +08:00
Sandy Huang
fa7c72a7cf arm64: dts: rockchip: rk3588: remove unused sub node hdptxphy_hdmi_clk0/1
we use hdptxphy_hdmi0/1 instead of hdptxphy_hdmi_clk0/1 after the
following commit, so the sub node hdptxphy_hdmi_clk0/1 is unused an
remove it:

commit: 23301555f50b ("arm64: dts: rockchip: rk3588: move hdmi phy clk
to hdmiphy")

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ifb8246fd682d54c48276e6fa615d662cb55f9fba
2024-01-02 16:15:22 +08:00
Sandy Huang
80601d55ba arm64: dts: rockchip: rk3588-nvr: update hdmi phy clk
hdmi phy clk move to hdmi phy devices at the following commit, so update
the clock at display_subsystem.

commit: 23301555f50b ("arm64: dts: rockchip: rk3588: move hdmi phy clk
to hdmiphy")

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I4e14e6436d3ac2ae19941038ac7259361c66a4bb
2024-01-02 16:14:33 +08:00
Sandy Huang
99744db3e3 phy: rockchip-samsung-hdptx-hdmi: move hdmi phy clk register at hdmiphy
move hdmi phy clk register at hdmiphy and get clock name by
property: clock-output-names

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ica0ce0537b9b520623f9c4b21de6da3bf8e4ac5e
2024-01-02 15:53:26 +08:00
Sandy Huang
168ce8b0e9 arm64: dts: rockchip: rk3588: move hdmi phy clk to hdmiphy
hdmi0/1 depend on the hdptxphy_hdmi_clk0/1, but hdptxphy_hdmi_clk0/1 is a
subdev at hdmiphy and less corresponding driver, this will lead to
hdmi driver probe will be delayed 10 seconds after add the following
commit:

commit: 4a032827da ("of: property: Simplify of_link_to_phandle")

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I36ce464860c578eb113de82f089c4637eb47b0fc
2024-01-02 15:36:01 +08:00
Tao Huang
175fb4a3cc regulator: core: Ensure debugfs is fully initialized
regulator->debugfs is NULL when sysfs_create_link_nowarn() return -EEXIST,
and triggering the following warning:

[    2.426974] debugfs: File 'uA_load' in directory '/' already present!
[    2.426983] debugfs: File 'min_uV' in directory '/' already present!
[    2.426991] debugfs: File 'max_uV' in directory '/' already present!
[    2.426999] debugfs: File 'constraint_flags' in directory '/' already present!

Fixes: 08880713ce ("regulator: core: Streamline debugfs operations")
Fixes: 2715bb11cf ("regulator: core: Fix more error checking for debugfs_create_dir()")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iab0b91cacba410705a643d7198eee4f70e1108d5
2024-01-02 14:50:41 +08:00
Tao Huang
b3471d8054 Merge tag 'v6.1.57'
This is the 6.1.57 stable release

* tag 'v6.1.57': (2054 commits)
  Linux 6.1.57
  xen/events: replace evtchn_rwlock with RCU
  ipv6: remove one read_lock()/read_unlock() pair in rt6_check_neigh()
  btrfs: file_remove_privs needs an exclusive lock in direct io write
  netlink: remove the flex array from struct nlmsghdr
  btrfs: fix fscrypt name leak after failure to join log transaction
  btrfs: fix an error handling path in btrfs_rename()
  vrf: Fix lockdep splat in output path
  ipv6: remove nexthop_fib6_nh_bh()
  parisc: Restore __ldcw_align for PA-RISC 2.0 processors
  ksmbd: fix uaf in smb20_oplock_break_ack
  ksmbd: fix race condition between session lookup and expire
  x86/sev: Use the GHCB protocol when available for SNP CPUID requests
  RDMA/mlx5: Fix NULL string error
  RDMA/mlx5: Fix mutex unlocking on error flow for steering anchor creation
  RDMA/siw: Fix connection failure handling
  RDMA/srp: Do not call scsi_done() from srp_abort()
  RDMA/uverbs: Fix typo of sizeof argument
  RDMA/cma: Fix truncation compilation warning in make_cma_ports
  RDMA/cma: Initialize ib_sa_multicast structure to 0 when join
  ...

Change-Id: I79b925ca5822e02e0b9f497b1db93fef0e1dadd3

Conflicts:
	drivers/gpu/drm/rockchip/rockchip_drm_vop.c
	drivers/iommu/rockchip-iommu.c
	drivers/power/supply/rk817_charger.c
	drivers/scsi/sd.c
	include/linux/pci.h
2024-01-02 14:38:47 +08:00
Lan Honglin
920198cd6c media: i2c: imx415 adapt sleep_wakeup
Change-Id: Ie371b8dc92718e13d3abe97a8809e859e918e7a7
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com>
2024-01-02 10:57:42 +08:00
Dingxian Wen
22999ca743 media: rockchip: hdmirx: make sure to bind to big cpu1
Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com>
Change-Id: I7f81e13e02911ff970c179a1a7def0f01417c0c3
2024-01-02 10:52:05 +08:00
Hisping Lin
ca7627f2a4 tee: optee: interrupt an RPC depend on shutdown flag
Fixes: e6c7ea7d4d ("tee: optee: interrupt an RPC when supplicant has been killed")
Change-Id: I33f33af02afb75bda5d68c9731fe636bb97132fe
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
2024-01-02 10:32:37 +08:00
Tao Huang
31ba856fa4 Merge commit '604cec4004abe5a96c734f2fab7b74809d2d742f'
* commit '604cec4004abe5a96c734f2fab7b74809d2d742f':
  soc: rockchip: rockchip_system_monitor: Fix opp_info NULL pointer
  media: rockchip: vicap fixes error of access NULL point when pm resume
  media: rockchip: vicap fixes error flags of devm_request_irq
  pwm: rockchip: support pwm version 4
  pwm: core: add oneshot_repeat and duty_offset attributes
  pwm: rockchip: support more features
  driver: rknpu: Fix passing 0 to PTR_ERR in rknpu_devfreq_init()
  media: rockchip: vicap fixes error of rk_csirx_irq1_handler
  media: rockchip: vicap fixes issue of resend the same buffer to isp
  media: rockchip: vicap fixes logic error of skip frame
  media: rockchip: vicap fixes rdbk buffer not send to isp with single frame mode
  arm/configs: rk3308bs_aarch32_mipi_display.config add gt911

Change-Id: I97a6c31ec3c250c7a83e8d85cf7d5e0124fc4dea
2023-12-29 18:03:45 +08:00
Finley Xiao
5f0de7c5d5 drm/rockchip: vop2: Add devfreq support
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I0bde28f52dd3d734aa3f26adfe9ca8ece8febd65
2023-12-29 17:57:19 +08:00
Zhen Chen
44ee8c59b5 MALI: bifrost: log: Disable WARNINGs in validate_tracepoint_data()
After integrating DDK g21(r46), the driver outputs the following WARNING after waking from sleep:
[  293.271414][  T209] prev_wp_active_end_time 18446744073605310680 > start_time 1119644647 for aid 1000 active_cnt 0
[  293.224787][  T375] WARNING: CPU: 3 PID: 375 at drivers/gpu/arm/bifrost/mali_kbase_gpu_metrics.c:84 emit_tracepoint_for_active_gpu_metrics_ctx+0x138/0x1c4
[  293.224825][  T375] Modules linked in: bcmdhd dhd_static_buf r8168
[  293.224873][  T375] CPU: 3 PID: 375 Comm: kworker/u17:2 Not tainted 5.10.160 #1050
[  293.224888][  T375] Hardware name: Rockchip RK3588 EVB1 LP4 V10 Board (DT)
[  293.224911][  T375] Workqueue: csf_scheduler_gpu_idle_ gpu_idle_worker
[  293.224936][  T375] pstate: 60c00009 (nZCv daif +PAN +UAO -TCO BTYPE=--)
[  293.224955][  T375] pc : emit_tracepoint_for_active_gpu_metrics_ctx+0x138/0x1c4
[  293.224973][  T375] lr : emit_tracepoint_for_active_gpu_metrics_ctx+0x138/0x1c4
...
[  293.225343][  T375] Call trace:
[  293.225364][  T375]  emit_tracepoint_for_active_gpu_metrics_ctx+0x138/0x1c4
[  293.225382][  T375]  kbase_gpu_metrics_emit_tracepoint+0x54/0xf4
[  293.225403][  T375]  cleanup_csg_slot+0x20c/0x4f8
[  293.225423][  T375]  wait_csg_slots_suspend+0x320/0x3bc
[  293.225440][  T375]  suspend_active_groups_on_powerdown+0xa8/0x1cc
[  293.225458][  T375]  scheduler_suspend_on_idle+0x24/0x828
[  293.225474][  T375]  gpu_idle_worker+0x384/0x5c4
[  293.225495][  T375]  process_one_work+0x1f0/0x478
[  293.225511][  T375]  worker_thread+0x270/0x4cc
[  293.225531][  T375]  kthread+0x138/0x340
[  293.225552][  T375]  ret_from_fork+0x10/0x18

The WARNING is due to the driver expecting 'gpu_ts' (gpu_timestamp) from the FW
to be monotonically increasing, but here "after waking up, 'gpu_ts' is smaller than before sleep."

'gpu_ts' comes from the GPU's input signal CNTVALUEB.
CNTVALUEB comes from the 'stimer' timer.
derrick.huang@rock-chips.com confirmed that this timer loses power during sleep,
and its count is reset when the system wakes up.
This causes "'gpu_ts' to be smaller after waking up than before sleep."

derrick.huang also mentioned that "for RK3588, it is not possible
to make 'stimer' not lose power in the product."
Here, we are temporarily disabling this WARNING.

It is speculated that sleep-wake cycles
might lead to certain profile features of the GPU not functioning correctly.
Further testing will be conducted to check for other potential issues.

Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Change-Id: I9979bff7c7fb946437889561e90440de1037bb35
2023-12-29 17:57:19 +08:00
Zhen Chen
6b494eb5a1 Mali: bifrost: Fix: When calling devfreq_add_device(), restore passing of '&ondemand_data'
Change-Id: Ia2987763b90223f7333e2a24dacc05840309709c
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2023-12-29 17:57:19 +08:00
Zhen Chen
a94d0b968a MALI: rockchip: upgrade bifrost DDK to g21p0-01eac0, from g18p0-01eac0
NOTE:
For RK3588, the mali_csffw.bin used with this driver MUST be from DDK g21p0-01eac0 correspondingly.

Change-Id: Ifab61806a6a350ba53c5dc0296d20628c28d633a
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2023-12-29 17:57:18 +08:00
Algea Cao
e2f9938790 phy: rockchip-samsung-hdptx-hdmi: Calculate the pll frequency based on the register value
Change-Id: Ifd069b1c26efc6b57065e98a4d694c069c29173f
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2023-12-29 17:57:18 +08:00