Commit Graph

6931 Commits

Author SHA1 Message Date
wenlong.zhang fae9594f11 drm: init osd register for suspend&resume [1/1]
PD#SWPL-177148

Problem:
for save power consumption, suspend will turn off vpu power,
register will br reset.

Solution:
we need to do block register init again

Verify:
S7

Test:
DRM-OSD-75

Change-Id: Ia2e0a8e6404f624cc41f3aacffbce558179fcb70
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-08-06 03:42:16 -07:00
qiyao.zhou 78363f9c4d di_process: vf not include decoder vf param. [1/1]
PD#SWPL-171638

Problem:
DI output vf not include decoder vf param..

Solution:
Add decoder vf param when output vf in di_process.

Verify:
t3

Change-Id: I7c6cccaa295270fc57b5c5eee84fd3682ee8cdca
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-08-06 03:42:09 -07:00
Evoke Zhang 5e89f0c7bd lcd_extern: fix gpio failed for multi cmd [1/1]
PD#SWPL-179814

Problem:
gpio function failed for lcd extern multi cmd

Solution:
fix gpio function failed for lcd extern multi cmd

Verify:
ay301

Change-Id: I1a90f0b708c868da17627707c2828aaee613a286
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-08-06 01:43:12 -07:00
rong.wang cfc2744e03 deinterlace: switch TB interface not work [1/1]
PD#SWPL-179487

Problem:
switch TB interface not work

Solution:
reset tb_en when tb status change

Verify:
s5

Change-Id: I6637bfa9b45d8077981fe51a8915178c4fde40da
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2024-08-06 01:43:08 -07:00
rong.wang 6fe1647f56 deinterlace: reduce vpu clkb when di not work [1/1]
PD#SWPL-179487

Problem:
reduce power

Solution:
reduce vpu clkb when di not work

Verify:
s5

Change-Id: Ia607373beaf161f803d4404cf0821a178e6c7f5a
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2024-08-06 01:43:03 -07:00
Yongjie Zhu 5e346070e3 dmaheap: add class and debug node [1/1]
PD#SWPL-176242

Problem:
dmaheap driver need support debug & class node
gralloc need use ioctl to get dmaheap info

Solution:
add class and debug node for dmaheap
add dmaheap ioctl for gralloc

Verify:
s7d

Change-Id: I60fa73f6c51bbb37fc81531e61b28ecd1fbf700f
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2024-08-06 01:42:57 -07:00
Pengcheng Chen 0006de54ab vpp: s6/s7d safa scaler down improve [1/1]
PD#SWPL-176315

Problem:
s6/s7d safa scaler down improve

Solution:
s6/s7d safa scaler down improve

Verify:
s6

Change-Id: Ie20044495e1af90dcc3c521b37f5142474054045
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-08-06 01:42:52 -07:00
Jianxiong Pan 2011e39b88 mm: page trace use vendor hook install of kpobe. [1/1]
PD#SWPL-172576

Problem:
pagetrace tool affects performance.

Solution:
pagetrace use vendor hook install of kprobe.

Verify:
local.

Change-Id: Ia55fb2857061b8ec53bb9d29979997c8fe5df221
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-08-06 01:42:46 -07:00
hualing chen f473d32d48 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-08-06 01:42:22 -07:00
Hao Shi 9f44c6a532 codec_mm: creat alloc_page_task without cma [1/1]
PD#SWPL-179082

Problem:
alloc_page_task not run cause kernel crash.

Solution:
allow alloc_page_task run when no cma.

Verify:
S5

Change-Id: I45a46b85449b1000aa44214bceac745d6c192a80
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-08-05 23:44:11 -07:00
Xiangyu Cai 2cbb1003be framelock: add game low latency interface [1/1]
PD#SWPL-169690

Problem:
add game low latency interface

Solution:
add game low latency interface

Verify:
t3x

Change-Id: Ifd63805577aef5e05b7097908985d2c53f22d223
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-08-05 23:44:06 -07:00
min.yang 679ee3d885 dtv_demod: calibrate j83b signal strength read from R842 (V3.5.049) [1/1]
PD#SWPL-176770

Problem:
Signal strength deviation is too large

Solution:
Calibrate signal strength

Verify:
T5D

Change-Id: I9f1a91315cd8c9e1552ce4d459dcd16984a18707
Signed-off-by: min.yang <min.yang@amlogic.com>
2024-08-05 21:46:38 -07:00
Junyi Zhao 38ff5910ca pwm: s7: add double channel and normal channel in tee env [1/2]
PD#SWPL-176719

Problem:
when pwm's clk be locked by tee, all pwm should follow tee.
so, should support wifi 32K on pwm tee module.
in case of clk of wifi's pwm channel being locked.

Solution:
add  double channel to match wifi 32K legacy used.

Verify:
s7

Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
Change-Id: I343be31d409cf1480b5681acc1ec83fd7a7fad5c
2024-08-05 21:46:19 -07:00
Tao Zeng 64a15f5873 amfc: fix boot crash on S6 [1/1]
PD#SWPL-179595

Problem:
boot failed on S6

Solution:
fix it

Verify:
s6_bl201

Change-Id: Ia75afe7aa2447bb9074063b12f3b6024f9af1b86
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-08-05 19:44:17 -07:00
Pengcheng Chen 8d7d6eb250 vpp: set video_suspend false in std suspend notify [1/1]
PD#SWPL-174926

Problem:
video vsync_isr delayed 2-3s after resume

Solution:
set video_suspend false in std suspend notify

Verify:
t7c

Change-Id: I1f85db7537fd246d59a026184fab6a1d6de46a50
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-08-05 19:44:13 -07:00
qiyao.zhou a6241dac31 vicp: fix compile error when enable dump frame api [1/1]
PD#SWPL-180110

Problem:
compile error when enable dump frame api.

Solution:
replace old fs api.

Verify:
s6

Change-Id: If9f07a12daa52be33035573547069f8acadb9fdc
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-08-05 07:50:04 -07:00
chao.zhang e92462d117 dsu clk: change dsu clk [1/1]
PD#SWPL-174822

Problem:
change dsu clk

Solution:
change dsu clk

Verify:
S7D

Change-Id: I7161f06683b903e325ff979da89d5ffea245af37
Signed-off-by: chao.zhang <chao.zhang@amlogic.com>
2024-08-05 04:50:01 -07:00
zongdong.jiao 23c61af06d hdmitx: move vrr compare data to member [1/1]
PD#SWPL-178581

Problem:
move vrr compare data to member

Solution:
move vrr compare data to member

Verify:
s5/ax201

Test:
DRM-TX-75

Change-Id: I081cdf4b6d25110e8a5ae133fba1efc18a3b8df8
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2024-08-05 02:14:48 -07:00
Pengcheng Chen 3f49b51358 vpp: fix mk_zapper32.sh build error [1/1]
PD#SWPL-164381

Problem:
fix mk_zapper32.sh build error

Solution:
fix mk_zapper32.sh build error

Verify:
s7d

Change-Id: If696fda713fd029989f6ebd979f1a98ef96346ce
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-08-04 23:06:10 -07:00
chenyang.liu ec0e16d30c lcd: fix debug info miss phy_clk and interface message [1/1]
PD#SWPL-179464

Problem:
debug info miss phy_clk and interface message

Solution:
1.calculate phy_clk by pll_fvco and tcon_div_sel
2.fix length of interface_print

Verify:
ay301

Change-Id: I5ece94d079a8f46181f4cd7a2437c72469108bcf
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2024-08-04 23:06:06 -07:00
jinbiao bbb6bfadbb mmc: Optimize the configuration of host driver. [1/1]
PD#SWPL-176339

Problem:
Enable configs of host driver.

Solution:
Enable configs:
MMC_CAP2_NO_PRESCAN_POWERUP
MMC_CAP2_FULL_PWR_CYCLE
post-power-on-delay-ms: 1

Verify:
S7_BH201

Change-Id: Ief422f439e67ccaec2b281dbb70b2b8f3b529987
Signed-off-by: jinbiao <jinbiao.ou@amlogic.com>
2024-08-04 23:06:02 -07:00
yudong.cai ce2aff7df5 vdin: Fixed screencatch screenshot restart issue [1/1]
PD#SWPL-179076

Problem:
420 output, the C address configured to the register
is the wrong data type, causing memory to be flushed

Solution:
Example Change the data type of address C to the correct one

Verify:
s6

Change-Id: I147c58f1b545d21455e310e6d10ca455667ee49d
Signed-off-by: yudong.cai <yudong.cai@amlogic.com>
2024-08-02 07:41:53 -07:00
hai.cao 0b1c96d5b4 osd: osd will flash when 2 afbc layers change to 1 afbc layer [1/1]
PD#SWPL-180159

Problem:
osd will flash when 2 afbc layers change to 1 afbc layer

Solution:
disable osd2 afbc when osd blank

Verify:
t5m

Change-Id: I94bd1407771aa27ea2206916097f20e3aec0201c
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-08-02 03:53:25 -07:00
Pengcheng Chen 6745879c54 vpp: set slice h out size 16 aligned for s5 [1/1]
PD#SWPL-178536

Problem:
2 slice 720x576 input display abnormal

Solution:
set slice h out size 16 aligned for s5

Verify:
s5

Change-Id: I65054b907417af7267237efff0b68ab070d3dae6
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-08-02 03:53:21 -07:00
Huijuan Xiao f9988d44c2 amvecm: mtx recovery for std [1/1]
PD#SWPL-174926

Problem:
suspend resume post2 mtx recovery

Solution:
suspend resume post2 mtx recovery

Verify:
t7c

Change-Id: I57907e9b271836683491c688657e78ca5f8bfa4f
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-08-02 03:52:59 -07:00
yujun.zhang c57e2abb30 drm: reduce wait time to be 100ms in waiting dependencies [1/1]
PD#SWPL-176465

Problem:
10s for waiting dependencies in commit is too long.

Solution:
Use 100ms for waiting.

Verify:
s7d

Test:
DRM-TX-38

Change-Id: Ibc7c1e92eea0168421763a2b0acb90e5d4dce400
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2024-08-02 03:52:47 -07:00
Evoke Zhang e30676fc8e lcd: update ufr mute control [1/1]
PD#SWPL-175916

Problem:
need support different unmute time for upper layer UI switch

Solution:
support different unmute time for upper layer UI switch

Verify:
bc302

Change-Id: I2018f8380ba186f2a232adfb8a24c734bf95bdc3
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-08-02 03:52:42 -07:00
qinglin.li f5f881670d upgrade: kernel upgrade by July with kernel [1/1]
PD#SWPL-169224

Problem:
update include/linux/upstream_version.h
fix conflict

Solution:
update include/linux/upstream_version.h
fix conflict

Verify:
local

Change-Id: I032f25e9054eeda9ad10dd7e6a20a184787d8518
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-08-02 03:44:28 -07:00
qianqian.cai 06d1446c16 deinterlace: dts post num need update for di backend [1/1]
PD#SWPL-179635

Problem:
dts post num need update for di backend

Solution:
dts post num need update for di backend

Verify:
t5m

Change-Id: I4bd889665bc0a6e5842b68ac011ddfce15459d9f
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2024-08-02 02:52:18 -07:00
Chuan Liu 40e030d862 clk: s6: Fix known issue [1/1]
PD#SWPL-179629

Problem:
1 Optimize driver file formats using automated tools.
2 vpu_clk adds a flag feature to prevent glitch when operating the
clock.
3 The naming of hifi_pll is inconsistent with the clkid style.
4 The latest documentation provided by vlsi has changed the sys_clk
definition for USB and PCIe.

Solution:
1 Optimized
2 vpu_clk added flag CLK_OPS_PARENT_ENABLE.
3 The clkid of hifi_pll is named CLKID_HIFI_PLL.
4 USB and PCIe sys_clk have been updated.

Verify:
s6_bl201

Change-Id: I4560f7bc6d42583d4e62d184c182bfe199cb6955
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-08-02 02:52:10 -07:00
yajing.li f9e4d31ce9 gpu: gpu dts config review [1/1]
PD#SWPL-178021

Problem:
1.s5 lowest frequency not ok
2.some chips hiubus not ok

Solution:
1.set s5 lowest frequency to 250M
2.set  hiubus register

Verify:
S5/s7/sc2/s4/s4d/t3

Change-Id: I3ecfc8b844041356406d2101013206ac9d4180dc
Signed-off-by: yajing.li <yajing.li@amlogic.com>
2024-08-02 02:52:05 -07:00
jinbing.zhu d140c425d1 amvecm: add protect to load reg. [1/1]
PD#SWPL-174427

Problem:
add protect to load reg

Solution:
add protect to load reg

Verify:
t3x

Change-Id: I6a3aec761ef40b5faecbdc937c8a8fa25d40d189
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-08-02 02:52:01 -07:00
dian.shao fa8e67605c usb: s6 power optimise & misc [1/1]
PD#SWPL-177679

Problem:
S6 usb high power.
speed-drop usb devices.
u2phy disconnect, squelch & edgedrv cali

Solution:
Optimise suspend logic by holding usb controller reset bit,
usb controller comb reset bit, usb2_phy_reset_bit, usb3_phy_reset_bit
.Besides:
1. reset usb3_apb_reset_bit and leave it set then modify corresponding
static regs for low power.
2. off unused usb3phy digital 100M clk.
3. Some quirky devices take >2s to turn on Rterm and begin polling
after resume, which is seen in the new clean usb3 phy. This leads
to wait_for_connected timeout when resuming. Add XHCI_MISSING_CAS
for xHC to workaround by asserting warm reset at resume.

The speed-drop usb devices TX maybe unstable at insertion, leading to
CDR KI overload. Delay freq tracking start point by modifying fr_en
delay 1us->300us.

Modify params in driver & dts.

Verify:
BL201.

Change-Id: I4d6139ecad79e8582ada818338fcf53a1d66b131
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-08-02 01:00:02 -07:00
yicheng shen f23c351ae1 hdmirx: disable hdcp repeater function for tm2 [1/1]
PD#SWPL-175984

Problem:
hdcp repeater function was enabled,hdcp1.4 authentication fail

Solution:
Do not enable hdcp repeater function except t7

Verify:
TM2

Change-Id: I5b84feddad37c562ae7304304a61647f613b531e
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2024-08-01 23:16:15 -07:00
saisai.chang f30a168668 audio: clk conflict between spdif and tdm_b [1/1]
PD#SWPL-174854

Problem:
clk conflict between spdif and tdm_b

Solution:
spdif and tdm_b use different clk

Verify:
S905X2, S905X3

Change-Id: I48b6717faba479a62a6e8cde7b0b613e34e1b4b9
Signed-off-by: saisai.chang <saisai.chang@amlogic.com>
2024-08-01 22:54:42 -07:00
yudong.cai 38481cac55 vdin: nv21 output, buffer is not enough [1/1]
PD#SWPL-179283

Problem:
When NV21 is output, the number of canvas is limited to a maximum
of 6 buffers, which is not enough, and the image will be stuck.

Solution:
do not limit the buffer number when using nv21/nv12 output

Verify:
T7

Change-Id: Idce576cb96c31cdc7e4e66f3551616a1d771486b
Signed-off-by: yudong.cai <yudong.cai@amlogic.com>
2024-08-01 22:54:35 -07:00
mingxiu.sun 94d88470dc vdin: Change the vdin address access range to greater than 4GB [1/1]
PD#SWPL-175956

Problem:
s6 vdin0/1 need to support 8/16g ddr

Solution:
Change the vdin address access range to greater than 4GB

Verify:
s6 vdin0/1

Change-Id: Id24fa3c6bfb6561349b4d50b3415f22c499543b2
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2024-08-01 14:47:56 -07:00
Jiacai.Liu 846bf56b3a vdin: CB fix linux screen capture error [1/1]
PD#SWPL-174301

Problem:
linux ott/tv screen capture error due alloc memory fail

Solution:
modify linux dts vdin size > 12M

Verify:
local

Signed-off-by: Jiacai.Liu <jiacai.liu@amlogic.com>
Change-Id: I72d00ab054dc43deeff8f2f996cb7f767f8d4562
2024-08-01 14:47:51 -07:00
Yongjie Zhu c9861813ec UVM: add mua_ioctl protect [1/1]
PD#SWPL-179220

Problem:
UVM_IOC_SET_FD will cause null pointer

Solution:
add uvm_buf_obj null pointer check

Verify:
t5m+androidu

Change-Id: I8b4eaa10f05e56ee4e888e6c18e63dc82a326507
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2024-08-01 06:26:23 -07:00
Long 1622e39ea9 eMMC: optimizing the data tuning process of HS400ES. [1/1]
PD#SWPL-175417

Problem:
if any cmd resp timeout error in HS400es will not
continue to send the stop command.

Solution:
if there is cmd resp timeout error, we need to
send stop command additionally.

Verify:
txhd2

Change-Id: Id6652ab18e8e7b4281e06d8ff537986bdf60a31e
Signed-off-by: Long <long.yu@amlogic.com>
2024-08-01 06:25:56 -07:00
yao.zhou 6804c6b6f0 camera: remove vm cma [1/1]
PD#SWPL-180004

Problem:
vm cma is not used anymore

Solution:
remove vm cma

Verify:
local

Change-Id: I3ad2e643d58ab3bb3bdf42fc2fd125bbb904c805
Signed-off-by: yao.zhou <yao.zhou@amlogic.com>
2024-08-01 05:06:21 -07:00
he.he 0d3a49a1fe usb: Bad Slot ID [1/1]
PD#SWPL-179969

Problem:
xhci-hcd-meson xhci-hcd-meson.0.auto:
Bad Slot ID 3

xhci-hcd-meson xhci-hcd-meson.0.auto:
Could not allocate xHCI USB device data structures

xhci-hcd-meson xhci-hcd-meson.0.auto:
Unsuccessful disable slot 0 command, status 11

usb usb1-port2: couldn't allocate usb_device

Solution:
don't disable slot 0

Verify:
t3

Change-Id: I92754abd0ddf6ec3c674c5fb714e6db1969ff1a1
Signed-off-by: he.he <he.he@amlogic.com>
2024-08-01 05:06:03 -07:00
Tao Zeng 537a14ac2a erofs: async handle for symbol fix [1/1]
PD#SWPL-179595

Problem:
aml erofs init cost 130ms

Solution:
1, remove some unnecessary ops in symbol fix, save 8ms;
2, async handle of symbol fix. now only takes 14ms

[    0.884318] init: Loading module /lib/modules/aml-erofs.ko with args ''
[    0.887422] calling  init_module.cfi_jt+0x0/0x4 [aml_erofs] @ 1
[    0.902698] initcall init_module.cfi_jt+0x0/0x4 [aml_erofs] returned 0 after 14795 usecs
[    1.014342] init: Loaded kernel module /lib/modules/aml-erofs.ko

Verify:
S7D bm201

Change-Id: If439175377cd79b093cf12c8413a098721c550dd
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-08-01 04:10:21 -07:00
Junyi Zhao 0ea79f5a1b led: add suspend and resume config [1/1]
PD#SWPL-167340

Problem:
should control by customer while suspend

Solution:
add config

Verify:
sc2 ah212
s5 ax201

Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
Change-Id: I2e2ad2a87f9574533790e47ada692f0fa13bca75
2024-08-01 04:10:16 -07:00
Shuai Li e2f1607544 audio: enable earcrx CS mute function [1/2]
PD#SWPL-177511

Problem:
EARCR_RX_CERT audio test mute/unmute doesn't work.

Solution:
Add channel status mute bit change handler to mute/unmute
earcrx spdifin.

Verify:
SC2: ohm soundbar

Change-Id: I058a16e635ddaee1128ba990875def9c2f4122c5
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2024-08-01 04:10:05 -07:00
ruofei.zhao 2fcea7e589 hdmitx: optimized hdmitx logs [2/2]
PD#SWPL-178894

Problem:
hdmitx logs non-normative

Solution:
optimized hdmitx logs

Verify:
S7D

Test:
DRM-TX-78

Change-Id: I49bf8a82fc34e12594f823843aa705d992a96640
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-08-01 03:00:20 -07:00
Chengbing.wu 04d0fa9b2e power: disable unused modules for S7d S805X5M dongle [1/2]
PD#SWPL-179273

Problem:
ao3.3v and ao1.8v is bigger than s7

Solution:
disable unused modules at bm202.dts

Verify:
s7d bm202

Change-Id: I1b011ac036fdb97de275abc0cbaa52600cae86ff
Signed-off-by: Chengbing Wu <chengbing.wu@amlogic.com>
2024-08-01 03:00:11 -07:00
qinglin.li 3c44b9422f build: fix date format due to build failed [1/1]
PD#SWPL-179932

Problem:
date format due to build failed

Solution:
fix date format due to build failed

Verify:
local

Change-Id: I8bbaa3b50b2dea784f51c999e0244d3a94137881
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-08-01 00:02:54 -07:00
qinglin.li f1c62ecb2a build: fix date format due to build failed [1/1]
PD#SWPL-179932

Problem:
date format due to build failed

Solution:
fix date format due to build failed

Verify:
local

Change-Id: I54236f7d11fedd79f1021fe8fdb1954f4e991419
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-07-31 23:39:04 -07:00
Qinglin Li 268f88c573 Revert "bazel: fix date format due to build failed [1/1]"
This reverts commit 37b9696c9f.

Change-Id: Iccde8bb6ef0156fce077841d4eb6b9e2e8136165
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-07-31 23:26:23 -07:00