Commit Graph

5854 Commits

Author SHA1 Message Date
Zhu Lv 3653c051ff bt: bt open fail [1/1]
PD#SWPL-191396

Problem:
bt open fail

Solution:
add reset hold time

Verify:
s5

Change-Id: Idb3006650f139f6d8e3b888702bd89a775754c57
Signed-off-by: Zhu Lv <zhu.lv@amlogic.com>
2024-11-08 10:31:38 +08:00
congyang.huang 75b367b244 drm: use mode hskew to indicate whether it's qms mode or vic mode [1/1]
PD#SWPL-190877

Problem:
need add flag to indicate whether it's qms mode or vic mode

Solution:
use mode hskew to indicate

Verify:
s7 qms

Test:
DRM-OSD-45

Change-Id: Ib675650b02d687438aa6a9eae3d846e6fac46c10
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-11-08 10:31:37 +08:00
zhewen.luo 11ac57c7a1 resman: support reporting error info. [1/1]
PD#SWPL-149860

Problem:
1.ErrorMonit requires additional debug
levels to be set to the driver.
2.ErrorMonit needs to receive the error
information from the driver in real time.

Solution:
resman driver needs to add nodes so that
ErrorMonit can get the error information
in real time.

Verify:
S905Y4

Change-Id: I8feaacc2e03b201a568b8abbdf77ba4c5e2e0859
Signed-off-by: zhewen.luo <zhewen.luo@amlogic.com>
2024-11-08 10:27:14 +08:00
Tao Zeng a20c57295e amfc: remvove shutdown interface to keep always on [1/1]
PD#TV-137304

Problem:
zram warning during reboot, there still have amfc access from user
when shutdown

Solution:
remove shutdown interface to keep always on

Verify:
t6d

Change-Id: If4696fa9cb5c35cb1edecac7a59fd8a2d4e0c979
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-11-07 15:39:47 +08:00
Jianxiong Pan 72043668ac mm: fix build error for memory optimization. [1/1]
PD#SWPL-188274

Problem:
fix build failed problem.

Solution:
fix build failed problem.

Verify:
local.

Change-Id: Id37ab5fe80d21e63cd759f84c7ebb0067b0492ee
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-11-07 15:39:41 +08:00
Tao Zeng af6bdecc42 amfc: use syscore call back for amfc shutdown [1/1]
PD#SWPL-187818

Problem:
crash when run auto-reboot. There still have zram request when
shutdown amfc.

Solution:
Use syscore shutdown call back for AMFC

Verify:
t6d

Change-Id: I6e8e37f9f1b543a04fb4503dcd0dc821f4c89002
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-11-07 15:39:10 +08:00
Tao Zeng 14c0806357 amfc: fix reboot warning [1/1]
PD#SWPL-184954

Problem:
reboot will print amfc errors

Solution:
1, fix irq resource of T6D
2, remove amfc before shutdown to avoid warning.

Verify:
t6d

Change-Id: I27155cbb51fe52ff7e6ef489c61f4e9a347c25e0
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-11-07 15:38:29 +08:00
Tao Zeng da79d83d62 amfc: add hooks for suspend/shutdown [1/1]
PD#SWPL-183575

Problem:
No hooks for suspend/shutdown

Solution:
add them

Verify:
t6d

Change-Id: Ifde953475979d2584cadacf3d0e1bf28088f80e8
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-11-07 15:38:04 +08:00
Tao Zeng b447cd2975 t6d: amfc: use device config and compress uImage
PD#SWPL-181954

Problem:
uImage not decompressed by AMFC

Solution:
1, change zstd tools to append size at end of uImage;
2, change scripts to support uImage decomperss by AMFC

Verify:
t6d

Change-Id: I2f2465a2247085c150a1c7f42ede688011745071
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-11-07 15:37:57 +08:00
Tao Zeng d906f4a2ce t6d: enable amfc [1/3]
PD#SWPL-181159

Problem:
AMFC not enabled

Solution:
enable it

Verify:
t6d

Change-Id: I710887e1d00b296e8c0e804ce62cf0dccf5c8957
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-11-07 15:37:47 +08:00
Jian Hu 6cb804187e ioremap: correct ioremap size [1/1]
PD#SWPL-177699

Problem:
the ioremap size is res->end - res->start,
it should be res->end - res->start + 1

Solution:
use resource_size instead

Verify:
t6d ptm

Change-Id: I32ee1248978c0646d5d24830326fa34a8209b37b
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2024-11-07 15:36:44 +08:00
zhikui.cui 8389bab5ff NAND: support slcnand&spinand&spinor for s7d [1/1]
PD#SWPL-163069

Problem:
initial support

Solution:
initial support

Verify:
BM209_S905X5M_DDR4-Socket #58

Change-Id: I5bb852187da499c51f32fc10230c800478182b06
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2024-11-07 15:18:39 +08:00
nengwen.chen 6f6fbc893d dts: s7d: add mxl258c serial-4wire dts [1/2]
PD#SWPL-177956

Problem:
s905x5m need to support PIP FCC.

Solution:
support D816 mxl258c serial-4wire.

Verify:
s7d bm201.

Change-Id: I0decc1fbeaa608dc062cb127ac93e46f049c9c8d
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
Signed-off-by: gongwei.chen <gongwei.chen@amlogic.com>
2024-11-07 14:34:00 +08:00
Xingxing Wang b16c63d0db thermal: BUG: KASAN: global-out-of-bounds in strncasecmp+0xfc/0x214 [1/1]
PD#SWPL-189590

Problem:
container_of thermal_governor_list head is not thermal_governor structure,
then we can't use gov->name to visit.

Solution:
use sprint_symbol to convert gov->name, and then use the converted symbol
to compare with the target governor name.if match then set the target
governor ,else skip current node.
note:
1.this solution strictly rely on CONFIG_KALLSYMS, if CONFIG_KALLSYMS
is not set for gki20 project, then the solution would fail.
2.remember to configure default governor in config file for non-gki20
project.

Verify:
S5

Change-Id: Ie5b2ddcdb5bcc5c1b461e526fcc4107e0c8d016f
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-11-07 13:46:04 +08:00
Xingxing Wang d189c7ccd5 thermal: add governor set api in sensor driver [1/1]
PD#SWPL-182971

Problem:
cpufreq&gpufreq coolingdevice need IPA governor

Solution:
customize default governor to IPA for cpufreq&gpufreq
related sensors

Verify:
S5

Change-Id: I81f9884362db914de4710a2bef1ccca1d38fb461
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-11-07 13:44:35 +08:00
Xingxing Wang 7417984f59 thermal: rise sensor suspend/resume log print level [1/1]
PD#SWPL-158984

Problem:
tsensor suspend/resume time long

Solution:
remove warn log

Verify:
t3x

Change-Id: Ic6966ed457ba2737c5edf81a6cfc3d8aca874136
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-11-07 13:44:07 +08:00
zijie.hong c149f7667e vin: k5.15-u coverity error cleanup [1/1]
PD#SWPL-190840

Problem:
coverity error

Solution:
modified

Verify:
k5.15-u

Change-Id: I9c839edeea788d4b22d399ba92aec3c717bf3b1e
Signed-off-by: zijie.hong <zijie.hong@amlogic.com>
2024-11-07 13:28:05 +08:00
ruofei.zhao ba3a342878 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>
2024-11-07 13:27:57 +08:00
qinglin.li 97075ea85d ddr_tool: coverity fix [1/1]
PD#SWPL-190779

Problem:
coverity fix

Solution:
coverity fix

Verify:
local

Change-Id: I63c28cec53c2395760eb0a12c53891cdc6110886
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-11-07 13:27:50 +08:00
rong.wang bcb6acfaec deinterlace: di task loading high [1/1]
PD#SWPL-189702

Problem:
di main task grab di mem task resource;
di mem can't alloc memory

Solution:
modify the task flow

Verify:
S905Y4

Change-Id: Id82cde506fd1c6607b9606f7fa8f6a49cdd2de58
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2024-11-07 13:27:44 +08:00
yao.zhou 702c3f3c3a Camera: cts test fail [1/1]
PD#SWPL-162054

Problem:
android.hardware.camera2.cts.SurfaceViewPreviewTest#testDeferredSurfaces
android.hardware.camera2.cts.BurstCaptureTest#testYuvBurst
failed for sw jpeg performance

Solution:
enlarge codec_mm for hw jpeg encoder for 40M

Verify:
T7C

Change-Id: I8cf983005237ac9fe959cab7d94a1156b7e6e3fa
Signed-off-by: yao.zhou <yao.zhou@amlogic.com>
2024-11-07 11:17:15 +08:00
Tao Zeng fefc057abf amfc: retry if timeout [1/1]
PD#SWPL-187818

Problem:
AMFC time out when booting

Solution:
temp retry if timeout

Verify:
t6d

Change-Id: I2c9841709833e25ad39a8486da5f4b42eddaf822
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-11-06 20:42:12 +08:00
jiebing chen 30478fd5a9 Audio: bringup bq201/209 audio [1/2]
PD#SWPL-177939

Problem:
need support audio function

Solution:
bringup audio  bq209/bq201  function

Verify:
bq209

Change-Id: Ie39333a6984eeee6899288045e055cc3024c2631
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2024-11-06 19:35:29 +08:00
chuangcheng.peng 35fc2d0404 demux: use video/audio es splice as default [1/1]
PD#SWPL-188070

Problem:
use video/audio es splice as default

Solution:
use video/audio es splice as default

Verify:
verified at sc2

Change-Id: I06c0609e27b28eab7a96dd95b3541e1162434c9a
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-11-06 19:04:43 +08:00
chuangcheng.peng 0d2bcea4ee demux: don't jump es to handle corner case for t5w [1/1]
PD#SWPL-184101

Problem:
AV not sync

Solution:
don't jump es to handle corner case.
notify high level when dmx can't get any data

Verify:
verified at T5W

Change-Id: I5285916b1541652cb1fa7c422ed792864b7253ba
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-11-06 19:04:37 +08:00
chuangcheng.peng b00d425c11 demux: add pts adjust for t5w chip [1/1]
PD#SWPL-172223

Problem:
video not smooth

Solution:
add pts adjust for slow es

Verify:
verified at project

Change-Id: I74df9a677aca67a243d1c00b1be5bcfcaf5ce27e
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-11-06 19:04:27 +08:00
chuangcheng.peng 3e17e18623 demux: correct wp for t5w [1/1]
PD#SWPL-165949

Problem:
video/audio is async

Solution:
correct wp

Verify:
verified at T5W

Change-Id: I694f171be349584b670d10665ffc9b1b23f2acb9
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-11-06 19:04:21 +08:00
chuangcheng peng 7815c5780d demux: add notify for t5w [1/1]
PD#TV-104514

Problem:
no notify for test streams

Solution:
add notify when es wp change and es header no change, just for t5w

Verify:
verified at t5w

Change-Id: I325c1b422bbe3831d9b44a915f962e4fd0babf9d
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2024-11-06 19:03:09 +08:00
qiyao.zhou e68039afd3 di_process: di not work for interlace stream [1/1]
PD#SWPL-191644

Problem:
bypass flag been set in dummy output,but not
reset for later frame

Solution:
Modify bypass flag set flow in DI process.

Verify:
s7

Change-Id: Ie9d72638c8ee903e59fb90b6a508ec6ecb2fea3d
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-11-06 10:27:59 +08:00
xiang.wu1 8e4502a7d3 hdmitx: optimization frl stop flow [1/1]
PD#SWPL-181717

Problem:
cancel_delayed_work() may not cancel the work in time

Solution:
stop frl first at disable phy
Use the cancel_delayed_work_sync() instead
clear frl mode at hdmitx_set_frl_rate_none

Verify:
s5/ax201

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

Change-Id: Ifac6bce137f251c3d643afae60d567c75eee81c0
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-11-05 11:25:21 +08:00
qiyao.zhou ea4041f475 s5: enable di in display side for s5 [1/3]
PD#SWPL-186512

Problem:
Android U support di backend for s5.

Solution:
Android U support di backend for s5.

Verify:
s5

Change-Id: I91de8156994914e16da8cda4b448a7252c709c97
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-11-04 10:20:58 +08:00
shipeng sun 1652c8028d amlogic_secure_dmabuf : CB0 Fix a regression of support secmem v3 64bit [1/1]
PD#SWPL-184274

Problem:
cma_release crash

Solution:
Fix a regression of add secmem v3 support double free
secure dmabuf block's private struct memory space lead
random aml_cma_free crash

Verify:
T3X

Change-Id: I163a8a4bebe99f650518cdad8fc22b9b97d20382
Signed-off-by: shipeng sun <shipeng.sun@amlogic.com>
2024-11-01 15:14:13 +08:00
Hao Shi 53a4bddcc3 dmabuf_manage : CF0 add secmem v3 64bit addr support [1/1]
PD#SWPL-176629

Problem:
add secmem v3 64bit addr support

Solution:
add secmem v3 64bit addr support

Verify:
None

Change-Id: Id5c6bca16e8620140770b7dc9f6b9dbddc395850
Signed-off-by: shipeng sun <shipeng.sun@amlogic.com>
2024-11-01 15:13:23 +08:00
shipeng sun 5860b6f2db dmabuf_manage : Free Secmem V2 Handle for USER_TA Implement [1/1]
PD#SWPL-187548

Problem:
Free Secmem V2 Handle for USER_TA Implement

Solution:
Free Secmem V2 Handle for USER_TA Implement prevent no handle
available

Verify:
T6D

Change-Id: Id3e72baf05c8f87c92c0a540a9a39b1a5c64a64d
Signed-off-by: shipeng sun <shipeng.sun@amlogic.com>
2024-11-01 15:09:17 +08:00
shipeng sun abb0e839f9 codec_mm : CF0 add driver pm interface for hibernation [1/1]
PD#SWPL-184881

Problem:
add driver pm interface for hibernation to register
secure vdec memory range

Solution:
add driver pm interface for hibernation to register
secure vdec memory range

Verify:
S905Y5

Change-Id: I95674dc599d0627ab2ad7481c3d549449ea2280c
Signed-off-by: shipeng sun <shipeng.sun@amlogic.com>
2024-11-01 15:07:28 +08:00
shipeng sun 79aed07904 dmabuf_manage: CB1 Remove unused code [1/1]
PD#SWPL-176200

Problem:
Remove dmabuf_manage and secure vdec heap's unused code

Solution:
Remove dmabuf_manage and secure vdec heap's unused code

Verify:
ohm_wv4

Change-Id: Ib88ff7393c41767e275a4db26035bdc00ba2d4db
Signed-off-by: shipeng sun <shipeng.sun@amlogic.com>
2024-11-01 15:06:48 +08:00
shuanshuan.jiang 65b7ee84be camera: fix coverity issue [1/1]
PD#SWPL-190770

Problem:
coverity issue: the function of "parse_power"
may cause memory - corruptions

Solution:
using static value to save label of gpio

Verify:
local

Change-Id: I95b79ca2ed461959e9be6ddd731429f79e4a2e7e
Signed-off-by: shuanshuan.jiang <shuanshuan.jiang@amlogic.com>
2024-11-01 10:32:42 +08:00
Yu Tu f6c5e61be7 pci: clean coverity error [1/1]
PD#SWPL-190822

Problem:
clean coverity error

Solution:
modified code

Verify:
sc2

Change-Id: Iefef6c015b1a4271928ce9f162a23e06cabf23d7
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-11-01 10:29:26 +08:00
Yu Tu 76715aa01b uart: clean coverity [1/1]
PD#SWPL-190834

Problem:
clean coverity

Solution:
modified code

Verify:
sc2

Change-Id: I141d90acfcf42495fefa5b51ab78be74567b0b88
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-11-01 10:29:26 +08:00
Jianxiong Pan 5e4a4b2719 mm: reduce cma isolate failed print. [1/1]
PD#SWPL-190181

Problem:
isolate failed print too much.

Solution:
reduce cma isolate failed prints.

Verify:
local.

Change-Id: I2fc12f448bb7513ce6372a811408b24b0ee91f63
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-11-01 10:29:12 +08:00
yujun.zhang c9e4177446 drm: reuse current out fence if display is delayed [1/1]
PD#SWPL-182727

Problem:
Two present fences may be created within one vsync,
but current drm driver doesn't support it.

Solution:
In one vsync, only the first fence is created. For the 2nd
fence, reuse the first one, and only increase its ref
count, and install a new fd.

Verify:
SC2

Test:
DRM-OSD-39

Change-Id: I9cd2d7d54043bf7640f0130b3ab86bb732686b16
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2024-11-01 10:28:48 +08:00
Hao Shi 6f9ac5fb63 codec_mm: config codec_mm dma mask [1/1]
PD#SWPL-191251

Problem:
codec_mm fail issu on S905X5 16G board

Solution:
config codec_mm dma mask

Verify:
verify by raman

Change-Id: Id419efd02efda7fdab7a7830179a6dd8b4de82a4
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-10-31 15:08:47 +08:00
gan.zhang 7ae11945d2 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>
2024-10-31 11:06:17 +08:00
Hao Shi 42d0d38ed3 codec_mm: support reserved bak pool [2/2]
PD#SWPL-177308

Problem:
H.266 support 34bit

Solution:
add a reserved pool to alloc mv buffer

Verify:
s6_s905x5_bl201

Change-Id: Iff86b122bed9eef0c7dd8858aef7a452f02bd015
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-10-30 11:19:38 +00:00
Pengcheng Chen b1e1e162e3 vpp: add lowlatency support fot s6 [1/1]
PD#SWPL-190955

Problem:
add lowlatency support fot s6

Solution:
add lowlatency support fot s6

Verify:
s6

Change-Id: I4d222ccf499e5ec0004032585206d39e070da182
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-10-30 10:46:07 +08:00
Hao Shi 68fb0f928e codec_mm: dump_mem_infos in atomic [1/1]
PD#SWPL-188627

Problem:
dump_mem_infos in atomic context.

Solution:
remove dump_mem_infos from
codec_mm_get_free_size.

Verify:
sc2

Change-Id: I9597da2b7a20afba1ab0d42247e3a8fc1463e663
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-10-30 10:46:06 +08:00
ruofei.zhao 63564a1307 hdmitx: add s7d rterm config [2/2]
PD#SWPL-190079

Problem:
hdmitx eye diagram test fail

Solution:
add s7d rterm config

Verify:
S7D

Test:
DRM-TX-78

Change-Id: I83fd368e5848893961646ab41e27b4d2ebf9ddd6
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-10-30 10:46:04 +08:00
hai.cao 753d024996 vpu: disable gp1_pll when suspend [1/1]
PD#SWPL-160032

Problem:
suspend can not disable gp1_pll

Solution:
fix suspend vpu clk

Verify:
t3x

Change-Id: Iec44917486c6376bd410654944c1e8bc31661ef9
Signed-off-by: hai.cao <hai.cao@amlogic.com>
(cherry picked from commit 8daf645356)
2024-10-29 14:17:40 +08:00
hongyu.chen1 a0b1614dae Wakeup: Clean up netflix wakeup reason. [1/1]
PD#OTT-68017

Problem:
S4 & S4D need clear.

Solution:
add dts config.

Verify:
S4 & S4D

Change-Id: I28233b214ba41b4841da83a601c2e2f280f44d14
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-10-29 10:44:24 +08:00
jiebing chen 7b7c21a00f Audio: change sy602 codec eq config [1/1]
PD#SWPL-183953

Problem:
sy602 hw performance test failed

Solution:
reconfig the sy602 eq config

Verify:
use s6

Change-Id: Ic2125d0e221f2f6acf425dfd6faab872651e9ea5
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-10-29 10:44:24 +08:00