Commit Graph

5301 Commits

Author SHA1 Message Date
ruofei.zhao b8a855ff79 hdmitx: add hdmitx diagnostic information [1/1]
PD#SWPL-174866

Problem:
hdmitx needs to report diagnostic information

Solution:
add hdmitx diagnostic information

Verify:
SC2
S5

Test:
DRM-TX-127

Change-Id: Ieefeb0e7c0286229c857a762b967c2ba2d8573e9
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-11-07 00:40:40 -08:00
zhewen.luo a77f12abaf resman: support reporting error info. [1/1]
PD#SWPL-149860

Problem:
1.ErrorMonit requires additional debug
levels to be set to the driver.
2.ErrorMonit needs to receive the error
information from the driver in real time.

Solution:
resman driver needs to add nodes so that
ErrorMonit can get the error information
in real time.

Verify:
S905Y4

Change-Id: I8feaacc2e03b201a568b8abbdf77ba4c5e2e0859
Signed-off-by: zhewen.luo <zhewen.luo@amlogic.com>
2024-11-07 00:40:32 -08:00
yuhua.lin b6200295f0 vpu: fix coverity issue [1/1]
PD#SWPL-190843

Problem:
coverity issue

Solution:
fix it

Verify:
t5m

Change-Id: I1b47e312b83a7b651c29fb9736f79244649eaffc
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-11-06 22:10:10 -08:00
chenyang.liu cdc197db10 lcd: fix coverity defects from linux-5.15 [1/1]
PD#SWPL-190841

Problem:
lcd driver in linux-5.15 has coverity defects.

Solution:
fix defects

Verify:
none

Change-Id: Iabb3077719f4963c49d1cd2dfce48af225259856
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2024-11-06 17:52:25 -08:00
Zelong Dong afb4c6f668 ir: optimize wakeup event [1/1]
PD#SWPL-190167

Problem:
ir wakeup event would block suspend about 2s

Solution:
optimize wakeup event

Verify:
t6d

Change-Id: Ifebd3ce022f529eaff0259c7e24caf4fd6125ae7
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-11-06 17:45:39 -08:00
zhan.wang b05eff5711 amvecm: add iotcl to get chip cls [1/1]
PD#SWPL-191789

Problem:
add iotcl to get chip cls

Solution:
add iotcl to get chip cls

Verify:
verify on t5m

Change-Id: I2f578e0b0296da5c9a826963b9524572368164b9
Signed-off-by: zhan.wang <zhan.wang@amlogic.com>
2024-11-06 17:39:38 -08:00
Zhu Lv 494ed9917c bt: bt open fail [1/1]
PD#SWPL-191396

Problem:
bt open fail

Solution:
add reset hold time

Verify:
s5

Change-Id: Idb3006650f139f6d8e3b888702bd89a775754c57
Signed-off-by: Zhu Lv <zhu.lv@amlogic.com>
2024-11-06 17:38:32 -08:00
congyang.huang 5b6ccb5f2c drm: use mode hskew to indicate whether it's qms mode or vic mode [1/1]
PD#SWPL-190877

Problem:
need add flag to indicate whether it's qms mode or vic mode

Solution:
use mode hskew to indicate

Verify:
s7 qms

Test:
DRM-OSD-45

Change-Id: Ib675650b02d687438aa6a9eae3d846e6fac46c10
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-11-06 17:38:08 -08:00
Evoke Zhang be29aa7fd7 lcd: update chip init for venc and phy [1/1]
PD#SWPL-191449

Problem:
venc and phy init need check chip type

Solution:
update chip init for venc and phy

Verify:
ay301

Change-Id: Iefe657b541e9d91dbcc365e55576adb983385cfd
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-11-06 06:18:41 -08:00
zijie.hong 80e72c250f vin: k5.15-u coverity error cleanup [1/1]
PD#SWPL-190840

Problem:
coverity error

Solution:
modified

Verify:
k5.15-u

Change-Id: I9c839edeea788d4b22d399ba92aec3c717bf3b1e
Signed-off-by: zijie.hong <zijie.hong@amlogic.com>
2024-11-06 06:18:30 -08:00
lukang.jia 91ff6ba707 frc: frc coverity [1/1]
PD#SWPL-190800

Problem:
frc coverity

Solution:
N/A

Verify:
T3X

Change-Id: I62bad3ecac2e3cbebb87ed0b18eaf6aeeed6edbc
Signed-off-by: lukang.jia <lukang.jia@amlogic.com>
2024-11-06 00:33:57 -08:00
qiyao.zhou b07a4b7fd0 di_process: di not work for interlace stream [1/1]
PD#SWPL-191644

Problem:
bypass flag been set in dummy output,but not
reset for later frame

Solution:
Modify bypass flag set flow in DI process.

Verify:
s7

Change-Id: If26abb82e372df05914401727d273584a61f3434
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-11-05 22:39:02 -08:00
qinglin.li 3de6c801eb ddr_tool: coverity fix [1/1]
PD#SWPL-190779

Problem:
coverity fix

Solution:
coverity fix

Verify:
local

Change-Id: I63c28cec53c2395760eb0a12c53891cdc6110886
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-11-05 22:38:55 -08:00
Jian Hu 67bf380128 clk: t6d: fix hangup when clk is builtin [1/1]
PD#SWPL-191355

Problem:
it hangs up when clk is builtin

Solution:
1.axi clock is a system clock, add critical flag for axi clock
2.let clk driver register earlier than the relying on it, this will
save the boot time.

Verify:
t6d

Change-Id: I334e473652fbb2b69c31261261f85262099f5ec1
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2024-11-05 22:35:25 -08:00
yaoyu.xu 55de42db94 hdmirx: close override when 420 [1/1]
PD#SWPL-191162

Problem:
420 abnormal after switching to 422.

Solution:
close override when 420.

Verify:
T3X

Change-Id: I9b2bf3bc99150e3dc6f0a16fa40159aefe0e450f
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-11-05 22:35:04 -08:00
Xingxing Wang 56f2b076d4 thermal: BUG: KASAN: global-out-of-bounds in strncasecmp+0xfc/0x214 [1/1]
PD#SWPL-189590

Problem:
container_of thermal_governor_list head is not thermal_governor structure,
then we can't use gov->name to visit.

Solution:
use sprint_symbol to convert gov->name, and then use the converted symbol
to compare with the target governor name.if match then set the target
governor ,else skip current node.
note:
1.this solution strictly rely on CONFIG_KALLSYMS, if CONFIG_KALLSYMS
is not set for gki20 project, then the solution would fail.
2.remember to configure default governor in config file for non-gki20
project.

Verify:
S5

Change-Id: Ie5b2ddcdb5bcc5c1b461e526fcc4107e0c8d016f
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-11-05 22:34:57 -08:00
yao liu 9d61e8e7bf amdv: display incomplete in dlg+stretch_zoom [1/1]
PD#SWPL-191318

Problem:
In strect_mode+dlg, there is vd1 crop and vskip,
3840x2160=>3840x809(crop 270+270+ vskip).
And netflix dv stream also contain AOI metadata,
AOI combined with VD1's crop information resulted in too many black border.

Solution:
update dv AOI info according to vd1 crop and vskip info.

Verify:
t5m

Change-Id: I5de3c02cb37390f5f5c1b060f1e3cb264eaefee5
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-11-05 22:34:24 -08:00
qiyao.zhou e759eb5b26 videoqueue: add config for 144/165 output [1/1]
PD#SWPL-191186

Problem:
Add config for 144/165 fps output.

Solution:
Add config for 144/165 fps output.

Verify:
t5m

Change-Id: I7145a3b9f397ca1fd48b79bc4807e40980a52df3
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-11-05 21:02:01 -07:00
rong.wang 4a94fb6044 deinterlace: di task loading high [1/1]
PD#SWPL-189702

Problem:
di main task grab di mem task resource;
di mem can't alloc memory

Solution:
modify the task flow

Verify:
S905Y4

Change-Id: Id82cde506fd1c6607b9606f7fa8f6a49cdd2de58
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2024-11-05 20:10:15 -07:00
ruofei.zhao a64bd94302 hdmitx21: fix qms_vic_lists array out of bounds issue [1/1]
PD#SWPL-190805

Problem:
qms_vic_lists array out of bounds

Solution:
fix qms_vic_lists array out of bounds issue

Verify:
BL201-S905X5

Test:
DRM-TX-75

Change-Id: I2c06f6e61120bba0c281fa3f761cffc3efd21b9c
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-11-05 19:28:35 -07:00
chen.xu 10bc2ddee4 video_composer: fix panic while dma addr out 4G [1/1]
PD#SWPL-190854

Problem:
while dma addr out 4G vc panic.

Solution:
1.need add code access to above 4G ddr.

Verify:
S6

Change-Id: I6155c730011658343c38df2227fe8b93d29d3158
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-11-05 19:28:22 -07:00
brian.zhu cf6e509b2e vpp: do not hskip for vd2 afbc 444 mode [1/1]
PD#SWPL-190264

Problem:
Do not hskip for vd2 afbc 444 mode

Solution:
use dw data for afbc 444 mode when src > max src

Verify:
t5m

Change-Id: Icaf17fd206678ec7f2b234f4acdecf9293aca383
Signed-off-by: brian.zhu <brian.zhu@amlogic.com>
2024-11-05 19:28:14 -07:00
Gaowei Zhao 423951e5d3 hdmirx: Optimize clear of edid segment [1/1]
PD#SWPL-190716

Problem:
EDID segment doesn't clear

Solution:
Skip edid offset judgment of current port

Verify:
t3x

Change-Id: Id7d6d062e1b75862179d4b609fe77908bf55f881
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-11-04 06:03:16 -07:00
zongdong.jiao 670775199d hdmitx: add mask for qms capability [1/1]
PD#SWPL-190878

Problem:
add mask for qms capability

Solution:
add mask for qms capability

Verify:
s7/ross

Test:
DRM-TX-38

Change-Id: I2f7a008e5d69507b99b954d71c92a0454ccac49d
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2024-11-04 06:02:46 -07:00
dongqing.li 5ab9ff40cf ramdump: free more memory to avoid compression fail [1/1]
PD#SWPL-190766

Problem:
Ramdump has a high probability of compression failure.

Solution:
Change the malloc size from 1MB to 512kb to free more mem.

Verify:
T5D loki

Change-Id: Ib2384556113092a642082e35f40da4e63694f6ce
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-11-04 06:02:37 -07:00
Pengcheng Chen 8c5c49a91f vpp: update vd crop info for amdv [1/1]
PD#SWPL-191318

Problem:
update vd crop info for amdv

Solution:
update vd crop info for amdv

Verify:
t5m

Change-Id: Ieaf380c85d0fe3e735f43d5878d6967460b3509c
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-11-04 06:02:19 -07:00
qianqian.cai 16eb0355cb deinterlace: adjust t6d di dmc priority [1/1]
PD#SWPL-191068

Problem:
adjust t6d di dmc priority

Solution:
adjust t6d di dmc priority

Verify:
t6d

Change-Id: Ia3f705657ef519ad8711cefcc20b7849beb61e6c
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2024-11-04 05:41:59 -07:00
Evoke Zhang 76f7aaccf1 lcd: optimize driver log [2/2]
PD#SWPL-185137

Problem:
need optimize driver log

Solution:
optimize driver log

Verify:
bc302

Change-Id: I472ae14740d8ba37821aa04665591f27e79447c2
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-11-04 05:41:37 -07:00
Jianxiong Pan 8add3be84b break_gki: 64bit: add lowmem.fragment config. [1/1]
PD#SWPL-188146

Problem:
add defconfig for lowmem optimization.

Solution:
add lowmem.fragment config.

Verify:
adt4.

Change-Id: I3a1263c2b56a3558ff06026c3f85dc6bdb1444c6
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-11-02 09:33:19 -07:00
Feng Chen b6fefd28f2 nand: S4D adds partitions abnormally [1/1]
PD#SWPL-190919

Problem:
1.mistakes from SWPL-181442

T6D boot partition name: "bootloader" -> "bl2"

When S4 platform adding normal partitions,
partition with name "bl2e" will be matched
to process of add boot partitions.

2.inconsistent backups

Solution:
1.use strcmp replace strncmp
2.changes to 8 backups for S4D

Verify:
S4D

Change-Id: Ia0dee5e3397c529d6199495c24084150d24efba1
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2024-11-01 09:51:00 -07:00
chen.xu aeea6a041a video_composer: fix dewarp rotate blurred screen [1/1]
PD#SWPL-190323

Problem:
dewarp rotate blurred screen.

Solution:
1.Buffer address overflow.

Verify:
S6

Change-Id: Ied264524a021ac350f30ae5f4fefb9638e05c893
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-11-01 09:50:55 -07:00
yao liu 071121b0ed amdv: add rdma pre vsync for t5m [1/1]
PD#SWPL-189881

Problem:
DV write 1a73 bit16 by postvsync rdma, vpp
write 1a73 bit28 by prevsync rdma. Different
rdma channel will lead to write error.

Solution:
add prevsync and postvsync auto detect for amdv

Verify:
t5m

Change-Id: I2757cf24c0d40491b6978ce3594e973cf432709d
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-11-01 09:50:19 -07:00
yao liu 305666acff amdv: t3x slt [1/1]
PD#OPS-8640

Problem:
t3x slt function

Solution:
add t3x slt function

Verify:
t3x

Change-Id: I4667fd1eb43f74b801c83a6c7dc75e802626577e
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-11-01 09:50:10 -07:00
Yu Tu 98671376a2 pci: clean coverity error [1/1]
PD#SWPL-190822

Problem:
clean coverity error

Solution:
modified code

Verify:
sc2

Change-Id: Iefef6c015b1a4271928ce9f162a23e06cabf23d7
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-10-31 03:10:59 -07:00
Yu Tu f77b77b3c9 uart: clean coverity [1/1]
PD#SWPL-190834

Problem:
clean coverity

Solution:
modified code

Verify:
sc2

Change-Id: I141d90acfcf42495fefa5b51ab78be74567b0b88
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-10-31 03:10:46 -07:00
shuanshuan.jiang bb2b2444c9 camera: fix coverity issue [1/1]
PD#SWPL-190770

Problem:
coverity issue: the function of "parse_power"
may cause memory - corruptions

Solution:
using static value to save label of gpio

Verify:
local

Change-Id: I95b79ca2ed461959e9be6ddd731429f79e4a2e7e
Signed-off-by: shuanshuan.jiang <shuanshuan.jiang@amlogic.com>
2024-10-31 03:10:40 -07:00
Jianxiong Pan b0a1afc847 mm: reduce cma isolate failed print. [1/1]
PD#SWPL-190181

Problem:
isolate failed print too much.

Solution:
reduce cma isolate failed prints.

Verify:
local.

Change-Id: I2fc12f448bb7513ce6372a811408b24b0ee91f63
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-31 03:10:33 -07:00
he.he 4d85091474 usb: clean usb coverity [1/1]
PD#SWPL-190835

Problem:
clean usb coverity

Solution:
clean usb coverity

Verify:
all

Change-Id: I0522381ae418c83e1024c4edc1ca31eec2f6870b
Signed-off-by: he.he <he.he@amlogic.com>
2024-10-31 03:10:27 -07:00
Pengcheng Chen bab2e6e82c vpp: add lcevc support for t5w [1/1]
PD#SWPL-191061

Problem:
add lcevc support for t5w

Solution:
add lcevc support for t5w

Verify:
t5w

Change-Id: I742c0ffcfb40b31991d0271eca295c292c88f466
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-10-31 03:10:07 -07:00
lele xiang 1b5bbe3525 codec_mm: CF1 codec_mm new secure memory control mode. [1/1]
PD#SWPL-188127

Problem:
tee provide the new interface tee_sectbl_secmem_set
which can support little-grained memory protection

Solution:
support some projects that do not open CONFIG_AMLOGIC_TEE

depends on CL:
448900
482499
473557

Verify:
C302X

Change-Id: I72482ebdea228c12d066d9a1ee34b98ac8564138
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2024-10-31 03:09:57 -07:00
jialong.jiang 28be71dceb amdv: add amdv std function [1/1]
PD#SWPL-185414

Problem:
add std support

Solution:
support hibernate mode for amdv

Verify:
t3x

Change-Id: I71fbb74a762402e71db517a449414c4feaa61e4f
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2024-10-31 03:08:50 -07:00
yufei.huan 34495cd3f4 deinterlace: di continuous Swipe Printing [1/1]
PD#SWPL-189444

Problem:
di continuous Swipe Printing

Solution:
set low print level;

Verify:
T5M

Change-Id: Ia6fa8ede5abb6f7d03ecb95e2662f54b700f48ff
Signed-off-by: yufei.huan <yufei.huan@amlogic.com>
2024-10-31 01:48:55 -07:00
haitao.liu 9ec6955ee6 vdin: support t3x 4k2k 165hz [1/1]
PD#SWPL-188076

Problem:
Display black screen when input is 165hz

Solution:
Donot pause ddr when no buffer in WL

Verify:
t3x

Change-Id: I7876487f71b5cc975c4bd8a418dfc07c447f63b5
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-10-31 01:48:02 -07:00
jinbing.zhu d3e380b8e7 amvecm: add tv chip support lcevc. [1/1]
PD#SWPL-190002

Problem:
lcevc support

Solution:
lcevc support

Verify:
t5w

Change-Id: Id3a4b59c1a96d61491b358e9679d0663026791f3
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-10-31 01:47:55 -07:00
kun.liu c2a1ed955d 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>
2024-10-31 01:47:40 -07:00
yujun.zhang bc697d4f4f drm: reuse current out fence if display is delayed [1/1]
PD#SWPL-182727

Problem:
Two present fences may be created within one vsync,
but current drm driver doesn't support it.

Solution:
In one vsync, only the first fence is created. For the 2nd
fence, reuse the first one, and only increase its ref
count, and install a new fd.

Verify:
SC2

Test:
DRM-OSD-39

Change-Id: I9cd2d7d54043bf7640f0130b3ab86bb732686b16
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2024-10-31 01:47:27 -07:00
huijie.huang ac4bb9500f lcd: tcon: support dccd dlg [2/2]
PD#SWPL-166562

Problem:
need to support dccd dlg

Solution:
support dccd dlg parsing flow

Verify:
t5m ay301

Change-Id: Id02e7cca5ae2c48ad4396bc2f6fe4cf6d10b29f9
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2024-10-30 23:49:15 -07:00
mingyang.he 5eb3047329 Revert "drm: optimize logo init [1/1]"
PD#SWPL-83183

Revert reason: s6 bootup crash

This reverts commit 0686bfc6ae.

Change-Id: I29673765a96d9dd9c9aeb2eae04a507f6d30ab51
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-10-30 19:13:53 -07:00
yao liu 10a93f83a5 amdv: insmod fail for efuse chip [1/1]
PD#SWPL-189113

Problem:
For efuse chips, ko still insmod

Solution:
insmod fail for efuse chip

Verify:
t5m

Change-Id: I28b91fcdcdce18bbe7a392b8b5dac5226b2a828a
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-10-30 19:05:47 -07:00
hai.cao 3a88534580 video: small window to whole windows error [1/1]
PD#SWPL-190358

Problem:
small window to whole windows error

Solution:
fix logic

Verify:
t6d

Change-Id: I8fb82fe72a974d8e1659d53d7ab7940bebd3d24b
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-10-30 01:09:38 -07:00