Commit Graph

1274352 Commits

Author SHA1 Message Date
Tao Huang
57ed7b017f ARM: rk3506_defconfig: Enable CONFIG_LD_DEAD_CODE_DATA_ELIMINATION
before:
   text	   data	    bss	    dec	    hex	filename
4919662	2289888	 114376	7323926	 6fc116	vmlinux

after:
   text	   data	    bss	    dec	    hex	filename
4817210	2235024	 110208	7162442	 6d4a4a	vmlinux

Change-Id: I66ff62436bafa48242cec573901195220e84fbac
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2024-08-21 19:17:45 +08:00
Yuntao Liu
cf50c9c2e4 BACKPORT: ARM: 9404/1: arm32: enable HAVE_LD_DEAD_CODE_DATA_ELIMINATION
The current arm32 architecture does not yet support the
HAVE_LD_DEAD_CODE_DATA_ELIMINATION feature. arm32 is widely used in
embedded scenarios, and enabling this feature would be beneficial for
reducing the size of the kernel image.

In order to make this work, we keep the necessary tables by annotating
them with KEEP, also it requires further changes to linker script to KEEP
some tables and wildcard compiler generated sections into the right place.
When using ld.lld for linking, KEEP is not recognized within the OVERLAY
command, and Ard proposed a concise method to solve this problem.

It boots normally with defconfig, vexpress_defconfig and tinyconfig.

The size comparison of zImage is as follows:
defconfig       vexpress_defconfig      tinyconfig
5137712         5138024                 424192          no dce
5032560         4997824                 298384          dce
2.0%            2.7%                    29.7%           shrink

When using smaller config file, there is a significant reduction in the
size of the zImage.

We also tested this patch on a commercially available single-board
computer, and the comparison is as follows:
a15eb_config
2161384         no dce
2092240         dce
3.2%            shrink

The zImage size has been reduced by approximately 3.2%, which is 70KB on
2.1M.

Change-Id: Id2c136f7c992c6699c6c576ada46bfb025378f78
Signed-off-by: Yuntao Liu <liuyuntao12@huawei.com>
Tested-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit ed0f941022515ff40473ea5335769a5dc2524a3f)
2024-08-21 19:17:45 +08:00
Mingwei Yan
205bc82ae4 media: rockchip: vpss: support suspend and resume
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
Change-Id: I30a15c5952853b99968acbe732adcc83301e1d62
2024-08-21 19:12:47 +08:00
Mingwei Yan
ed7f33a28d media: rockchip: vpss: offline add some debug info
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
Change-Id: Idcdb789929698242a2d78a43a0f28b46be0b27d7
2024-08-21 19:09:55 +08:00
Zhang Yubing
9ce43aae96 drm/rockchip: fix some csc parameters error
1. Fix the csc matrix. For YUV709L to YUV709L, YUV601L to
YUV601L, YUV2020L to YUV2020L, The csc matrix should be
identity matrix. For YUV601L to YUV709L, modeify the csc
matrix.
2. optimize the final calculation result. Use the new r2y
and y2r matrix for csc yuv2yuv and rgb2rgb case. A simple
round is used for csc yuv2yuv and rgb2rgb case for a more
precise result.

Change-Id: I51f1b597c2aa3edcb66bc359df709b9b61a97b52
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-08-21 18:12:08 +08:00
Tao Huang
0cb1f2340c ARM: rk3506_defconfig: Disable more unused NET_VENDOR
Change-Id: Ie466c01ef94d34c9aad8a64fb4bc055d5108550a
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2024-08-21 10:53:18 +08:00
Chen Shunqing
b56ae053d3 media: i2c: rk628: reduce power consumption when there is no hdmi in
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: Idc4b5f2b6372414e61634b3144b01d6ca0acc447
2024-08-21 09:28:51 +08:00
Zhen Chen
e67dbfb61f MALI: bifrost: CSF: Add MALI_CSF_INCLUDE_FW to include mali_csffw.bin into driver by default
Change-Id: Ib6374444bdda257b245c2f09475cb470f1974dcd
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2024-08-20 18:37:40 +08:00
Zhen Chen
d6fdcb0bf4 MALI: bifrost: CSF: Add formal mali_csffw.bin of Valhall DDK g22(r47)
Change-Id: Ia97d5d1f597dbeda65ec78431304ec0e851d9eed
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2024-08-20 18:37:40 +08:00
Zhen Chen
386decb92e MALI: bifrost: CSF: Using DDK version as prefix in 'default_fw_name'
Change-Id: I7e4ab0323794cdc4db8789e4aef317c357dc4938
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2024-08-20 18:37:40 +08:00
Zhen Chen
8d8f23f435 MALI: rockchip: upgrade bifrost DDK to g22p0-01eac0, from g21p0-01eac0
Change-Id: I7dabc77e636e7507ee6d3ef7d573e7ea3566703a
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2024-08-20 18:37:40 +08:00
Algea Cao
8de69287b9 drm/bridge: synopsys: dw-hdmi-qp: Support set ddc scl freq from dts
Change-Id: I8a57946cbf70976a87bf19e963581e02a5c0a521
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-08-20 14:06:49 +08:00
Shawn Lin
1b2222254f phy: rockchip: naneng-combphy: Update external clk parameters for better SI
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Ic121a29ddc00357b069b27b0fe5e8f4654677ae1
2024-08-19 09:23:12 +08:00
Tao Huang
b453658077 Merge tag 'v6.1.84'
This is the 6.1.84 stable release

* tag 'v6.1.84': (1865 commits)
  Linux 6.1.84
  tools/resolve_btfids: fix build with musl libc
  USB: core: Fix deadlock in usb_deauthorize_interface()
  x86/sev: Skip ROM range scans and validation for SEV-SNP guests
  scsi: libsas: Fix disk not being scanned in after being removed
  scsi: libsas: Add a helper sas_get_sas_addr_and_dev_type()
  scsi: lpfc: Correct size for wqe for memset()
  scsi: lpfc: Correct size for cmdwqe/rspwqe for memset()
  tls: fix use-after-free on failed backlog decryption
  x86/cpu: Enable STIBP on AMD if Automatic IBRS is enabled
  scsi: qla2xxx: Delay I/O Abort on PCI error
  scsi: qla2xxx: Change debug message during driver unload
  scsi: qla2xxx: Fix double free of fcport
  scsi: qla2xxx: Fix command flush on cable pull
  scsi: qla2xxx: NVME|FCP prefer flag not being honored
  scsi: qla2xxx: Update manufacturer detail
  scsi: qla2xxx: Split FCE|EFT trace control
  scsi: qla2xxx: Fix N2N stuck connection
  scsi: qla2xxx: Prevent command send on chip reset
  usb: typec: ucsi: Clear UCSI_CCI_RESET_COMPLETE before reset
  ...

Change-Id: If6edd552c88012d97f5eefc5e1d97a4f1683f171

Conflicts:
	drivers/gpu/drm/bridge/sii902x.c
	drivers/gpu/drm/rockchip/rockchip_lvds.c
	drivers/media/i2c/imx335.c
	drivers/usb/dwc3/gadget.c
	drivers/usb/host/xhci-plat.c
	sound/soc/rockchip/rockchip_i2s_tdm.c
2024-08-17 17:42:29 +08:00
Zhibin Huang
d7d3217791 misc: rk628: bt1120: yc-swap and uv-swap property are also used in encoder
The rk628's bt1120 encoder data type is yuv 4:2:2 packed format,
i.e., it supports four types of packing (YUYV, YVYU, UYVY, and
VYUY). The difference is that in the 16 lanel, there are 8
transmitting Y data, 8 transmitting UV data, and the UV data is
transmitted alternately. Adding these two properties can support
the packing method switching.

For example:
-- Assuming that these two properties are not configured, YUYV
format will be used to transfer data by default.
-- If you need to output YVYU format (i.e., the VU transfer order
is reversed), you need to configure the bt1120-uv-swap property.
-- If you need to output UYVY format (i.e., the Y and UV lane order
is reversed), you need to configure the bt1120-yc-swap property.
-- If you need to output VYUY format, both properties need to be
configured;

Type: Function
Redmine ID: N/A
Associated modifications: Ie1c54ac3fbc01d76d32eff8d2857f68339654b70
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I25692e0713b68a8f9d7099086d00f927b9e26a02
2024-08-17 16:15:49 +08:00
Zhibin Huang
cd5901c83f misc: rk628: provides multiple hsync and vsync polarity configuration methods
// example:
&rk628 {
    // case 1:
    mode-hsync-pol = <1>;
    mode-vsync-pol = <1>;
    // case 2:
    mode-sync-pol = <1>;
    // case 3:
    display-timings {
        src-timing {
            ...
            hsync-active = <1>;
            vsync-active = <1>;
            ...
        }
        dst-timing {
            ...
        }
    }
}

Priority: case 3 > case 2 > case 1
-- case 1: the hsync and vsync polarities are configured by parsing
the values of the "mode-hsync-pol" and "mode-vsync-pol" properties
(if no property is configured, the corresponding polarity defaults to
positive polarity.
-- case 2: hsync and vsync polarity equal to "mode-sync-pol"
-- case 3: the "hsync-active" and "vsync-active" properties values in
the "display-timings"-"src-timings" node are prioritized to configure
the hsync and vsync polarity.

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I595651f0761ed77e5582e297977359ab7ddc1743
2024-08-17 16:15:49 +08:00
Zhibin Huang
60a6e19c71 misc: rk628: optimize summary information
add and optimize information: bus_format, flag, clk, real_clk

For the rx side, clk is the actual frequency of the set clk_rx_read,
and real_clk is the actual clock frequency given by the detected
front end (which hdmirx sets into src_mode->clock).

For the tx side, clk is the set dst_mode->clock and real_clk is the
actual frequency of the set sclk_vop.

Type: Fix
Redmine ID: N/A
Associated modifications: N/A
Test:
    console:/ # cat /d/rk628/5-0050/summary
    input: HDMI
        Display mode: 3840x2160p60  bus_format: YUV444
            clk[594000] real_clk[594000] flag[5]
            H: 3840 4016 4100 4400
            V: 2160 2168 2178 2250
    output: GVI
        Display mode: 3840x2160p60  bus_format: RGB
            clk[594000] real_clk[594000] flag[a]
            H: 3840 4016 4100 4400
            V: 2160 2168 2178 2250
    csc:
            csc[1], csc mode:BT709L_13BIT
    system:
            sw_hsync_pol:1, sw_vsync_pol:1
            dsp_frame_h_start:0, dsp_frame_v_start:5

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: Ibb312aefeee68a6c882294e221b0ce9b3b3b6f98
2024-08-17 16:15:49 +08:00
Zhibin Huang
eb6c29a410 misc: rk628: fix csc not closing when switching formats
Type: Fix
Redmine ID: N/A
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: Ib53dbf7e9ad2eabfcf7bbc417ff2b0720057a9b7
2024-08-17 16:15:49 +08:00
Luo Wei
c5e70bb73e mfd: display-serdes: update driver version to v11
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I29a6ff45df69858e5220e3f030061e86d6ca58fe
2024-08-17 16:10:59 +08:00
Zefa Chen
bddc67dd10 media: rockchip: vicap clean fs intr state before set fs intr enable
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ia4a5370ae4720c9d72b05361eb0ea4087ff61af1
2024-08-16 19:50:18 +08:00
Zefa Chen
718a2ed076 media: rockchip: vicap disable fs inf intr when stop dma capture to reduce unnecessary intr consume
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ib6be615a0715ddc113df8d07de63f8acaeab69b5
2024-08-16 19:50:18 +08:00
Zefa Chen
50ac94ceff media: rockchip: vicap set default vc to pad_id
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I26d33cf36a0e4525da9fe145246b46a440d9bde0
2024-08-16 19:50:18 +08:00
Zefa Chen
fe80f076d8 media: rockchip: vicap add limit for toisp1 register operation
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I91ea1b89ed889d8438d25dc98bada8a733c7411b
2024-08-16 19:50:18 +08:00
Zefa Chen
2b5a6bf9ae media: rockchip: vicap wait fe to stop stream when stream suspend
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I001f2052481c7b91b09100d1d6e5bae0d5555327
2024-08-16 19:50:18 +08:00
XiaoTan Luo
d795377d62 ASoC: rk817: Add Volume Mixer Controls for Codec
Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: I222b950bf8a1a7599adba3d9e8c41797bffddbf0
2024-08-16 19:06:23 +08:00
Shawn Lin
def9222ace Revert "PCI: rockchip: dw: remove .link_up() hook from struct dw_pcie_ops"
Revert this commit as it wasn't reliably work as expected by massive test.
The problem is clear now that cxpl_debug_info from DWC core is missing
rdlh_link_up. So reading PCIE_PORT_DEBUG1 and check smlh_link_up isn't enough.

Quoted from DWC databook, section 8.2.3 AXI Bridge Initialization, Clocking and Reset:

"In RC Mode, your AXI application must not generate any MEM or I/O
requests, until the host software has enabled the Memory Space Enable
(MSE), and IO Space Enable (ISE) bits respectively. Your RC application
should not generate CFG requests until it has confirmed that the link is
up by sampling the smlh_link_up and rdlh_link_up outputs."

The problem was introduced by commit 1 and fixed by commit 2 but not to
the end. And finally commit 3 rename the register but not fix anything.

It was broken from the first time. Any dwc controller should be use the
buggy default method to check link up state. So revert this commit to use
our own link_up hook. The timing is drving smlh_link_up->L0->rdlh_link_up->
FC init(a fixed delay) from IC simulation. So the origin code is working. What
we were trying to fix is the link suddenly broke after link was already up.
However, it could happen anytime, even just after passing dw_pcie_link_up
check. So it's function drivers responsibility to check 0xffffffff return value
to be aware of the link broken state and do a proper retry or recovery.

[1]. commit dac29e6c54 ("PCI: designware: Add default link up check if
sub-driver doesn't override")

[2]. commit 01c076732e ("PCI: designware: Check LTSSM training bit
before deciding link is up")

[3]. commit 60ef4b072b ("PCI: dwc: imx6: Share PHY debug register
definitions")

This reverts commit a095b98601.

Change-Id: I2104e5fe00ac3be921f6dc1185ad3ce34e01d1bc
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2024-08-16 18:27:17 +08:00
Finley Xiao
fce9853080 clk: rockchip: rk3506: Make pclk ioc critical
Change-Id: I344aae5386ff6d18ea3e8a99e9cf42da27e32a1f
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2024-08-16 17:53:14 +08:00
Luo Wei
06a2bad16e arm64: dts: rockchip: rk3588-vehicle-evb: init v23 dts files
Signed-off-by: Luo Wei <lw@rock-chips.com>
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Signed-off-by: Zheng zhiqi <looper.zheng@rock-chips.com>
Change-Id: Id704f2ee9a4f1c117cad6ae63f2d71f93c9dcc12
2024-08-16 17:02:35 +08:00
Hisping Lin
565bcc6674 nvmem: rockchip-otp: enable otp access permission lock
Change-Id: I48fe4fc4481a789e055c22c6995de4b45d3dce2c
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
2024-08-16 16:53:09 +08:00
Hisping Lin
73d255eb3b nvmem: rockchip-otp: do not close common clk
When s otp and ns otp are accessed simultaneously,
do not close the common clk to avoid reading failures.

Change-Id: Ic488e2053e99bf3413ba709ad17cf2fc1f95ad0b
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
2024-08-16 16:53:09 +08:00
Jiajian Wu
5c4a65a525 arm64: dts: rockchip: rk3399 boards: hdmi-sound compatible to rockchip,hdmi
Change-Id: I2f459e5f0c1ca45452e257492770626afcf3c5d5
Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
2024-08-16 16:44:54 +08:00
Jiajian Wu
3b0e65078d arm64: dts: rockchip: rk3568 boards: hdmi-sound compatible to rockchip,hdmi
Change-Id: Ie41fe598c271175000426f82d671a3b01aab4e1b
Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
2024-08-16 16:44:43 +08:00
Cai YiWei
7976d8fed9 media: rockchip: isp: isp39 aiisp offline mode default
Change-Id: I6e3b3809089d331b371cab3e3d879a68a8abf7e7
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-08-15 19:43:22 +08:00
Cai YiWei
e849bbadbe media: rockchip: isp: clear isp force update bit
Change-Id: I6dd6b348638f24e8e441b3a0501a3b92e9fa70d5
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-08-15 19:43:22 +08:00
Algea Cao
5f25916775 drm/bridge: synopsys: dw-hdmi-qp: Avoid enable hdcp when hdmi is disabled
If enable hdcp when hdmi is disabled, system will crash.
Because hdmi regs can't be accessed when hdmi clk is disbaled.

This patch fixes the following panic:

Kernel panic - not syncing: Asynchronous SError Interrupt
CPU: 7 PID: 2053 Comm: modetest Tainted: G           O       6.1.75 #114
Hardware name: Rockchip RK3576 EVB1 V10 Board (DT)
Call trace:
  dump_backtrace+0xf4/0x114
  show_stack+0x18/0x24
  dump_stack_lvl+0x6c/0x90
  dump_stack+0x18/0x3c
  panic+0x14c/0x338
  check_panic_on_warn+0x0/0x90
  arm64_serror_panic+0x68/0x74
  do_serror+0xc4/0xcc
  el1h_64_error_handler+0x34/0x48
  el1h_64_error+0x78/0x7c
  regmap_mmio_read32le+0x10/0x20
  _regmap_bus_reg_read+0x28/0x34
  _regmap_read+0x18c/0x240
  regmap_read+0x54/0x78
  hdmi_readl+0x2c/0x58
  dw_hdcp_qp_hdcp_start+0x10c/0x394
  dw_hdmi_qp_hdcp_enable+0xd0/0x194
  dw_hdmi_connector_atomic_commit+0x9c/0xc4
  rockchip_drm_atomic_helper_commit_tail_rpm+0x220/0x2d8
  commit_tail+0xa4/0x154
  drm_atomic_helper_commit+0x1c4/0x1e4
  drm_atomic_commit+0xa4/0xd0
  drm_mode_obj_set_property_ioctl+0x140/0x474
  drm_ioctl_kernel+0x80/0xf8
  drm_ioctl+0x2d4/0x554
  __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: I2ca288bf192f51ab14d1e369fe0a472e84508379
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-08-15 19:38:20 +08:00
Shawn Lin
f6253df6f9 phy: rockchip: naneng-combphy: Add external clk support for RK3528
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I0e379cef876ed45bf5196e03999f937d1c830943
2024-08-15 19:36:07 +08:00
Jon Lin
3bdb9f70ba phy: rockchip: naneng-combphy: Support rockchip,enable-ssc for RK3528 PCIe
Change-Id: I227d11357e29e086f48324ef5bebc8173058ede7
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-08-15 19:36:07 +08:00
Jon Lin
781ee5d8be dt-bindings: spi: spi-rockchip: Support rockchip,failed-retry-poll
Change-Id: I8ba66e3b3aab180296b5a2d15e50b5edfc220691
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-08-14 20:23:41 +08:00
Jon Lin
2469e19107 spi: rockchip: Support failed retry poll
SPI transmission exception is often caused by an abnormality in the
IRQ subsystem in the environment, so an attempt is made to switch
to the poll transmission scheme in order to expect the SPI module
to continue working.

Change-Id: I1fc0451efef501a5a462931515a25e48c4fd1765
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-08-14 20:23:36 +08:00
Jon Lin
5df6dc1dd9 spi: rockchip: Enable pm_runtime autosuspend_delay
This can balance performance and power consumption.

Change-Id: Ib59047632c57b6897098d16f43ba44e38e075c00
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-08-14 20:23:27 +08:00
XiaoTan Luo
c7b9a0eda0 ASoC: rockchip: multicodecs: Fix probe error on missing key config
Allow ADC-only headset mic detection when input key not needed

Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: Icd23a514861f535c488177a7554016c1d70ff118
2024-08-14 18:54:30 +08:00
Frank Wang
649854e053 mailbox: rockchip: adds b2a direction support
Configure the "rockchip,tx-direction-b2a" property in DT can enable
B2A direction support for Rockchip mailbox V2 IP.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I005f2cebb3898ef895fd0be238711b65f3717690
2024-08-14 18:53:54 +08:00
Frank Wang
8bc01b6dba mailbox: rockchip: add more txdone methods support
Configure "rockchip,txdone-irq" property in DT indicates that the
controller can trigger the TX_DONE interrupt. This feature begin
support from RV1103B and RK3506 SoCs with Rockchip mailbox v2 IP.

If the mailbox client wants to use its own ACK to check TX_DONE,
the "rockchip,txdone-ack" property also gets reday for it in
this patch.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Ie62d94c13f6d8081b08e8bf5c45b5f7de5204bbe
2024-08-14 18:53:54 +08:00
Yu Qiaowei
c09c257b5d video: rockchip: rga3: fix map/unmap buffers in mutex_lock
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I9570af5ddef114c1cf322d62959589d0c2cc1b24
2024-08-14 18:47:37 +08:00
Yu Qiaowei
310cad87e0 video: rockchip: rga3: add commit work in fence callback
To avoid the caller signaling acquire_fence in some special cases (e.g.
interruptions), use the work queue to execute 'request_commit'.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Ibec2c8a7f5b5bd3e99d9109793561f28bfb7d4ac
2024-08-14 18:47:37 +08:00
Algea Cao
ba78086f0b drm/bridge: synopsys: dw-hdmi-qp: Read bstatus via ddc
When hdcp repeater's device count is 0, hdmi controller
will not update bstatus in hdcp1.4 ram. So bstatus should
be read via ddc directly.

Change-Id: I891f3824c0e77586c1180b118d38da4667e4a927
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-08-14 17:55:20 +08:00
Algea Cao
5abf2c5f69 drm/rockchip: dw_hdmi: Output max rate if support frl mode and rate in edid is 0
Change-Id: Ibd4d4f16478412a2a3260ac717b0ba53e80e7740
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-08-14 17:55:20 +08:00
Algea Cao
d9459b1ea9 drm/rockchip: drv: Support HFR1-17
HFR1-17 requires that when the frl rate in edid
is protocol undefined, hdmitx must output the
maximum supported frl rate.

Change-Id: I61a0152d570e826207f51724578b0113e8818302
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-08-14 17:55:20 +08:00
Algea Cao
f1408dc64a drm/rockchip: drv: Support parse edid scds
Change-Id: I0dc7fa3c755819ed48a2c05797405105f1b075d0
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-08-14 17:55:20 +08:00
Algea Cao
6fda045b25 drm/rockchip: dw_hdmi: Output yuv420 when sink only support yuv420
Change-Id: I458f1ba66d94eaa5a77722a72f14f688de311d88
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-08-14 17:55:20 +08:00