Commit Graph

553 Commits

Author SHA1 Message Date
Wenjie Qiao 334933f183 hdmitx: s1a bring up [2/2]
PD#SWPL-120803

Problem:
s1a bring up

Solution:
s1a bring up for kernel

Verify:
s1a pxp

Change-Id: I491a975da54d3ba3043fd416b7147870de8966ef
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-08-15 10:36:48 +08:00
shihong.zheng 980d4b4001 s1a: s1a decoder bringup. [1/1]
PD#SWPL-120725

Problem:
s1a decoder bringup

Solution:
s1a decoder dts config

Verify:
pxp

Change-Id: I6c67e6437185ee60fb9f489ca890380369d35fb8
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
2023-08-15 10:36:48 +08:00
Zelong Dong 73127f71a3 pinctrl: s1a: support pinctrl & gpio function [1/1]
PD#SWPL-120775

Problem:
s1a need support gpio & pinctrl

Solution:
add s1a pinctrl data

Verify:
s1a_pxp

Change-Id: I06e789a2ab621d4bf3756dcdff6e13ec4a13d8f9
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2023-08-15 10:36:03 +08:00
Chuan Liu 43b35e9123 clk: s1a: clock tree bringup [1/2]
PD#SWPL-120773

Problem:
clock tree bringup for s1a

Solution:
add support

Verify:
pxp

Change-Id: I21040ed89cbd969bf71c250ef97b55592e4a43cb
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-08-15 10:36:03 +08:00
hongyu.chen1 5f473e322c S1A: add power domain. [3/3]
PD#SWPL-120910

Problem:
s1a need power domain.

Solution:
add power domain in kernel.

Verify:
pxp

Change-Id: Iffb97862c55034de94806a21aace59aab023526e
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2023-08-15 10:36:03 +08:00
Qianggui Song d258a3a585 reset: add s1a reset driver data [1/1]
PD#SWPL-120780

Problem:
s1a bringup need reset driver support

Solution:
add s1a reset driver data

Verify:
s1a_z1

Change-Id: I563a230435169795bf28990781c9029367fcea8c
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2023-08-15 10:36:03 +08:00
yuhua.lin b9eb5881e9 video: add src_crop struct for decorder source crop [1/1]
PD#SWPL-130228

Problem:
tunnel mode need support src_crop for AFBC compress.

Solution:
add scr_crop struct

Verify:
SC2

Change-Id: Id8066efd57ba32cb92b87276fc77cda342662fea
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2023-08-13 23:48:43 -07:00
chen.xu e135acff51 amlvideo2: support screencap only video [1/1]
PD#SWPL-128910

Problem:
amlvideo2 need support screencap for main and sub screens.

Solution:
amlvideo2 support screencap for main and sub screens.

Verify:
T7C

Change-Id: Iabd1450d1c65a98544e92f2be20f7b34fdd95e2a
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-08-08 20:08:40 -07:00
Shunzhou Jiang 855b70c393 mbox: mbox driver refactoring [1/2]
PD#SWPL-87115

Problem:
mbox driver refactoring

Solution:
mbox driver refactoring

Verify:
t7/t7c/t5m/sc2/s4/s4d/a1/c2/s5/t3x/t5w/g12b/sm1/txhd2

Change-Id: Ia3e5f9ff2b6de16a082e7f028fcc36dc4268856a
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2023-08-08 02:57:29 -07:00
sky zhou 40b2554ecb hdmitx: delete tx20 timing table [1/1]
PD#SWPL-132966

Problem:
tx20&tx21 have different tables.

Solution:
refact to share timing table.

Verify:
verify on ohm.

Test:
DRM-TX-20, DRM-TX-22, DRM-TX-25, DRM-TX-24

Change-Id: Ib4b3e0f9cb0338b806cfbb32728e37ce8eaeff01
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-08-07 00:18:45 -07:00
sky zhou 8755fbfed0 hdmitx: tx20 move to new hdmi timing table [1/1]
PD#SWPL-126462

Problem:
tx20&tx21 have different tables.

Solution:
refact to share timing table.

Verify:
verify on ohm.

Test:
DRM-TX-20, DRM-TX-22, DRM-TX-25, DRM-TX-24

Change-Id: Ieb4fb60f60784148ebc35364c06b88fd7aebd195
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-08-05 03:58:34 -07:00
yaoyu.xu a9b6f6943b hdmirx: default close 5v wake up [1/1]
PD#SWPL-127580

Problem:
need close 5v wake up function.

Solution:
add ctl to open/close 5v wake up function.

Verify:
txhd2.

Change-Id: Ib61e5c75d1f3c5560dbb4f286b0d2319bcf4e1c8
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2023-08-03 03:58:35 -07:00
donghui.wang 9bdbcbfe4c ldim: add uapi for get bl_matrix [1/1]
PD#SWPL-132375

Problem:
provide uapi for get bl_matrix

Solution:
add ldim uapi

Verify:
t5m

Change-Id: I79206ba1cb28133ece4633817e9a03423796d576
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-08-03 01:58:40 -07:00
sky zhou 27d2e239fb hdmitx: remove 420 vic in tx20 [1/1]
PD#SWPL-132192

Problem:
In tx20, still use y420 vic for 4k 420 modes.
It is not necessary to add new vics for such cases.

Solution:
Remove y420 modes, use para.cs + vic instead.

Verify:
verify on ohm.

Test:
DRM-TX-26, DRM-TX-8

Change-Id: Icf91c77b7134df548f29ef03afa6ec34f8b27a24
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-08-02 22:28:57 -07:00
xing.xu 0541849d33 decoder: CF1 Provide UAPI headers for AMSTREAM (DECODER) module [1/1]
PD#SWPL-130933

Problem:
Provide UAPI headers for AMSTREAM (DECODER) module

Solution:
Provide UAPI headers for AMSTREAM (DECODER) module

Verify:
ohm

Change-Id: I943967d8abeba8d88ed2c5a76961b6ddbb227d9b
Signed-off-by: xing.xu <xing.xu@amlogic.com>
2023-08-02 03:32:21 -07:00
he.he 7a2ae9ab56 usb: unplug full speed device on m31phy with and panic [1/1]
PD#SWPL-134215

Problem:
unplug full speed device on m31phy with and panic

Solution:
there is no amlogic_usb_v2 struct in usb_phy_trim_tuning for m31phy,
so it needs to do some filtering.

Verify:
t5m, t3

Change-Id: I65a6f968229ef41da8aaa0024cd7438693d5a935
Signed-off-by: he.he <he.he@amlogic.com>
2023-07-31 06:08:42 -07:00
haitao.liu 11a126ffde vdin: sync the code from projects to the trunk branch [1/1]
PD#SWPL-133608

Problem:
fixed some issues on projects,need sync back into trunk
1.vdin vf lost when game mode change from game 2 to game 1
cause video freezing
2.keeper failed when using scatter memory
3.The first frame of vdin1 abnormal on g12b
4.latency may unstable in game mode 5,due to CPU schedule
5.vdin write is low priority cause video abnormal in some situation
6.request memory form codec_mm may takes long time cause av out of sync
7.new feature, dmc notifier debug method
8.1440x480p60 and 1440x480p50,vdin and hdmirx repeated decimation cause
video abnormal

Solution:
1.recycle all vf in write mode list when game mode change
2.set the right right hand to mem_handle in vf
3.drop the first frame
4.use one fixed phy address,eliminate software scheduling effects
5.set vdin write priority to super urgent
6.notify app after codec_mm_alloc
7.add dmc notifier debug method
8.1440x480p60 and 1440x480p50,hdmirx do not notify vdin decimation,
and 1440x480p60 and 1440x480p50,hdmirx do not notify vdin decimation

Verify:
t7/t5m

Change-Id: I40d6c56fe64e389e0ee6e493e8b7d1e1503f686b
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-07-29 23:53:44 -07:00
rong.wang 751c8abcb1 deinterlace: add API to get pre-link on/off status in DI [1/1]
PD#SWPL-132901

Problem:
add API to get pre-link on/off status in DI

Solution:
add API to get pre-link on/off status

Verify:
t5m

Change-Id: I2daf1c8f034d6543b057df9ab6f452481001856e
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2023-07-28 00:32:40 -07:00
yao liu 5c6d05409a amdv: case5344 top1+top2 crc fail [1/1]
PD#SWPL-132912

Problem:
top1 and top2 shared one pyramid buf, causing
data overwritten

Solution:
alloc three copies of pyramid buf, one for read,
one for write, the last one is all zero, only used
when top1 missed,

Verify:
t3x

Change-Id: I36687e344c770571fea3d740d0c2b7fd5bb9a1b0
Signed-off-by: yao liu <yao.liu@amlogic.com>
2023-07-27 20:10:27 -07:00
lizhi.hu d7d42e2854 peripheral_lcd: add support for qspi panel [1/1]
PD#SWPL-129666

Problem:
need support qspi panel

Solution:
add qspi panel support

Verify:
none(sync from 5.4)

Change-Id: I1043cf51d21ea8d31fb0cbcd5b6be652e0ecba21
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2023-07-27 04:14:35 -07:00
dongfei.li f0ef876a1f frc: frc provide frc_is_on for vpp [1/1]
PD#SWPL-133575

Problem:
provide frc_is_on for vpp

Solution:
provide frc_is_on for vpp

Verify:
T3X

Change-Id: Ic010734fdbe45b5bc5998f2e474601ea187d56cd
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-07-26 22:12:47 -07:00
Hanjie Lin b257fa1e5d debug: GKI20 clean [2/6]
PD#SWPL-132209

Problem:
GKI20 code clean

Solution:
1, clean irq_check function
2, clean smc_thr and psci smc
3, clean AMLOGIC_BGKI_DEBUG_IOTRACE
4, clean CONFIG_AMLOGIC_BGKI_DEBUG_MISC
5, restore trace_android_vh_ftrace_format_check
6, sched_show_task optimize
7, change cpupri_check_rt kretprobe to kprobe
8, iotrace dump use unbound workqueue

Verify:
sc2

Change-Id: Idcdf9010cfd960b80c493e58b3c81bec8468ac84
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2023-07-25 22:16:21 -07:00
donghui.wang 113d39a70e backlight: add turnpoint param for pwm curve [1/1]
PD#SWPL-133188

Problem:
miss turnpoint param

Solution:
add turnpoint param

Verify:
t5m

Change-Id: I74dfd3b42c101449f09e0a6e9ff1db416ef98713
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-07-25 03:55:18 -07:00
wenlong.zhang 4b0f486145 drm: add present fence [1/1]
PD#SWPL-131024

Problem:
add present fence

Solution:
add present fence

Verify:
SC2

Test:
DRM-OSD-87

Change-Id: I5050620befa65c6a3dca760753fd2952b7dadf67
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2023-07-24 05:08:13 -07:00
qiyao.zhou 4e1c978389 vicp: add clock config in vicp. [1/1]
PD#SWPL-123979

Problem:
T3X suspend power dissipation for VICP.

Solution:
T3X suspend power dissipation for VICP.

Verify:
t3x

Change-Id: I28c8603f924627d5eb2be99b888d4a0f51286631
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-07-21 05:11:03 -07:00
Pengcheng Chen 78ec93f23b vpp: vd1 used 1 slice policy if n2m 1:2 on [1/1]
PD#SWPL-130609

Problem:
vd1 used 1 slice policy if n2m 1:2 on

Solution:
vd1 used 1 slice policy if n2m 1:2 on

Verify:
t3x

Change-Id: Ia4a000fb86013bda4c4f33153e92ac946000636e
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-07-21 05:10:55 -07:00
sky zhou fa7b37b80a hdmitx: update cs/cd when display mode changed. [1/1]
PD#SWPL-131744

Problem:
cs/cd in vinfo is not updated when set mode.

Solution:
update vinfo.cs/cd when set display mode.

Verify:
verify on ohm.

Test:
DRM-T

Change-Id: Ia97a262669881bedce7ae2e4ecf35a80f76473fc
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-07-21 01:10:15 -07:00
shipeng.sun 9b4080fc3a dmabuf_manage: use secmem v2 implement secure vdec heap [1/3]
PD#SWPL-129785

Problem:
use secmem v2 implement secure vdec heap

Solution:
use secmem v2 implement secure vdec heap.

Verify:
sc2

Change-Id: If81debfd32ca00e2cf361c094e71392677d042de
Signed-off-by: shipeng.sun <shipeng.sun@amlogic.com>
2023-07-20 05:12:22 -07:00
chen.xu 6a510a72c3 v4lvideo: keep decode dw yuv data [1/1]
PD#SWPL-131951

Problem:
data decode yuv not transfer and keep it
when config dw=3.

Solution:
keep video dw yuv data.

Verify:
S905L3

Change-Id: Id55647bff6f8bafb897e58c6a3b4c33fe90fb32e
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-07-19 21:23:17 -07:00
dongfei.li db3ff66a67 frc: frc provide n2m setting for vpp [1/1]
PD#SWPL-130608

Problem:
provide n2m value for vpp

Solution:
provide n2m value for vpp

Verify:
T3X

Change-Id: Iaeb090565b4a33b42b62d036a13d91411839f8df
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-07-19 21:22:26 -07:00
Dezhi Kong 01ae8c4408 uvm: sync size with gralloc [1/1]
PD#SWPL-128476

Problem:
uvm size calc sync

Solution:
uvm size calc sync from gralloc

Verify:
T5M

Change-Id: Ibcf2ffdcfd96525046c9aac009f8f81469c8a6c9
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2023-07-19 05:04:05 -07:00
gerrit autosubmit a11e41c2fc Revert "backlight: update pwm_vs when switch frame_rate under GD_EN [2/2]"
This reverts commit af9d397301.

Change-Id: I0cc78e017a415cd9ccfbb62ccdb926f6554bb4b3
2023-07-18 03:21:54 -07:00
Evoke Zhang af9d397301 backlight: update pwm_vs when switch frame_rate under GD_EN [2/2]
PD#SWPL-130056

Problem:
pwm_vs not update when switch frame_rate under GD_EN

Solution:
1.update pwm_vs when switch frame_rate under GD_EN
2.update pwm 12bit duty support
3.add debug bypass method

Verify:
ab301

Change-Id: I372ccf60b8919307233c398ff379490cf4ca0eb9
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2023-07-17 21:06:56 -07:00
Jianxiong Pan e5da787cbd mm: user fault modularity for arm64. [1/1]
PD#SWPL-112188

Problem:
gki2.0 support.

Solution:
user fault modularity.

Verify:
adt4.

Change-Id: Ied1bddbf25f0341659ba2231c07e8df20906749c
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-07-17 07:13:05 -07:00
donghui.wang a981b05b03 ldim: provide UAPI headers for ldim module [1/1]
PD#SWPL-127300

Problem:
provide uapi headers for user space

Solution:
add ldim uapi headers

Verify:
kernel5.15

Change-Id: I2f9cf0c3be16a0e1569da366d72d0924d0a8f85d
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-07-17 01:41:58 -07:00
jinbing.zhu 863697bd1b amvecm: add amvecm_ext header file [1/1]
PD#SWPL-131779

Problem:
add amvecm_ext header file

Solution:
add amvecm_ext header file

Verify:
verify on t3

Change-Id: I35ac992e222c3c4d5fcc641387d833b3b22d2e05
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2023-07-16 21:07:42 -07:00
Pengcheng Chen cbc088a31d vpp: get frv_status flag to decide prevsync frame [1/1]
PD#SWPL-130458

Problem:
vpu used odd/even frame to decide prevsync frame is not precise

Solution:
get frv_status flag to decide prevsync frame

Verify:
t3x

Change-Id: I1bc83cc516ca05753ab3e28f503b169e9775b3c4
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-07-13 05:13:57 -07:00
chen.xu 7a7712fe26 aicolor: T3X aicolor feature bring up. [3/3]
PD#SWPL-130223

Problem:
T3X need support aicolor.

Solution:
uvm need support ai color.

Verify:
T3X

Change-Id: Ieb9d92a29961c98db4b484d4075a4bd693de48e8
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-07-13 01:16:08 -07:00
Gaowei Zhao ae714d0a06 hdmirx: move hdmirx ioctls to uapi [1/1]
PD#SWPL-129885

Problem:
move hdmirx ioctls to uapi

Solution:
move hdmirx ioctls to uapi

Verify:
T5W

Change-Id: Ic5be1de48c39e3cb05925dd87ce4241c99f08d07
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2023-07-11 23:18:51 -07:00
binqi zhang 48351c3c72 UVM: remove hwc flag when do find hook mode [1/1]
PD#SWPL-130768

Problem:
hwc flag will lead to find hook mode fail

Solution:
remove hwc flag when do find hook mode

Verify:
verify on S T5M

Change-Id: I4dc65e6a1da670c3243e3362fc52a9037d167a9e
Signed-off-by: binqi zhang <binqi.zhang@amlogic.com>
2023-07-11 03:08:58 -07:00
MingLiang Dong 4b939e0510 amvecm: add t3x ai color support [1/1]
PD#SWPL-130912

Problem:
add t3x ai color support

Solution:
add t3x ai color support

Verify:
verify on t3x

Change-Id: If62969c8713c0fff860fa8979515481dd1404db1
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2023-07-10 07:54:48 -07:00
dongfei.li bf54f9353e frc: frc feedback 1st frm with N2M=2:1 [1/1]
PD#SWPL-129976

Problem:
try to protect t3x prevsync workaround

Solution:
try to protect t3x prevsync workaround

Verify:
T3X

Change-Id: I8b869a8185cc1a19bcd20dd60edf7b21d9fa21a9
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-07-10 07:54:11 -07:00
jialong.jiang a51ad11ae3 amdv: add ioctrl interface. [1/1]
PD#SWPL-130554

Problem:
add ioctrl interface for hal
to read data and send it to kernel.

Solution:
add ioctrl interface.

Verify:
t5m

Test:
self-test.

Change-Id: I764fc7a7970659044bde72af879ecb8256188ba3
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-07-09 15:09:01 -07:00
yuhua.lin 67a433c8c6 video: provide UAPI headers for video module [1/1]
PD#SWPL-129892

Problem:
provide UAPI headers for video module

Solution:
provide UAPI headers for video module

Verify:
T3

Change-Id: I62453993dfc5c9a57abd9e5e5276156001ae48ac
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2023-07-09 15:08:54 -07:00
Jian Hu a117903841 clk: t3x: add gp1 support [1/1]
PD#SWPL-130649

Problem:
there is no gp1 pll

Solution:
add gp1 support

Verify:
t3x

Change-Id: I47954709035c28e20079de481a960924e68d3629
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2023-07-09 15:08:35 -07:00
yufei.huan f9830903f5 deinterlace: vbone 4K reverse screen [1/1]
PD#SWPL-130127

Problem:
4k panel Reverse feature is not supported.

Solution:
Add panel Reverse feature.

Verify:
t5m

Change-Id: I22c6b6963611c654b0fb6120ea26d63220d84a45
Signed-off-by: yufei.huan <yufei.huan@amlogic.com>
2023-07-09 15:08:26 -07:00
Xiangyu Cai 15b4679c8a framelock: add node to check vrr min frame rate [1/1]
PD#SWPL-125271

Problem:
vdin game mode min value different with set value

Solution:
game mode check change to frame rate min value and vdin notify frame
lock to disable vrr when stop signal

Verify:
t5m

Change-Id: If7cb80f4c8f97052a29423deb62cd33517aa9863
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2023-07-09 15:07:51 -07:00
sky zhou 6243bb1b5a hdmitx: update struct hdmi_timing for tx20 [1/1]
PD#SWPL-124461

Problem:
hdmi_cea_timing is different from hdmi_timing.

Solution:
sync from tx21 timing, and mark some members
as deprecated.

Verify:
verify on ohm.

Test:
DRM-TX-17, DRM-TX-19, DRM-TX-8

Change-Id: I8dcbf5cd6749eb9c5adb77cf20ad9c9024ac5f11
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-07-09 15:07:47 -07:00
yiting.deng 1439098f49 clk: adapt cpu_dyn_clk in c1 branch [1/1]
PD#SWPL-128494

Problem:
1 not support non-secure ops function for cpu_cyn_clk
2 When c1 describes the same frequency, the corresponding
defined frequency is different.

Solution:
1 add non-secure ops function for cpu_cyn_clk
2 unify frequency to 666666666Hz

Verify:
c1_ae400

Change-Id: Idec9a54d7010e18336be02fd488239dd7114986b
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2023-07-07 14:33:12 +08:00
yuhua.lin 98e9db328a c1: add canvas/ge2d/gdc/codec_io support for c1 [1/1]
PD#SWPL-121227

Problem:
add canvas/ge2d/gdc/codec_io support for c1

Solution:
complete it

Verify:
c1

Change-Id: Ie1d593a5fd910d38844ebf2f0d3bcc32a5627779
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2023-07-07 14:28:27 +08:00