Commit Graph

2035 Commits

Author SHA1 Message Date
jialong.jiang 51a5d2229b hdr: report box output conversion cap. [1/1]
PD#SWPL-132034

Problem:
report s4 hdr output conversion cap.

Solution:
report s4 hdr output conversion cap.

Verify:
s4.

Change-Id: Icdb7dc4281346c47dfc25a61ca295f416bacaaa8
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-07-27 20:10:23 -07:00
mingxiu.sun 7b52497eea vdin1: ScreenCap abnormal [1/1]
PD#SWPL-132841

Problem:
The first frame of vdin1 was not write finished,
causing a screenshot exception

Solution:
vdin1 drop the first frame

Verify:
txhd2

Change-Id: Ibf24d007f14d07bf0713527bec0df75897031c5f
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2023-07-27 08:23:47 -07:00
zhenteng.tian fbcbe47e4c vpp: fix alpha use last frame info [1/1]
PD#SWPL-132135

Problem:
small window will black when big window change with small window

Solution:
alpha use cur frame info for kernel 5.15

Verify:
S5

Change-Id: I7d5a1f29a88586e4f23f4dbe5f95a1bc664e5b55
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2023-07-27 08:13:21 -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
yiting.deng d80ccb8cc4 clk: fix s4 k5.15 hifi pll to 1179.648M [1/1]
PD#SWPL-133578

Problem:
fix hifi_pll to 1179.648M

Solution:
fix hifi_pll to 1179.648M and no set_rate ops

Verify:
s4_ap222

Change-Id: Ia485a8e7e79bcc184746f51f01bc6e40bb4888b6
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2023-07-27 02:10:16 -07:00
Jie Dai eac0305658 lcd: wrong combo dphy access interface in mlvds [1/1]
PD#SWPL-133441

Problem:
mlvds used wrong interface to access combo dphy

Solution:
fix interface

Verify:
be311

Change-Id: Id9055ed046b8e1ba702fbf61145425423f4905fe
Signed-off-by: Jie Dai <jie.dai@amlogic.com>
2023-07-26 22:12:54 -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
Jianxiong Pan 2c979ec11d zapper: enabled reg access function. [1/1]
PD#SWPL-126879

Problem:
macro error.

Solution:
use the reg access config instead of watchpoint.

Verify:
t215.

Change-Id: Ia030a2d813ec9a7c28eb814ad5978100758654df
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-07-26 05:51:32 -07:00
Wentao.Sun 647993f2aa TEE: logger: fix logger always used 256k memory in reserved shm [1/2]
PD#RSP-5413

Problem:
1. when logger is disabled, 256k memory is reserved for logger
2. when dyn shm is enabled, reserved shm may be not exist
3. the memory size for logger can not be config

Solution:
refactor the logger driver.
1.add smc call to get log buffer address and size from TEE
2.config the logger memory size in TEE
3.compatible logger v1/v2

Verify:
AndroidT + sc2_ah212

Change-Id: I922536ac7dabd2ba74d7dae316aa2173e9b8cd20
Signed-off-by: Wentao.Sun <wentao.sun@amlogic.com>
2023-07-26 05:51:15 -07:00
chuangcheng peng 49a6cc1230 demux: add dump filter ringbuffer [1/1]
PD#SWPL-63647

Problem:
add dump filter ringbuffer

Solution:
add dump filter ringbuffer

Verify:
verified at ohm

Change-Id: Iffa6da5dc155dc59832fc84d66a86fad2eb47d3a
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-07-26 02:09:49 -07:00
Evoke Zhang 81a2ec4bfb lcd: tcon: add txhd2 support for tcon_fw [1/1]
PD#SWPL-129112

Problem:
need support tcon_fw for txhd2

Solution:
add txhd2 tcon_fw support

Verify:
be311

Change-Id: Ib2fa7755c745c2297c9c495c0895d8410f68ff72
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2023-07-26 02:09:45 -07:00
Jianxiong Pan 80695386da user fault: fix arm64_show_signal kprobe fail. [1/1]
PD#SWPL-112188

Problem:
compiler optimization, resulting in unable to kprobe

Solution:
not kprobe the arm64_show_signal func.

Verify:
t215.

Change-Id: I2aac9ff78db34739050d5acba53bb5b7287d5ff0
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-07-26 02:09:41 -07:00
qiang.liu 4b3f9c3bf0 vdin: notify fps change event when not game mode [1/1]
PD#SWPL-132897

Problem:
notify fps change event when vrr cause output rate abnormal

Solution:
notify fps change event when not game mode

Verify:
T5m

Change-Id: I59008c33e8d7c5407049223ec7ab438e70d595ec
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2023-07-26 00:12:06 -07:00
qinglin.li 39ac61ea96 dmc_monitor: dmc function optimization [1/1]
PD#SWPL-132709

Problem:
dmc function optimization

Solution:
1. add trace print
2. add default device config
3. add suspend debug
4. add create bootcmd
5. add serror debug
6. add dev blacklist

Verify:
local

Change-Id: I785aec22216ab605b3912cad4f4263ece9820daf
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-07-26 00:12:02 -07:00
shipeng.sun abffa8e6d1 dmabuf_manage: CB1 register channel info manage secmem resource [2/2]
PD#SWPL-133382

Problem:
register channel info manage secmem resource avoid codec2 service
or client crash secmem session doesn't release.

Solution:
register channel info manage secmem resource avoid codec2 service
or client crash secmem session doesn't release.

Verify:
S905X4

Change-Id: Iebe5d3cb4a404e6ce42f1274723e24cf1a829a32
Signed-off-by: shipeng.sun <shipeng.sun@amlogic.com>
2023-07-26 00:11:51 -07:00
yujun.zhang d3327b6147 drm: SM1 & G12B drm hdmitx & mipi display [1/1]
PD#SWPL-126349

Problem:
No drm support for 2nd MIPI display

Solution:
Config DTS and some codes

Verify:
SM1 & G12B

Test:
DRM-OSD-78

Change-Id: I735857ddf2dec67f45617a5dec970efa75032d5f
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2023-07-26 00:11:40 -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
yaoyu.xu c5c08e0f60 hdmirx: reduce power when hdmirx suspend [1/1]
PD#SWPL-132788

Problem:
hdmirx need reduce power when suspend

Solution:
close 2m 5m cfg clk.

Verify:
txhd2.

Change-Id: Ifc58d946f4da9f44e84ee220ed0982b1b6976f07
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2023-07-25 05:57:37 -07:00
Wenjie Qiao 295a10de72 hdmitx: hdcptx22 allocate failure when boot [1/1]
PD#SWPL-130457

Problem:
hdcptx22 allocate failure when boot

Solution:
use the coherent and resolve the panic issue

Verify:
s5/sc2

Change-Id: I60044ce586630ba0319cf77b7de203c129a35d2f
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-07-25 05:57:09 -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
dongfei.li 7e96407610 frc: frc get new size from vpp [1/1]
PD#SWPL-132703

Problem:
vpp 2 slice is diff than 1 slice

Solution:
frc get new size from vpp

Verify:
T3X

Change-Id: I13245a5e547a5642fc7020677d4c39ab465f0783
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-07-25 03:55:11 -07:00
Cheng Wang 3332c628df frc: frc seamless optimize [1/2]
PD#SWPL-115879

Problem:
frc seamless mode optimize

Solution:
seamless mode optimize

Verify:
T5M

Change-Id: Id4ca17056882c2ab159b78d48d9d5634329772a9
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2023-07-25 02:03:07 -07:00
yao liu 1aa1d68756 amdv: modify 5344 top1 rdmif to match h265 dw 420-10 [1/1]
PD#SWPL-129145

Problem:
top1 hist is not match cmodel

Solution:
modify 5344 top1 rdmif to match h265 dw 420-10

Verify:
t3x

Change-Id: I65a944a8d9aa3647374b85df6288d19aab0a84e3
Signed-off-by: yao liu <yao.liu@amlogic.com>
2023-07-25 00:19:42 -07:00
lele xiang 9e14a48cce codec_mm: CF1 Print index when alloc and release memory [1/1]
PD#SWPL-132333

Problem:
Print codec_mm alloc and release index

Solution:
Print codec_mm alloc and release index.

Verify:
sc2

Change-Id: I8e1d020ada122f12fb8eba3f464be9a933fb20fa
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2023-07-24 22:18:30 -07:00
yao liu 4fcc86f176 amdv: case 5210 fail [1/1]
PD#SWPL-132778

Problem:
upper layer change mode

Solution:
Ignore upper layer setting in IDK mode

Verify:
t3x

Change-Id: Ibbed3a053d50c58053694e9fb9bea018f7fd691b
Signed-off-by: yao liu <yao.liu@amlogic.com>
2023-07-24 22:18:18 -07:00
Chuan Liu d07c53e20b clk: g12a/g12b/sm1: fix vpu modify hifi_pll clock [1/1]
PD#SWPL-131465

Problem:
vpu_sel modify hifi_pll clock

Solution:
1 fix vpu dont change hifi_pll clock
2 set hifi pll init value to 1806335999

Verify:
w400

Change-Id: I70f210cea2beadb56b34155f1a57925b1d5e9a2e
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-07-24 22:18:13 -07:00
Doosan Baek 37f0afd03e KL/KT: Fix mutex coverage problem [1/1]
PD#SWPL-132576

Problem:
There is a conflict of key table/ladder hardware register resources
when accessing the key table/ladder API between different
REE application simultaneously.

Solution:
Modified to protect kt_lock/kl_lock to kt_unlock/kl_unlock with mutex.

Verify:
Pass

Change-Id: Ibe4b6e8009390ddc8d61c000e79f34803423a14a
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2023-07-24 05:08:33 -07:00
Yu Tu e727c8dec3 pci: pcie with ssd suspend and resume cause crash [1/1]
PD#SWPL-132654

Problem:
pcie with ssd suspend and resume cause crash

Solution:
modified suspend and resume process

Verify:
t7c

Change-Id: Iffd7db7038aba4b1f6574e4759436ec19345f246
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-07-24 05:08:30 -07:00
chuangcheng peng 8884f74f65 demux: add es header splice get and debug es data [1/1]
PD#SWPL-130490

Problem:
es splice offset cause av not sync

Solution:
add es header splice get and add debug es data

Verify:
verified at sc2

Change-Id: Ibac121a0ebdf041203bcbbcf7d3a9d23a4b52f54
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2023-07-24 05:08:21 -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
Jianxiong Pan dbd033d9d2 user fault: reduce invalid printing. [1/1]
PD#SWPL-112188

Problem:
too much invalid printing.

Solution:
reduce invalid printing.

Verify:
local.

Change-Id: I9ece325044275b6ba8ae62110db02e8ceb09ded3
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-07-22 20:57:05 -07:00
Feng Chen 26f07efab0 spicc: spi mode polarity error [1/1]
PD#SWPL-128741

Problem:
spi mode3 initial polarity error.

Solution:
change the use rule of spic clk_ao.

Verify:
c3

Change-Id: Ic1113f9fb29f450d1e5bf565869e795356401de9
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2023-07-21 07:01:43 -07:00
yaoyu.xu 79d5a1f833 hdmirx: fix phy/pll clk band [1/1]
PD#SWPL-132822

Problem:
phy/pll clk band is changed.

Solution:
correct phy/pll band.

Verify:
txhd2.

Change-Id: I2137ff105f8a40682b2782cd285260d567ecd8a8
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2023-07-21 05:11:14 -07:00
Pengcheng Chen 536f0b28ab vpp: fix vpu gp1 clk disable/enable issue [1/1]
PD#SWPL-130599

Problem:
add vpu clk 744M/768M support

Solution:
1.remove gp1 clk enable when vpu probe
2.add vpu/gp1 clk disable/enable ctrl logic

Verify:
t3x

Change-Id: I2291e580ec64e53dbbe4db1683bd7ad4e84cc94b
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-07-21 05:11:11 -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
caiyi.xu ffb0a0fd69 dtv_demod: improve the stability of new dvbc driver scanning (v3.4.003) [1/1]
PD#SWPL-122164

Problem:
unstable signal leads demod to lost signal

Solution:
reduce sensitivity of demod state

Verify:
am30a9

Change-Id: I41226dc536a7f99ba1a7693030cd27b6edb10830
Signed-off-by: caiyi.xu <caiyi.xu@amlogic.com>
2023-07-21 05:10:52 -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
yao liu e58b2f63bf amdv: hw5 idk crash in ko [1/1]
PD#SWPL-132351

Problem:
Ctx memory out of bounds

Solution:
allocate extra memory for ctx

Verify:
t3x

Change-Id: Ifdc3527b125c071880f7fc700f664a0560286a34
Signed-off-by: yao liu <yao.liu@amlogic.com>
2023-07-21 01:10:11 -07:00
xiang.wu1 431c57f07c hdmitx: add protect for dc_cap in valid mode [2/2]
PD#SWPL-104927

Problem:
device misjudgment support 420,10bit, when edid support
420,12bit not support 420,10bit

Solution:
add protect

Verify:
ap233

Change-Id: I43abe24b254fd39bc2e318d5946c9a9deaeda6e3
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-07-21 01:10:07 -07:00
Huqiang Qin 965344da11 gpio_irq: txhd2: support for both-edge interrupts [1/1]
PD#SWPL-132759

Problem:
No support for both-edge interrupts.

Solution:
Support for both-edge interrupts.

Verify:
TXHD2/BE319

Change-Id: I037ceb41c3ced634e877b370c324030ff8043fb5
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2023-07-20 15:04:52 -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
jialong.jiang c1e069ae0a amdv: updata dv ability condition. [1/1]
PD#SWPL-130178

Problem:
ui menu probability disappears.

Solution:
updata dv ability condition.

Verify:
sc2.

Change-Id: Id4c7fe2c6fb31d7990f23a311318f4a938e6b9ff
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-07-20 01:16:08 -07:00
qiang.liu a84f8ca1d1 vdin: optimize get video format process [1/1]
PD#SWPL-102632

Problem:
get video format too late

Solution:
optimize get video format process

Verify:
t5w

Change-Id: I722baf39ec63579803d710b33a3eaf44295c6c6a
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2023-07-19 21:23:21 -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
Hangyu Li bebc2f465a dts: config secure_vdec_reserved dts node [1/1]
PD#SWPL-132425

Problem:
1.secure_vdec_reserved memory should be reserved as no-map.
2.in some devices secure_vdec_reserved may exceed 4G.
3.tee_register_mem() in codec_mm.c should not force parameter as u32 type.

Solution:
1.add no-map attribute for secure_vdec_reserved dts node.
2.limit secure_vdec_reserved reserved in 0x0-0xe0000000 for some devices.
3.remove u32 type casting when call tee_register_mem().

Verify:
Android R + kernel5.15

Change-Id: Ife8cac2c4a4821a310d998766e69677c6eb2984e
Signed-off-by: Hangyu Li <hangyu.li@amlogic.com>
2023-07-19 21:22:55 -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
dongfei.li 1f28853322 frc: frc config frc clock setting [1/1]
PD#SWPL-123974

Problem:
config frc clock setting

Solution:
config frc clock setting

Verify:
T3X

Change-Id: Id8f38f3eca6224e2f1b830ed4aff11d533548ab8
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-07-19 05:04:01 -07:00
Gaowei Zhao 70852aa5ca hdmirx: T3X 10G4L debug [1/1]
PD#SWPL-126931

Problem:
overlap issue for 10G4L

Solution:
fix tmds21clk error

Verify:
T3X

Change-Id: I2e7ba703ef9fdda8e2f8058edb6d8159c859f316
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2023-07-19 01:26:26 -07:00