Commit Graph

5030 Commits

Author SHA1 Message Date
Dezhen Wang ae168c8c0f scripts: function adjustment and remove staging dir last time [1/1]
PD#SWPL-163329

Problem:
building will fail because last build remain the staging dir

Solution:
remove staging dir in last build

Verify:
local

Change-Id: Ie5acfb09af45027d567f12f197ec4001af0d304a
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-05-06 20:34:40 +08:00
Hao Shi 503bc2c462 codec_mm: scatter cache soft alloc [1/1]
PD#SWPL-161136

Problem:
Flexible growth of cache memory.

Solution:
Scatter cache alloc small slot when force_cache_on closed.

Verify:
sc2

Change-Id: I5162ddf2dfed5205225f18283c2f8402a75fb977
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-05-06 20:34:20 +08:00
Jianxiong Pan 6e14143924 mm: autopatch: optimize system heap default. [1/1]
PD#SWPL-155289

Problem:
system heap optimization.

Solution:
use CONFIG_AMLOGIC_MEMORY_OPT or
CONFIG_AMLOGIC_MEMORY_DEBUG

Verify:
local.

Change-Id: I6f63aa616909ed19dbfdbbe1550b705db1c4da9d
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-05-06 20:27:03 +08:00
Jianxiong Pan 8c675fde6e mm: autopatch: use CONFIG_AMLOGIC_MEMORY_OPT for system heap. [1/1]
PD#SWPL-155289

Problem:
system heap optimization.

Solution:
use CONFIG_AMLOGIC_MEMORY_OPT

Verify:
local.

Change-Id: I34b57af27c507f6eff172829d8a4b50c0ee2b200
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-05-06 20:26:58 +08:00
Dezhen Wang d63c23b9ea scripts: support closed source modules build to Independent folder [1/2]
PD#SWPL-158464

Problem:
support closed source modules build to Independent folder and copy
to android output folder

Solution:
add closed source modules list to blacklist

Verify:
local

Change-Id: Ibd9be1c7e8e7eb1b043fd10e96436cb1d96f78a1
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-05-06 19:19:27 +08:00
honghai.song fd98c6146b s7d: vdin1: change to 720p [1/1]
PD#SWPL-166923

Problem:
vdin1: change to 720p

Solution:
vdin1: change to 720p

Verify:
on S7D

Change-Id: Ia8ab9a90c5188e7d4c21daf63289986c9da0155c
Signed-off-by: honghai.song <honghai.song@amlogic.com>
2024-05-06 17:47:13 +08:00
dian.shao 21220f30c1 usb: race between unbind&setup [1/1]
PD#SWPL-158524

Problem:
CTS-V usb accessory test unplug&plug too
quickly leading to the racing between unbind
and setup.

Solution:
Add udc_async_callbacks().

Verify:
t7.

Change-Id: I5c4f362583b1e9e3d385fbad0b36da3b92d38eee
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-05-06 17:13:50 +08:00
Jianxiong Pan 1c9a77dbfd mm: autopatch: remove devicetree node. [1/1]
PD#SWPL-155289

Problem:
memory optimization.

Solution:
remove devicetree node.

Verify:
t5d.

Change-Id: I74a7d614e016573000a345246dcc8f73d34dc04d
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-05-06 17:10:13 +08:00
Junyi Zhao d5a22cf51e i2c: no i2c in recovery mode [1/1]
PD#SWPL-161849

Problem:
no i2c in recovery mode

Solution:
add ko to load in recovery mode

Verify:
T7c an400

Change-Id: I14ab19508a45da0d0538c9ed95b75d266ce98046
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-05-06 16:52:24 +08:00
qiang.liu d6b44c8b73 vdin: sink-led not allm need shield [1/1]
PD#SWPL-149879

Problem:
sink-led into game mode cause dv bypass

Solution:
sink-led not allm need shield

Verify:
t5w

Change-Id: I67d47c474963cbe8ae15dce0ba137d84352ed9f2
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2024-05-06 16:42:40 +08:00
Wenjie Qiao e7ff17e7a7 hdmitx: set segment 0 when read block0 and block1 edid [2/2]
PD#SWPL-160326

Problem:
uboot and kernel read edid twice and
read edid error when edid has more than 2 block

Solution:
set segment 0 when read block0 and block1 edid

Verify:
sc2

Test:
DRM-TX

Change-Id: I8613f7e4c1c6826fbe5edefb7232d761693659b6
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-05-06 16:42:09 +08:00
Ao Xu 65428fea39 drm: add drm_policy_mask property to report hardware feature [1/1]
PD#SWPL-163920

Problem:
hdr before osdblend, it will cause UI flashing when switch composites
between device and gpu for multi-layers

Solution:
add drm_policy_mask property to report hardware feature
then hwc will not exchange device and client composite repeatedly

Verify:
s5 s7d

Test:
DRM-OSD-59

Change-Id: I8c717e180c4962ab8f422efa607e4d63d298e462
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-05-06 16:41:42 +08:00
Pengcheng Chen a0f781c6c6 vpp: alpha_win_en not set 0 when composer_info is NULL [1/1]
PD#SWPL-155867

Problem:
play video with alpha_win_en enable then play no alpha
win set video source, alpha_win_en not clear

Solution:
alpha_win_en need set 0 when composer_info is NULL

Verify:
t3x

Change-Id: Ie1e83da0c7c40bbfe12945d706f1fa7fb3f3c76a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-05-06 16:41:42 +08:00
qi duan 2dbdce5023 mdns: mdns wakeup [1/1]
PD#SWPL-107230

Problem:
google cast wakeup

Solution:
add mdns wakeup source

Verify:
qurra

Change-Id: I812c52da9c16d4e1d60f8598f47564a5506b14bc
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2024-05-01 20:11:06 +08:00
Junyi Zhao 81edc1608b led: remove blink on power and light on resume [1/1]
PD#SWPL-166863

Problem:
led blink on power
led light when resume

Solution:
remove this related code

Verify:
s7d bm201

Change-Id: Idb9677189edd2e274ced76f9f5c67d16008cea03
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-04-29 13:21:22 +08:00
Jianxiong Pan 4feccb7041 mm: aml_smmu: get max_pfn from node instead of find symbol. [1/1]
PD#SWPL-166736

Problem:
aml smmu init failed.

Solution:
get max_pfn from node instead of find symbol.

Verify:
s5.

Change-Id: I1af0dbe7006ee590a82750491d9ab6a82835bf14
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-04-24 21:10:12 +08:00
qiyao.zhou d8cd27c1b2 dp: kernel panic after search channel. [1/1]
PD#SWPL-165517

Problem:
Send 2 dummy frame to DI for interlace video,
but dp release it on first callback,this lead
to invalid buf for di use.

Solution:
Modify dp flow to config these param.

Verify:
txhd2 t5d

Change-Id: I411af886c487e24f991737de25975a1abd95099a
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-04-24 20:31:21 +08:00
Xindong Xu cb754a5dde s7d: add firmware.dtsi to s7d [4/4]
PD#SWPL-163557

Problem:
need enable avb in s7d

Solution:
add firmware.dtsi to s7d

Verify:
s7d

Change-Id: I2b3445f9e62d5a8eae6fa40cd74f30e3e2ca7ed2
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
2024-04-24 20:27:18 +08:00
Yongjie Zhu ceded89c86 gpu: add s7d other board secure [1/1]
PD#SWPL-163131

Problem:
s7d g310 secure verification

Solution:
add dmaheap-secure for bm202/bm209

Verify:
s7d

Change-Id: I7805851ef4c1b2ca79f348accf63a6705057550c
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2024-04-24 15:55:20 +08:00
qinglin.li 94b3ac5dac dmc: page invalid due to panic [1/1]
PD#SWPL-163624

Problem:
get out of ddr size addr page flags to panic

Solution:
panic when write addr out of ddr
warning when read addr out of ddr

Verify:
txhd2 && g12a

Change-Id: I8bbe6e4185f433eb34868bb94fe0f32a06400a29
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-04-24 14:59:15 +08:00
chuangcheng.peng cbfc9a4ea5 smartcard: add smartcard node [1/1]
PD#SWPL-163082

Problem:
support smartcard function

Solution:
add smartcard node

Verify:
verified at bm209

Change-Id: I631c150292d2d3775b2479d31fd3d90c242e75c1
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-04-24 14:16:06 +08:00
Mingyen Hung f925868807 crypto: bringup crypto driver for s7d [1/1]
PD#SWPL-163070

Problem:
Need to verify crypto driver on s7d

Solution:
1. Replacing kmalloc() with dma_alloc_coherent()
due to weird data abort.
2. digest_sz is specified in dts for s7d

Verify:
s7d + bm201

Change-Id: Ibeb09de26f8b6c825117e0791a3e51f74a8529df
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2024-04-24 14:16:06 +08:00
Zhuo Wang 76f9d6cf04 eth: s7d set analog issue [1/1]
PD#SWPL-163065

Problem:
set analog will close phy clock

Solution:
fix wrong operation

Verify:
s7d_bg201

Change-Id: I38949fdb6b03c2076d3373909f803eccece9eceb
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2024-04-24 14:16:06 +08:00
Pengcheng Chen 52301327c9 vpp: improve 4k downscaler case when vskip=1 for s7d [1/1]
PD#SWPL-165200

Problem:
downscaler display abnormal when dv enable

Solution:
1.improve 4k downscaler case when vskip=1 for s7d
2.when dv enable, set axi_rps_ratio = 106 otherwise 100

Verify:
s7d

Change-Id: I64f6b5d18ce4ae2c9cd5915197298a46bba5d9cb
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-04-24 13:38:28 +08:00
jinbing.zhu d3bbe57b84 amvecm: s7d add pi safa sr debug [1/1]
PD#SWPL-164975

Problem:
s7d add pi safa sr debug

Solution:
s7d add pi safa sr debug

Verify:
verify on s7d

Change-Id: I41f4fe280832504ff2bea9a07e3e0627df687400
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-04-24 13:36:25 +08:00
lei.chen a90ee2ac44 wifi: fix kasan read cross the border [1/1]
PD#SWPL-165731

Problem:
kasan read cross the border

Solution:
Copy specified length

Verify:
s7d

Change-Id: Iebf96b41aba493241b6dd20b5f756a4fa1b6adbf
Signed-off-by: lei.chen <lei.chen@amlogic.com>
2024-04-24 10:50:37 +08:00
can.zhang 072dd60c6e amdv: s7d bringup code prepare [1/1]
PD#SWPL-161336

Problem:
s7d bringup need amdv code

Solution:
add code

Verify:
local

Change-Id: If463881459954a2bafef3a9a316de3b813016471
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2024-04-23 16:03:43 +08:00
Ao Xu 73908011e3 drm: fix osd proc in hsize not correct issue [1/1]
PD#SWPL-160146
PD#SWPL-163250
PD#SWPL-162538

Problem:
osd1 has the even width, osd3 has the odd width
it will lead to osd1 flicker.

Solution:
osd proc in hsize should be two times of real hsize

Verify:
s5

Test:
DRM-OSD-9, DRM-OSD-50

Change-Id: I65a21ead5b435944228ce9108b2fc54da09f5b63
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-04-22 19:29:28 +08:00
pengzhao.liu 1f61d9c69b ramdump: support for ker5.15 s7d. [1/2]
PD#SWPL-163216

Problem:
need to support ramdump of s7d

Solution:
porting from ker5.15.

Verify:
s7d

Change-Id: Ic13774fb5d71c5b3ae4ed3c805f1a3e16500d752
Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
2024-04-20 19:11:01 +08:00
yiting.deng c4ad6ff578 clk: s7: fix s7 cpu clk rate [3/3]
PD#SWPL-159093

Problem:
update s7 sys0pll/sys1pll/gp1pll range to 1.2-2.4G,
need fix some cpuclk rate

Solution:
fix it

Verify:
s7_bh201

Change-Id: I8fcbe6374b9bac6834cdb9d2b35335123f4c6dbb
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-04-20 19:09:11 +08:00
Ruixuan.li f993a44c44 emmc: change sdio clk freq to 1152M [1/1]
PD#SWPL-165715

Problem:
sdio and emmc use different gp0 freq, emmc report crc error

Solution:
change sdio clk freq to 1152M

Verify:
s7

Change-Id: I7714bacdf772d66d1d05d76730e2b010db3cc198
Signed-off-by: Ruixuan.li <ruixuan.li@amlogic.com>
2024-04-20 18:42:39 +08:00
Luan Yuan 40a8ad620a Revert "Revert "emmc: change gp0 to 1152M in kernel [2/2]""
PD#SWPL-164847

This reverts commit 2d8f5a7e0f.

Change-Id: Iab33cb77f2cea0ee5faf35c93c716f91ba7d0781
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2024-04-20 18:40:56 +08:00
zhenteng.tian e8a60e01a2 vc: rectify crop parameters in DTV mode. [1/1]
PD#SWPL-163821

Problem:
crop parameters are not correct in DTV mode.

Solution:
rectify crop parameters in DTV mode.

Verify:
T5M

Change-Id: I03f14cf562df0dd3d2bafb13dbd2390d8bc47ab6
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-04-19 20:00:18 +08:00
jiebing chen ce16c18a4a audio: use spk mute to control the pa gpio [3/3]
PD#SWPL-161349

Problem:
there are no spk mute control node

Solution:
enable the spk mute control

Verify:
s7

Change-Id: Id38d34214c7593861aa493bd60c25176048c2a25
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-04-18 22:19:30 +08:00
Junyi Zhao e6d7f1371c LED: add gpio led control for s7 [1/1]
PD#SWPL-158849

Problem:
need support s7 led

Solution:
support it

Verify:
s7 bh202

Change-Id: I9fd5006881d24e38ec5fe3f60699b9c638087e78
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-04-18 22:18:18 +08:00
yuhua.lin cff3d27f54 video: add debug flag control print [1/1]
PD#SWPL-163476

Problem:
add debug flag control print

Solution:
complete it

Verify:
s5

Change-Id: I88fbf4df39836076318a3f6918bad78b1ad06103
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-04-18 21:52:32 +08:00
Yao Jie ef7f98b9e0 mailbox: t5m add aocpu alive check mechanism [1/1]
PD#SWPL-155395

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:
T5M-AY309

Change-Id: Idd1c47fd99505f3a159c86390c28303f5a5b60e9
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2024-04-18 19:50:25 +08:00
Yao Jie e595c81e0e mailbox: s7 add aocpu alive check mechanism [1/2]
PD#SWPL-155399

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:
S7-BH201

Change-Id: Ib548b4c0fc929b4bed788e9a350bd3791fd93f1a
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2024-04-18 19:46:12 +08:00
hai.cao 1eb2cf48f0 video: video aisr demo mode [1/1]
PD#SWPL-163819

Problem:
aisr demo add sharpness support

Solution:
add sharpness support

Verify:
s7d

Change-Id: I12404ed7d62fbc029e2ee465ef4dbf15a2422245
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-04-18 19:00:19 +08:00
jinbing.zhu d16f9f13eb 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-18 19:00:18 +08:00
yao zhang1 7a49b40dcc video: Fixed the problem of playing video screen [1/1]
PD#SWPL-165858

Problem:
Playing the video shows an anomaly

Solution:
Fixed the problem of playing video screen

Verify:
s7

Change-Id: Ia996f14414b295743aa286e5dcce13de37f3adae
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2024-04-18 19:00:18 +08:00
Zhuo Wang 14abbe98f7 eth: fix ethernet pll issue [1/1]
PD#SWPL-163065

Problem:
fix ethernet pll issue

Solution:
fix ethernet pll issue

Verify:
s7d_bg201

Change-Id: Ib981c3cf84588d44ef0c3566f7f0a5cb62df5b9f
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2024-04-18 19:00:18 +08:00
Chuan Liu fc2a522e8b clk: Fix incorrect frequency of getting fixpll [1/1]
PD#SWPL-165213

Problem:
The fixpll frequency obtained by sc2 and t7c is incorrect.

Solution:
Fixed

Verify:
sc2_ah212

Change-Id: Ibb1b7435a2dbfa8cb007b34b574fef94dda685cc
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-04-18 19:00:18 +08:00
wenlong.zhang 456003ca6a 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-18 19:00:18 +08:00
dian.shao 536ae96731 usb: s7d hs handshake err [1/1]
PD#SWPL-163063

Problem:
s7d usb hs handshake err.

Solution:
modify squelch value to 0xe.

Verify:
s7d.

Change-Id: I0428739c949f89d3c72ddb5137ec2f1e76097b94
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-04-18 19:00:18 +08:00
Sunny Luo 9e941f81cf spi: s7d spicc-v2 bring-up [1/1]
PD#SWPL-163054

Problem:
s7d spicc-v2 bring-up

Solution:
dts configure

Verify:
s7d bm201

Change-Id: Idf32758bc7d9680cbabeaa96a23b8856b2e98410
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2024-04-18 19:00:18 +08:00
hai.cao ed1eb37079 video: hdmi hot plug after power on video out size error [1/1]
PD#SWPL-164752

Problem:
out size error after power on

Solution:
get current vinfo before update blend

Verify:
s7d

Change-Id: Id5b83d0c5eed0e19c4d06efc53711b6a7e79d562
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-04-18 19:00:18 +08:00
Yongjie Zhu b4aff3771e gpu: add s7d gpu secure [1/4]
PD#SWPL-163131

Problem:
s7d g310 secure verification

Solution:
add dmaheap-secure

Verify:
s7d

Change-Id: I0b487c9e42433b94d8a8c95b9104b366be5fbe2b
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2024-04-18 19:00:18 +08:00
hai.cao 53e4dd9feb video: change lut default val [1/1]
PD#SWPL-164833

Problem:
change lut default val

Solution:
add support

Verify:
s7d

Change-Id: Ic3c44e6e12fd43af4d09b897a17a912c8c8a52c2
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-04-18 19:00:18 +08:00
Doosan Baek f532f70c3b kl/kt: s7d kl/kt bring-up [1/1]
PD#SWPL-164313

Problem:
s7d kl/kt bring-up

Solution:
s7d kl/kt dts bring-up

Verify:
s7d

Change-Id: Idb43b4fff1abaf717ed78fd5ea12d9a139850f47
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2024-04-18 19:00:18 +08:00