Some product scenarios would like the rtos's memory space always been
exclusive.
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: Ib71da6b355995ab5b12ddfdf346bbce8e1852745
1. update rockchip tiled modifier format define;
2. add rockchip rfbc modifier format define, rfbc is rockchip framebuffer
compression format, it's will supported by rockchip video decoder, RGA and VOP
modules, and the superblocks size is 64x4.
Fixes: f727d3ad8e ("drm/fourcc: Add definitions for Rockchip vendor and VPU tiled format")
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ice06eda4819254ba670a7231836cabe46bc38137
Allow the DRM ignore some permission issues.
Change-Id: Id0b5287001bdb3ee91a97cfd58ef93fe2c3fc829
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
In camera preview state, press the power button to standby,
then press the power button immediately to wake up,
machine will reboot, so fix it.
Call trace:
samsung_mipi_dcphy_power_on+0x68/0xc80 [phy_rockchip_samsung_dcphy]
phy_power_on+0xa4/0x124
dw_mipi_dsi2_pre_enable+0x350/0x364 [rockchipdrm]
dw_mipi_dsi2_encoder_atomic_enable+0x308/0x3d0 [rockchipdrm]
drm_atomic_helper_commit_modeset_enables+0x158/0x2ec
rockchip_drm_atomic_helper_commit_tail_rpm+0x50/0x2f8 [rockchipdrm]
commit_tail+0xbc/0x170
drm_atomic_helper_commit+0x1f4/0x218
drm_atomic_commit+0xbc/0xec
drm_mode_atomic_ioctl+0x59c/0x70c
drm_ioctl_kernel+0xf8/0x184
drm_ioctl+0x2cc/0x528
__arm64_sys_ioctl+0xa8/0xe4
invoke_syscall+0x58/0x11c
el0_svc_common+0xb4/0xf4
do_el0_svc+0x2c/0xb0
el0_svc+0x2c/0xa4
el0t_64_sync_handler+0x68/0xb4
el0t_64_sync+0x1a0/0x1a4
Code: 95d7b2de b9408a68 34000b48 f9403e76 (f9407ad4)
---[ end trace 0000000000000000 ]---
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Ie15e7cef29821683731d56ff5c4ceb924e340bb5
When reading pinconf-pins from debugfs it fails to get the configured pull
type on RK3568, "unsupported pinctrl type" error messages is also reported.
Fix this by adding support for RK3568 in rockchip_get_pull, including a
reverse of the pull-up value swap applied in rockchip_set_pull so that
pull-up is correctly reported in pinconf-pins.
Also update the workaround comment to reflect affected pins, GPIO0_D3-D6.
Fixes: c0dadc0e47 ("pinctrl: rockchip: add support for rk3568")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Jianqun Xu <jay.xu@rock-chips.com>
Link: https://lore.kernel.org/r/20230110172955.1258840-1-jonas@kwiboo.se
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit f8ac5467e1)
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: I8c6a115f1c6c62b734f76487a0ace63f4bc43743
This patch Use DMC-DVFS-SCENE policy for High Bitrate Audio.
Ref: commit 5f0eb1c57240 ("ASoC: rockchip: Introduce rockchip utils common API")
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I58a34020fabbddd7f47a5831b3a33c6f81118fe1
This patch Use DMC-DVFS-SCENE policy for High Bitrate Audio.
Ref: commit 5f0eb1c57240 ("ASoC: rockchip: Introduce rockchip utils common API")
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I9492fa993b6095f53f253615304ec445ac9cb53f
This patch Use DMC-DVFS-SCENE policy for High Bitrate Audio.
Ref: commit 5f0eb1c57240 ("ASoC: rockchip: Introduce rockchip utils common API")
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I9b919a8b2ebc85400eafb4229cd9f70b2df2bd9b
At the monment, we add utils_get/put_performance for
DMC-DVFS-SCENE policy.
Ref: commit cae65d78f0 ("ASoC: rockchip: i2s-tdm: Add support for FIFO-XRUN detection")
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I188e5cfff960aa3679db5c3a8ee847d9c7b685ee
Cannot use android_device to get multiple android instances.
The cdev will not be freed by the set_gadget_data(gadget, NULL),
so we can do not use the spinlock of gadget item to prevent
the condition.
Bug: 298603473
Fixes: dd139186ef ("ANDROID: usb: gadget: fix NULL pointer dereference in android_setup")
Signed-off-by: William Wu <william.wu@rock-chips.com>
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
Change-Id: Ic0c72971051401d218e2eba75c40194933290e16
When three threads run on three different cpu, and write
60 byte to the same uart at the same time, which causes
the data loss. After test, it is caused by DMA bursts 16 byte
when the fifo is more than 48 byte(fifo total 64 byte).
It is solved by clearing the uart dma request before start
dma tx.
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I4e2099337e25e41a34ceeb9ea774a04cc7c71f07
This patch add support for hw_free which is paired to
hw_params.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Iaddffe89212bd734dcd3fc8de38c7ff3b2abe652
Should skip the dais which mapped as zero channel.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I875f6dc6795b8cfed5abffcaf849fb52b729d5a3