Commit Graph

526 Commits

Author SHA1 Message Date
zongdong.jiao 7ae328db6f hdmitx: optimise hdmi struct member [1/1]
PD#SWPL-141539

Problem:
Need to clean hdmitx_common/edid member data

Solution:
Clean the hdmitx_common
Clean edid_ptr, EDID_hash, edid_done
Unify hdmi reading edid

Verify:
ohm/t7c

Test:
DRM-TX-37

Change-Id: Ibba7fc61cb3103c1d9a539ee395cb06dd29e4507
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-10-03 15:01:30 +08:00
sky zhou 701d14f09a hdmitx: move common hwop and sysfs [1/1]
PD#SWPL-104015

Problem:
tx20/tx21 have similar functions for
sysfs and hwop.

Solution:
move to hdmitx_hw_common and hdmitx_sysfs_common

Verify:
ohm/t7

Test:
DRM-TX-36

Change-Id: I0638bfe263c07589716da467f251a279582bcda6
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-10-03 09:09:53 +08:00
sky zhou 5075300f1a hdmitx: abstract hpd common functions [1/1]
PD#SWPL-104026

Problem:
tx20/tx21 have separated hdp functions.

Solution:
abstract common hpd related functions.

Verify:
ohm/t7/s5

Test:
DRM-TX-35

Change-Id: I802a4cb96b6d52fb43e10dca752544d77cc238ee
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-10-02 18:16:53 +08:00
hang cheng 0e65019a0b hdmitx: sync kernel5.4 [1/1]
PD#SWPL-138821

Problem:
need to sync hdmitx20 with kernel5.4

Solution:
sync hdmitx20 with kernel5.4

Verify:
verify on ah212

Test:
DRM-TX-31

Change-Id: I667ff3df6d58552feb8972dc5c76b764713f61ac
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-09-30 09:14:09 +08:00
zongdong.jiao 7779092050 hdmitx: unify the edid 2.0 and 2.1 [1/1]
PD#SWPL-98813

Problem:
Need to unify the edid 2.0 and 2.1

Solution:
Unify the edid 2.0 and 2.1

Verify:
t7/sc2

Test:
DRM-TX-34

Change-Id: Id145c0343279489b82316f22322d48a41c2df33c
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-09-30 08:56:48 +08:00
sky zhou 61d4d1bba3 hdmitx: add struct tx20_hw and tx21_hw [1/1]
PD#SWPL-104011

Problem:
hdev has some hw related members and
hdev is still be used in hdmitx_hw level.

Solution:
abstract tx20_hw/tx21_hw

Verify:
verify on ohm/t7

Test:
DRM-TX-33

Change-Id: Ic0e3867af7894fcdcd50a3a4fe234156e2ef821d
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-09-29 16:49:35 +08:00
yongbing.he 86c823e472 freertos: freertos featrue reorganize [2/2]
PD#SWPL-140884

Problem:
c3 not freertos notifiers
c3 need ipi send

Solution:
c3 add freertos notifiers config
c3 add ipi send config

Verify:
c3

Change-Id: I8f624cdf329880cb5a0e01ba83cc93119938b509
Signed-off-by: yongbing.he <yongbing.he@amlogic.com>
2023-09-26 22:09:14 -07:00
shaochan.liu e4650baec6 lcd: add ultra refresh rate function support [1/1]
PD#SWPL-131275

Problem:
need add ultra refresh rate function support

Solution:
add ultra refresh rate function support

Verify:
bc302

Change-Id: Icb0f2b49ac6d46c18b5093b4f93da89e923c7d97
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
2023-09-26 22:08:45 -07:00
Bichao Zheng 0292be1b5c spinand: update info page [1/1]
PD#SWPL-140211

Problem:
need update spinand info page.

Solution:
update new info page, for compatibility with A1 S1A C3.

Verify:
A1 S1A C3

Change-Id: I73ce561dc716aedd18ac2887af00fa912818794b
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2023-09-26 02:28:52 -07:00
dehong.chen 58fc45535f decoder: CF2 add use tsync flag [2/9]
PD#SWPL-130171

Problem:
add use tsync flag for 5.15

Solution:
add use tsync flag for 5.15

Verify:
t5d

Change-Id: Ia2a4cc742a9213c5b40b16ce5a46502f9a857374
Signed-off-by: dehong.chen <dehong.chen@amlogic.com>
2023-09-21 02:09:48 -07:00
Wenjie Qiao 25ff319e77 hdmitx: construct vsif not send vsif pkt [1/1]
PD#SWPL-138266

Problem:
construct vsif not send vsif pkt

Solution:
sent vsif pkt

Verify:
sc2

Test:
DRM-TX-17

Change-Id: Idce254cc0ca80f493e01bb37c3b9007c2b00c6cb
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-09-20 08:18:58 -07:00
qinghui.jiang e123f7db4a amvecm: sync code flow for t3x revb [1/1]
PD#SWPL-136715

Problem:
t3x revb lut_dma validation.

Solution:
sync code flow for modification.

Verify:
t3x_revb

Change-Id: If0bfc9e17a8752dfb4c75f9be283bdf6cdc2e286
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2023-09-20 04:38:59 -07:00
sky zhou b8a06e2046 hdmitx21: update to use hdmitx_common api [1/1]
PD#SWPL-138534

Problem:
tx20/tx21 have different valid mode flow and api

Solution:
use common api instead

Verify:
verify on T7

Test:
DRM-TX-19, DRM-TX-20,DRM-TX-22, DRM-TX-25, DRM-TX-27

Change-Id: I008e5931adb223391e79149f908d5ad1cb186889
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-09-20 01:29:04 -07:00
Ao Xu b14d7a863f hdmitx: move mode set to hdmitx common [1/1]
PD#SWPL-98751

Problem:
hdmitx20 and hdmitx21 has mode setting flow

Solution:
unify hdmitx20 and hdmitx21 mode setting flow

Verify:
verify on ohm

Test:
DRM-TX-30

Change-Id: Ib279b25796a98f29b59037c1f874c1a2a4a09dd6
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-09-20 01:29:00 -07:00
sky zhou c680a57a89 hdmitx_common: move drm api and sysfs to common [1/1]
PD#SWPL-93976

Problem:
two copies of implement in tx20/tx21

Solution:
move to hdmitx_common

Verify:
verify on ohm

Test:
DRM-TX-19, DRM-TX-20,DRM-TX-22, DRM-TX-25, DRM-TX-27

Change-Id: I8fdb57a462b77a5c6eb8024e943203bf56b76c8c
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-09-19 15:58:39 -07:00
sky zhou 873bf6239b hdmitx: update hdmi_format_para api [1/1]
PD#SWPL-126494

Problem:
hdmi_format_para is the struct for hdmi setting,
but no api defined.

Solution:
abstract format_para api.

Verify:
verify on ohm

Test:
DRM-TX-19, DRM-TX-20,DRM-TX-22, DRM-TX-25, DRM-TX-27

Change-Id: Id14fd0186254963361f0df3d869aceab6704377b
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-09-19 15:58:35 -07:00
Matthew Shyu 488c926ef0 crypto: add sm4 support to aml-crypto-device on S5 [1/1]
PD#SWPL-140403

Problem:
Missing SM4 support in aml-crypto-device on S5

Solution:
Add SM4 support to aml-crypto-device

Verify:
S5

Change-Id: I0933bbcefa46daa5b00bd41d1e68fc9441bd3185
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
2023-09-19 00:08:45 -07:00
sky zhou 3f4940271b hdmitx: add validate mode api [1/1]
PD#SWPL-132959

Problem:
mode validation is in many functions and
checked many times.

Solution:
abstract the mode validate api and cleanup
the flow in tx20.

Verify:
verify on ohm.

Test:
DRM-TX-27, DRM-TX-26,DRM-TX-28,DRM-TX-25,DRM-TX-20

Change-Id: I9ddd17718fa43ac7a670192ba72a48d9bc0a6dc5
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-09-19 00:08:40 -07:00
qiyao.zhou e741690a22 vicp: add HDR support in vicp. [1/1]
PD#SWPL-102788

Problem:
add HDR10+/HLG support in vicp module.

Solution:
add HDR10+/HLG support in vicp module.

Verify:
t3x

Change-Id: Ie59d98965cc8b956a9e03c9f8cba7258019150c6
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-09-18 21:58:36 -07:00
Xingxing Wang ceb1bf8e86 thermal: add more registers control in ddr cooling [1/1]
PD#SWPL-139694

Problem:
add more regs control in ddr cooling device

Solution:
add more regs control in ddr cooling device

Verify:
txhd2

Change-Id: I99c978d2034b3dcf01239752ce1a112f8e07afce
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2023-09-18 07:53:41 -07:00
Jian Cao 1c88e28439 ge2d: add support to swap two 64bits of 128bits [1/1]
PD#SWPL-140070

Problem:
need to support swap 64bits

Solution:
implement this support

Verify:
s1a-bg201

Change-Id: I7addda02429200cf95ef495de392f4ab3f11b886
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2023-09-17 22:49:36 -07:00
Jianxiong Pan 1d4c7262e4 mm: fix crash when enable debug spinlock. [1/1]
PD#SH-16324

Problem:
enable CONFIG_DEBUG_SPINLOCK, system crash.

Solution:
not neable cma_mmu_op function when enable debug spinlock.

Verify:
local.

Change-Id: I61b7edb7c5026b72b7ac6e66c6e19304eca00a61
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-09-17 22:49:11 -07:00
Pengcheng Chen 56ca0dfe40 vpp: add pre_vsync support [1/1]
PD#SWPL-136709

Problem:
pre_vsync rdma not work

Solution:
1. fix pre vsync rdma not work
2. add pre_vsync video process

Verify:
t3x_revb

Change-Id: Idea48258140934374b2be6e951d7128f3081604f
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-09-17 20:29:16 -07:00
Pengcheng Chen 7f21329ae3 vpp: add oled vpp padding support [1/1]
PD#SWPL-136713

Problem:
add oled vpp padding support

Solution:
add oled vpp padding support

Verify:
t3x_revb

Test:
t3x_revb

Change-Id: I98785779b72b0a4a1390ba0b72bbb3219edb7e4e
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-09-14 20:18:59 -07:00
Evoke Zhang 631843ce1e lcd: bypass phy data buffer [2/2]
PD#SWPL-139821

Problem:
minilvds data resmaple maybe incorrect for some corner chip

Solution:
1.bypass data buffer for minilvds and lvds
2.need re-tuning clk_phase and clk_inv for minilvds

Verify:
am301

Change-Id: Iccfedb93221affc4695fb14fcb1644c860d77b55
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2023-09-13 06:28:40 -07:00
yufei.huan 5005d1066e deinterlace: s1a NR no effect [1/1]
PD#SWPL-136218

Problem:
s1a NR no effect

Solution:
s1a set motion

Verify:
s1a

Change-Id: I8d33071a57c7ff6955ea3c728426fe86629ce67a
Signed-off-by: yufei.huan <yufei.huan@amlogic.com>
2023-09-13 00:44:32 -07:00
xiang.wu1 06769e07b5 hdmitx21: add enough delay for avmute when suspend [1/1]
PD#SWPL-115660

Problem:
not enough time for avmute when suspend

Solution:
add delay for avmute

Verify:
T7

Change-Id: I105e2485bea918b8350fec16369b243de9782b75
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-09-13 00:43:40 -07:00
song.han fae9edad47 iotrace: replace clk/power kprobe [1/1]
PD#SWPL-139455

Problem:
try to replace kprobe hook in iotrace

Solution:
replace clk/power kprobe

Verify:
SC2_AH212

Change-Id: Id53c97a5d0679c118625670a5216ae54e0567aec
Signed-off-by: song.han <song.han@amlogic.com>
2023-09-12 04:04:21 -07:00
dongfei.li d801425109 frc: frc config t3x rev.B using set_2 [1/1]
PD#SWPL-136699

Problem:
memc_lossy cannot work with 2ppc dec

Solution:
check t3x revB work status

Verify:
T3X

Change-Id: I558602faa477f96cb799b48a1cd519d71c9a5504
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-09-12 00:13:45 -07:00
qiyao.zhou 918e0f92cc videoqueue: resync for out with no pannel. [1/1]
PD#SWPL-139458

Problem:
AV sync abnormal after TX plug out/in, this is because
canot enter resync flow for output with no pannel.

Solution:
Add resync flow for Not pannel output case.

Verify:
t7

Change-Id: Ifa1b814a226476bb8b2a3b3cbde2135acd06a4a1
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-09-11 20:08:49 -07:00
jintao xu ca83033dca di_process: fix panic when process check in [1/1]
PD#SWPL-137475

Problem:
process_checkin find ref has released

Solution:
add mutex for process and release check in

Verify:
SC2

Change-Id: I98af46e1488d534503b9984fc7866b9523522a49
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-09-10 22:04:04 -07:00
zongdong.jiao ece0c239e6 hdmitx: optimize the audio setting flow [1/1]
PD#SWPL-132354
PD#OTT-43684

Problem:
when the audio hw sample freq changes, the audio sample packets
still keep send out. Compared with 3rd devices, there will stop
the sample packets, only keep the ACR send out.

Solution:
Optimize the audio setting flow
disable ACR in PREPARE
finial enable ACR
sync the aud_src_if and aud_output_ch variables
when prepare, add the temporary CT_PREPARE

Verify:
sc2

Change-Id: Ic3a589fd16124e3036d93b766d84f600bf9cb811
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-09-09 20:13:36 -07:00
Ao Xu a1e427dcee drm: add drm hdmitx connector state support [1/1]
PD#SWPL-134988

Problem:
add drm hdmitx connector state

Solution:
add drm hdmitx connector state

Verify:
ohm

Test:
DRM-TX-29

Change-Id: I469bf776428ef6015fae0cbcca1675adc4bb8e7c
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-09-08 02:28:44 -07:00
yufei.huan 21f5eb3a1c deinterlace: di prelink frc standstill [1/1]
PD#SWPL-128101

Problem:
di influence frc

Solution:
set prehold reg

Verify:
t5m

Change-Id: I975e44f3089f7d6e841278502ec7a0be2bf493c6
Signed-off-by: yufei.huan <yufei.huan@amlogic.com>
2023-09-08 00:08:45 -07:00
hai.cao 93d46b04d4 video: provide crop size for vrr [1/1]
PD#SWPL-138458

Problem:
vrr enable need crop size

Solution:
provide crop size for vrr

Verify:
t5m

Change-Id: I274704050c19264f2d2a5007465434353fdcbd91
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-09-07 21:58:37 -07:00
Ao Xu 370c812ca1 hdmitx: add reset format para api for hdmitx21 [1/1]
PD#SWPL-132145

Problem:
for "invalid" or "null" mode, need reset format para

Solution:
add reset format para api for hdmitx21

Verify:
t7c-an400

Test:
DRM-TX-28

Change-Id: I12c77bb463048a0bd71aa309f1dbae118f196917
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-09-07 16:03:50 -07:00
sky zhou 1aa515c594 hdmitx: cleanup tx20 vic parse and validate [1/1]
PD#SWPL-92408

Problem:
Vic parse with independent tx20 mode name table.

Solution:
remove modename table, and using hdmi timing table directly.

Verify:
ohm

Test:
DRM-TX-25,DRM-TX-20,DRM-TX-27

Change-Id: Ia605194f3d50510f8a4d0a5c8e49b96129f14dea
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-09-07 04:33:40 -07:00
huijie.huang 4f1274c581 lcd: support pdf function [2/2]
PD#SWPL-126023

Problem:
Support pdf software action function

Solution:
Add pdf software function

Verify:
T3X/TXHD2

Change-Id: I8bb49fcd02b734da86c5d19f82f8b696081413c8
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2023-09-07 00:09:06 -07:00
Ao Xu f8358f25e9 hdmitx: tx21 use common timing api [1/1]
PD#SWPL-132145

Problem:
tx20 timing para has been moved to common timing
tx21 also need use the common timing

Solution:
tx21 use common timing api

Verify:
t7c

Change-Id: I6397eafc98aa8be1e86e5f3db7ccabd24c448554
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-09-06 01:58:36 -07:00
Xingxing Wang ac263db656 thermal: modify ddr control point [1/1]
PD#SWPL-125800

Problem:
ddr test

Solution:
modify ddr temperature control point

Verify:
txhd2

Change-Id: Icab99c885673981577e0545a8fbe5191f49f2e07
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2023-09-05 20:13:54 -07:00
qiang.liu 7b7634ee58 dsc_dec: add dsc_dec bringup [1/1]
PD#SWPL-117267

Problem:
not dsc_dec function

Solution:
add dsc_dec bringup

Verify:
T3X

Change-Id: I36ccbe87c9773af8ce08dc2b122d41a7924000f1
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2023-09-05 20:13:47 -07:00
yuhua.lin a64c7edff6 osd: provide osd enable status [1/1]
PD#SWPL-137666

Problem:
provide osd enable status

Solution:
modify get_osd_status

Verify:
none

Change-Id: I24e2a7b720083ce69e56402f538e3c11f599f6a5
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2023-09-03 21:53:54 -07:00
Bichao Zheng 6602b833fc nand: s1a nand partition confirmation [1/3]
PD#SWPL-137498

Problem:
1. need get partition from env
2. need get rsv info from env

Solution:
1. get partition from cmdline
2. get rsv info from cmdline

Verify:
s1a

Change-Id: I5de9ca2479d60ce0c24698abda1b01403be4c283
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2023-08-31 21:58:38 -07:00
Tao Zeng 706f8590d8 mm: fix compound page header problem [2/2]
PD#SWPL-131211

Problem:
kernel crash in check_page_to_cma

Solution:
The problem is that page_mapping function returns a invalid mapping
pointer, when a compound page is building while a compaction is doing
at same time, there will have a risk of compound page status checking.
page->mapping is set to TAIL_MAPPING first then set compound header.
But check_page_to_cma don't check real status of page, which caused
panic

Verify:
local

Change-Id: Id44ac3d43d1385148e0527b0ba4d3421c68d825e
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2023-08-31 20:23:44 -07:00
Wenjie Qiao 659755fa27 cec: tx reports wrong phy addr before plugin [1/1]
PD#SWPL-123672

Problem:
tx reports wrong phy addr before plugin

Solution:
tx reports ffff phy addr before hpd ready
clear phy addr when clear edid

Verify:
sc2

Test:
sc2

Change-Id: I7284135f3ced4f30d704cfc5cd0614f5f628c9c7
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-08-31 18:35:38 -07:00
dongqing.li 26df3302ed ramdump: ker5.15 flush cache all when kernel panic. [1/1]
PD#SWPL-137107

Problem:
The data in the ramdump crash file is abnormal
because the cache data has not been flushed back.

Solution:
1. Use ipi_stop hook to flush online cpu cache.
2. Use panic_notifier to flush panic cpu cache.

Verify:
sc2_ah212

Change-Id: Ifad5bd4203fdde327b8c2b19357aa2d92586063f
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2023-08-30 06:18:47 -07:00
Evoke Zhang 56b1900890 lcd: add high resolution vsync measure debug function [1/1]
PD#SWPL-134937

Problem:
need high resolution vsync measure debug function for lcd

Solution:
add high resolution vsync measure debug function

Verify:
am301

Change-Id: I1b1391a6210e2132ce36ebb27df83398b583f1f2
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2023-08-28 20:13:37 -07:00
lizhi.hu 70b22cbbc6 lcd: add support ZS101NI4050J4H8II-A [1/1]
PD#SWPL-137167

Problem:
support panel ZS101NI4050J4H8II-A

Solution:
add

Verify:
t7_an400
txhd2_be311

Change-Id: I24e35e659ad77545903a854b4a734f4665a3c6e8
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2023-08-25 01:54:07 -07:00
Pengcheng Chen bd1bc39010 vpp: fix display blurred in lowlatency mode [1/1]
PD#SWPL-132411

Problem:
video buffer put back when in lowlatency proc

Solution:
only put video buffer in vsync_isr

Verify:
ohm

Change-Id: If78ef47a58fa93d44303d49c84c4079a1b1e321c
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-08-25 01:53:54 -07:00
Jian Cao e11d976bb9 vpp: video lowlatency optimize [1/1]
PD#SWPL-132066

Problem:
need to support video lowlatency

Solution:
video lowlatency optimize

Verify:
s1a-bg201

Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Change-Id: Ie8a6f4c72314f9acf7202e7d86721403842d5499
2023-08-24 23:00:24 -07:00