Commit Graph

4957 Commits

Author SHA1 Message Date
biao.sun 3fe10c4e9b coverity: uninitialized variables [2/2]
PD#SWPL-190815

Problem:
uninitialized variables

Solution:
initialized variables

Verify:
sc2

Change-Id: Ie72a0c42362a79b5c77c3884b20e51c5ec7adf3f
Signed-off-by: biao.sun <biao.sun@amlogic.com>
2024-11-08 00:08:06 -08:00
yiting.deng 5eba435db6 clk: synchronize fixed code from kernel5.15 [1/1]
PD#SWPL-192113

Problem:
need synchronize fixed code from kernel5.15 to kernel6.12

Solution:
fix code

Verify:
mk.sh check

Change-Id: I6d14893bf361dbb7215134adff5b1b5c1ca28c63
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-11-08 00:07:57 -08:00
Chuan Liu 7dd773f23c cpufreq: a5/sc2/sm1: Adapts to aml_cpufreq driver [1/1]
PD#SWPL-188365

Problem:
meson_cpufreq.c(v1) is amlogic's older cpufreq driver, and
aml_cpufreq.c(v2) is used uniformly on kernel6.6.

Solution:
aml_cpufreq.c(v2) is already used on A5/SC2/SM1.

Verify:
sc2_ah212

Change-Id: Ieab8bd4b6b229051724bedee1e16a657673f39ca
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-11-08 00:07:44 -08:00
dongqing.li 4f5ec8d880 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: Ifcbf7883969161ff2872d3300ee9b756dc949917
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-11-07 23:12:35 -08:00
Yao Jie 5f868c9719 mailbox: bringup g12a mailbox on new mailbox architecture [1/1]
PD#SWPL-192182

Problem:
The g12a mailbox dtsi configuration does not
accommodate the new mailbox driver architecture

Solution:
Change g12a mailbox dtsi to accommodate the new
mailbox driver architecture

Verify:
G12A

Change-Id: I0e6b34a2ea8529ea22aed8afcb5e8107bc7d93e3
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2024-11-07 19:50:07 -08:00
he.he c9a70f3567 usb: clean usb coverity [1/1]
PD#SWPL-190835

Problem:
clean usb coverity

Solution:
clean usb coverity

Verify:
all

Change-Id: I28cacb1084f626146b68c7ab4103b49ad93f0fe5
Signed-off-by: he.he <he.he@amlogic.com>
2024-11-07 05:53:19 -08:00
ruofei.zhao 9a3eedf287 hdmitx: sync kernel 5.15 code to kernel 6.12 [1/1]
PD#SWPL-191974

Problem:
sync kernel 5.15 code to kernel 6.12

Solution:
sync kernel 5.15 code to kernel 6.12

Verify:
SC2

Test:
DRM-TX-5

Change-Id: I41a123996765919fb59de27a03e2822087f3ed44
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-11-07 05:53:03 -08:00
hongyu.chen1 41b2e92b8a Power: add domain config and std modify. [1/1]
PD#SWPL-192039

Problem:
Kernel6.12 need config power domain.

Solution:
add config.

Verify:
Compiled successfully

Change-Id: Ia5bdd8c1c330f21498972606574f3f8debfb8646
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-11-07 03:54:16 -08:00
hongyu.chen1 b899550204 T3X S5: dynamic-power-coefficient optimize. [1/1]
PD#SWPL-192039

Problem:
dynamic power coefficient parameter have problem.

Solution:
Adjust this parameter.

Verify:
Compiled successfully

Change-Id: Iddb6cf2156e0e51b400a10345c7c906337d2d445
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-11-07 03:54:11 -08:00
xiang.wu1 3ae279e31d hdmitx: Encapsulate hdcp api and remove drm callback [1/1]
PD#SWPL-186410

Problem:
need encapsulate hdcp api and remove drm callback

Solution:
1.remove drm hdcp callback
2.encapsulate drm hdcp api in hdmi common directory
3.move tx20 meson_hdcp.c code to tx20 hdmi_tx_hdcp.c
4.the differences in the HDCP process in the DRM HDCP API
are implemented in the TX20 and TX21 files respectively.

Verify:
SC2

Test:
DRM-TX-80

Change-Id: If9d995f06eb365a3fc4006be9949a83f89f8346d
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-11-06 21:59:12 -08:00
Zelong Dong 133d7fdbdd 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 19:51:16 -08:00
chenyang.liu c18363308f lcd: fix coverity defects from linux-6.12 [1/1]
PD#SWPL-190841

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

Solution:
fix defects

Verify:
none

Change-Id: I9faf5bf9abb6053c446f2e3270b42073a0737c5f
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2024-11-06 17:51:05 -08:00
zijie.hong 2d837417ea vin: k6.12 coverity error cleanup [1/1]
PD#SWPL-190840

Problem:
coverity error

Solution:
modified

Verify:
k6.12

Change-Id: I6c246b8e10591ebe223a60baf3f70b5939790673
Signed-off-by: zijie.hong <zijie.hong@amlogic.com>
2024-11-06 06:18:48 -08:00
Shunzhou Jiang 3166aa0972 t3x: fix mbox compatible issue [1/1]
PD#SWPL-177424

Problem:
t3x mbox compatible not right

Solution:
fix it

Verify:
t3x

Change-Id: I57fd115f1f0bda10abe87d615c032f1cb6bd4ea2
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
(cherry picked from commit 5bbe17a45b)
2024-11-06 03:55:45 -08:00
hongyu.chen1 8ff2ebf26b Power: Coverity defect cleanup. [2/2]
PD#SWPL-190823

Problem:
Reported a problem with Coverify.

Solution:
Make changes as prompted.

Verify:
Local scan

Change-Id: Ied6f42d3d6d477f054e9ed60405df2c236036c6d
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-11-05 19:06:37 -07:00
ruofei.zhao 9d1896d7d6 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>
(cherry picked from commit 43f3420123eee6d439d70d3fccf4c1b68540c2ef)
2024-11-05 03:54:44 -07:00
xing.xu 8b94b653b7 bandwidth: CF1 Single-frame Bandwidth Sampling [1/1]
PD#SWPL-179304

Problem:
Single-frame Bandwidth Sampling

Solution:
Chips before s6 use the DMC method to get the bandwidth
value of a single frame, chips after s6 use the decoder
internal method to get the bandwidth value of a single frame.

Verify:
s6.s7

Change-Id: I135d98a0087733c5df34c7e8f9be39f8f2c96741
Signed-off-by: xing.xu <xing.xu@amlogic.com>
2024-11-04 23:36:13 -07:00
hualing chen bce7e35cc0 media_proxy: CB2 move proxy to kernel common for 5.15. [1/8]
PD#SWPL-177051

Problem:
1  Di module can not call proxy api for 5.15.

Solution:
1  Move MediaProxy to kernel common for 5.15.

Verify:
t5m

Change-Id: I573f51392c809b77bf6a2e8194a4a3a451f1cc35
Signed-off-by: hualing chen <hualing.chen@amlogic.com>
2024-11-04 23:35:46 -07:00
zhenteng.tian 7f3da58ff7 display: change omx_index to frame_index in vf. [1/1]
PD#SWPL-188419

Problem:
change omx_index to frame_index for kernel 6.12

Solution:
change omx_index to frame_index for kernel 6.12

Verify:
SC2

Change-Id: I277a3a36953953fe470bb2b9c1758d60b2a28722
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-11-04 23:35:28 -07:00
gan.zhang afdceb26b1 decoder: CB2 Pass the under input information to the upper layer. [1/3]
PD#SWPL-179486

Problem:
In stream mode, when the decoder cannot decode the data, it
needs to pass the under input information to the upper layer.

Solution:
Pass the under input information to the upper layer.

Verify:
Ohm

Change-Id: I55530bcd0085c87dfa752ca831ee76b070c1bce4
Signed-off-by: gan.zhang <gan.zhang@amlogic.com>
(cherry picked from commit a47ac8298b)
2024-11-04 23:34:24 -07:00
Hangyu Li d00d7e7181 tee: add secure table API [1/1]
PD#SWPL-176853

Problem:
provide API for t6d secure table function

Solution:
add API for t6d secure table

Verify:
t6d

Change-Id: If9aaf0dee3c970a5de73428b29c3f7e24f71a0b3
Signed-off-by: Hangyu Li <hangyu.li@amlogic.com>
2024-11-04 23:33:20 -07:00
Hao Shi 1c59f2f201 codec_mm: synchronization with kernel5.15 [1/1]
PD#SWPL-188419
PD#SWPL-188420

Problem:
synchronization with kernel5.15

Solution:
synchronization with kernel5.15

Verify:
adt4

Change-Id: If3b112e79d62d1b63f537110a86f3e5966ac33f3
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-11-04 01:59:28 -07:00
yiting.deng 498ae84d6f rtc: fix k6.12 rtc coverity [1/1]
PD#SWPL-190826

Problem:
rtc driver uses an uninitialized variable, causing
a coverity error

Solution:
fix coverity

Verify:
coverity check

Change-Id: I81f02c1a76c8e3e09f3778e4f6aed33d196a5546
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-11-03 22:51:46 -07:00
Liming Xue d64c1cade0 thermal: kernel6.12 add ddr thermal control driver [1/1]
PD#SWPL-185025

Problem:
refactoring ddr control driver

Solution:
add ddr control driver

Verify:
sc2

Change-Id: I4a04a49064d88aff0cd90784dcdc6e5b05a53920
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-11-01 00:50:36 -07:00
yuhua.lin 2086ea47a1 osd: osd compile fail on kernel6.12 [1/1]
PD#SWPL-191253

Problem:
osd compile fail on kernel6.12

Solution:
fix it

Verify:
local

Change-Id: Ie09d88eea72036d886847f024f3b65fde891d20e
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-10-31 23:32:45 -07:00
he.he a062b79c44 usb: Lock system infers dwc_otg deadlock [1/1]
PD#SWPL-190195

Problem:
Lock system infers dwc_otg deadlock

Solution:
This inference is unreasonable, and ignore it.

Verify:
sc2

Change-Id: Iae8505d4ff38e230d725e9d86e5783d7c1f766c5
Signed-off-by: he.he <he.he@amlogic.com>
2024-10-31 19:02:58 -07:00
Yu Tu 280f30d952 pci: clean coverity error [1/1]
PD#SWPL-190822

Problem:
clean coverity error

Solution:
modified code

Verify:
sc2

Change-Id: Ie513da1b53a560bf4474e9077dbba82af5a5edf8
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-10-30 22:53:48 -07:00
jian zhou 56fa9d7c2b audio: sync audio code from k5.15 [1/1]
PD#SWPL-188427

Problem:
sync audio code from k5.15

Solution:
sync audio code from k5.15

Verify:
sc2

Change-Id: I60fe2598f46a9a9c64e14ab80aa840169935e8d7
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-10-30 19:12:01 -07:00
Yu Tu aeef87475b uart: clean coverity [1/1]
PD#SWPL-190834

Problem:
clean coverity

Solution:
modified code

Verify:
sc2

Change-Id: I401efec8dcdee6f0c0dae6a5e4d6117eae231c3a
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-10-30 19:01:47 -07:00
he.he e254f5683a 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-30 18:59:20 -07:00
jian zhou c03ca60259 audio: sync pdm code from k5.15 [1/1]
PD#SWPL-188427

Problem:
sync pdm code from k5.15

Solution:
sync pdm code from k5.15

Verify:
sc2

Change-Id: Ib64d119fbfc082ed2fe69ed72fec88d7c73497fc
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-10-30 01:28:37 -07:00
yiting.deng ea84ed5615 clk: sc2: add hifi_pll noinit flag [1/1]
PD#SWPL-188367

Problem:
hifi_pll setted in bl2, kernel no re-init

Solution:
add noinit_enabled flag

Verify:
sc2_ah212

Change-Id: Ib287f2c9b9731514bf1bd37c78bd1d2d2eaf54e3
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-10-29 19:56:58 -07:00
zhan.wang 5705c8117a amvecm: fix coverity err [1/1]
PD#SWPL-190767

Problem:
Coverity defect cleanup ----- amvecm

Solution:
fix coverity err

Verify:
verify on t5m

Change-Id: I156cf9e06e482610d6dbbe8cd15434aea8adc082
Signed-off-by: zhan.wang <zhan.wang@amlogic.com>
2024-10-29 05:09:09 -07:00
jing.li1 1658ca3bc3 demux: add dmabuf manager on kernel 6.12 [1/1]
PD#SWPL-191023

Problem:
there are compile errors on kernel 6.12 because of missing dmabuf manager

Solution:
add dmabuf manager on kernel 6.12

Verify:
sc2

Change-Id: I7685afac9665cdd0ab53bf93b53be96bb6defc7c
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-10-29 01:47:20 -07:00
Zelong Dong 88399d0c0f ir: support multi wakeup key event [3/3]
PD#SWPL-182441

Problem:
only support power key and one custom key

Solution:
support multi wakeup key event, kernel ir drivers
gets framecode from bl30 by mbox

Verify:
t6d

Change-Id: I0f118bbbec12a9e86d3cc8e37128fb906bc22f12
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 17:10:42 +08:00
Zelong Dong faad4e8d5b ir: support mbox for some func [2/3]
PD#SWPL-182441

Problem:
need to support mbox for some func

Solution:
1. get wakeup framecode
2. enable/disable debug log
3. set wakeup key table
4. enable/disable bl30 ir
5. get the last powerkey

Verify:
t6d_br301

Change-Id: I40e3d6eb08903533f975eba87e18a24148055b70
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 17:06:56 +08:00
Zelong Dong 18410be2c8 mailbox: support device id & command for IR [1/3]
PD#SWPL-182441

Problem:
support device id & command for IR

Solution:
support device id & command for IR

Verify:
t6d

Change-Id: I42f6a0117cf8ce3891c9a97885ad3216d54a0f29
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 17:05:03 +08:00
Zelong Dong b6ce03e673 ir: support all IR devices in one common input device [2/2]
PD#SWPL-180331

Problem:
there are 2 IR controllers (2x2 multi-format) in T6D

Solution:
support all IR devices in one common input device

Verify:
t6d_br301

Change-Id: Ib01291b4b3e399ae4b1d15df5aa055339b6ece6c
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 16:56:39 +08:00
Zelong Dong 5fe58c1604 ir: support multi IR devices [1/2]
PD#SWPL-180331

Problem:
there are 2 IR controllers (2x2 multi-format) in T6D

Solution:
support multi IR devices

Verify:
t6d_br301

Change-Id: I597bea15e9b919279f8267344221d5721f9559df
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 16:56:32 +08:00
Zelong Dong 741b67098d ir: optimize multi input device [1/1]
PD#SWPL-180331

Problem:
the number of input devices are fixed, up to 3.
Fixes: Ie8c857e0761 ("remote: supports ir functions of various ID")

Solution:
alloc input device dynamically

Verify:
t6d

Change-Id: Ic519000f4a8e6faf0020711ddecb56fd50aa8d80
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 16:19:08 +08:00
Zelong Dong e4b9a5c995 ir: improve the driver stability [1/1]
PD#SWPL-168630

Problem:
driver was crash when probeing

Solution:
1. allow one irq_no was declare in ir dts node
2. check raw decoder thread before wakeup

Verify:
s7d_bm201

Change-Id: If11ebe6edf84322e953c5189dfcc9594bff8ab62
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 16:15:51 +08:00
Zelong Dong a79dfe7890 ir: support 2 multi-format ir controller [1/1]
PD#SWPL-163059

Problem:
legacy ir controller was updated to multi-format ir controller
and each controller have a IRQ

Solution:
support 2 IRQs in ir driver

Verify:
s7d_bm201

Change-Id: I268562144440d642e4f635dbe76bb45f799d6bee
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 15:55:32 +08:00
Zelong Dong 24bfe1a19b ir: support hibernate mode for ir [1/1]
PD#SWPL-145760

Problem:
support hibernate mode for ir

Solution:
support hibernate mode for ir

Verify:
s4

Change-Id: Ied8d29fc620b6650583b10b7bb30b309e697fcc3
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 15:49:19 +08:00
Zelong Dong 065feaa216 ir: add BTN_* event for input device [1/1]
PD#SWPL-148643

Problem:
ir mouse mode need BTN_* event

Solution:
add BTN_* event for ir input device

Verify:
s4_ap229

Change-Id: Ic078fb2b842fc91e6b7df55f5bc184a25b696c39
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 15:48:32 +08:00
yiting.deng 5afc832897 clk: optimize pll driver to adapts 32bit and 64bit [1/1]
PD#SWPL-188367

Problem:
1. Optimized pll clk_ops for 32bit and 64bit compatibility
2. use the integrated pll clk_ops to adapt supported chips

Solution:
1. already integrated into pll clk_ops
2. supported chips already adapted.

Verify:
sc2

Change-Id: Ie202432ea962135c000d63eb254e9a5e100d2ab0
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-10-27 23:09:23 -07:00
Jianxiong Pan f043b18744 mm: remove pagetrace kprobe function. [1/1]
PD#SWPL-190596

Problem:
pagetrace crash.

Solution:
remove kprobe in pagetrace.

Verify:
local.

Change-Id: I781312c74ce9c927efbdf4ed3712dc5fbf53fa14
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-27 18:50:56 -07:00
qinglin.li 382ae522a9 ddr_tool: porting to kernel6.12 [1/1]
PD#SWPL-188342

Problem:
porting to kernel6.12

Solution:
1. porting to kernel6.12
2. remove print slab information

Verify:
local

Change-Id: Ia1e46e29146e37bf0040f29a2113949c72ddf2b2
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-10-25 07:31:31 -07:00
Lei Zhang 490811e23b sched: disable CFS optimization [1/1]
PD#SWPL-190589

Problem:
current CFS optimization is incompatible with EEVDF

Solution:
temporarily disable the feature

Verify:
on SC2

Change-Id: Ifc632b69a19738e7024687b7936305fa914117b0
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2024-10-25 02:22:55 -07:00
dongqing.li 71fc39c31f ramdump: support arm32/arm64 for ker6.12 [1/1]
PD#SWPL-188348

Problem:
ker6.12 souce code is old. And ramdump
is not working properly.

Solution:
1. sync ramdump.c from ker5.15.
2. enable CONFIG_AMLOGIC_RAMDUMP
3. modify TEXTOFFSET=0X0200800 for ker 32bit

Verify:
SC2_AH212

Change-Id: Id19ba0ef1302e9cf4cdf379d10c625519a8eef36
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-10-25 02:08:07 -07:00
Jianxiong Pan de9f1d185d dmc_monitor: arm need check memory map [1/1]
PD#SWPL-188508

Problem:
read no map memory failed when arm build

Solution:
check memory map when arm build

Verify:
local

Change-Id: Ic9b3d81f21c287ddab4b7c908bbd94c56139d8b4
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-24 22:31:56 -07:00