Commit Graph

3481 Commits

Author SHA1 Message Date
Junyi Zhao 986f7cd03f clock: fix code cov [1/1]
PD#SWPL-193226

Problem:
code cov error

Solution:
fix it

Verify:
sc2 ah212

Change-Id: I6bf56fc8a37cf4211db3216ed7ef801bc93463ab
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-12-23 02:35:36 -08:00
Jianxiong Pan 21e116a6a9 mm: fix large slab statistics error. [1/1]
PD#SWPL-197513

Problem:
Large slab optimization leads to statistical errors.

Solution:
correct statistics.

Verify:
sc2.

Change-Id: I69b6567fcc709fb0ecf97d7224d26df2a3b8717d
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-12-22 17:48:07 -08:00
ruofei.zhao 76bd59081f hdmitx: add hdr debug information [1/1]
PD#SWPL-196322

Problem:
add hdr debug information

Solution:
add hdr debug information

Verify:
S905X4

Test:
DRM-TX-92

Change-Id: If26e0f077104bb35a28d8d4cfd5d2a1d7be00d50
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-12-22 17:46:31 -08:00
xiang.wu1 b1c4b343c3 hdmitx: clear hdmitx_drm_hook api [1/1]
PD#SWPL-196767

Problem:
clear hdmitx_drm_hook api

Solution:
clear hdmitx_drm_hook api

Verify:
SC2

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

Change-Id: I446b3e035835e8fd35bb3c9e22c95b663ada6caf
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-12-22 17:45:34 -08:00
qinglin.li c1b59c443a dmc_monitor: filter tvp alloc_from_cma function [1/1]
PD#SWPL-196060

Problem:
tvp use alloc_from_cma alloc protect memory
when dmc access this range, will be creat serror

Solution:
dmc filter tvp alloc_from_cma memory by pagetrace

Verify:
local

Change-Id: I8aff1a76e8f774ae7cc665f62756ef3a510ddd29
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-12-22 17:45:18 -08:00
Matthew Shyu 8e25f1693b tdes: correct tdes buffer on 64 bit bus [1/1]
PD#SWPL-197265

Problem:
Access violation seen on TDES

Solution:
Correct the buffer address in TDES

Verify:
S6

Change-Id: I068cb8b73968467b160c93e96daa21b1036f07d8
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
2024-12-20 02:08:24 -08:00
yujun.zhang 5d3eb012ab drm: add video cap, src buf size prop [1/1]
PD#SWPL-187716

Problem:
Userspace needs get video cap, src buf size
by drm property

Solution:
Add video plane properties

Verify:
sc2

Test:
DRM-OSD-81

Change-Id: I5dc81140d8f4f5bc55c8cd8b454d6f4731b80e0b
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2024-12-19 23:38:05 -08:00
Hanjie Lin 86eed2b8bd user_fault: add mmap_read_trylock in show_vma [1/1]
PD#SWPL-197216

Problem:
mmap should be locked in show_vma or may caused WARNING

Solution:
add mmap_read_trylock

Verify:
sc2

Change-Id: I29cb7fc4f03b9db90c9e6daf98618657a4724f38
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2024-12-19 20:58:08 -08:00
Jianxiong Pan add13682c0 mm: enable aml_cma for gki20. [1/1]
PD#SWPL-196879

Problem:
enable aml_cma for gki20.

Solution:
add aml_cma.ko for gki20.

Verify:
sc2.

Change-Id: I360c4b77b632cea82e128c319283d5e425252019
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-12-19 20:57:36 -08:00
Dezhen Wang 9e4283999e debug: sync debug/audio_utils.c patch from 5.15 [1/1]
PD#SWPL-196412

Problem:
sync common_drivers/drivers/debug/audio_utils.c patches
from amlogic-5.15-dev to amlogic-6.12-dev branch

Solution:
sync patch

Verify:
Local

Change-Id: I802292b9bc2106e7779752d52235e8cacd4f7779
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-12-19 20:57:30 -08:00
Pengcheng Chen 50b0b8d313 vpp: improve dejaggy_en condition [1/1]
PD#SWPL-196130

Problem:
improve dejaggy_en condition

Solution:
improve dejaggy_en condition

Verify:
s6

Change-Id: I20c77ec8b6c1995f44d501b9002397d3dc469e19
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
(cherry picked from commit e030e076bc)
2024-12-19 20:57:17 -08:00
Wenjie Qiao 739d851596 hdmitx: cts HF1-66 test fail [2/2]
PD#SWPL-196173

Problem:
cts HF1-66 test fail, the edid only support 480p and 576p,
but the UI display 720p and 1080p, select 720p and 1080p
will test fail

Solution:
before: will set default vic when edid has one block
now: set the default vic only when no vic or edid invalid

Verify:
s7d

Test:
DRM-TX-142

Change-Id: Ia4cc91d21ec974a22b4c44fcc8abddebdec3c212
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-12-19 20:56:49 -08:00
baocheng sun d7c31a369e uvm: update api of get video info [1/2]
PD#SWPL-188294

Problem:
expend get video info ioctl to get vframe souce crop

Solution:
update api of get video info

Verify:
sc2

Change-Id: I6928c9d28d9123a062297a2c04e23af66f476669
Signed-off-by: baocheng sun <baocheng.sun@amlogic.com>
2024-12-19 20:56:06 -08:00
zhou.han 72577f2836 hdmitx: fix kernel6.12 UBSAN error [1/1]
PD#SWPL-194784

Problem:
kernel6.12 UBSAN error:
index 141 is out of range for type 'struct dtd[16]'

Solution:
When dtd_idx is less than 15, idx++

Verify:
sc2

Test:
DRM-TX-38

Change-Id: I0cf5b2d6728e5f13770b0941eaf8ddb9e63e60f3
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-12-19 20:55:25 -08:00
Jianxiong Pan a00c19af4d mm: add amlogic vmap stack for arm64. [1/1]
PD#SWPL-197160

Problem:
kernel stack optimization.

Solution:
add amlogic vmap stack for 64bit.

Verify:
sc2.

Change-Id: Ie3b059022e1ab8479f65921ec6fe171824fcd9a1
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-12-19 20:55:11 -08:00
qiyao.zhou 45655dec2f drm: use new interface from videodisplay [3/3]
PD#SWPL-190687

Problem:
Add videodisplay module.

Solution:
Use new interface from videodisplay module.

Verify:
sc2

Test:
DRM-OSD-81

Change-Id: Ie27d02d210115b4d24f9f2ec3748444c800996b2
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-12-18 18:20:42 -08:00
qiyao.zhou eb1d45870a videodisplay: add videodisplay module in 6.12 [1/3]
PD#SWPL-190687

Problem:
Add videodisplay module.

Solution:
Add videodisplay module.

Verify:
txhd2

Change-Id: I8851593973864d54e9d6d5d7889243e8cffdb293
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-12-18 18:06:23 -08:00
zhenteng.tian eee5a6e98c vc: send 10bit YUV data to vpp. [1/1]
PD#SWPL-192244

Problem:
vc need to send 10bit YUV data to vpp

Solution:
send 10bit YUV data to vpp

Verify:
T5M

Change-Id: Ifacf9e8513e88de5435c24e41645cf1c3ce0f5d7
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-12-18 02:52:56 -08:00
Jianxiong Pan 94f1f464f5 mm: reduce print info when oom. [1/1]
PD#SWPL-193855

Problem:
print too much log when oom.

Solution:
pagetrace prints above 1M of info.

Verify:
sc2.

Change-Id: I12c5de2f6ebfc9591fb722f1f8a0c57b18f0a48f
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-12-18 00:11:41 -08:00
Hanjie Lin 0edfce553a user_fault: get faked init_mm from ttbr1_el1 [1/1]
PD#SWPL-197053

Problem:
disabled CONFIG_KALLSYMS_ALL cause user_fault can't find init_mm

Solution:
get a faked init_mm from ttbr1_el1

Verify:
sc2

Change-Id: I95c711abcc9b37205b742e7ac7839acc65466bc7
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2024-12-18 00:11:36 -08:00
dian.shao be5286294d usb: s6 u3phy pll parameters updates [1/1]
PD#SWPL-196777

Problem:
s6 u3phy pll parameters updates.

Solution:
Modify driver(hard coded).

Verify:
S6

Change-Id: I17326e0e6e867e7671788753df023e163dd1f9be
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-12-18 00:10:17 -08:00
Pengcheng Chen 2694069d10 vpp: scale down need enable preh for s6 [1/1]
PD#SWPL-196165

Problem:
scale down need enable preh

Solution:
call safa_speed_up_handle for s6

Verify:
s6

Change-Id: I5f5301fb31cd041aebc8446240c339c4ff866739
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
(cherry picked from commit 44337d5c5e)
2024-12-17 03:16:57 -08:00
Jian Cao 340dc7feea vpp: add check for type_ext VIDTYPE_EXT_HIGH_BANDWIDTH [1/1]
PD#SWPL-195155

Problem:
vpp needs to perform line skipping while high bandwidth

Solution:
add the corresponding flag check

Verify:
t5m

Change-Id: I0663dbb6dd0fb90058f8afba4ec7d75c76d77dc6
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
(cherry picked from commit 170cdf7d3d)
2024-12-17 03:16:51 -08:00
Jianxiong Pan f68684c5cb mm: add GFP_NO_CMA flags. [1/1]
PD#SWPL-196879

Problem:
some page fall into cma pool, causing slow cma allocation.

Solution:
add GFP_NO_CMA flags.

Verify:
sc2.

Change-Id: I5a319b7ce85d735e14289786fb5b80cc59f73009
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-12-16 23:31:58 -08:00
xiang.wu1 752f005796 hdmitx: module_params clean [1/1]
PD#SWPL-195505

Problem:
module_params clean

Solution:
1. Clear unnecessary module_params.
2. Some functions are implemented through debug nodes.
3. Keep hdmi_authenticated hdmitx_debug  nodes.

Verify:
SC2

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

Change-Id: Iea2981de243d5a52c9da437eb6dacebd0d742d15
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-12-16 23:31:20 -08:00
xiang.wu1 30f7ecad65 hdmitx: optimizes the code for sending 4kx2k vsif packet [1/2]
PD#SWPL-142291
PD#SWPL-196224

Problem:
hdmitx_common_setup_vsif_packet contains
hdmi_set_vend_spec_infofram function, remove unnecessary code

Solution:
remove it

Verify:
sc2

Test:
DRM-TX-136

Change-Id: Ib83474888e704954f3b1861cd20f4f495b87f8cf
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-12-16 03:24:55 -08:00
Martin Blumenstingl 725a51f78c pinctrl: meson: implement the gpio_chip get_direction callback [1/1]
PD#SWPL-196545

Problem:
Synchronize from upstream.

Solution:
Implement the get_direction callback so we read the direction
from the actual GPIO controller register. This is recommended
by the gpio_chip kernel doc.

Verify:
T6D/BR301

Change-Id: Idc436ae6546ee0985477b69819f84668f46b8f13
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2024-12-16 03:24:49 -08:00
qiankun.wang 69f6eea16e gki_module: add key_value common module_param function [1/1]
PD#SWPL-195506

Problem:
too many module_params extend boot time.

Solution:
Use key-val to obtain module_params information.

Verify:
sc2

Change-Id: I003aad5f0442c30bd729a2ad22001223dda1975a
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-12-16 00:32:30 -08:00
qiankun.wang 227287e31c debug: module_params clean. [1/1]
PD#SWPL-195506

Problem:
too many module_params extend boot time.

Solution:
Use key-val to obtain module_params information.

Verify:
sc2

Change-Id: Id04543738a7a6d179b815910a75482cca9b011d7
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-12-16 00:32:23 -08:00
qinglin.li b3fb387612 upgrade: kernel6.12 upgrade [1/1]
PD#SWPL-195729

Problem:
kernel6.12 upgrade

Solution:
AML_KERNEL_VERSION      5
UPSTREAM_VERSION        "f3dfc92a4f9d"
AML_PATCH_VERSION       "f3dfc92a4f9d"
MERGE_DATE              "2024-12-09"

Verify:
sc2

Change-Id: Ie5c58add45050acff07bc9d6f0af2c7d97ffff15
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-12-15 19:28:38 -08:00
yujun.zhang 49d0060f84 drm: fix coverity error [1/1]
PD#SWPL-193205

Problem:
coverity error:
1.Improper use of negative value
2.Uninitialized scalar variable

Solution:
Change "u32" to to "int"
Initialize struct members

Verify:
SC2

Test:
DRM-OSD-85

Change-Id: I6acfedb75ed334488ad44dc35bfcd79765e92d49
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2024-12-13 03:51:51 -08:00
Feng Chen 16116ca9d2 spi: coverity clean [1/1]
PD#SWPL-193224

Problem:
spi coverity clean.

Solution:
fix it.

Verify:
Local.

Change-Id: I56f0c0090c525e0375ea44438d1468a008b956d6
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2024-12-13 03:51:35 -08:00
ruofei.zhao 3a2b27e55f hdmitx: add edid parse in hdmitx debug function [1/1]
PD#SWPL-193432

Problem:
add edid parse in hdmitx debug function

Solution:
add edid parse in hdmitx debug function

Verify:
S905X4

Test:
DRM-TX-78

Change-Id: I1a356e16b83c12ca48907322c7a5f8810a756f79
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-12-13 01:48:26 -08:00
Junyi Zhao 2d50edc0ea led: fix led str error for 6.12 [1/1]
PD#SWPL-195159

Problem:
6.12 bringup

Solution:
support it

Verify:
sc2 ah212

Change-Id: Ib8992c2f8a5a071202750cba84905e75b6f84572
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-12-13 01:48:14 -08:00
zhou.han 3a59563387 hdmitx: add allm_cap and dc_cap property [1/1]
PD#SWPL-194387

Problem:
Try to limit the HWC directly r/w  the driver node.

Solution:
Add allm_cap and dc_cap property

Verify:
Android-U

Test:
DRM-TX-20

Change-Id: Ic809be452951844fcf1270c0b584ca832bed1ca2
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-12-13 01:47:53 -08:00
Pengcheng Chen 7a150c01e7 vpp: pps nonlinear support fot t3x [1/1]
PD#SWPL-159149

Problem:
pps nonlinear support fot t3x

Solution:
pps nonlinear support fot t3x

Verify:
t3x

Change-Id: I8c00382824e92fac959461dba1f3039dca23960f
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
(cherry picked from commit e62a49dffe)
2024-12-12 19:39:13 -08:00
Zhuo Wang 3fddd6f749 eth: sc2 mdns for 6.12 [1/1]
PD#SWPL-195015

Problem:
kernel 6.12 sc2 mdns function not work

Solution:
porting mdns function from 5.15 to 6.12

Verify:
ADT4+

Change-Id: I3e79139fba679bf4c51ef27f09b4a6f08e194ad1
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2024-12-12 05:44:05 -08:00
qiuye.gan 159f734b37 ptsserv: CB2 coverity defect cleanup [1/1]
PD#SWPL-193240

Problem:
coverity reported "Wrong sizeof argument" for ptsserv.

Solution:
fix "sizeof argument"

Verify:
t6d

Change-Id: Id0f36cf3126b3ca97cc7a5b524b94f0be4153833
Signed-off-by: qiuye.gan <qiuye.gan@amlogic.com>
2024-12-12 01:49:03 -08:00
Yao Jie 28b975eb19 mailbox: fix ARM to DSP data error in TSYNC mode [1/1]
PD#SWPL-196095

Problem:
Mailbox DSP RX data size is incorrect when mailbox
device node is operated or mailbox API is called
with TSYNC mode to receive data from DSP

Solution:
Modify mailbox driver to configure correct mailbox
RX data size to receive data from DSP

Verify:
SC2-AH212
A1-A113L

Change-Id: Ibaf7ef6315bf3ae158bd7d8bdd6b3207f18e67ed
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2024-12-11 21:59:44 -08:00
zongdong.jiao f4a7342325 hdmitx: coverity defect cleanup [1/1]
PD#SWPL-193217

Problem:
coverity defect cleanup

Solution:
coverity defect cleanup

Verify:
s7

Test:
DRM-TX-38

Change-Id: I0c4653882941a41f8479a04cd4e8bddde15852f0
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2024-12-11 05:43:39 -08:00
zongdong.jiao 14a22c48bd hdmitx: unify allm/game_ct show and store [1/1]
PD#SWPL-195314

Problem:
unify allm/game_ct show and store

Solution:
unify allm/game_ct show and store

Verify:
s905x5/raman

Test:
DRM-TX-30, DRM-TX-78, DRM-TX-79, DRM-TX-80, DRM-TX-81

Change-Id: If0889dd203f446d14f2fd4d638227d008803956f
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2024-12-11 17:33:41 +08:00
Zhu Lv 80a36a81d2 bt: fix abnormal log print [1/1]
PD#SWPL-194326

Problem:
abnormal log print

Solution:
Register interrupt service for BT wakeup
according to the definition of gpio_btwakeup,
ignore it when undefined.

Verify:
adt4

Change-Id: I42cee568dc66f7104c4e4ea6dd3a815735ac19bb
Signed-off-by: Zhu Lv <zhu.lv@amlogic.com>
2024-12-10 23:43:14 -08:00
chuangcheng.peng 113516af6a demux: fix dsc and demux mutex protect issue [1/1]
PD#SWPL-195967

Problem:
dsc crash

Solution:
dsc and demux should use same mutex

Verify:
verified at s7

Change-Id: Id90f5698d885fad8566e894a0e82a051b800ccfc
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-12-10 02:40:32 -08:00
Yongjie Zhu 405457adf5 dmaheap: coverity defect cleanup [1/1]
PD#SWPL-193238

Problem:
dma coverity defect cleanup

Solution:
coverity defect cleanup

Verify:
adt4

Change-Id: Id1aed60466db24e2d4b7dc930f1e016615106d67
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2024-12-09 18:18:56 -08:00
ruofei.zhao b79e776d40 hdmitx: change hdmi_init from 1 to HDMITX20 or HDMITX21 [1/1]
PD#SWPL-195698

Problem:
CEC anomaly invalid physical address

Solution:
change hdmi_init from 1 to HDMITX20 or HDMITX21, When registering cec,
the hdmi_init judgment condition is still hdmi_init == 1, which causes
registration failure and fails to get the correct cec physical address.
modify the hdmi_init judgment condition to solve this problem.

Verify:
S905X4-AH211

Test:
DRM-TX-78

Change-Id: I32d34f01174f9ab6c6e9bf311ad91d2307e3a13c
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-12-09 18:17:06 -08:00
Huqiang Qin daecfd673e adc_keypad: Support configurable event types [1/1]
PD#SWPL-195605

Problem:
Need event type to be configurable.

Solution:
Support configurable event types.

Verify:
T6D/BR301

Change-Id: I17693afcb65b8897374b07c067555f5198ccd962
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-12-09 03:32:42 -08:00
shufei.zhao 5cdd401de1 mbox: bringup kernel6.12 for s7d [1/1]
PD#SWPL-195955

Problem:
support mbox for s7d

Solution:
support mbox for s7d

Verify:
s7d

Change-Id: Ib6bfa8bb3d6b15b13403117aee9c22cd0927b20c
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
2024-12-09 03:20:40 -08:00
shufei.zhao 1f01ce5ad4 clk: bringup kernel6.12 for s7d [1/1]
PD#SWPL-195763

Problem:
support clk for s7d

Solution:
support clk for s7d

Verify:
s7d

Change-Id: Icd1a1c9cf8f2bdbe10e18bc89291a1587cf0e7e1
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
2024-12-09 03:20:19 -08:00
guoqing.sun 4d92bb42f2 CI: coverity problem in kernel6.12. [1/1]
PD#SWPL-194931

Problem:
coverity problem

Solution:
fit it

Verify:
kernel coverity verify

Change-Id: Ib16620fa04215fac22b9a86f5036159f6178d3a5
Signed-off-by: guoqing.sun <guoqing.sun@amlogic.com>
2024-12-09 03:19:16 -08:00
xiang.wu1 e939e18fb6 hdmitx: remove vrr function point int the meson_hdmitx_dev struct [1/1]
PD#SWPL-186430

Problem:
need remove vrr function point int the meson_hdmitx_dev struct

Solution:
1.remove drm vrr function point callback
2.provide function api

Verify:
SC2

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

Change-Id: Ia0db79a517ac850e8ceec742a9ee52744b6db4fc
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-12-09 01:31:52 -08:00