Commit Graph

887 Commits

Author SHA1 Message Date
xing.xu ecb7e8f56c vdec: S5 Secure + no Secure play no smooth [2/3]
PD#SWPL-164404

Problem:
Back permissions are not separated from
front permissions.

Solution:
Separate back's permissions from front
and control them separately

Verify:
s5

Change-Id: I9e6465d5b8b45143a51c440d1a24160ad80087fb
Signed-off-by: xing.xu <xing.xu@amlogic.com>
2024-04-29 21:55:35 -07:00
Hao Shi c53c3195c6 amvdec: optimize vdec_info and vframe_counter_s [2/2]
PD#SWPL-160457

Problem:
memcpy beyond individual struct members

Solution:
create a named mirror of an anonymous struct union

Verify:
sc2&sm1

Change-Id: If86c3581ac473bb8e4c2b2021bedcbe44ad406e2
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-04-28 22:39:52 -07:00
Qianggui Song 77cc50034b gpio: porting gpiolib-sysfs from common [1/1]
PD#SWPL-166758

Problem:
Some customer neeed to support gpio sysfs in gki mode

Solution:
Porting common gpiolib-sysfs to common_driver

Verify:
T7_an400 & txhd2_be311

Change-Id: I72f60644fa383abe05409bfe0bf978c7ea901d92
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2024-04-28 06:08:17 -07:00
ruofei.zhao 321b9f49b6 hdmitx21: auto change the color depth to support HDR under DV_STD [1/1]
PD#SWPL-160150

Problem:
play HDR video under DV_STD, output as SDR

Solution:
auto change the color depth to support HDR under DV_STD

Verify:
SC2
S5

Test:
DRM-TX-90

Change-Id: Ifd830c91c68a600f5ac4c3b9e00b0709083b74e8
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-04-27 21:59:38 -07:00
brian.zhu ac238cf56e di: add new post-link function [1/1]
PD#SWPL-151581

Problem:
Need di post-link mode

Solution:
add new DI post-link flow

Verify:
Verified on txhd2

Change-Id: I37b9c080699844a472859a1e2aced82434c82739
Signed-off-by: brian.zhu <brian.zhu@amlogic.com>
2024-04-27 14:33:33 -07:00
hang cheng 8bb6faf7ab hdmitx: not send uevent after suspend [1/1]
PD#SWPL-158050

Problem:
it will block suspend if send kobject uevent
when suspend

Solution:
not send uevent after suspend

Verify:
ohm

Test:
DRM-TX-105

Change-Id: I66f13e24076290f99defca8badb8d94d8b2e3e2a
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2024-04-25 00:02:10 -07:00
qing.zhang 861319cbd6 Audio: add earc rx for s7d [1/1]
PD#SWPL-163105

Problem:
new earc Rx design

Solution:
changelist from https://scgit.amlogic.com/#/c/417153
1. new default setting for arc in
2. remove pll refresh when startup
3. when cmdc init, need refresh pll after pll default setting
4. force channel sync for channel mapping
5. add dmac bit29 check for common arc check
6. add iec raw channel status check
7. use chip info(arc_ch_sync/arc_in_new)

Verify:
use s7d

Change-Id: Id681334bfde57bfe71a870a16859e24712e262e3
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-04-24 02:06:36 -07:00
guoqing.sun 70b5ce8ae9 CI: CB2 add ioctl CA_SET_START. [1/1]
PD#SWPL-160156

Problem:
CA_SET_START

Solution:
CA_SET_START

Verify:
android-u t5m

Change-Id: Ia67484e2f12b4260436964cd91a8a8f9deb49bd9
Signed-off-by: guoqing.sun <guoqing.sun@amlogic.com>
2024-04-23 04:08:26 -07:00
yaoyu.xu 7781955e71 hdmirx: hdmi dsc sw flow [1/1]
PD#SWPL-154080

Problem:
hdmi do not support cvtem packet.

Solution:
hdmi dsc sw flow add.

Verify:
t3x.

Change-Id: I4252048ec4cd08199f4aa12e12a017cd9ad94d36
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-04-18 04:54:43 -07:00
Huijuan Xiao cf5c6c68b5 amvecm: add sbtm feature [1/1]
PD#SWPL-163931

Problem:
new feature of hdmi source based tone mapping.

Solution:
add sbtm corresponding flow and APIs.

Verify:
s5

Change-Id: Iee87b4762bfacff94856b972569e03cf0796b031
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-04-18 04:52:43 -07:00
Haotian Guo 23704bf705 hdmirx: edid block checksum [1/1]
PD#SWPL-162491

Problem:
calculating checksum error when there are more than 2 blocks

Solution:
Change the calculation method

Verify:
t3x

Change-Id: I71d212144273705a8eba62823fc27b0cdbec75d5
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2024-04-18 04:49:13 -07:00
yao zhang1 6619b5500d bringup: Fixed s7d build error [1/1]
PD#SWPL-165213

Problem:
Fixed s7d build error

Solution:
Fixed s7d build error

Verify:
s7d

Change-Id: Ic5cc56c134821e5710f00d32fe82eb7d404b07aa
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2024-04-17 19:31:22 +08:00
wenlong.zhang b3436bfa11 drm: change afbc format [1/1]
PD#SWPL-163150

Problem:
support DRM_FORMAT_ABGR1010102

Solution:
support DRM_FORMAT_ABGR1010102

Verify:
S7D

Test:
DRM-OSD-6

Change-Id: I20a2b0080dd99baafd9fff4b0c6a9a32a99df58a
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-04-17 19:31:22 +08:00
hongyu.chen1 af8b89097e S7D: Clean up power domain state. [3/3]
PD#SWPL-163896

Problem:
1.need to clean out the power that
is always on to save power.
2.Some modules related to mempd have
been added for debugging later.

Solution:
1.Clean up an open power supply.
2.add power domain config.

Verify:
S7D

Change-Id: Ic313a24168041cb925483202bc26f9c53c6b1548
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-04-17 19:31:22 +08:00
Zelong Dong f349ec882b ir: support 2 multi-format ir controller [1/1]
PD#SWPL-163059

Problem:
legacy ir controller was updated to multi-format ir controller
and each controller have a IRQ

Solution:
support 2 IRQs in ir driver

Verify:
s7d_bm201

Change-Id: I268562144440d642e4f635dbe76bb45f799d6bee
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-04-17 19:31:21 +08:00
jinbing.zhu 1ff02de630 amvecm: s7d add demo safa reg interface [1/1]
PD#SWPL-163847

Problem:
add demo safa reg interface

Solution:
add demo safa reg interface

Verify:
verify on s7d

Change-Id: Ide58e5efbf68b609fe39269ce7f4c252d0b9c585
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-04-17 19:31:21 +08:00
Yao Jie 5a9dbd20b6 mailbox: s7d add aocpu alive check mechanism [1/1]
PD#SWPL-163760

Problem:
When modules send mailbox message to aocpu, sometimes
aocpu can not response because of stuck or interrupt
signal lost, at this time driver modules need to know
whether aocpu is alive or not, this is helpful to debug.

Solution:
Add aocpu alive check mechanism, when aocpu did not
response, system will check and print aocpu status.

Verify:
S7D-BM209

Change-Id: I285a300313c1439be2ed50fafc58c4a92fa032ac
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2024-04-17 19:31:21 +08:00
Chuan Liu ae4943530e clk: s7d: Fix known issue [1/1]
PD#SWPL-163050

Problem:
1 PLL driver adds rstn features
2 Add ACLKM clock
3 Adapts to pll_v4_ops

Solution:
Fixed

Verify:
s7d_bm209

Change-Id: Ide5199539d388d9ee415ecf65f3c162b2e4c881c
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-04-17 19:31:21 +08:00
jinbing.zhu e2afb0976b amvecm: s7d amvecm bringup support [1/1]
PD#SWPL-163099

Problem:
s7d amvecm bringup support

Solution:
s7d amvecm bringup support

Verify:
verify on s7d

Change-Id: I3a6ed3bc4b7bd411420c89eafc06a212de2c6148
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-04-17 19:31:21 +08:00
Yao Jie a01e0cf416 mailbox: s7d mailbox bringup [1/1]
PD#SWPL-163061

Problem:
If there are more requirements of mailbox channels
application for other modules, mailbox driver should
be changed to add more channels, this is inconvenient
for other drivers usage

Solution:
Allocate more reserved mailbox channels for other
modules application in the future

Verify:
S7D-BM209

Change-Id: I669d42aa386676d959e27ebb51c6d7dedd7d54ac
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2024-04-17 19:31:20 +08:00
hongyu.chen1 a1d1313fb6 S7D: add power domain config in kernel. [1/1]
PD#SWPL-163077

Problem:
Some new power domains have been added.

Solution:
Add the relevant configuration.

Verify:
S7D

Change-Id: I7f5bc148d0034ffad96b1f04f00417ec5796dced
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-04-17 19:31:20 +08:00
zhou.han fe60fc3494 hdmitx: s7d pxp kernel [1/1]
PD#SWPL-147320

Problem:
s7d kernel hdmitx bringup

Solution:
Based on 5.15 code refactoring, sync with s7 and s1a

Verify:
pxp/s7d

Test:
pxp

Change-Id: I8e298f08a7b7f0b4302211785e6ecdfea178ec18
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-04-17 19:31:20 +08:00
wenlong.zhang 560bdbdbac drm: s7d bringup & support gfcd [1/1]
PD#SWPL-147645

Problem:
s7d bringup & support gfcd

Solution:
s7d bringup & support gfcd

Verify:
s7d

Test:
DRM-OSD-138

Change-Id: I6e8f268f0fa42a6906f18a21d923ec059b749954
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-04-17 19:31:20 +08:00
Chuan Liu 5c2c80108d clk: s7d: add scmi clocks [2/2]
PD#SWPL-158288

Problem:
1 Adding the logic associated with the en0p5 member makes the driver's
processing more complicated and messy.
2 Added clocks with security permissions.

Solution:
1 Only add CLK_MESON_PLL_FIXED_EN0P5 flag to implement the functions
of en0p5, so that the driver change cost is minimal.
2 Determine whether to add the CLK_MESON_PLL_FIXED_EN0P5 flag based
on whether en0p5 is enabled in init_regs.
3 Added scmi clocks

Verify:
pxp

Change-Id: I2f9e258569f4bed44cb5fd9b57368dbfa3c425cb
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-04-17 19:31:20 +08:00
hongyu.chen1 683c742a61 S7D: power domain: modify config. [1/1]
PD#SWPL-154090

Problem:
The S7D and S7 power domain names overlap
and need to be repaired.

Solution:
modify config.

Verify:
Compile through.

Change-Id: Ia0d18a5a2684184b8c5938c77b8b7adccd8b0ad6
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-04-17 19:31:20 +08:00
Zelong Dong 0d992a2110 reset: add reset controller support for s7d [1/1]
PD#SWPL-147281

Problem:
don't support s7d platform

Solution:
add reset controller support for s7d

Verify:
s7d_pxp

Change-Id: I29250fbe165b6f51f61bac180f0eb47bb2151fa3
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-04-17 19:31:20 +08:00
hai.cao e092d4a059 video: debug vsr for s7d [1/1]
PD#SWPL-149452

Problem:
s7d video bringup

Solution:
complete it

Verify:
ptm

Change-Id: Ic59ed825b97d030949a5e85f060b1f2218d61c60
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-04-17 19:31:20 +08:00
hai.cao a2b8fc39bb video: add video support for s7d [1/1]
PD#SWPL-147310

Problem:
s7d video bringup

Solution:
complete it

Verify:
ptm s7d

Change-Id: I2f9929c75ee5fe72827640ced4f82516e81e159a
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-04-17 19:31:19 +08:00
Yao Jie 041d15adc7 mailbox: s7d mailbox pxp bringup [1/1]
PD#SWPL-147284

Problem:
s7d mailbox pxp bringup

Solution:
s7d mailbox pxp bringup

Verify:
S7D-PXP

Change-Id: Ibbba899fb22cc21701a9555684c9e8cd314265a4
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2024-04-17 19:29:59 +08:00
hai.cao cc42a5ec63 media_common: add support for codec_io/canvas/rdma [1/1]
PD#SWPL-147308

Problem:
s7d codec_io/canvas/rdma bringup

Solution:
complete it

Verify:
pxp

Change-Id: I154905159339d255af2d542563d5dc0d7d262f0e
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-04-17 19:29:59 +08:00
Chuan Liu 1c692807f3 clk: s7d: clock tree bringup [2/2]
PD#SWPL-147273

Problem:
clock tree bringup for s7d

Solution:
added

Verify:
pxp

Change-Id: I629a0465ad61aa7935fea2d850fbd3418f7a840e
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-04-17 19:29:58 +08:00
Huqiang Qin e7b35c7fa5 gpio: s7d: support gpio and irq [1/1]
PD#SWPL-146832

Problem:
S7D PxP Bringup.

Solution:
S7D PxP Bringup.

Verify:
PxP

Change-Id: I5954932f83e4cfb1aded18c90879c27522ca550d
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-04-17 19:29:58 +08:00
hongyu.chen1 129b6f74fa S7D: power domain: add support in kernel. [3/3]
PD#SWPL-146595

Problem:
S7D need power domain in kernel.

Solution:
add power domain in kernel.

Verify:
pxp

Change-Id: Ia05ec9960f38388444ae14869576f8cd1d51cf78
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-04-17 19:29:58 +08:00
congyang.huang c7983badd4 drm: dummy_panel connector drm_display_mode should match lcd's timing [1/1]
PD#SWPL-158147

Problem:
not hardcode dummy_panel timing

Solution:
get vinfo2 timing and set for dummy_panel

Verify:
txhd2

Test:
DRM-OSD-55

Change-Id: I6b899edfc9445f880cb217d6b1e96d63acbdd249
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-04-15 00:35:53 -07:00
Ao Xu 3e79ef53f5 drm: add get_vrr_range function for lcd connector [1/1]
PD#SWPL-156902

Problem:
hwc need get lcd connector's vrr range info

Solution:
add get_vrr_range function for lcd connector

Verify:
t3x

Test:
DRM-LCD-1

Change-Id: I562929b06bdfcfc4bb514b2d67e93e84a6925814
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-04-12 16:39:52 +08:00
lukang.jia efafc3bc24 frc: frc modify urgent control [1/1]
PD#SWPL-163867

Problem:
modify FRC urgent control function

Solution:
modify FRC urgent control function

Verify:
T3X

Change-Id: I1f992ce77937733f10df1eaa0ed005e43619d302
Signed-off-by: lukang.jia <lukang.jia@amlogic.com>
2024-04-11 20:37:53 -07:00
yao liu c58211d886 amdv: add precision api [1/1]
PD#SWPL-161721

Problem:
new function

Solution:
1.DV_IOC_GET_DV_PRECISION_DETAIL_SUPPORT get cap from cfg
2.DV_IOC_SET_DV_PRECISION_DETAIL_BYPASS set bypass

Verify:
t3x

Change-Id: I01e1f01e942349aa2241df6748100015603e185b
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-04-10 20:39:54 -07:00
Huijuan Xiao bb1d771dfe amvecm: STD for amvecm driver [1/1]
PD#SWPL-152218

Problem:
need add suspend and resume flow.

Solution:
add suspend and resume flow.

Verify:
t5m

Change-Id: I2da60ca9493d599db58839af0300a33b54360447
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-04-10 01:54:07 -07:00
Evoke Zhang 883703f40e lcd: bypass ufr mode switch when power off [1/1]
PD#SWPL-161946

Problem:
ufr mode switch maybe unexpectedly light on panel after early_suspend

Solution:
bypass ufr mode switch when lcd_if off

Verify:
ay301

Change-Id: I7704690d795f2a1ba57cc46a10babc9e2f71fa9b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-04-09 21:47:11 -07:00
Gaowei Zhao a54e3fca89 hdmirx: support qms [1/1]
PD#SWPL-154454
PD#SWPL-160882

Problem:
not support qms

Solution:
support qms

Verify:
t3x

Change-Id: I3f373014962a06788ae9b0185555d8a8e0cf5725
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-04-09 19:48:57 -07:00
haitao.liu c20b47558c vdin: fix failed to compile zapper issue [1/1]
PD#SWPL-161512

Problem:
mk_zapper32.sh execution failed

Solution:
resolve code dependencies

Verify:
s1a

Test:
compile pass

Change-Id: Id2453a4414b768580ced0a57453dd29609fed86b
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-04-09 13:44:59 -07:00
Wenjie Qiao 8d5a638b93 hdmitx: set frac 0 when brr mode [1/1]
PD#SWPL-163844

Problem:
switch to 59.94hz, not set 60hz mode when qms enable
because frac mode

Solution:
set frac 0 when brr mode

Verify:
s7d

Test:
DRM-TX-75

Change-Id: I69fc38ffee456d2a917f586e7ed04dad3aa8a22d
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-04-07 21:54:09 -07:00
jinbing.zhu d7c8c44b1c amvecm: need optimize vframe for 5.15 [1/1]
PD#SWPL-161639

Problem:
need optimize vframe for 5.15

Solution:
.need optimize vframe for 5.15

Verify:
t3

Change-Id: I7ecb26b4d602c3620a4064831e23fea961d74ff9
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-04-06 21:46:57 -07:00
Pengcheng Chen c8f5991026 vpp: add no_compress info and bitdepth_dw [1/1]
PD#SWPL-160446

Problem:
1.add no_compress info for amdv
2.afbc and mif data format maybe different

Solution:
1.add no_compress info for amdv
2.add bitdepth_dw for dw data

Verify:
t3x

Change-Id: Ia47d24744dd1e87768e1b856d95ddb3e2e41780f
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-04-03 00:14:59 -07:00
haitao.liu e27f5937c4 vdin: Configurable dw output width and height for dv hw5 [1/1]
PD#SWPL-159909

Problem:
Need debug cmd to set the h/v of double write frame

Solution:
Add debug cmd

Verify:
T3x

Change-Id: Ie93c1dfed65670d79f75553f892abad78a22a671
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-04-02 05:53:08 -07:00
mingyang.he cf15989a9f drm: kasan failed for slab-out-of-bounds [1/1]
PD#SWPL-151540

Problem:
kasan failed
cat/echo sysfs osd node crash in s5
cat fbdump return zero size file in s5

Solution:
reset BLOCK_ID_MAX with 32
sysfs node should according to vpu block by index
set correct plane index

Verify:
s5, t5m

Test:
DRM-OSD-17

Change-Id: I02094c9044b172af46ab9b5bd5688a12f18ce96a
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-04-01 04:39:02 -07:00
Evoke Zhang da28ba7b30 lcd: fix clk mistake for vmode switch [2/2]
PD#SWPL-161892

Problem:
lcd clk incorrect when 2160p60hz switch to 3840x1080p240hz

Solution:
fix clk mistake for vmode switch

Verify:
bc302

Change-Id: I8077b8755c6a34680888adc99ce7d4c1beed884e
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-03-31 21:45:22 -07:00
rong.wang 549a6d1cde deinterlace: add api to get input param for vpp [1/1]
PD#SWPL-160157

Problem:
add api to get input param for vpp when pre-link

Solution:
add api to get input param for vpp

Verify:
t5m

Change-Id: I5f1198c94dfc840f5024d1fdb61bda2f5c5e8f4e
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2024-03-29 04:33:05 -07:00
yahui.liu 8f9e15f3c3 hdmitx: [hpd] add system time id in hdmitx state [1/1]
PD#SWPL-158042

Problem:
drm module automic-check and automic-enable use differnet hpd status
information when hdmitx hotplug

Solution:
[hpd] add system timein hdmitx state

Verify:
S5/SC2

Test:
DRM-TX-103

Change-Id: Id0f37cf01c5266a720f2881ee8cd9fab274b79b9
Signed-off-by: yahui.liu <yahui.liu@amlogic.com>
2024-03-28 19:44:59 -07:00
Cheng Wang 218b29f9bd frc: frc sync motion from fw [1/1]
PD#SWPL-158938

Problem:
frc sync motion from fw

Solution:
frc sync motion from fw

Verify:
T3X

Change-Id: I12c5b10ee15f71ed5bcc962ba2eb02b62cc5d412
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2024-03-28 03:57:16 -07:00