Commit Graph

655 Commits

Author SHA1 Message Date
MingLiang Dong 76f3142fb0 amvecm: add sdr2020 source process [1/1]
PD#SWPL-140725

Problem:
new feature, add sdr2020 source process case

Solution:
new feature, add sdr2020 source process case

Verify:
t5m

Change-Id: I5d4d701c11066bc853b2cf24579363cec44bd963
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2023-10-12 09:25:00 +00:00
Doosan Baek 7cce3b0ed7 seckey: add s/w vendor id [1/1]
PD#SWPL-141635

Problem:
need support s/w vendor id.

Solution:
add s/w vendor id.

Verify:
s1a

Change-Id: I1fc71057a7a376b24c92b33532cb26917c746d08
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2023-10-11 21:18:38 -07:00
Song Zhao d7d8fa829d msync: add mono time into pts structure [1/2]
PD#TV-89282

Problem:
HbbTV need more accurate position.

Solution:
Add two more ioctl to get the A/V pts/mono pair

Verify:
T5W + Sandia

Change-Id: I9bc5408d0b41b4429056e581a18646d16d44fe41
Signed-off-by: Song Zhao <song.zhao@amlogic.com>
2023-10-11 17:57:39 -07:00
jiabin.chen 08b5f30ce6 wifi: kernel 5.15 add wifi comm API [4/4]
PD#SWPL-141905

Problem:
kernel 5.15 have no wifi comm API

Solution:
kernel 5.15 add wifi comm API

Verify:
ohm

Change-Id: I14b3443d7ce7894c019cd76f0891f157f15f1f5d
Signed-off-by: jiabin.chen <jiabin.chen@amlogic.com>
2023-10-11 00:27:17 -07:00
donghui.wang 0c4c5d3713 ldim: add cus_fw set pq interface [1/1]
PD#SWPL-138650

Problem:
miss cus_fw set pq interface

Solution:
add cus_fw set pq interface

Verify:
t5m

Change-Id: Icef9b5a9abc37795f558b6afc94a4b0d0714eff0
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-10-10 00:28:47 -07:00
donghui.wang b5debce2de ldim: add pwm_phase parameter [1/1]
PD#SWPL-137934

Problem:
add pwm_phase parameter

Solution:
add pwm_phase parameter

Verify:
kernel5.15

Change-Id: If189da5133e2934ab435d7eae23c55a7ec7c5699
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-10-10 00:28:42 -07:00
zhentao.guo 3edbf5ef50 media: CB1 Fix cts CRC flaky issue [1/1]
PD#SWPL-139469

Problem:
Dirty date in cacheline may pollute data in memory when
flush cacheline

Solution:
Use noncache mapping in afbc decompress lib

Verify:
T7C

Change-Id: I4f6ed2ad6473c0aaab80d175663434b38dfb2af5
Signed-off-by: zhentao.guo <zhentao.guo@amlogic.com>
2023-10-09 23:18:47 -07:00
Ao Xu 53e050cf43 drm: change colorspace,colordepth,hdr_priority control method to drm [1/1]
PD#SWPL-139554
PD#SWPL-138558

Problem:
colorspace,colordepth,hdr_priority were controlled by sysfs node
hdr_priority definition was changed

Solution:
change colorspace,colordepth,hdr_priority control method to drm
add new hdr_priority definition to support multi strategy
update the RX hdr/hdr10+/dv capabilities in the end of EDID parse

Verify:
ohm

Test:
DRM-TX-40

Change-Id: Id9989d542ac780e358263ace67e7f13370498285
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-10-09 02:28:44 -07:00
sky zhou f7466b12ac hdmitx: update hdmitx version define [1/1]
PD#SWPL-140779

Problem:
simplify hdmitx version define.

Solution:
update hdmitx version and remove
change logs.
init :4.01-01-01-00-00.02-01.20231002

Verify:
verify on ohm

Test:

Change-Id: I4f022b2e4639131c038ea6ea3ec0db97286f674e
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-10-07 02:33:52 -07:00
sky zhou 61a51ec8ed hdmitx: update header file folder [1/1]
PD#SWPL-104016

Problem:
internal members and functions exposed to
other module.

Solution:
move hdmi internal headers to source code folder.

Verify:
verify on ohm/t7

Test:
DRM-TX-38

Change-Id: Ie8307476ab811819c090b0afa7739a1cc6c90053
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-10-07 02:33:48 -07:00
yao liu 7830ae8fc5 amdv: idk case5364 failed [1/1]
PD#SWPL-141487

Problem:
afbc read incomplete data

Solution:
1.change axis from 2159x3839 to 1079x1919 in script file
2.set force_vskip_cnt to 0xff, to avoid skip
3.enable pps to scaler
4.config decoder data size for top2

Verify:
t3x

Change-Id: Icd7e11846c1b407936712a26350b1868af186843
Signed-off-by: yao liu <yao.liu@amlogic.com>
2023-10-07 02:33:45 -07:00
Ao Xu bcbba76b5e hdmitx: use common api to replace hook interface [1/1]
PD#SWPL-104009

Problem:
drm hdmitx call hook interface

Solution:
use common api to replace hook interface

Verify:
ohm

Test:
DRM-TX-37

Change-Id: Ia29c7f9d6aea9b358053460cdbc6ab99738c984e
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-10-04 15:50:29 +08:00
hang cheng a44083569e hdmitx: optimise hpd flow [1/1]
PD#SWPL-104023

Problem:
1.hdmitx_event flag can be set/cleared in
both top/bottom half of hpd interrupt, so
there may be write concurrency of this flag,
subsequent plug in event may be ignored
if the first plugin handler clear the
this flag of the second plugin event
2.hpd change event during bootup may be
lost to process, as there's opportunity
there's hpd event come between hpd level
read/handler and hpd irq enable

Solution:
optimise hpd flow
1.use hw hpd state to indicate the hpd
intr state and only change in top half
of hpd irq handler. use sw hpd flag to
indicate if plugout/in bottom half done
2.lock mutex-> enable hpd irq-> do hpd
top half handler-> do hpd bottom half
handler->unlock mutex, so that all hpd
irq will be handled.

Verify:
ohm

Test:
hotplug

Change-Id: I5347a37f022dd37c5a5a436101af440aa49dd662
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-10-04 15:49:47 +08:00
sky zhou 900a816b9c hdmitx: fix tx20 hdcp error [1/1]
PD#SWPL-141575

Problem:
hdcp uevent error.
hdcp rx cap error.

Solution:
send trace uevent in handler.
remove daemon check for android rx cap.

Verify:
verify on ohm.

Test:
DRM-TX-39

Change-Id: Ia3c2ef30d7b0c1b97d0090d15e08b9adc1999532
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-10-03 19:35:06 +08:00
Ao Xu e1c0e5cc79 hdmitx: remove cur_VIC and move vout server to hdmitx common [1/1]
PD#SWPL-137140

Problem:
cur_VIC is not needed
hdmitx20 and hdmitx21 has the same vout api

Solution:
remove cur_VIC and move vout server to hdmitx common
remove pr_fmt

Verify:
ohm

Test:
DRM-TX-33

Change-Id: I981a7769fe1f9f6f562f1814cf19cd5f57535fdc
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-10-03 19:30:39 +08:00
zongdong.jiao c451e6c109 hdmitx: optimise FRL configure param [1/1]
PD#SWPL-140225

Problem:
Need to optimise FRL configure param

Solution:
Optimise FRL configure param

Verify:
s5/ax201

Test:
DRM-TX-38

Change-Id: I83f0c13a984b3a580773df3cc6b83fd4c4019f3a
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-10-03 15:04:45 +08:00
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
mingxiu.sun 37c83f77f6 vdin: Provides vdin1 hist values for the upper layer [1/1]
PD#SWPL-135475

Problem:
txhd2 vdin1 hist uses the vdin0 hist register

Solution:
Open the clk of vdin1 and configure the hist related register

Verify:
txhd2

Change-Id: If86d6fbfd7a760e1a51db98aecce9c37c685687e
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2023-09-27 02:43:46 -07: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
Liming Xue d70741d666 host driver: reconstruct dsp host driver [1/1]
PD#SWPL-99041

Problem:
reconstruct dsp host driver

Solution:
config CONFIG_AMLOGIC_MCU_DRIVER to enable mcu driver
the new driver support multiple dsp/m4 cores

Verify:
a1/c1/c2/sc2/t3/t3x/t7/t7c

Change-Id: Ib1e666e615260bb5b7377a18eeaaf8daa65de86f
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2023-09-25 00:13:42 -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
mingyang.he 9efc617238 drm: sync meson_drm 5.15 and 5.4 about 5.15 [1/1]
PD#SWPL-139231

Problem:
meson_drm.h in 5.15 and 5.4 have discrepancies

Solution:
eliminate the difference between 5.15 and 5.4

Verify:
sc2

Test:
DRM-OSD-103

Change-Id: I2f7432dcafc0976fbc67dbeed684280b17953284
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2023-09-20 04:38:55 -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
yaoyu.xu d5356e600c hdmirx: add support for 240p [1/1]
PD#SWPL-139463

Problem:
add support for 240p.

Solution:
add support for 240p.

Verify:
txhd2

Change-Id: Id2a0e2dec3aad54143cf78a7ce9fbae0568291d0
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2023-09-15 02:54:07 -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