Commit Graph

3842 Commits

Author SHA1 Message Date
zhentao.guo edd367ce14 media: CB1 Fix cts CRC flaky issue [1/1]
PD#SWPL-139469

Problem:
Dirty date in cacheline may pollute data in memory when
flush cacheline

Solution:
Use noncache mapping in afbc decompress lib

Verify:
T7C

Change-Id: I4f6ed2ad6473c0aaab80d175663434b38dfb2af5
Signed-off-by: zhentao.guo <zhentao.guo@amlogic.com>
2023-11-28 17:00:44 +08:00
Tao Zeng ee6070a3e6 zram: fix crash when cpu off line [1/1]
PD#SWPL-145324

Problem:
kernel NULL pointer panic when cpu off line

Solution:
The root cause is that context for zram is configured as 2 part:
one for direct reclaim and one for kswapd. They are not for per-cpu
but when a core is off, zram will free per-cpu context so caused panic
on other cpus. So we should remove free code for crypto hooks.

Verify:
T5M

Change-Id: I2e4c9362bda0ddf74c91c3dec55d39dd532f46c2
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2023-11-28 15:04:30 +08:00
Jianxiong Pan 89b3d2bbb3 scs: autopatch: size from 1k to 2k. [1/1]
PD#SWPL-146339

Problem:
may overflow in some case.

Solution:
expand scs size.

Verify:
t5m.

Change-Id: I72910fc922e7339d5c0ac51f702b55b7e92b4dcc
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-27 19:07:13 +08:00
caiyi.xu f55f1e1ae5 dtv_demod: fix no timeout when dvbc signal is abnormal (v3.5.23) [1/1]
PD#SWPL-146891
PD#TV-101060

Problem:
no timeout when dvbc signal is abnormal

Solution:
remove judgments of detecting Qam in the detection of SR

Verify:
TC8000

Change-Id: I0d772a0b1c3140d77415ea9bfec8658ae22175b3
Signed-off-by: caiyi.xu <caiyi.xu@amlogic.com>
2023-11-27 19:06:52 +08:00
min.yang 31466bee2a dtv_demod: delsys code isolation (V3.5.022) [1/1]
PD#SWPL-142882

Problem:
delsys code isolation

Solution:
add macro to control

Verify:
verified by T5M

Change-Id: I9f087ba44cb13d2ae0c4ffd16a302ac0929a0165
Signed-off-by: min.yang <min.yang@amlogic.com>
2023-11-27 19:06:31 +08:00
nengwen.chen 4ae34cf311 dtv_demod: optimize the ddr size of cma(max 40M to 16M) (V3.5.021) [1/1]
PD#SWPL-118539

Problem:
optimize the dtv demod ddr size of cma.

Solution:
optimize the dtv demod ddr size of cma.
add the ddr config node in code.
DTMB(8M), DVB-T2(40M -> 16M), ISDB-T(8M).
change max size 40M to 16M.
load T2 fw earlier.
AMLDTVDEMOD_VER "V3.5.021".

Verify:
verify by T5D/T3.

Change-Id: I044482db3fb7b09edd998bba287c21054cd2f34d
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2023-11-27 19:06:01 +08:00
min.yang 68ecd40407 dtv_demod: fix pm runtime error (V3.5.020) [1/1]
PD#SWPL-139016

Problem:
demod becomes abnormal after the second
pm enable.

Solution:
1.remove before change.
2.add pm force suspend in shutdown interface.

Verify:
verified by T5M

Change-Id: I97535dfb3ad9cefa1304a6653ed4f85719640a7b
Signed-off-by: min.yang <min.yang@amlogic.com>
2023-11-27 19:05:00 +08:00
caiyi.xu ec77fa0ee9 dtv_demod: fix dvbt lock failed in weak signal (v3.5.19) [1/1]
PD#SWPL-143553

Problem:
insufficient locking time during demod reset

Solution:
increase the reset cycle

Verify:
AT301

Change-Id: I1e56a7e7d362c94ea2fa6360e2d01dc6a92ef251
Signed-off-by: caiyi.xu <caiyi.xu@amlogic.com>
2023-11-27 19:04:22 +08:00
Tao Zeng 042faaa89a zram: change zstd and mix implementation [1/1]
PD#SWPL-145324

Problem:
1, using contiguous conter for type identify is not uniform distribution
when compress for some tasks;
2, zram driver will alloc per-cpu contex for zstd, which will cause
about 3MB memory;

Solution:
1, using a fixed type array for uniform distribution of mix type
selection;
2, create 2 context: one dedicated for kswapd task; another one
dedicated for direct reclaim;

Verify:
t5m

Change-Id: I06683383e06d9601c9e6522bcd0fbcfa68a55987
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2023-11-27 19:02:19 +08:00
Jianxiong Pan ed7c9dccef mm: cma optimite for alloc too long. [1/1]
PD#SWPL-145324

Problem:
cma alloc too slow.

Solution:
let the idle cpu allocate more.
reduce drain lru in cma task.

Verify:
local.

Change-Id: I5f46112dcc4d5eb8fe7b21526d09a4078edc2752
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-27 19:01:35 +08:00
Tao Zeng 705a515c08 zram: fix crash when cpu off line [1/1]
PD#SWPL-145324

Problem:
kernel NULL pointer panic when cpu off line

Solution:
The root cause is that context for zram is configured as 2 part:
one for direct reclaim and one for kswapd. They are not for per-cpu
but when a core is off, zram will free per-cpu context so caused panic
on other cpus. So we should remove free code for crypto hooks.

Verify:
T5M

Change-Id: I2e4c9362bda0ddf74c91c3dec55d39dd532f46c2
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2023-11-27 19:01:05 +08:00
Jianxiong Pan 6da8be779d mm: autopatch: add early_param for trace events white list. [1/1]
PD#SWPL-145324

Problem:
add early_param to switch in bootload.

Solution:
add early_param for trace events white list.

Verify:
local.

Change-Id: I4179e804433c61036c22868664e8c89552c5eb50
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-27 19:00:38 +08:00
Jianxiong Pan 35e85533f3 mm: autopatch: reduce size of scs. [1/1]
PD#SWPL-145324

Problem:
scs cost too many memory, 4kb per thread;

Solution:
reduce it to 1kb per thread

Verify:
local

Change-Id: I850a6c3fefa26d12527bd8e011a1de347079b865
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-27 19:00:12 +08:00
Jianxiong Pan b490bafadf mm: autopatch: add white list for trace event [1/1]
PD#SWPL-145324

Problem:
There are too many trace event inodes

Solution:
Add white list for trace event, this can save about 10MB memory

Verify:
t5m

Change-Id: I7ecd89ba145e37c52d51842c1ab52f34a38ebdab
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-27 18:59:22 +08:00
Tao Zeng 12ef9a846e zram: add a mixed zram compressor [1/1]
PD#SWPL-145324

Problem:
zstd is high compress ratio but low speed, lz4 is fast but low
compress ratio. Need balance them.

Solution:
Add a mixed crypto layer and can set ratio of lz4/zstd

Verify:
t5m

Change-Id: I4fbe930d05ef66336acacaae640fa47855d4b47b
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2023-11-27 18:59:13 +08:00
ruofei.zhao c26406c9d1 hdmitx: No signal when switching from 720x480p to 640x480p [1/1]
PD#SWPL-146459

Problem:
When the color depth is 444, 8bit, there is no signal output
after the resolution is switched from 720x480p to 640x480p

Solution:
Add clock configuration for 640x480p59.94hz

Verify:
S905X4/S905Y4

Test:
DRM-TX-45

Change-Id: I7acc0538fb133398bd7544e98a0f7449390d4eb9
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2023-11-23 20:24:34 +08:00
jialong.jiang 2b5fd04286 amdv: 5.15 ioc move to uapi. [1/1]
PD#SWPL-140850

Problem:
5.15 ioc move to uapi.

Solution:
5.15 ioc move to uapi.

Verify:
t3.

Change-Id: Icc1bd8efb807a84d55fd3b380fd3a016b34f4849
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-11-22 13:24:00 +08:00
Jianxiong Pan 6f5c3e5535 autopatch: mm: change filecache reclaim policy of kswapd [1/1]
PD#SWPL-146346

Problem:
UI response is not quickly on TC8000 projects

Solution:
Change kswapd filecache reclaim policy. Do not reclaim page cache
with mapcount larger than 1 (shared by 2 processes or above) to help
keep more mapped file caches in LRU list.

Verify:
T5M

Change-Id: I081a92debe94af608071468487b122529e6cdbda
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-21 19:26:49 +08:00
Jianxiong Pan d73e9f832c mm: autopatch: reduce print for cma pool in low memory zone. [1/1]
PD#SWPL-145369

Problem:
reduce print.

Solution:
low-end memory boards do not print
reducing the printed information.

Verify:
local.

Change-Id: Ifafde92bdcb8f7726ee6f184f995772f9385beef
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-21 19:26:42 +08:00
Jianxiong Pan a75852a9d1 mm: autopatch: check the cma pool in low memory zone. [1/1]
PD#SWPL-145369

Problem:
try to avoid cma pool in low memory.

Solution:
add check the cma pool in low memory.

Verify:
local.

Change-Id: I5ec3a59dbd32dc4f94fbf368ce2736eb4d85ff68
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-21 19:26:25 +08:00
xiang.wu1 7c40ecfaa7 hdmitx: update hdmi_hdr_status [1/1]
PD#SWPL-140952

Problem:
some project read hdmi_hdr_status value error

Solution:
read reg value to update hdmi_hdr_status

Verify:
ohm

Test:
DRM-TX-34

Change-Id: I45568a853e0c98a8a1b2b0ef1d39f3bb701b1a98
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-11-20 19:01:37 +08:00
Kuibao Zhang 522a4d86e9 BT: bt state is abnormal when rtc [1/1]
PD#SWPL-142862

Problem:
1.bt open fail when rtc wakeup;

Solution:
1.reset this state when rtc wakeup;

Verify:
ohm.

Change-Id: If86fd7eef5926ee44a6740ba229ee040759389a4
Signed-off-by: Kuibao Zhang <kuibao.zhang@amlogic.com>
2023-11-20 17:36:17 +08:00
congyang.huang 70d570b590 drm: display no signal after factory reset [1/1]
PD#SWPL-142329

Problem:
restore factory settings,display no signal and can't boot
due to the recovery not have composer to set attr

Solution:
1.initialize the property of attr based on the value in uboot
2.decide attr in the recovery system

Verify:
sc2

Test:
DRM-OSD-121

Change-Id: Idff17ffcfcc04fac1c3353b3c8fcc2f152a51463
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-11-17 20:01:51 +08:00
qiang.liu f92f0b1b4a adc: adjust adc clk config [1/1]
PD#SWPL-130758

Problem:
adc clk config process has problem

Solution:
adjust adc clk config

Verify:
s4d

Change-Id: I6f561a4be20c0c9243736de08d3e6883c22129e7
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2023-11-17 12:31:56 +08:00
qiang.liu 61d890b6ec adc: add adc clk reset [1/1]
PD#SWPL-141001

Problem:
adc clk not reset has power

Solution:
add adc clk reset

Verify:
S1A

Change-Id: Ia39b7f8ea69616b0738990dae883979ef220022e
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2023-11-17 12:31:46 +08:00
jintao xu 4cc39e095f v4lvideo: fix unlock err [1/1]
PD#SWPL-146187

Problem:
not exit stream off

Solution:
fix unlock err

Verify:
sc2

Change-Id: I943927313d804bf342e29fe61bc087ac1768b124
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-11-16 18:55:28 +08:00
Hanjie Lin b3b291de52 cma: delayed enable cma after kswap low [1/1]
PD#SWPL-139378

Problem:
playback not smooth when startup

Solution:
CMA used up when startup and cause cma alloc slow
delay enable CMA until swap free ratio less than 70%

Verify:
sc2

Change-Id: I42ddcaa281cae1c13128d028dbcf1128bede43b6
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2023-11-15 19:43:31 +08:00
hang cheng daacd9b64d hdmitx: not clear edid when suspend [1/1]
PD#SWPL-144627

Problem:
when kernel goes to early suspend, need keep the edid data

Solution:
Keep edid data during the suspend state. If there is HPD in
early suspend, there will update the EDID in the bottom of
hpd ISR

Verify:
ohm

Test:
DRM-TX-38

Change-Id: If1975a68da8c7431bb7867359bc5368b37dbc1f3
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-11-15 15:24:53 +08:00
jintao xu 84de425939 di: free buffer when REG_STEP1 [1/1]
PD#SWPL-137948

Problem:
fcc 3 channel has di buffer

Solution:
free buffer when REG_STEP1

Verify:
sc2

Change-Id: I921fece2180357c6fb986a459475081a15239d20
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-11-14 10:14:33 +08:00
jiebing chen 780a67fc6e Audio: disable audio clk when suspend for sc2 [1/1]
PD#SWPL-142871

Problem:
disable audio clk when suspend for sc2

Solution:
disable audio clk when suspend for sc2

Verify:
use sc2

Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
Change-Id: I493a5e7bf7ed826da76a4eb6cb6324314bc008ac
2023-11-13 19:46:50 +08:00
lele xiang ee55f4f201 decoder: CF1 decoder transfer fcc flag to DI. [1/2]
PD#SWPL-144474

Problem:
For fcc,don't need keep di_multi memory

Solution:
Decoder transfer fcc flag to DI.

Verify:
ohm

Change-Id: I37d1da0dc5c99dd086ee1291d403525a009bc64b
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2023-11-13 19:46:37 +08:00
yiting.deng be4c0fb5e0 pm: fix kernel5.15 pm print log [1/1]
PD#SWPL-143117

Problem:
too much pm related print in suspend/resume

Solution:
add initcall_debug judgment before suspend/resume printing

Verify:
sc2

Change-Id: Ifbca9604ae008b188da408cd8c3cc353f0d3051f
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2023-11-09 20:08:16 +08:00
hang cheng 91e7950e4c hdmitx: adjust scan information [1/2]
PD#SWPL-144491

Problem:
youtube video cut off on the edges

Solution:
adjust scan information to underscan by default

Verify:
s805x2

Test:
QD980 check avi scan info

Change-Id: I36f17c4cdd5e5a50639e055e06b4f21e6df63912
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-11-09 16:35:06 +08:00
Jianxiong Pan 00a13c58e8 mm: autopatch: add alloc_pages_bulk to pagetrace. [1/1]
PD#SWPL-142086

Problem:
improve pagetrace function.

Solution:
add alloc_pages_bulk to pagetrace.

Verify:
t5m.

Change-Id: I6c08ea7d0d6072bef9a101f40cbf89560337e307
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-07 19:14:56 +08:00
xiang.wu1 7bbc687a18 hdmitx: check the box frl capability [1/1]
PD#SWPL-143972

Problem:
when clac_tmds_clk > max_tmds_clk, only check whether
the edid support frl, not check the box frl capability

Solution:
add check the box frl capability

Verify:
s905x4

Test:
DRM-TX-42

Change-Id: I502b130c7fc613d020566af35438465c52ee3b60
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-11-07 19:14:56 +08:00
Lei Zhang 4e2bf1c9bf sysrq: enable sysrq function [1/1]
PD#SWPL-143851

Problem:
n/a

Solution:
enable sysrq function by default

Verify:
on sc2

Change-Id: Iff20f64ebc6736a6bbcbd7ff94eee1c83e435cc6
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2023-11-06 18:51:52 +08:00
Jianxiong Pan e3db5369be mm: reduce the print log in momeory module. [1/1]
PD#SWPL-141371

Problem:
optimize memory log.

Solution:
reduce the print log.

Verify:
local.

Change-Id: Id5b9a9240bc94d49f6d311a1f4084ffdf0a5a13a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-06 17:32:53 +08:00
Jianxiong Pan bcfc218d6d dmc: print more page information in dmc. [1/1]
PD#SWPL-142086

Problem:
print more page info.

Solution:
whether page in buddy or slab.

Verify:
t5m.

Change-Id: Ic33a685e510c24cde706b8285cb4f62444d98d42
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-06 17:32:53 +08:00
congyang.huang 4e92c6b4f1 drm: Add the saving strategy of dv [1/1]
PD#SWPL-142750

Problem:
After setting dv_ll, it will change
to dv_std in case of hotplug event.

Solution:
If the dv_ll is set,the dv will
remain after hotplug.

Verify:
sc2

Test:
DRM-OSD-118

Change-Id: I7335c512dc6cafa836bc0496537ad9481c18da74
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-11-06 17:32:53 +08:00
bowen cheng a77bcb298a cec: remove new_msg when framework on [1/1]
PD#SWPL-143438

Problem:
can not pass HdmiCecSystemStandbyTest

Solution:
new_msg is used for driver process msg
just need msg buf num to notify app get msg

Verify:
S905X4-AH211

Change-Id: Iaf01eada2b16e396732232adf546a41f23f32c33
Signed-off-by: bowen cheng <bowen.cheng@amlogic.com>
2023-11-06 17:32:17 +08:00
Brian Zhu 76fb8af908 di: restore the ud and meta information when clear buf [1/1]
PD#SWPL-142949

Problem:
when clear di buf, will clear ud and meta information too.

Solution:
restore the ud and meta information

Verify:
Verified on sc2

Change-Id: I75201d42536fe76224e25eca5cde8613f7e2eb3f
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2023-11-06 14:46:13 +08:00
Hanjie Lin cd2489b429 mm: compaction_alloc don't alloc CMA pages [1/1]
PD#SWPL-141879

Problem:
compaction_alloc don't alloc CMA pages

Solution:
free_pfn skip CMA pages

Verify:
sc2

Change-Id: I3d32d72c342a1c6438822475bf560f9ab329ec57
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2023-11-06 14:46:13 +08:00
hang cheng c3c016848c hdmitx: correct hdcp key query method [1/1]
PD#SWPL-142652

Problem:
after load hdcp2.2 key, hdcp2.2 is not initialized,
as checked hdcp_tx22 is not loaded

Solution:
when init hdcp2.2, no need to check if hdcp_tx22
daemon is loaded, only check hdcp2.2 key load state

Verify:
ohm + rdk

Test:
DRM-TX-37

Change-Id: I25eb429072c4213536c11718ea37b107b2363aca
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-11-06 14:46:13 +08:00
song.han 4e675645ef debug: lockup and panic flow optimize [1/1]
PD#SWPL-144359

Problem:
add debug feature

Solution:
show sysrq't' when rcu stall panic
fiq dump other cpu stack when hardlockup panic
improve watchdog panic notifier priority
disable watchdog when set panic_print

Verify:
s4

Change-Id: I6af43456105a3cf802d54608d62cbb25d327a73e
Signed-off-by: song.han <song.han@amlogic.com>
2023-11-06 14:42:38 +08:00
Huqiang Qin 014c1e6212 wdt: stop watchdog after panic [1/1]
PD#SWPL-143567

Problem:
When debugging, there will be a lot of printing to be
output after the panic, so it is very time-consuming.
In order to prevent the watchdog from causing a reset,
we stop it after panic.

Solution:
Add functions and provide two ways to enable:
1. Add wdt_stop_after_panic=1 to bootargs.
2. echo 1 > /sys/module/amlogic_watchdog/parameters/stop_after_panic

Verify:
T3/T982

Change-Id: I3f54f38f3645b2fb4fdfbbc6016e6f644b91eea3
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2023-11-06 14:42:36 +08:00
yuhua.lin ce710f1ccb video: video printk log optimize [1/1]
PD#SWPL-144306

Problem:
video printk log optimize

Solution:
complete it

Verify:
none

Change-Id: Ia018e3193606d47730148e2f211949a5ccf1d015
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2023-11-06 14:40:56 +08:00
Yu Tu 29423412ec pcie: add not msi interrupt judge logic [1/1]
PD#SWPL-144384

Problem:
pcie wifi interrupt too many lead to system crash

Solution:
add not msi interrupt judge logic

Verify:
S5

Change-Id: I1d6e420ce48e2e74d787349ff31dc632d18c94bb
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-11-03 19:56:05 +08:00
zongdong.jiao c79f4331b6 hdmitx21: add qms-vrr function [1/1]
PD#SWPL-137039

Problem:
Lack qms-vrr function

Solution:
Add qms-vrr function

Verify:
t7/an400

Test:
DRM-TX-17

Change-Id: I8aff33d9cf2db80c5b82310d8dd4531d5d32b288
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-11-03 19:56:05 +08:00
zongdong.jiao 9b175df6da hdmitx: always HDR.SDR when HDR to SDR [1/1]
PD#SWPL-143562

Problem:
when exit HDR to SDR, and after 1.5 seconds here will stop HDR.SDR
packet. Some TV may black at this time.

Solution:
always HDR.SDR when HDR to SDR

Verify:
sc2/ohm, s5/ax201

Test:
DRM-TX-17

Change-Id: I28fca54388d07338caf4def08e95454f988e98ad
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-11-03 16:25:41 +08:00
zhicheng.huang 537e38f12e dtv_demod: optimize dvbs blind scan progress(V3.5.18) [1/1]
PD#SWPL-142887
PD#TV-95020

Problem:
an error occurred when reporting dvbs blind scan progress

Solution:
1.optimize dvbs blind scan progress;
2.AMLDTVDEMOD_VER V3.5.18

Verify:
t5m, s4d

Change-Id: I9b57c8e7aee41384c9b177e73d6924f2cc8eb91f
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2023-11-02 10:20:37 +08:00