Commit Graph

7739 Commits

Author SHA1 Message Date
zhenteng.tian cd58415eea aipq: obtain the frame_index before processing with GE2D. [1/1]
PD#SWPL-182299

Problem:
kernel panic due to accessing a member variable of vf

Solution:
obtain the frame_index before processing with GE2D

Verify:
T3X

Change-Id: I075c13e4ca158d3b7875945a70966b2ca6f3e56f
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-10-27 21:23:07 -07:00
Huqiang Qin 0a3c6bff80 pdd_monitor: Fixed Oops fatal exception [1/1]
PD#SWPL-189562

Problem:
Memory allocated by devm_kmalloc does not set the space to 0.

Solution:
Use devm_kzalloc instead of devm_kmalloc.

Verify:
S6/BL201

Change-Id: I7bc9d5a62596c2a25b45cdd3066afb1fd48aedc0
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-10-27 18:47:40 -07:00
Huqiang Qin c3641a38ac watchdog: Keep the watchdog status when driver probe [1/1]
PD#SWPL-189563

Problem:
When the kernel is configured to feed the watchdog
in user space, and if the watchdog is enabled
in U-Boot, the driver probe will disable the watchdog.

Solution:
Synchronize register status to driver.

Verify:
T6D/BR301

Change-Id: I3e06113bf468a8b461e1c3f76b5c0d14a6df83d9
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-10-27 18:46:47 -07:00
Junyi Zhao f0066ef372 clk: s7: ignore unused pwm clk [1/1]
PD#SWPL-189570

Problem:
no wifi 32K pwm after boot to kernel
because pwm clk was been closed

Solution:
ignore unused pwm

Verify:
s7_bh201

Change-Id: I053455a8210b3940335be2162ba6e553c7d6c966
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-10-27 18:46:43 -07:00
zhan.wang b953a0058a amvecm: modify s5 addr offset [1/1]
PD#SWPL-181092

Problem:

modify s5 addr offset

Solution:

modify s5 addr offset

Verify:

verify on t5m

Change-Id: I2f56076dbe26e74d0c189f5bc77ce2f1be9616b9
Signed-off-by: zhan.wang <zhan.wang@amlogic.com>
2024-10-27 18:46:38 -07:00
yufei.huan 07232e46dc deinterlace: cat di afbce reg crash [1/1]
PD#SWPL-188584

Problem:
cat di afbce reg crash

Solution:
modify cat afbce reg flow

Verify:
T5M

Change-Id: I39de1f3d56f163b202b91a5bca967c93c8909516
Signed-off-by: yufei.huan <yufei.huan@amlogic.com>
2024-10-27 18:46:15 -07:00
qiyao.zhou 78b58f9488 videoqueue: video play black when parent control [1/1]
PD#SWPL-187355

Problem:
Not get buf from VT when disconnect.

Solution:
Add get buf flow in VQ.

Verify:
txhd2

Change-Id: I999091809493c9859672b21502fce057016568b3
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-10-27 18:46:06 -07:00
Zelong Dong e4807cee70 ir: fix cur_tab is NULL [1/1]
PD#SWPL-189489

Problem:
cur_tab could be NULL when the wakeup key isn't
include in kernel ir keymap

Solution:
check cur_tab, use input 0 as default if cur_tab is NULL

Verify:
t6d

Change-Id: Ifb2f0760b823a50faf822976845b553e111ed72a
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-27 18:45:55 -07:00
shuanshuan.jiang c818f3cc41 camera: s6 support mipi camera in yocto program [3/4]
PD#SWPL-189431

Problem:
yocto program need support mipi camera in s6

Solution:
add checkout for mipi camera dts

Verify:
local

Signed-off-by: shuanshuan.jiang <shuanshuan.jiang@amlogic.com>
Change-Id: Iac4cccd9eea4d48a804f2c165ad62fdce78b8c67
2024-10-25 01:28:57 -07:00
Rufei Fu a2163e4fdd Revert "daisy-memopt: update config and ko to save memory [1/1]"
This reverts commit 25b0e68cf8.

Change-Id: If287182c1348b74bcec28571aae3ae6535a9f086
Signed-off-by: rufei.fu <rufei.fu@amlogic.com>
2024-10-25 00:38:53 -07:00
Xiangyu Cai dcabfae28c vrr: change delay when set to dot by dot [1/1]
PD#SWPL-187126

Problem:
blurred screen when set doy by dot mode

Solution:
change delay when set doy by dot mode

Verify:
t3x

Change-Id: Idb92004ccaf19de819e789b7f9b2ad24a0ded0e9
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-10-25 00:38:41 -07:00
rong.wang 014b19ff8b deinterlace: pull up vpu clkb when di reg [2/2]
PD#SWPL-189455

Problem:
di clk cannot pull up
when another channel doesn't exit normally

Solution:
modify reg flow code

Verify:
T3X/T5M

Change-Id: I002020b0a141df1a035bbd23803182780f532a54
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2024-10-25 00:38:33 -07:00
Cheng Wang 07bb05fdf5 frc: fix frc abs abnormal [1/1]
PD#SWPL-190039

Problem:
exception in absolute value operations on unsigned int

Solution:
convert a unsigned int to a signed int for processing

Verify:
T5M

Change-Id: I546dad80fe2c93d2889d248dec27f26ba4d71aa5
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2024-10-25 00:38:20 -07:00
Huijuan Xiao 1ca7e4f031 amvecm: modify malloc flag [1/1]
PD#SWPL-189257

Problem:
can not use GFP_KERNEL in ISR

Solution:
modify malloc flag

Verify:
t6d

Change-Id: I94afa8540668c8e24e915b96eea1ce4f5030fe89
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-10-25 00:38:14 -07:00
Xiangyu Cai 1c6b0b1ce9 vrr: reduce hdr signal latency [1/1]
PD#SWPL-187970

Problem:
latency test fail

Solution:
reduce latency

Verify:
t3x

Change-Id: I076fe06564e3e14eaf03fcc7ba4ca1cfe68a0861
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-10-25 00:38:08 -07:00
rong.wang e3ce8e9b8a deinterlace: change resume flow [1/2]
PD#SWPL-189455

Problem:
when resume,di timeout and gree screen

Solution:
change resume flow

Verify:
T3X/T5M

Change-Id: I113140297ea941ea2f22a403c1a8476bd5a0e366
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2024-10-25 00:37:54 -07:00
Chuan Liu 849b607619 clk: s6: fix gen_clk configuration errors [1/1]
PD#SWPL-189174

Problem:
1 The en bit of gen_clk is incorrectly configured.
2 The driver is automatically generated using the latest auto_clk_driver
scripting tool.

Solution:
Fixed

Verify:
s6_bl201

Change-Id: I441d66947241a5a0ded5be6e60280c49deedea50
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-10-25 00:37:46 -07:00
jing.li1 62597034ab demux: fix dmabuf crash [1/1]
PD#SWPL-186417

Problem:
dmabuf free a memory twice when dma_buf_fd return error

Solution:
only free a memory once

Verify:
sc2

Change-Id: I3a5f8c488cbd38fef74df11f855acd21bf2db4f5
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-10-25 00:37:37 -07:00
he.he 4e17c380cb usb: No longer recognize any u-disk [1/1]
PD#SWPL-189723

Problem:
This hub no longer recognizes any disks
after unplugging the U-disk once.

Solution:
debug aml_xhci_disable_port

Verify:
s7d

Change-Id: Ie463b8bb239951881f2e2489af8de0c7d7bf2ea8
Signed-off-by: he.he <he.he@amlogic.com>
2024-10-24 23:07:23 -07:00
chao.zhang b25e3e567f pdvfs: enable s6 cpu pdvfs [2/2]
PD#SWPL-186065

Problem:
enable s6 cpu pdvfs

Solution:
use different index by efuse vmin

Verify:
S6

Change-Id: Ib72389afdd77b675a7187696f3db59201f0af4ef
Signed-off-by: chao.zhang <chao.zhang@amlogic.com>
2024-10-24 19:05:29 -07:00
zhenteng.tian f90e364593 vicp: rectify buffer width and height for dma buf. [1/1]
PD#SWPL-188321

Problem:
vicp use wrong buffer width and height for dma buf

Solution:
rectify buffer width and height for dma buf

Verify:
T3X

Change-Id: Ibb1ed3579f7e0bd33ec34925b751eadee97984d5
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-10-24 07:09:00 -07:00
Huqiang Qin 3277811217 pdd_monitor: Add driver support [1/1]
PD#SWPL-189562

Problem:
PDD needs to be enabled by default and print a line
of log to the serial port when triggered.

Solution:
Added pdd_monitor driver, which mainly implements
the following functions:
1. Print log to the serial port when triggered.
2. Provide a simple interface for user space.

Verify:
S6/BL201 T6D/BR301

Change-Id: I2b02847049994ab7bb02c1d24126949df23b30e1
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-10-24 03:09:17 -07:00
Haotian Guo b99994ae4c tvafe: Fix format recognition issue [1/1]
PD#SWPL-189316

Problem:
tvafe works first and then connects to the signal,
but some formats cannot be recognized

Solution:
Reset when plugging in

Verify:
t5m

Change-Id: Ief5c83ded420ea46b96e28c14f0667d4edc1cee1
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2024-10-23 23:06:01 -07:00
dongqing.li 8846993503 ramdump: set TEXT_OFFSET=0x02008000 for ker5.15-u32 [1/1]
PD#SWPL-182182

Problem:
The .text addr of Kernel 32bit is 0. When enabling the
ramdump, it needs to be offset to 24MB+.

Solution:
1. modify textofs-y := 0x02008000, LOADADDR=0x02008000
2. enable for .ko link error: CONFIG_ARM_MODULE_PLTS
3. disable AUTO_ZRELADDR (less than 128MB, not necessary)
4. enable for crash debug: CONFIG_AMLOGIC_RAMDUMP, CONFIG_KALLSYMS,
CONFIG_KALLSYMS_ALL, CONFIG_DEBUG_INFO, CONFIG_FRAME_POINTER,
CONFIG_DEBUG_KERNEL
5. add trace_android_vh_ipi_stop() for ker 32bit IPI_STOP.

Verify:
sc2, T5D, T5W, TXHD2, S4D

Change-Id: I22fff913a9550c029baef93933fea240bf58bbc0
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-10-23 21:46:04 -07:00
qing.zhang 89814db879 Audio: s7 std [1/1]
PD#SWPL-185351

Problem:
support s7 audio codec std

Solution:
1. modify start_clk_enable for tdm_x clk restore
2. modify gpio output control for audio card probe
3. add std for t9015

Verify:
use s7

Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
Change-Id: I165a0cb4ab6a3d60f807f090540c466155fa3745
2024-10-23 19:11:37 -07:00
lele xiang 0cb7270b89 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:
First stage -- codec_mm use new interface to replace
the old interface tee_protect_tvp_mem
depends on CL:
448900
482499

Verify:
T6d

Change-Id: I568d29ef5919c44243f94306eab3afd09a83925b
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2024-10-23 19:11:29 -07:00
yaoyu.xu 023d615508 hdmirx: fix no signal [1/1]
PD#SWPL-189420

Problem:
seg not clr.

Solution:
clr seg when hpd low.

Verify:
t5m.

Change-Id: I7cfecf2cbf8469b39101ec0e3fb5c6054af671b8
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-10-23 19:10:09 -07:00
Zhuo Wang ccf9b4b64d ethernet: fix suspend issue [1/1]
PD#SWPL-189695

Problem:
wow will crash

Solution:
return when null

Verify:
co-work with sc2 SOCKET board

Change-Id: Icafa5161e6ef11f29d872bc97f9abe75d10465a7
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2024-10-23 19:09:57 -07:00
zijie.hong c52677e277 vdin: keystone format convert based on hwc [1/1]
PD#SWPL-189500

Problem:
keystone format convert error leads to display error

Solution:
optimize keystone format convert flow

Verify:
t7

Change-Id: Iba025ae7d42d372004294fc829338430d618e6a9
Signed-off-by: zijie.hong <zijie.hong@amlogic.com>
2024-10-23 19:09:47 -07:00
Lei Yang 93eee5c766 tvafe: acd setting optimized [1/1]
PD#SWPL-179339

Problem:
the active video of AV/ATV port is not centered.

Solution:
1. Disabled DE auto algorithm.
2. Set h/V start position according to the signal standard
3. modify dc_level setting of TXHD2

Verify:
T5W/TXHD2

Test:
54200/TG39

Change-Id: I705d7d7446987fd5a981fb46db03dfeddfa36008
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2024-10-23 19:09:35 -07:00
qiyao.zhou 789039eed0 vicp: vicp output error when input 4096*2160 [1/1]
PD#SWPL-187183

Problem:
vicp scaler flow error.

Solution:
Modify variable type form signed int to unsigned int.

Verify:
t3x

Change-Id: I9dad65de01058b6ab73e642ee1b18a6cf1df88fb
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-10-23 01:12:58 -07:00
Haotian Guo 77d5952452 tvafe: Fix Smarthome compilation issues [1/1]
PD#SWPL-180253

Problem:
tvafe_cvbs_efuse_macrow_en undefined

Solution:
Change the definition position

Verify:
t6d

Change-Id: I7da86cc16a97dd66319a628b349b322eb27590e7
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2024-10-23 01:12:51 -07:00
Jianxiong Pan ffe8a07769 mm: add amlogic vmap stack for arm64. [1/1]
PD#SWPL-188077

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-10-23 01:12:45 -07:00
Doosan Baek aee0ed53b6 kt: add key flag command [1/1]
PD#SWPL-189327

Problem:
need key flag info

Solution:
add key flag command

Verify:
s6

Change-Id: If77ae46dfba7c696c1e6093b977d694f7fb2cd97
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2024-10-23 01:12:39 -07:00
Evoke Zhang e2d7e06e00 lcd: support phy tuning for txhd2 [2/2]
PD#SWPL-187708

Problem:
need support phy tuning for txhd2

Solution:
support phy tuning for txhd2

Verify:
be311

Change-Id: I3fe83545b9eebe6f1df18dd649068939b5b7e860
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-10-23 01:11:58 -07:00
Liming Xue 4a67e22d9c host: add efuse register for m4/dsp enable check [1/1]
PD#SWPL-187343

Problem:
Some chips have their m4/dsp disabled by efuse, which would cause fail
starting of m4/dsp. In this case, the reserved resources in the dts
should be released.

Solution:
Read the efuse register to confirm whether m4/dsp is disabled or not
and release the reserved space in dts when it is disabled.

Verify:
a1/c2/c1/sc2/tm2/g12a/sm1/t7c/t3/t3x/s6

Change-Id: I6f2fc1ad2ff159af525b2b17855b91ae83e54d3a
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-10-23 01:11:49 -07:00
zhan.wang eaefbfa9aa amvecm: full/limit issue [1/1]
PD#SWPL-181092

Problem:
HD SD change cause blinking on screen

Solution:

match matrix settings when input signal type change.

Verify:

verify on t5m

Change-Id: I9bd5e9a78bde3075be94df8078ad0ed094923289
Signed-off-by: zhan.wang <zhan.wang@amlogic.com>
2024-10-22 23:54:04 -07:00
Gaowei Zhao 393b0e7f35 hdmirx: Update hdmirx driver version number [1/2]
PD#SWPL-189596

Problem:
The version number command changed

Solution:
Update hdmirx driver version number

Verify:
t5w

Change-Id: I6b41197cdcae23ae48cc05de50ffd3109b7d61e6
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-10-22 23:53:58 -07:00
qinglin.li f18aa8142b scripts: fix syntax error [1/1]
PD#SWPL-189610

Problem:
script syntax error

Solution:
fix syntax error

Verify:
local

Change-Id: Ie7156c53346bdc0bf51bdbda4a2d511d5a37dff5
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-10-22 00:45:20 -07:00
Pengcheng Chen 17c81c0356 vpp: correct crop adjust when 2 slice with dv on [1/1]
PD#SWPL-189433

Problem:
correct crop adjust when 2 slice with dv on

Solution:
correct crop adjust when 2 slice with dv on

Verify:
t3x

Change-Id: I79d7e9845ead2b5a2ca737afeca21c4af13e0672
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-10-22 00:44:29 -07:00
Pengcheng Chen 306f1fd6c8 vpp: fix t7c vd3 axis not update with multidisplay [1/1]
PD#SWPL-188660

Problem:
t7c vd3 axis not update with multidisplay

Solution:
fix t7c vd3 axis not update with multidisplay

Verify:
t7c

Change-Id: I8c630fd347a739a43fea8e3184b45e257ba6c526
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-10-22 00:44:02 -07:00
Pengcheng Chen 57baaf8a71 vpp: fix compile error issue [1/1]
PD#SWPL-185106

Problem:
fix compile error issue

Solution:
fix compile error issue

Verify:
build

Change-Id: I5a8372ea002354793d845dfca81f44a706b87862
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-10-22 00:43:47 -07:00
brian.zhu 23f6645998 vpp: fix flicker issue when postlink switch [1/1]
PD#SWPL-184798

Problem:
When switching to non post-link mode, vd1 will be block one vsync

Solution:
Do not switch vd1 afbcd mux

Verify:
Verified on t6d

Change-Id: I7137b107e7db16b4f0daba16b23fe995e60bb30a
Signed-off-by: brian.zhu <brian.zhu@amlogic.com>
2024-10-22 00:43:38 -07:00
rufei.fu 25b0e68cf8 daisy-memopt: update config and ko to save memory [1/1]
PD#SWPL-189471

Problem:
config need update to save memory

Solution:
update config

Verify:
T6D

Change-Id: Iceb0568077fa64ec88a8e2cb7984311a91dd386d
Signed-off-by: rufei.fu <rufei.fu@amlogic.com>
2024-10-22 00:43:25 -07:00
hongyu.chen1 237446e3f9 Power: handling std Issues. [1/1]
PD#SWPL-185154

Problem:
The power state of part of the power domain
after STD is wrong.

Solution:
After the STD returns, power is restored
based on the previous state

Verify:
T7c

Change-Id: Ia29039c317c30061606e71c52ac227782a87db8b
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-10-22 00:43:19 -07:00
xiang.wu1 5c5b7e3593 hdmitx: add delay for start hdcp [1/1]
PD#RK-1160
PD#SWPL-189554

Problem:
Performing HDCP certification when the signal is unstable
may cause some TVs to be unable to decode the signal properly.
The TV will trigger hot plugging and keep repeating this
process, causing the TV to be unable to display properly.

Solution:
need postpone auth time wait TV side signal detection stable

Verify:
t223

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

Change-Id: Iea4884f8e68ad262b4bbb18dc2677b83c36c873c
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-10-22 00:42:59 -07:00
chen.xu d9ae4dffce amlvideo2: support screen record video but no video [1/1]
PD#SWPL-187520

Problem:
support screen record video but no video.

Solution:
1.if has video send normal frames, if no video send black frames.

Verify:
T982

Change-Id: I5d647731ae69e18a4754a553162abd931828cdcd
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-10-22 00:42:35 -07:00
Jianxiong Pan c854e544ce mm: add __nocfi in amlogic cma. [1/1]
PD#SWPL-175996

Problem:
fix cfi check failed.

Solution:
add __nocfi flags in amlogic cma.

Verify:
local.

Change-Id: I5ea21b79c564d19f9158b7142fa237200f2823de
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-22 00:42:28 -07:00
zhan.wang 1ec14403f4 amvecm: add debug cmd for tool [1/1]
PD#SWPL-183757

Problem:
add debug tool for pq tool

Solution:
add debug cmd

Verify:
verify on t5m

Change-Id: Ice99ea1d0e1db9a9569bf50a030930f9a1da2e4b
Signed-off-by: zhan.wang <zhan.wang@amlogic.com>
2024-10-22 00:42:12 -07:00
Wentao.Sun cd3952bb7e dts: optimize secure reserved memory [1/1]
PD#SWPL-188146

Problem:
optimize secure reserved memory

Solution:
optimize secure reserved memory

Verify:
AndroidV + sc2

Change-Id: If03b558c2d41449b0cbe1beeecef0b795a25cc7f
Signed-off-by: Wentao.Sun <wentao.sun@amlogic.com>
2024-10-22 00:42:05 -07:00