Commit Graph

7855 Commits

Author SHA1 Message Date
zhan.wang 4e05c368c4 amvecm: amlogic-5.15-dev-u Coverity defect [1/1]
PD#SWPL-191075

Problem:
amlogic-5.15-dev-u Coverity defect

Solution:
fix coverity error

Verify:
verify on t5m

Change-Id: I7e0ecbb9695b6d0033851666a9a555f97cc13529
Signed-off-by: zhan.wang <zhan.wang@amlogic.com>
2024-11-10 20:13:20 -08:00
yao liu 1be4341c02 amdv: fix roi issue [1/1]
PD#SWPL-191318

Problem:
display error when switch ratio

Solution:
when vd1 crop > aoi, disable aoi,
set aoi reg size to original VDR register

Verify:
t5m

Change-Id: I407920d7f3270918a7cdb9071f6fd97462577a81
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-11-10 20:13:01 -08:00
gerrit autosubmit 1e1b9d22e6 Merge "hdmitx: solve the Linux compilation error problem [1/1]" into amlogic-5.15-dev 2024-11-10 20:12:45 -08:00
ruofei.zhao 7687c4e6b3 hdmitx: solve the Linux compilation error problem [1/1]
PD#SWPL-192282

Problem:
linux compilation error

Solution:
add CONFIG_AMLOGIC_MEDIA_RESMANAGE for macro isolation

Verify:
S6

Test:
DRM-TX-5

Change-Id: Ib9b787648e614049e467b7eb477e90503a0aa6ca
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-11-10 20:12:40 -08:00
jinbing.zhu 2f0886a4bb amvecm: t7 modify cm resume. [1/1]
PD#SWPL-189468

Problem:
t7 modify cm resume

Solution:
t7 modify cm resume

Verify:
t7

Change-Id: I690e4eca85a8fdbe0abcea4c7e8ac72820df268a
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-11-10 20:12:03 -08:00
haitao.liu 84a55f9559 tvafe: enable auto adjustment on t3x [1/1]
PD#SWPL-191638

Problem:
display abnormally in atv channel due to wrong crop settings of vdin

Solution:
enable auto adjustment

Verify:
T3x

Test:
54200/TG39

Change-Id: Ie372b1ad1dea686d7f5d30a0f556040f4e772621
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-11-10 20:11:51 -08:00
Mingyen Hung d92a3f2391 crypto: for coverity failures [1/1]
PD#SWPL-190776

Problem:
Coverity failures

Solution:
1. Mark coverity event_tag: returned_null and
use_after_free as false positive.
2. Coverity supposes krealloc() will free tmp_buf and return
tmp_buf as tmp_buf2. This is incorrect, since tmp_buf is
freed only when returned value(tmp_buf2) is NOT the same as
tmp_buf in krealloc()

Verify:
Coverity(2024.3.0)

Change-Id: I97864d6ae01dcac6e6b648c1ec44820d0f77c81c
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2024-11-10 20:11:41 -08:00
Pengcheng Chen 59d2d41cb0 vpp: adjust ratio calc when di local buf [1/1]
PD#SWPL-189586

Problem:
when di local buf and screen mode dot to dot,ratio_y is half, caused
ratio adjust error

Solution:
before ratio adjust, when di local buf ratio_y * 2,after ratio adjust,
ratio_y / 2

Verify:
t6d

Change-Id: I90fbce074b49d3fa36e19c0ee9fe446a96e31022
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-11-10 20:11:32 -08:00
lele xiang 15521e2d96 decoder: CF1 On-demand small block memory allocation and protection. [2/2]
PD#SWPL-191072

Problem:
tvp_pool is too big which affects system efficiency.

Solution:
During secure playback, to alloc mem according to actual requirements

Verify:
T6d

Change-Id: I119a41322e9e1028de73851e3620a50ec8d819a2
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2024-11-10 20:10:38 -08:00
jian zhou d77a6e4969 audio: fix HFR5-2-52: eARC RX Layout B Error Correction FAILED [1/1]
PD#SWPL-192108

Problem:
HFR5-2-52: eARC RX Layout B Error Correction Test FAILED.
root cause: DMA buffer pointer is hang.

Solution:
setup a timer, and if pointer is hang, reset pll and trigger xrun.
Only reset pll, it may has channel swap.

Verify:
sc2

Change-Id: I51bb98f57aad8a7aae0f64f8bc0415ab0b960e69
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-11-10 19:47:57 -08:00
yuhua.lin f5760a69b5 video: t3x vd2 display error [1/1]
PD#SWPL-192211

Problem:
t3x vd2 display error

Solution:
vd2_postblend_update did not execute when pre_vsync_enable = 0

Verify:
t3x

Change-Id: I748fcd61e6058e07ca62aa962400c90ba6892630
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-11-08 00:28:14 -08:00
jinbing.zhu 9552f28cbd amvecm: move ve_source_input_e definitions into uapi. [1/1]
PD#SWPL-192175

Problem:
move ve_source_input_e definitions into uapi

Solution:
move ve_source_input_e definitions into uapi

Verify:
t5w

Change-Id: I2ade9705b185661c207a7a6a76b590b32a61f437
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-11-08 00:28:07 -08:00
Junyi Zhao 147e23cc26 i2c: sync std dts from mercury [1/1]
PD#SWPL-192176

Problem:
support yocto std

Solution:
support yocto std

Verify:
t7c

Change-Id: I5ceb5508c3d2429822434f6bc1f90f9031168157
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-11-08 00:27:59 -08:00
Pengcheng Chen bb1bbebc56 vpp: fix video_hw_init dump stack warning [1/1]
PD#SWPL-191702

Problem:
fix video_hw_init dump stack warning

Solution:
fix video_hw_init dump stack warning

Verify:
s5

Change-Id: I94fe3b40e0da6e01c5d88cbb9c272fc3059725bd
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-11-08 00:27:31 -08:00
yuhua.lin f786162d75 ge2d: coverity issue [1/1]
PD#SWPL-190803

Problem:
ge2d coverity issue

Solution:
no need fix

Verify:
local

Change-Id: Idf571f192b5bf35182294cacfc757a49b81266db
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-11-08 00:27:25 -08:00
qing.zhang 89df37dfc0 audio: Speaker output for raman soundbar [1/1]
PD#SWPL-190680

Problem:
No speaker output for raman soundbar.

Solution:
1.use i2c3 pins7
2.remove acodec

Verify:
raman bl204

Change-Id: Ib0a4beda00ed8dc109782c590ee2cf0377491e86
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-11-07 23:05:28 -08:00
dongqing.li 11a74ef66f ramdump: Use RAMDUMP_TEXTOFFSET to integrate text modifications [1/1]
PD#SWPL-182182
PD#SWPL-190334

Problem:
TEXTOFFSET was changed from 0x00208000 to 0x02008000, causing some
devices to fail to start.
1. t5d Android U upgrade project, ko becomes build, uImage size
increases to 36MB. It is too big to relocate.
2. There is only 48MB in 0x020080000~0x5000000 area, and cannot
open kasan.

Solution:
1. use new config CONFIG_AMLOGIC_RAMDUMP_TEXTOFFSET instead of
CONFIG_AMLOGIC_RAMDUMP. And TEXTOFFSET is 0x00208000 default.
2. Use a new solution instead of modifying TEXT. Specifically,
during kernel panic, move 0-24MB to a higher address. Reboot to
uboot and then copy back.

Verify:
T5D

Change-Id: I1c9c086b89129893e5542676b54228e03b4e34c2
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-11-07 23:05:20 -08:00
dian.shao d8080d215f usb: crg udc setup packet gadget callback fix [1/1]
PD#SWPL-185811

Problem:
1.
[ 7452.363304][ C0] Kernel panic - not syncing: CFI failure (target: 0x100)
[ 7452.363308][ C0] CPU: 0 PID: 27983 Comm: kworker/0:1
		Tainted: P W OE 5.15.137-android13-8-00022-g99538831203c-ab11798676 #1
[ 7452.377051][ C0] Hardware name: Amlogic (DT)
[ 7452.377055][ C0] Workqueue: events android_work.cfi_jt
[ 7452.390224][ C0] Call trace:
[ 7452.390225][ C0] dump_backtrace.cfi_jt+0x0/0x8
[ 7452.390233][ C0] dump_stack_lvl+0x80/0xb8
[ 7452.390240][ C0] panic+0x190/0x44c
[ 7452.390245][ C0] find_check_fn+0x0/0x218
[ 7452.478102][ C0] req_done+0x124/0x128 [amlogic_usb]
[ 7452.497429][ C0] handle_cmpl_code_success+0x94/0x164 [amlogic_usb]
[ 7452.502114][ T1] [usb]: crg_gadget_async_callbacks get state 1
[ 7452.511209][ C0] crg_handle_xfer_event+0x154/0x450 [amlogic_usb]
[ 7452.589903][ C0] crg_udc_handle_event+0x80/0x100 [amlogic_usb]
[ 7452.596056][ C0] process_event_ring+0xb4/0x13c [amlogic_usb]
[ 7452.602036][ C0] crg_gadget_handle_interrupt+0x70/0x254 [amlogic_usb]
[ 7452.608797][ C0] crg_udc_common_irq+0x18/0x2c [amlogic_usb]
[ 7452.609362][ C2] [RX]-rx_pll_clk_enable!
[ 7452.614690][ C0] __handle_irq_event_percpu+0xf4/0x390
[ 7452.614700][ C0] handle_irq_event+0x84/0x16c
[ 7452.628816][ C0] handle_fasteoi_irq+0x150/0x2f0
[ 7452.633669][ C0] handle_domain_irq+0x9c/0x120
[ 7452.638349][ C0] gic_handle_irq+0x60/0x12c
[ 7452.642769][ C0] do_interrupt_handler+0x64/0xa0
[ 7452.647622][ C0] el1_interrupt+0x34/0x64
[ 7452.651869][ C0] el1h_64_irq_handler+0x1c/0x2c
[ 7452.656636][ C0] el1h_64_irq+0x7c/0x80
[ 7452.660709][ C0] _stext+0x114/0x610
[ 7452.664522][ C0] __irq_exit_rcu+0x74/0x140
[ 7452.668942][ C0] handle_domain_irq+0xa0/0x120
[ 7452.673622][ C0] gic_handle_irq+0x60/0x12c
[ 7452.678042][ C0] call_on_irq_stack+0x3c/0x70
[ 7452.682636][ C0] do_interrupt_handler+0x44/0xa0
[ 7452.687489][ C0] el1_interrupt+0x34/0x64
[ 7452.691736][ C0] el1h_64_irq_handler+0x1c/0x2c
[ 7452.696502][ C0] el1h_64_irq+0x7c/0x80
[ 7452.700576][ C0] console_unlock+0x540/0xdf8
[ 7452.705082][ C0] vprintk_emit+0xc4/0x174
[ 7452.709329][ C0] vprintk+0x13c/0x1a0
[ 7452.713229][ C0] _printk+0x58/0x84
[ 7452.716956][ C0] android_work+0x19c/0x2a0
[ 7452.721289][ C0] process_one_work+0x248/0x55c
[ 7452.725969][ C0] worker_thread+0x3b0/0x740
[ 7452.730389][ C0] kthread+0x168/0x1dc
[ 7452.734289][ C0] ret_from_fork+0x10/0x20
[ 7452.738537][ C0] SMP: stopping secondary CPUs
[ 7452.743142][ C0] Kernel Offset: 0x1300000000 from 0xffffffc008000000

2.
[  781.124760][    C0] [usb]: udc_ep_ptr->queue not empty
[  781.131723][    C0] list_add double add: new=ffffffe40248b548,
			prev=ffffffe40248b548, next=ffffffe402489a80.
[  781.141545][    C0] ------------[ cut here ]------------
[  781.146800][    C0] kernel BUG at lib/list_debug.c:35!
[  781.151914][    C0] Internal error: Oops - BUG: 00000000f2000800
			[#1] PREEMPT SMP
...
[  781.391814][    C0] Call trace:
[  781.391817][    C0]  __list_add_valid+0x70/0xc0
[  781.391824][    C0]  build_ep0_status+0x100/0x12c [amlogic_usb]
[  781.400647][    C0]  crg_handle_setup_pkt+0x11c/0x2d4 [amlogic_usb]
[  781.522500][    C0]  crg_udc_handle_event+0xa0/0x100 [amlogic_usb]
[  781.528654][    C0]  process_event_ring+0xb4/0x13c [amlogic_usb]
[  781.534633][    C0]  crg_gadget_handle_interrupt+0x70/0x254 [amlogic_usb]
[  781.541394][    C0]  crg_udc_common_irq+0x18/0x2c [amlogic_usb]
[  781.547287][    C0]  __handle_irq_event_percpu+0xf4/0x390
[  781.552660][    C0]  handle_irq_event+0x84/0x16c
[  781.557254][    C0]  handle_fasteoi_irq+0x150/0x2f0
[  781.562106][    C0]  handle_domain_irq+0x9c/0x120
[  781.566786][    C0]  gic_handle_irq+0x60/0x12c
[  781.571206][    C0]  call_on_irq_stack+0x3c/0x70
[  781.575800][    C0]  do_interrupt_handler+0x44/0xa0
[  781.580653][    C0]  el1_interrupt+0x34/0x64
[  781.584900][    C0]  el1h_64_irq_handler+0x1c/0x2c
[  781.589666][    C0]  el1h_64_irq+0x7c/0x80
[  781.589670][    C0]  cpuidle_enter_state+0x3b4/0x87c
[  781.589676][    C0]  do_idle+0x300/0x598
[  781.589680][    C0]  cpu_startup_entry+0x84/0x90
[  781.589684][    C0]  kernel_init+0x0/0x37c
[  781.601539][    C0]  start_kernel+0x0/0x66c
[  781.601547][    C0]  start_kernel+0x51c/0x66c
[  781.601551][    C0]  __primary_switched+0xc8/0x7c60
[  781.601560][    C0] Code: f000a600 aa0803e2 91205000 97e0d8e9 (d4210000)
[  781.610381][    C0] ---[ end trace 4b8b98e6f16a95cb ]---
[  781.628820][    C0] Kernel panic - not syncing: Oops - BUG: Fatal exception
			in interrupt
[  781.671222][    C0] SMP: stopping secondary CPUs
[  781.675828][    C0] Kernel Offset: 0x2400000000 from 0xffffffc008000000
[  781.682400][    C0] PHYS_OFFSET: 0x0
[  781.685953][    C0] CPU features: 0x0,0000c9a1,00000846
[  781.691153][    C0] Memory Limit: none

Solution:
1.
The ep0 reqs can't be dequeued unless the controller is reinited.
Remove the ep0 dequeue codes or the hw cached irq may fetch
wrong reqs ptr from the ep0 req queue causing kernel panic.
2.
The locking sequence is unnecessary before the sync_cb_flag
check and is error-prone. Remove it.
Add ep0 req list empty check to prevent potential racing of
the setup_status.

Verify:
Customer projects.

Change-Id: I8433f3afe07cad6468593104460e21b56c63ffa5
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-11-07 06:48:43 -08:00
zijie.lin b4482ebcc4 backlight: quiescent boot not light up first power on [1/1]
PD#SWPL-191117

Problem:
lcd_init_level 1 no save brightness value

Solution:
save brightness value before return in
lcd_init_level 1

Verify:
daisy

Change-Id: I67354b95485d919d32e6323620ed3b84bb181ead
Signed-off-by: zijie.lin <zijie.lin@amlogic.com>
2024-11-07 06:48:37 -08:00
Haotian Guo f16db557c8 hdmirx: Control the HPD pull down time [1/1]
PD#SWPL-191028

Problem:
AMD PC reading edid has issues

Solution:
Change time based on edid type

Verify:
t5m

Change-Id: I4663fb225410a4574e23a07e1abe110b08c4debd
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2024-11-07 06:47:58 -08:00
yuhua.lin 4a182594de gdc: cannot recover from the fault state [1/1]
PD#SWPL-189849

Problem:
cannot recover from the fault state

Solution:
1. to avoid releasing the wrong address due to no assignment
use kzalloc to replace kmalloc
2. replace wait_event_interruptible_timeout and wake_up_interruptible
to wait_event_timeout and wake_up

Verify:
t7

Change-Id: I27ef2cd789389cf22b92d263aceefa0229b01c71
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-11-07 06:47:54 -08:00
saisai.chang 4f48b0b12f audio: mixer_init undefined [1/1]
PD#SWPL-183230

Problem:
the mixer driver should be cut through CONFIG_AMLOGIC_AUDIO_CUT for
zapper.Zapper doesn't have much memory space. If it is not compiled
into the mixer driver but instead called mixer_int, it will result in
undefined mixer_int.

Solution:
cut the place where mixer_init is called by CONFIG_AMLOGIC_AUDIO_CUT.

Verify:
t6d

Change-Id: Ie054e8327e382f18719edc5c405d47a4aa852ce7
Signed-off-by: saisai.chang <saisai.chang@amlogic.com>
2024-11-07 05:53:12 -08:00
Lei Yang 374517b19c tvafe: av detection flow optimized [1/1]
PD#SWPL-190670

Problem:
color system was wrong during atv channel search.

Solution:
optimize signal detection flow.

Verify:
t5w

Change-Id: I3491b88c6d51f395c9f2f3b1d74e5e1011093703
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2024-11-07 05:52:43 -08:00
jiebing chen 797716db2c audio: remove acodec init when switch audio mode [1/1]
PD#SWPL-191960

Problem:
no audio output when switch audio mode

Solution:
remove audio init

Verify:
daisy

Change-Id: I4bfecef1520577d9e2044161114e007167cd8f3f
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-11-07 03:46:19 -08:00
qing.zhang d0c02eb440 audio: Speaker output for raman/ross soundbar [1/1]
PD#SWPL-190680

Problem:
No speaker output for raman/ross soundbar.

Solution:
1.gpio for ad82128
2.config tdmc slave mode

Verify:
ross-x5m

Change-Id: Iedd7bdffdaeacfeb94c7b1b7db62faf1e27cdd5b
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-11-07 00:41:09 -08:00
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
nengwen.chen c2353ecfeb dts: s7d: add mxl258c serial-4wire dts [1/2]
PD#SWPL-177956

Problem:
s905x5m need to support PIP FCC.

Solution:
support D816 mxl258c serial-4wire.

Verify:
s7d bm201.

Change-Id: I0decc1fbeaa608dc062cb127ac93e46f049c9c8d
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
Signed-off-by: gongwei.chen <gongwei.chen@amlogic.com>
2024-11-07 00:40:08 -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
Jianxiong Pan 4cb71ee5a1 config: sync loki optimization to adt4 lowmem project. [1/1]
PD#SWPL-190810

Problem:
adt4 memory optimization.

Solution:
sync loki optimization to adt4 lowmem project.

Verify:
adt4.

Change-Id: Ie92cfce8aadc4004cc37f85cc58a43ef0ce406c7
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-11-06 20:20:23 -08:00
saisai.chang 8641fe082b audio: adjust the output volume of TDMC [1/1]
PD#SWPL-186208

Problem:
1.the remote control cannot adjust the HDMI output volume
2.The audio module should not be controlled	by
	CONFIG_AMLOGIC_ZAPPER_CUT macro

Solution:
1.change the output source of HDMI to TDMC
2.change CONFIG_AMLOGIC_ZAPPER_CUT to CONFIG_AMLOGIC_AUDIO_CUT

Verify:
ap232

Signed-off-by: saisai.chang <saisai.chang@amlogic.com>
Change-Id: Ic6fbaef0e138e50d2ae3bb26e97adfb9d0d3f628
2024-11-06 18:45:40 -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
Jianxiong Pan f46d4e56db config: sync loki optimization configs to trunk. [1/1]
PD#SWPL-189471

Problem:
memory optimization.

Solution:
remove useless configs.
CONFIG_KALLSYMS_ALL=n
CONFIG_SCHEDSTATS=n
CONFIG_BLK_CGROUP=n
CONFIG_EROFS_FS_PCPU_KTHREAD=y
CONFIG_EROFS_FS_PCPU_KTHREAD_HIPRI=y
CONFIG_RTC_NVMEM=n
CONFIG_NVMEM=n
CONFIG_NVMEM_SYSFS=n
CONFIG_HVC_DRIVER=n
CONFIG_SYS_HYPERVISOR=n
CONFIG_PPS=n
CONFIG_XZ_DEC_X86=n
CONFIG_XZ_DEC_POWERPC=n
CONFIG_XZ_DEC_IA64=n
CONFIG_XZ_DEC_SPARC=n

Verify:
sc2.

Change-Id: I310bf8daf2dc328b85e45122204b94e5827c2a97
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-11-05 22:38:44 -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
jiebing chen 1dae4adbbd Audio: add mixer driver support [1/1]
PD#SWPL-183230

Problem:
need to support mixer driver

Solution:
add mixer driver

Verify:
t6d

Change-Id: I29cb7ea70553da7e1c7ff67c8bf824e14a4893b2
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-11-05 22:33:51 -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