Commit Graph

1471 Commits

Author SHA1 Message Date
Ao Xu e8de618364 drm: add rgba1010102 formats support [1/1]
PD#SWPL-106925

Problem:
no rgba1010102 formats support

Solution:
add rgba1010102 formats support

Verify:
ay301

Test:
DRM-OSD-44

Change-Id: Ie8132c653eff65a45b5e34b4fe43ab2dd90c0550
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-02-14 20:50:25 -08:00
chen.xu b1dc84744a video_processor: sync code from 5.4 to 5.15 [1/1]
PD#SWPL-110999

Problem:
video_processor need sync code from 5.4 to 5.15.

Solution:
1.sync code from 5.4 to 5.15 for video_processor.
2.sync video_processor 5.4 code to 5.15 start commit Ibc1cc32
and end commit I75b5c4.
3.sync vicp end commit I1afb897.
4.except I816b036 other already sync.

Verify:
T7C

Test:
sync code from 5.4 to 5.15 for video_processor

Change-Id: I75387e4e7874a139307a066cf9d24cbb2991e73d
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-02-14 19:52:51 -08:00
Xiangyu Cai 6e8a845845 dts: configure parameters to start vrr in game mode [1/1]
PD#SWPL-95833

Problem:
vrr start failed in game mode after sync code

Solution:
configure parameters in dts

Verify:
t982_ar301

Change-Id: Ib4c50c143cbe84053a1ec33e1e08bb721d708e98
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2023-02-14 02:46:03 -08:00
Xiangyu Cai 42828b7f8c frame lock: sync code to 5.15 [1/1]
PD#SWPL-95833

Problem:
sync code to 5.15

Solution:
sync code

Verify:
t982_ar301

Change-Id: I5fb124c523ae82ff6e376e97f504265a12b51d13
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2023-02-14 02:45:57 -08:00
hai.cao 98f320f978 osd: add virtual address protect in osd_read and osd_write [1/1]
PD#SWPL-111117

Problem:
The virtual address is out of bounds

Solution:
add judgement

Verify:
no need verify

Change-Id: I0b09cbfb1ad27411d529164f2c3c37b1de811659
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-02-14 02:38:02 -08:00
gerrit autosubmit a462ebe230 Merge "dtv_demod: optimize 8VSB CN to 15dB[V1.1.78] [1/1]" into amlogic-5.15-dev 2023-02-14 01:26:06 -08:00
qinglin.li b7564c2d64 freertos: c3 free rtos memory [1/1]
PD#SWPL-108793

Problem:
c3 free rtos memory

Solution:
add free rtos memory

Verify:
c3

Change-Id: Ic8929e4915b2385d9af2f791c24a2a103318c843
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-02-13 20:50:46 -08:00
Yao Jie 2026caa586 pm: t7c and t5m support reboot reason extension [2/2]
PD#SWPL-109154

Problem:
T7C and T5M support reboot reason extension
(128 reasons)

Solution:
Add extension flag in dtsi to support reboot
reason extension

Verify:
T5M-AY309-T963D4
T7C-A311D2-AN400

Change-Id: I55cc1aa5ce64d0c61f3dea420a1e14c12319f21e
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2023-02-13 20:50:42 -08:00
Wanwei Jiang 87c507d22d porting: compatible with common14-5.15 [1/2]
PD#SWPL-109858

Problem:
compatible with common14-5.15

Solution:
compatible with common14-5.15

Verify:
sc2

Change-Id: I12e0e796e95cf54d37f76ad9f01a0ff9852e779e
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-02-13 19:41:56 -08:00
gerrit autosubmit db86ffa82f Merge "audio: clk power [1/1]" into amlogic-5.15-dev 2023-02-13 04:42:18 -08:00
qing.zhang e011fbe775 audio: clk power [1/1]
PD#SWPL-109754

Problem:
1. T5M eARC suspend resume power
2. resample suspend resume power
3. default sys clk for resampleA/B for sclk 12.288
4. resample_clk -5 fail

Solution:
1. implement suspend-clk-off
2. move the enable after set rate for resample
3. default sys clk for resample
4. if codec is installed after tdm, it will cause resample clk init fail

Verify:
verify by T5M

Change-Id: I888fd17ea68e34f84357ae9ab61efb47b7923fb6
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2023-02-13 04:42:17 -08:00
gerrit autosubmit 7828bc6c8a Merge "dvb_extern: add R856 tuner id (V1.11) [1/1]" into amlogic-5.15-dev 2023-02-13 04:14:37 -08:00
gerrit autosubmit e84311ffa5 Merge "tvp: add cma_mmu_op api for clear or set page pte. [1/1]" into amlogic-5.15-dev 2023-02-13 04:11:29 -08:00
Yicheng Shen 28e074e9b2 Revert "hdmirx: fix 3d timing no signal issue [1/1]"
This reverts commit 9d7d19d405.

Change-Id: I1910e504692ce9c1369797b97f2474bc10550143
2023-02-12 23:41:28 -08:00
Gaowei Zhao 8d2a4843ea hdmirx: fix use-after-free error [1/1]
PD#SWPL-107997

Problem:
T965D4 reboot when access any livetv channel.

Solution:
fix use-after-free error.

Verify:
T965D4

Change-Id: I89504988b816751400ba5e32ae4afa869f24d830
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2023-02-12 23:41:25 -08:00
jialong.jiang b70f6e94c6 hdr: Kernel5.15 S5 hdr. [1/1]
PD#SWPL-109811

Problem:
Kernel5.15 S5 hdr.

Solution:
Kernel5.15 S5 hdr

Verify:
sc2.

Change-Id: I60d70b18410bb9b26d21d4de53134ee116d1996f
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-02-12 23:41:21 -08:00
min.yang b10b39fdab dvb_extern: add R856 tuner id (V1.11) [1/1]
PD#SWPL-110885

Problem:
should support cxd2878 and R856.

Solution:
and R856 id.

Verify:
verified sc2.

Change-Id: Ib2da06445a5bf9b5efa44df616179ab7170a08fb
Signed-off-by: min.yang <min.yang@amlogic.com>
2023-02-13 11:24:34 +08:00
Jianxiong Pan 5498b9ad89 tvp: add cma_mmu_op api for clear or set page pte. [1/1]
PD#SWPL-109588

Problem:
serror when access tvp secure area.

Solution:
add page pte operation api.

Verify:
t7c.

Change-Id: I200b9d4fada3c3697caaae0660e0615ebb9beefb
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2023-02-12 18:42:11 -08:00
zhicheng.huang 6969b0053b dtv_demod: optimize 8VSB CN to 15dB[V1.1.78] [1/1]
PD#SWPL-110368

Problem:
8VBS CN limit is 15.8dB, but customer requirement need 15.3dB

Solution:
optimize 8VSB CN to 15dB

Verify:
t5m

Change-Id: I99e0a96b88a3a97d90bc0a0bffef63a147db8cd4
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2023-02-13 02:40:04 +00:00
Wanwei Jiang e9412eceb6 auto_patch: bring up androidu with common14-5.15 [2/3]
PD#SWPL-109858

Problem:
support auto patch

Solution:
modify scripts to support auto patch

Verify:
sc2

Change-Id: If99091e1a24bb36f58415b228d8b302087c21d09
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-02-12 22:40:26 +08:00
Dezhen Wang 124ad7da4d Script: add manual insmod function in mk_smarthome_common.sh and mk.sh [1/1]
PD#SWPL-110696

Problem:
there is no manual insmod ko function in mk_smarthome_common.sh and mk.sh

Solution:
adding new manual insmod ko function in amlogic_utils.sh
mk_smarthome_common.sh and mk.sh

Verify:
s4d_s805c3_t215_512m S905X4-AH212

Change-Id: I3c555c50a072036f70a8309976bd91e4b6dff045
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-02-11 03:45:06 -08:00
dongqing.li 5c78a922a7 mm: kernel 5.15 add ramdump driver. [1/1]
PD#SWPL-108700

Problem:
kernel 5.15 cannot support ramdump.

Solution:
support it.

Verify:
sc2_ah212

Change-Id: I9eb56b006ac68ba1350a3183a9617f01e6749e62
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2023-02-11 01:27:38 -08:00
bo.li 25c5f98566 mm: pcie_dma: expand the size of swiotlb slots. [1/1]
PD#SWPL-103303

Problem:
swiotlb buffer is full.

Solution:
expand the size of swiotlb slots.

Verify:
sc2.

Change-Id: Ica660c87890945f2030cdaebf5eae547b575f002
Signed-off-by: bo.li <bo.li@amlogic.com>
2023-02-10 05:30:06 -08:00
Ao Xu 18c185ffe7 drm: change dump raw data method using debugfs [1/1]
PD#SWPL-103080

Problem:
vfs_write can't be used

Solution:
use debugfs to dump data

Verify:
ar321

Test:
DRM-OSD-42

Change-Id: I1d70b8bf0a103cd17fa3859dcef69e0d3ae59139
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-02-10 05:30:03 -08:00
min.zhu b4734dfe5c dts: increase DMA reserved memory [1/5]
PD#SWPL-107111

Problem:
Failed to alloc memory for whiteboard process.

Solution:
Increase reserved memory.

Verify:
t7_n400

Change-Id: I8a0d8f25368e631ac67b715f88def3741c55be2a
Signed-off-by: min.zhu <min.zhu@amlogic.com>
2023-02-10 05:29:53 -08:00
congyang.huang fe30de6833 drm: add osd security support [1/1]
PD#SWPL-107108

Problem:
T5M VPU has security feature

Solution:
add osd security feature

Verify:
t5m

Test:
gpu sftest

Change-Id: I0075d7aeaf525fc14f6703f127f7dc17e6fc19ae
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-02-10 05:29:49 -08:00
yicheng shen 9d7d19d405 hdmirx: fix 3d timing no signal issue [1/1]
PD#SWPL-109217

Problem:
no signal when 3d timing input

Solution:
optimize timing detection method

Verify:
T7C

Change-Id: Ib33af7399233be45ad9a6d2eaaba9c302e652113
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2023-02-10 01:23:36 -08:00
dongfei.li e8c0363a5b frc: frc chg reg.h for common using [1/1]
PD#SWPL-110876

Problem:
divide register def for drv

Solution:
divide register def for drv
line length of 113 exceeds 100 columns
which from vlsi code

Verify:
T3

Change-Id: I18d24addd198d39f331da3fdf852d7a4194f69c1
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-02-10 01:23:33 -08:00
Cheng Wang2 ff3e9005a2 T7C: add t7c_a311d2_an400-hdmitx-only [2/3]
PD#SWPL-110186

Problem:
no t7c t hdmitx only dts

Solution:
config

Verify:
t7c

Change-Id: Ibe7efb281901b58d7ea52dde7dcd99f6a7ac5612
Signed-off-by: Cheng Wang2 <cheng.wang2@amlogic.com>
2023-02-10 01:23:26 -08:00
yifei.wang afad979575 kernel 5.15: unify t3_t982/t3_t965d4 dts [1/1]
PD#SWPL-110400

Problem:
t3_t965d4_ar321-2g.dts
t3_t965d4_ar331-4g.dts
t3_t982_ar301-2g.dts
t3_t982_ar311-4g.dts
t3_t982_ar311-8g.dts

Solution:
unify 2g/4g/8g

Verify:
t982/t965d4

Change-Id: I6cd407ee0cb74f73fb6de4af26f973165507ec2f
Signed-off-by: yifei.wang <yifei.wang@amlogic.com>
Signed-off-by: sandy luo <sandy.luo@amlogic.com>
2023-02-09 22:40:48 -08:00
Lei Zhang 5daeeae0b4 TRACE: add Kconfig dependence for meson atrace [1/1]
PD#SWPL-107451

Problem:
C3 build break

Solution:
add Kconfig dependedce for meson atrace

Verify:
on SC2

Change-Id: I66c2fcd589bb7c0909b19c96ebba73aede6e30d7
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2023-02-09 20:13:49 -08:00
qiang.liu 548f786f91 tvafe: reboot -f avin will crash [1/1]
PD#SWPL-109529

Problem:
reboot -f avin will crash

Solution:
stop avin when tvafe clk close

Verify:
t5w

Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
Change-Id: Ie93932efb0a6adcba1caf9cccea09263f4c526a4
2023-02-09 04:12:10 -08:00
Cheng Wang 5efcc50bb0 frc: frc integrate function of IRQ [1/3]
PD#SWPL-110218

Problem:
1.optimization of the frc algorithm
2.separating table of reg

Solution:
1.Steps to optimize the algorithm
2.separating table of reg

Verify:
T3/T5M-5.15

Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
Change-Id: I700694f7c326baed95cca64d1ea7eb8dd6d01606
2023-02-08 20:45:34 -08:00
Hanjie Lin ddbdcf7a92 TRACE: optimize meson_atrace function [1/1]
PD#SWPL-107451

Problem:
1, perfetto cannot parse meson_atrace event
2, trace_printk cannot work on release version

Solution:
1, change meson_atrace event to trace_print event
2, porting aml_trace_printk

Verify:
on S905X4 AH212

Change-Id: I2656544038113316dc1e756b3ff57edf33cc5c88
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2023-02-08 20:45:27 -08:00
yao zhang1 3cbcffdc2a configs: c3 remove configs and make some builtin modules [1/1]
PD#SWPL-106998

Problem:
Boottime is too slow.

Solution:
1,Reduce Image size from 3M to 2.8M.
2,Speed up boottime 100ms.
3,Reduce insmod time overhead.
4,Enable CC_OPTIMIZE_FOR_PERFORMANCE, Improve performance

Verify:
C3 aw402

Change-Id: Ie0b1723adb2faab55596931c98eabb33081a590f
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2023-02-08 20:09:12 -08:00
Jianxiong Pan 59b40a3a63 GPU: Simplified the fix area allocate api. [1/1]
PD#SWPL-107998

Problem:
system crash when enable kasan.

Solution:
direct alloc from cma.

Verify:
t5m.

Change-Id: Ic36b5604b6f13d75e6aea8b577429d7325061b93
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-02-08 12:45:06 -08:00
yaoyu.xu 04e692ae6b hdmirx: some signals are recognized slowly or not recognized [1/1]
PD#SWPL-108367

Problem:
some signals are recognized slowly or not recognized.

Solution:
adjust phy settings.

Verify:
t5m

Change-Id: I8a55d012b61752f5503c11b634d757f3f7f80dbc
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2023-02-08 03:24:02 -08:00
Mingshan Cheng 4cbdf6154e common: add trace log for AUT [1/1]
PD#SWPL-109745

Problem:
AUT need some logs for detect stuck

Solution:
add trace log for AUT

Verify:
AUT

Change-Id: Ic8fc5c98b4e9e0fbc057f29db594c0271088be61
Signed-off-by: Mingshan Cheng <mingshan.cheng@amlogic.com>
2023-02-08 02:44:28 -08:00
zhicheng.huang e53f2272cf dtv_demod: fix dvbc low sr and 16/32qam unlock[V1.1.77] [1/1]
PD#SWPL-108405

Problem:
fix dvbc low sr and 16/32qam unlock.

Solution:
fix dvbc low sr and 16/32qam unlock.
for r836 tuner, 16/32qam need to wait more time.
AMLDTVDEMOD_VER "V1.1.77".

Verify:
s4d

Change-Id: I096aa43a2b324daaa0aaa0e790135cfd78784b6f
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2023-02-08 00:58:14 -08:00
Dezhen Wang a2525fa2d0 dtb: upgrade 5.15 dts for s4d according to the modification of s4 [1/1]
PD#SWPL-109911

Problem:
bring up s4d_s805c3_t215_512m.dts s4d_s805c3_aq2432_512m.dts

Solution:
upgrade s4d_s805c3_t215_512m.dts s4d_s805c3_aq2432_512m.dts in kernel
5.15 according to the difference of the dts file of s4 from 5.4 to 5.15

Verify:
s4d_s805c3_t215_512m

Change-Id: Ib585e3a42ad5431d507c32d5c9dd706115edab8c
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-02-08 00:58:03 -08:00
Dezhen Wang 1064919ff3 dtb: upgrade the 5.15 kernel dts for s4d copying from kernel 5.4 [1/1]
PD#SWPL-109911

Problem:
bring up s4d_s805c3_t215_512m.dts s4d_s805c3_aq2432_512m.dts

Solution:
copy the dts from 5.4 to 5.15 for s4d_s805c3_t215_512m.dts and
s4d_s805c3_aq2432_512m.dts

Verify:
s4d_s805c3_t215_512m

Change-Id: I1ff896aef0c3c14c088e5647ec7422ca86daf9c6
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-02-08 00:57:59 -08:00
Feng Chen dd4820b5e8 spicc: t5m dts files need a uniform format [1/1]
PD#SWPL-104744

Problem:
dts files need a uniform format

Solution:
modify dts files

Verify:
t5m_ay301

Change-Id: Ie31d05ca234b9d7304bc16fbcf5f3ece70e54071
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2023-02-08 00:10:31 -08:00
Qianggui Song eb31b16201 dtb: t5m: add t5m revb dts file [1/1]
PD#SWPL-110603

Problem:
Need to add revb dtb file

Solution:
Add t5m revb dts copy from reva

Verify:
t5m_ay301

Change-Id: I8505a6a87d0946010c0ee34b115d1f04c37e84b0
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2023-02-08 10:56:35 +08:00
qinglin.li 9fb1e481c2 dmc_monitor: dump dmc reg log lose [1/1]
PD#SWPL-110097

Problem:
dump dmc reg log lose

Solution:
print dump info to multiple

Verify:
s5

Change-Id: I72458f182a81e1e7cdaac5a555a2fbac6884ac0a
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-02-07 04:10:10 -08:00
hai.cao 54e9857991 osd: add default filter value [1/1]
PD#SWPL-93491

Problem:
When platform set to 480p, UI display is not great 100%

Solution:
add default filter value

Verify:
no need verify

Change-Id: Icc98816e06a49adb5c392d147f1d8c73a724d2d9
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-02-07 02:45:44 -08:00
jian zhou 37e356b9d1 audio: get earc port id from hdmirx [1/1]
PD#SWPL-110117

Problem:
get wrong earc id as there is no "earctx_port" property in kernel dts

Solution:
get earc port id from hdmirx

Verify:
t5m

Change-Id: Idb45d5c557fabe1bdee97ec00c51f64085583547
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2023-02-07 02:45:39 -08:00
yanmei.yang 34871d2b56 yocto: fix wrong config filename in gcc 32 scripts [1/1]
PD#SWPL-93910

Problem:
wrong config filename in gcc32 scripts

Solution:
fix wrong config filename in gcc32 scripts

Verify:
Local

Change-Id: I1371a5500115b3601953f1987581b49fadde5c95
Signed-off-by: yanmei.yang <yanmei.yang@amlogic.com>
2023-02-07 01:43:22 -08:00
Huqiang Qin e30052b7d8 pinctrl: t5m: fix tdm pins [1/1]
PD#SWPL-110175

Problem:
The pin order is not right. (fs2 and sclk2)

Solution:
Adjust according to the pinmux excel.

Verify:
T5M

Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
Change-Id: I6cbdfb0c3fb7fda857502eba4b5c917fb84af19f
2023-02-07 01:43:19 -08:00
Chuan Liu 3b47f689d8 c2: system crashed while initializing sys_pll in kernel [1/1]
PD#SWPL-108542

Problem:
system crashed while initializing sys_pll in kernel

Solution:
don't reinitialize sys_pll

Verify:
c2_af400_c305x_dev

Change-Id: I274dab6513fa42c64f4a48f333b942fe6b0647ab
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-02-07 01:42:54 -08:00
Tianhua Sun be971871b0 uvm: add api to get video type from uvm [1/3]
PD#SWPL-106519

Problem:
need get video type from uvm driver

Solution:
add api to get video type from uvm

Verify:
s5

Change-Id: I7851364854b4a89aa033ba2f8526cfe1a41d0038
Signed-off-by: Tianhua Sun <tianhua.sun@amlogic.com>
2023-02-06 02:45:39 -08:00