Commit Graph

6596 Commits

Author SHA1 Message Date
Xingxing Wang ee06e644d0 thermal: coverity scan issue on kernel5.15 [1/1]
PD#TV-168594

Problem:
thermal coverity issue

Solution:
resolve thermal coverity issues
sync from 5.15: https://scgit.amlogic.com/#/c/561624/

Verify:
kernel5.15 trunk

Change-Id: I3592137af7e6bacc30d8c947b5a4c2b98c3f67c9
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2025-09-01 02:03:51 -07:00
Xingxing Wang fdda91766e cpufreq: cpufreq driver coverity issue [1/1]
PD#TV-168565

Problem:
[TCL][BR30AB][T950D5][Android U][Coverity] /common/common14-5.15/common/
common_drivers/drivers/cpufreq

Solution:
check return value of of_property_read_u32_index
sync from:https://scgit.amlogic.com/#/c/561020/

Verify:
kernel5.15

Change-Id: I3ff5d15cc42086c459a3242d6ed95b1f6c4ce7e1
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2025-09-01 02:03:46 -07:00
yuhua.lin 8eec00e1f1 gdc: modify fw_size_alloc [1/1]
PD#SWPL-221817

Problem:
system crash when dewarp scaling ratio is large

Solution:
modify fw_size_alloc

Verify:
t7c

Change-Id: I89a1f5a414b0e2a7265eb711b6ce6f0355d6ba7d
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2025-09-01 00:23:40 -07:00
zijie.hong 338146a48c vdin: t6x/t6d/t6w nv21 set uv swap [1/1]
PD#SWPL-229103

Problem:
t6x/t6d/t6w intended to output the NV21 format,
but actually output the NV12 format.

Solution:
set reg uv swap

Verify:
t6x/t6d/t6w

Change-Id: I23f2dae39a3cd7309f0ff867b8601173c41b6201
Signed-off-by: zijie.hong <zijie.hong@amlogic.com>
2025-09-01 00:23:34 -07:00
qinglin.li dcacedfe95 ddr_bandwidth: bus width auto recognition [1/1]
PD#SWPL-228573

Problem:
bus width auto recognition

Solution:
bus width auto recognition

Verify:
t6d t6x

Change-Id: I5f9fc3684839129882e0ff2dc6c6c0e5fbfbe95f
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-09-01 00:23:19 -07:00
kun.liu 116ae98954 decoder: CB1 T6d configured scatter cache according to 2k spec [1/1]
PD#SWPL-188370

Problem:
T6d configured scatter cache according to 2k specifications

Solution:
T6d configured scatter cache according to 2k specifications

Verify:
T6D

Change-Id: I84ab3d41a8994e52d374d3342a295b40129f4762
Signed-off-by: kun.liu <kun.liu@amlogic.com>
(cherry picked from commit c2a1ed955d)
2025-09-01 00:23:00 -07:00
yuna.liu cfaacf3c32 media_modules: CF2 CC support 64bit pts [1/1]
PD#SWPL-224528

Problem:
The upper layer requires 64bit pts.

Solution:
When reporting on cc, add vpts_64 to cover 33bit standard.

Verify:
T6D

Change-Id: I4cc64e39b641253cb790901b565e1e920cc91b56
Signed-off-by: yuna.liu <yuna.liu@amlogic.com>
2025-08-31 21:15:31 -07:00
he.he 49568d0d14 usb: add amlogic_usb_debug to control printing [1/1]
PD#SWPL-227251

Problem:
disable printing:
xhci-hcd-meson xhci-hcd-meson.1.auto: start stop ep

Solution:
add amlogic_usb_debug to control printing

Verify:
all

Change-Id: I8aa925a5ae6d5c0a6e83db671e9edb503e43a1dd
Signed-off-by: he.he <he.he@amlogic.com>
2025-08-31 21:15:19 -07:00
Wanwei Jiang cb42ad9de2 ddrtool: kernel6.12 t6w bringup [1/1]
PD#SWPL-228464

Problem:
kernel6.12 t6w bringup

Solution:
kernel6.12 t6w bringup

Verify:
t6w

Change-Id: Ia59d67c6b8022775c66aef33bd35b3c12d8c9422
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2025-08-31 20:31:37 -07:00
chuangcheng.peng c12ea53c8e dvbci: rename dvb-ringbuffer interface for builtin [1/1]
PD#SWPL-229227

Problem:
duplicate symbol when builtin

Solution:
rename dvbci dvb-ringbuffer interface

Verify:
verified at 5.15

Change-Id: I5efe260f5465cbe53954f39309e5612fb970f8b8
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-08-31 19:45:58 -07:00
Doosan Baek 023ea3f70b kt: modify s1a key slot range [1/1]
PD#SWPL-229822

Problem:
s1a key slot range 0~64
range need change to 16

Solution:
range changed to 0~16

Verify:
s1a build

Change-Id: I745845441a50b74aa95fbad8219dc5ce63eb350a
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2025-08-31 19:45:22 -07:00
Jiebing Chen 96793f87d9 Audio: add the hp gpio mute kcontrol function [2/2]
PD#SWPL-228558

Problem:
need to control the hp mute gpio

Solution:
add the hp gpio mute function

Verify:
bs311

Change-Id: Iaefded66d511d379a458ff4b2cf17b89ccb3cd14
Signed-off-by: Jiebing Chen <jiebing.chen@amlogic.com>
2025-08-31 19:44:57 -07:00
zijie.hong b8b7fdd15d vdin: s7 & s7d vdin1 hist panic [1/1]
PD#SWPL-228103

Problem:
s7 & s7d no vdin0 so devp is null

Solution:
modified the devp param

Verify:
s7/s7d

Change-Id: I160649906839412a5bae6fc1a599173b8d80e89e
Signed-off-by: zijie.hong <zijie.hong@amlogic.com>
2025-08-31 19:44:50 -07:00
Liming Xue 1072f78722 dvfs: t6w kernel6.12 bringup [1/1]
PD#SWPL-228664

Problem:
dvfs t6w kernel6.12 bringup

Solution:
dvfs: t6w kernel6.12 bringup

Verify:
t6w

Change-Id: I41868898b46d093f68b510989cba43455eea0bd1
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2025-08-31 19:44:38 -07:00
jinbing.zhu 22e28dcff2 amvecm: sync kernel 5.15 to 6.12 with pq [1/1]
PD#SWPL-226504

Problem:
sync kernel 5.15 to 6.12 with pq

Solution:
sync kernel 5.15 to 6.12 with pq

Verify:
t5m

Change-Id: I2efecf27542eee4378ff0b7a8e9c053715df25fc
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2025-08-31 19:44:08 -07:00
jian zhou d482ebaad1 audio: fix vad update buffer error [1/1]
PD#SWPL-229494
PD#TV-175146

Problem:
vad update buffer error.
root cause: vad get wrong toddr. record modules register toddr in open
callback, before prepare callback is called, toddr source is last module
setting, as toddr select src in prepare function. So it may use wrong
src, after open and before prepare.

Solution:
1.clear toddr src when unregister toddr.
2.toddr/frddr init as invalid value.

Verify:
t5m

Change-Id: I0b550142deca4ff0d681d9980fe8e02842616d2f
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2025-08-29 01:51:32 -07:00
xiaotao.wei 21bf08a87e gpu: fix the gpu clk error config for sm1/g12b [1/1]
PD#SWPL-226569

Problem:
kernel panic in suspend_resume test

Solution:
1.revert the changes of gpu clk in https://scgit.amlogic.com/#/c/563166/
2.limit the max clk to 800M for sm1
3.remove the 846M config for g12b

Verify:
sm1/g12b

Change-Id: Id0ef676ebc10e0bb65753c7ee4ba07dae5d1c931
Signed-off-by: xiaotao.wei <xiaotao.wei@amlogic.com>
2025-08-29 01:11:34 -07:00
yihui wu 36a0946864 dts: t6w: fix pc tool burn provision keys fail [1/1]
PD#SWPL-223923

Problem:
t6w burn provision key with tool failed

Solution:
add provision key support in dts

Verify:
t963d5

Change-Id: Id850fea98524c44e033e5d6b96f14313dbab2270
Signed-off-by: yihui wu <yihui.wu@amlogic.com>
(cherry picked from commit 56b68382f32614b446ae64518bee991ac82547c0)
2025-08-29 01:07:21 -07:00
yihui wu a5f06d621e provision: fix cannot burn key with usb tool [1/1]
PD#SWPL-186436

Problem:
burn provision key with usb burn tool failed

Solution:
add dts node /provisionkey

Verify:
br301

Change-Id: I3bd862373db4099d4e5a157c72b7e99201de5410
Signed-off-by: yihui wu <yihui.wu@amlogic.com>
(cherry picked from commit c4e3aa2a1a)
2025-08-29 01:07:14 -07:00
wenxiang.qian ac2292ab17 ott defconfig: set DisplayPort_TX=n [1/1]
PD#SWPL-193902

Problem:
Disable unnecessary macros

Solution:
Disable unnecessary macros

Verify:
local

Change-Id: I92c40a75c3a1f99cab30b342e18ddcd654e3a2f4
Signed-off-by: wenxiang.qian <wenxiang.qian@amlogic.com>
2025-08-29 01:07:07 -07:00
yao zhang1 854a17bda4 dts: sync dts from t6w 1.5g to 1g. [1/1]
PD#SWPL-229277

Problem:
sync dts from t6w 1.5g to 1g.

Solution:
1,sync dts from t6w 1.5g to 1g.
2,add new t6w_t963d5_bs319_1g.dts

Verify:
t6w

Change-Id: Iae9516ad7d0b7226b3e8f52307226fbb682e8cd1
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2025-08-29 01:06:59 -07:00
Jianxiong Pan 2f57b1aaf2 mm: limit bdev page fall into cma pool. [1/1]
PD#TV-172266

Problem:
cma allocation too long and can not be migrated by bdev.

Solution:
limit bdev alloc page from cma pool.

Verify:
txhd2.

Change-Id: Id653187ed69cd08a74df9ca882978cccc940d396
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-08-29 01:06:51 -07:00
jinbing.zhu 3a4289c316 amvecm: fix coverity error [1/1]
PD#SWPL-227540

Problem:
fix coverity error

Solution:
fix coverity error

Verify:
s7d

Change-Id: I2099394a2c398cb78516e1e1359af1ebef26c465
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2025-08-29 01:06:40 -07:00
congyang.huang 2f786ae519 drm: sync code from kernel5.15 to kernel6.12 [1/1]
PD#SWPL-226594

Problem:
need sync cls

Solution:
sync cls:
add sysfs to support switch dummyp_timing_flip;
switch vertical coef to COEFS_BILINEAR to fix red line;
fix s6 dual display vout_mux error;
vinfo sync_duration_num div 2 when the fps of wrbak is 1/2 display;
enable 1/2 projector fps during the boot;

Verify:
ross

Test:
DRM-OSD-55

Change-Id: Ibbd9e3f997f45477079de68e77bd11da12650393
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2025-08-29 01:06:34 -07:00
congyang.huang d9579b0959 drm: revert drm recovery workaround patch [1/1]
PD#SWPL-224570

Problem:
UI displays abnormally  recovery

Solution:
since osd urgent and vpp urgent are already supported on the trunk, and
the OSD input capability can handle situations where it exceeds the
hardware capacity during recovery without issues, the previously
implemented workaround patch for recovery can now be reverted.

Verify:
t7c t5m s7d

Test:
DRM-OSD-44

Change-Id: I0cc3364bcfb9899868f8a3689cdc6ff922cc1e62
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2025-08-29 01:06:28 -07:00
lei.chen 1e4ce1a26c bt: delete hostwake-gpios config [1/1]
PD#SWPL-225501

Problem:
define and use it in the bt driver

Solution:
delete hostwake-gpios config

Verify:
calla

Change-Id: I3d2bf8cd244ee6dedea45c5bafa0e17455a89d94
Signed-off-by: lei.chen <lei.chen@amlogic.com>
2025-08-28 18:56:43 -07:00
Qianggui Song 125e497863 gpio: t6w: support gpio irq function [1/1]
PD#SWPL-229420

Problem:
t6w gpio irq not works

Solution:
add t6w gpio irq data

Verify:
t6w_bs311

Change-Id: Iafc00aa1c5b08b44a8e7b5b9c34443c77ab3ce9a
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2025-08-27 23:04:29 -07:00
Gaowei Zhao 1e0c1d207b hdmirx: support HDMI pre-loading [1/1]
PD#SWPL-225114

Problem:
It takes long time to open HDMI port.

Solution:
Pre-load HDMI port.

Verify:
T5M

Change-Id: I18423ff8b9cbc6ed2582b11d30725c6d5ffa9832
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2025-08-27 23:04:23 -07:00
Zhongfu Luo 884e4716c4 efuse: T6W: efuse driver bringup [1/1]
PD#SWPL-207464

Problem:
T6W: efuse driver bringup

Solution:
enable efuse node in dtsi
update efuse cali subitem

Verify:
T6W BS319

Change-Id: I512c841e24bf08530b2480ad0714141c31d06499
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
2025-08-27 23:04:15 -07:00
Gaowei Zhao 77b9504c5e hdmirx: Fixed HDMI channel color error issue [1/1]
PD#SWPL-227450

Problem:
HDMI channel colour abnormality

Solution:
Configure video and audio after the signal is ready

Verify:
T5M

Change-Id: Idae3585c8000d4a5d5357e8dd432f6c8e3864a84
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2025-08-27 23:02:55 -07:00
Yao Jie d79f6d6d56 Makefile: remove duplicate configuration [1/1]
PD#SWPL-228224

Problem:
There are duplicate configurations in k6.12
common_drivers makefile

Solution:
Remove the duplicate configurations in k6.12
common_drivers makefile

Verify:
Build OK

Change-Id: Ic46b980697c137ef6bdd03234501741f0d9058b6
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2025-08-27 23:02:46 -07:00
Gaowei Zhao d57064b1b5 hdmirx: Fixed reboot issue when switching HDMI during load testing [1/1]
PD#SWPL-226138

Problem:
Pressure testing HDMI switching causes restart.

Solution:
Make sure port is valid.

Verify:
T3X

Change-Id: I99709dcf6105065f3d8cbea37df7436b7e1d772f
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2025-08-27 23:02:39 -07:00
chenyang.liu f6e39c784b lcd: add phy clk range match rules [2/2]
PD#SWPL-224205

Problem:
add phy clk range match rules

Solution:
add phy clk range match rules

Verify:
bs311
ay301

Change-Id: Ib8b46eb25e6adcb30a7f38c1c354f11bd27da106
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2025-08-27 22:24:48 -07:00
Jiucheng Xu adc24e76c5 config: enable BOW device mapper for ext4 checkpoint [1/1]
PD#SWPL-229380

Problem:
32bit kernel has no BOW config.

Solution:
Enable it in defconfig.

Verify:
T6W

Change-Id: Ia4c7905de56e805dfb74ed72de3dd5010e0048c5
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
2025-08-27 19:10:37 -07:00
Zhongfu Luo 1d7ef21d8e efuse: fix mrk checknum function [1/1]
PD#SWPL-201991

Problem:
need to fix mrk checknum function

Solution:
distinguish return value for short and long checknum

Verify:
S6

Change-Id: I5825dd5eef37a0f57058f1367b0a51d3a17a3fec
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
2025-08-27 19:10:29 -07:00
Haotian Guo 4121181953 tvafe: fix av ratio error [1/1]
PD#SWPL-228094

Problem:
av display ratio error

Solution:
Lost 40 frames before WSS stabilized

Verify:
t6d

Change-Id: I11e3d6cef40bf8e609c32bca5bae548b61c71e08
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
(cherry picked from commit 639a5cc1d00d84a01ba2ad027642317cc4454024)
2025-08-27 19:10:07 -07:00
lele xiang 014b6f354a codec_mm: CF1 Update force_cache config logic. [1/1]
PD#SWPL-213664

Problem:
During rapid multi-channel video switching, the scatter force cache
keeps increasing

Solution:
Determine the force cache size based on the current free scatter memory.

Verify:
ah212

Change-Id: I528dc637b8a8a64a38e57450f4926a7155169c14
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2025-08-27 19:09:41 -07:00
xiang.wu1 b737e987d9 hdmitx: fix hpll compliance issue for specific AVR [2/2]
PD#SWPL-226657

Problem:
4K50/60HZ 6g display unnormal on DENON AVR-X2600H

Solution:
add hpll compliance table for specific denon avr

Verify:
AH212

Test:
DRM-TX-79,DRM-TX-80,DRM-TX-81,DRM-TX-82

Change-Id: Iad4813c0c9e2deff78c294a00bbdfddd5473d350
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2025-08-27 19:08:09 -07:00
benlong.zhou a4f276c647 c3: efuse_obj read/write efuse fail [1/1]
PD#SWPL-206706

Problem:
efuse_obj read/write efuse fail

Solution:
1. configurate efuse driver dts
2. distinguish "command not support" or "SOC not support"

Verify:
c3_aw409 emmc

Change-Id: I6a3ba10b0a8e8aa797e21fdb1e48757acdfff51e
Signed-off-by: benlong.zhou <benlong.zhou@amlogic.com>
2025-08-27 02:28:16 -07:00
qinglin.li 9b384d63d0 ddr_tool: build fail if ddr_bandwidth not define [1/1]
PD#SWPL-182359

Problem:
build fail if ddr_bandwidth not define

Solution:
use static inline define function

Verify:
local

Change-Id: Iab9bb597a0c8238224c70f66cafb3c549044a3d2
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-08-27 02:27:58 -07:00
qinglin.li d1bc1e8cce freertos: C3 fix rtos lose frame [1/2]
PD#SWPL-175077

Problem:
C3 doorbell lose frame

Solution:
Optimize ISP and encoder processes

Verify:
c3

Change-Id: Ief888fb4d5e9a7e93af94487dc92eeadbe22c7e1
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-08-27 02:27:47 -07:00
qinglin.li 910ebcf303 freertos: fix kasan use-after-free in aml_rtos_probe [1/1]
PD#SWPL-160884

Problem:
use free memory after free

Solution:
finish all control before free

Verify:
t7c

Change-Id: I3ad2fd910e60e2ff8d0c8f12d3f349f6346302bb
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-08-27 02:27:37 -07:00
jian zhou 915ec9d585 audio: fix spdifout/arc pop noise [1/1]
PD#SWPL-225627
PD#TV-121383

Problem:
there is spdifout/arc pop noise when switch from auto to pcm or
pcm to auto..

Solution:
mute spdifout when spdif open or same source prepare.

Verify:
txhd2

Change-Id: Ie3485fb66a1d233e550c2b794bd3c24af8bcf74f
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2025-08-27 02:26:40 -07:00
yaoyu.xu 611e6a579a hdmirx: add 1080i 420 fmt [1/1]
PD#SWPL-226430

Problem:
add 1080i 420 fmt

Solution:
add 1080i 420 fmt

Verify:
t6w

Change-Id: I2063fc98da8ac14b6534dc89c0939121b774427b
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2025-08-27 02:25:30 -07:00
yaoyu.xu a0df831d34 hdmirx: clean unnecessary kernel log [1/1]
PD#SWPL-221376

Problem:
clean unnecessary kernel log.

Solution:
clean unnecessary kernel log.

Verify:
soddy

Change-Id: Ic51fb9e340d7008355e59efb276a7add49f356bf
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2025-08-27 02:25:24 -07:00
Jiebing Chen c596d3ed79 Audio: fix headphone pop noise when suspend and power off [1/1]
PD#SWPL-228553

Problem:
During play local signals and reboot dut,headphone has pop noise

Solution:
need mute gpio before headphone power off

Verify:
bs311

Change-Id: If236663827488598a2c90e5be3224962714b8cf9
Signed-off-by: Jiebing Chen <jiebing.chen@amlogic.com>
2025-08-27 02:24:56 -07:00
zhicheng.huang b10d82a196 dtv_demod: implement module debug parameter(V4.0.6) [1/1]
PD#SWPL-187634

Problem:
remove Demod module_param

Solution:
1.implement module debug parameter in kernel6.12
2.AMLDTVDEMOD_VER V4.0.6

Verify:
t5m

Change-Id: I208faca64ab152bd3fc41c42ce695d6c883df6ac
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2025-08-27 02:24:15 -07:00
shufei.zhao 299d10745f unifykey: add total_size [1/2]
PD#SWPL-200461

Problem:
cannot read full key size

Solution:
Add one node to read the full key size

Verify:
tc7

Change-Id: Iefd6b939355b00589186b4d6a1b7929f321ad886
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
(cherry picked from commit 6426e170397ca821b2efe22fb81f001a73623b60)
2025-08-27 02:22:16 -07:00
Gaowei Zhao cf8deebd63 hdmirx: auto override dc for YUV422 [1/1]
PD#SWPL-224407

Problem:
color depth error after YUV422

Solution:
auto override dc for YUV422

Verify:
T6W/T6D

Change-Id: Ied8117910226ae98833e0234a6519b45b1307790
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2025-08-27 02:22:08 -07:00
hang.cheng 421a8b3d85 cvbs: add new macrovision test mode [1/1]
PD#SWPL-182904

Problem:
1.need to add new macrovision test mode
2.registers for macrovision are not set completely

Solution:
1.add new macrovision for test modes
macorvision off: echo mvsn 0 > /sys/class/cvbs/wss
AGC Only: echo mvsn 1 > /sys/class/cvbs/wss
PAL test P01: echo mvsn 2 > /sys/class/cvbs/wss
PAL test P02: echo mvsn 3 > /sys/class/cvbs/wss
2.add full registers setting for macrovision

Verify:
s1a

Test:
DRM-CVBS-3

Change-Id: Iceee2dd391ce821cbabe29312dfaae2268d88f77
Signed-off-by: hang.cheng <hang.cheng@amlogic.com>
2025-08-26 23:14:11 -07:00