Commit Graph

3757 Commits

Author SHA1 Message Date
Pengcheng Chen fad876c48c vpp: vd1 padding cut set error for s5 [1/1]
PD#SWPL-163476

Problem:
vd1 padding cut set error for s5

Solution:
vd1 padding cut set need 16 aligned for s5

Verify:
s5

Change-Id: I8dbccf7babea375d802b66566919d054d79dcc2d
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-04-11 23:10:12 -07:00
lukang.jia efafc3bc24 frc: frc modify urgent control [1/1]
PD#SWPL-163867

Problem:
modify FRC urgent control function

Solution:
modify FRC urgent control function

Verify:
T3X

Change-Id: I1f992ce77937733f10df1eaa0ed005e43619d302
Signed-off-by: lukang.jia <lukang.jia@amlogic.com>
2024-04-11 20:37:53 -07:00
Ao Xu 8c74df0390 drm: add force_slice parameter [1/1]
PD#SWPL-161420

Problem:
t3x mode will change from 48-120hz
it will lead to garbage screen

Solution:
add force_slice parameter

Verify:
t3x-bc302

Test:
DRM-OSD-10

Change-Id: I7134c628dc412bf43a5419c8f85782a6e414b4bf
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-04-10 23:41:55 -07:00
Evoke Zhang 6366662bb2 lcd: fix default parameters mistake from cus_ctrl [1/1]
PD#SWPL-164473

Problem:
lcd parameters incorrect when default mode from cus_ctrl

Solution:
update vmode parameters after vmode init

Verify:
ay301

Change-Id: I4129e238254ca4d0a1311e7ef5bd28ea94ada189
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-04-10 21:46:41 -07:00
Liming Xue 5608b996da sc2: android u Auto test fail [1/1]
PD#SWPL-164172

Problem:
sc2 not have dsp,resources have been released,but also register misc,
so When sc2 autostart,it accesses the /dev/hifi4dsp0 node,
so causing a panic in load firmware

Solution:
when board not have dsp,resources have been released,then return
negative value

Verify:
sc2

Change-Id: I9d0a12edddb09ef26e6798f7eb0d0029f3f4dd8d
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-04-10 21:46:09 -07:00
yaoyu.xu 8fac7442f9 hdmirx: use bits to operate vdac register [1/1]
PD#SWPL-164030

Problem:
rx aud setting effect vdac dtmb.

Solution:
use bits to operate vdac register.

Verify:
txhd2

Change-Id: Iaf76c259cbb35d36bbd6e3d9229c50137d71d801
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-04-10 21:46:05 -07:00
yao liu c58211d886 amdv: add precision api [1/1]
PD#SWPL-161721

Problem:
new function

Solution:
1.DV_IOC_GET_DV_PRECISION_DETAIL_SUPPORT get cap from cfg
2.DV_IOC_SET_DV_PRECISION_DETAIL_BYPASS set bypass

Verify:
t3x

Change-Id: I01e1f01e942349aa2241df6748100015603e185b
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-04-10 20:39:54 -07:00
Wenjie Qiao c2b98d82eb hdmitx: eARC register callback fail [1/1]
PD#SWPL-145976

Problem:
eARC driver probe before hdmitx driver, so eARC register callback fail

Solution:
don't check hdmitx init when eARC register callback
and later probe and plugin/out will notify eARC HDMI Tx cable plug in/out

Verify:
TM2

Test:
DRM-TX-104

Change-Id: Iec57c6b15d478f6c38a2c6b4b49876b17ca70cc3
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-04-10 04:42:08 -07:00
caiyi.xu e7aef9acd9 dtv_demod: fix incorrect cfo calculation results and add info (v3.5.34) [1/1]
PD#SWPL-164161

Problem:
incorrect cfo calculation results

Solution:
1.recalculate cfo
2.add dvbt2 info

Verify:
ay301

Change-Id: I5eb262730bed189a8ee3c7fdd9101bd7e01679ea
Signed-off-by: caiyi.xu <caiyi.xu@amlogic.com>
2024-04-10 04:42:04 -07:00
Hao Shi 8a5b7273a5 codec_mm: sid value check [1/1]
PD#SWPL-163765

Problem:
sid should not be MAX_SID

Solution:
return and report an error if sid is equal to MAX_SID

Verify:
sc2

Change-Id: If2b7fef62814b4e2ff62867cbbc1f74f9848e673
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-04-10 01:54:26 -07:00
mingxiu.sun af78967e35 vdin: optimize dv drop frame process [1/1]
PD#SWPL-161630

Problem:
dv display abnormal last frame

Solution:
optimize dv drop frame process

Verify:
t3x

Change-Id: I4c0b81418651dea4e2a1846c2f7b5b7da64eabc9
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2024-04-10 01:54:23 -07:00
Huijuan Xiao bb1d771dfe amvecm: STD for amvecm driver [1/1]
PD#SWPL-152218

Problem:
need add suspend and resume flow.

Solution:
add suspend and resume flow.

Verify:
t5m

Change-Id: I2da60ca9493d599db58839af0300a33b54360447
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-04-10 01:54:07 -07:00
lizhi.hu 79e0be2d39 lcd: fix analog dump for t5m [1/1]
PD#SWPL-161573

Problem:
analog reg not dump for t5m

Solution:
fix

Verify:
t5m_ay301

Change-Id: Iae1e2be78971a472804ae5180825db067376c849
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-04-09 23:49:01 -07:00
Evoke Zhang 883703f40e lcd: bypass ufr mode switch when power off [1/1]
PD#SWPL-161946

Problem:
ufr mode switch maybe unexpectedly light on panel after early_suspend

Solution:
bypass ufr mode switch when lcd_if off

Verify:
ay301

Change-Id: I7704690d795f2a1ba57cc46a10babc9e2f71fa9b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-04-09 21:47:11 -07:00
Pengcheng Chen 57c374fb65 vpp: fix vpu resume rdma write dump stack [1/1]
PD#SWPL-162475

Problem:
fix vpu resume rdma write dump stack

Solution:
vpu resume used cpu write instead of rdma write

Verify:
s5

Change-Id: I50238734d29879ddc73d9755084698c7a5c4b8a1
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-04-09 19:49:13 -07:00
Gaowei Zhao a54e3fca89 hdmirx: support qms [1/1]
PD#SWPL-154454
PD#SWPL-160882

Problem:
not support qms

Solution:
support qms

Verify:
t3x

Change-Id: I3f373014962a06788ae9b0185555d8a8e0cf5725
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-04-09 19:48:57 -07:00
haitao.liu c20b47558c vdin: fix failed to compile zapper issue [1/1]
PD#SWPL-161512

Problem:
mk_zapper32.sh execution failed

Solution:
resolve code dependencies

Verify:
s1a

Test:
compile pass

Change-Id: Id2453a4414b768580ced0a57453dd29609fed86b
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-04-09 13:44:59 -07:00
haitao.liu ea8d0f2fdf vdin: Comment the code of changing secure mode dynamically [1/1]
PD#SWPL-161102

Problem:
vpp call tee interface in ISR cause abnormal because it may schedule
in tee interface.

Solution:
Donot need to call the tee intreface to change vdin secure buffer state,
so remove the related code,not to call it in ISR

Verify:
t5m

Change-Id: I971a2db1821532df475b2b2c856eb569a2b8177d
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-04-09 13:44:55 -07:00
Yu Tu 9d7cb0d7c8 pcie: pcie lead to power consumption high when shutdown [1/1]
PD#SWPL-164277

Problem:
pcie lead to power consumption high

Solution:
close phy and clock

Verify:
customer test ok

Change-Id: I9d10faf6cba4c24194673f6cfd280a045d2fbdd0
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-04-09 06:09:24 -07:00
Hangyu Li 56cc55aa8a mm: fix cma allocation stuck problem. [1/1]
PD#SWPL-161071

Problem:
cma alloc stuck.

Solution:
add FOLL_LONGTERM flags in pin page.

Verify:
S7.

Change-Id: Id011372a9431e07e69e1ee27ea134acda6959c82
Signed-off-by: Hangyu Li <hangyu.li@amlogic.com>
2024-04-09 06:08:59 -07:00
haitao.liu 4b2f321c5d vdin: optimize the time to enter the AV channel [1/1]
PD#SWPL-161331

Problem:
The time to enter the AV channel is too long

Solution:
reduce the number of signal stability confirmations

Verify:
t5m

Change-Id: If24ca340695e277819e720855ecefb25cc6b9b84
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-04-09 00:42:55 -07:00
hang cheng cceac2f696 hdmitx21: enhance hdcp disable action [1/1]
PD#SWPL-159886

Problem:
hdcp may not be disabled when switch mode,
and cause scdc clk_ratio can't be sent as
DDC is occupied by hdcp

Solution:
enhance hdcp disable operation

Verify:
S7

Test:
switch mode quickly and repeatedly

Change-Id: Ib68a3bb6652a3d0a586ef3809995f1b29ddc7c4e
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2024-04-08 21:49:44 -07:00
huijie.huang a69cc2fa3a lcd: tcon: fix tcon top initial sequence [2/2]
PD#SWPL-163721

Problem:
GPIOH_0 will pull down when system bootup

Solution:
tcon top fix initial sequence

Verify:
T5M

Change-Id: I6ee7dab4b756d9d344b6b7ab76e574984e09a89a
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2024-04-08 21:49:39 -07:00
Song Zhang c6b8245464 Revert "hdmitx: eARC register callback fail [1/1]"
After burning, stuck at the logo, unable to enter the system.

This reverts commit 784e8ef37d.

Change-Id: I0124f667c8f2db59bbea5243d8fdb9a38ae60078
Signed-off-by: Song Zhang <song.zhang@amlogic.com>
2024-04-08 16:45:23 +08:00
zhou.han de25423726 hdmitx: Fix pointer release issue in edid_store [1/1]
PD#SWPL-163281

Problem:
The address pointed by the pointer is released after modified

Solution:
Records the initial address of the pointer and releases this
initial address at the end

Verify:
ohm

Test:
self-test

Change-Id: I99986c817d9a5020cc049038c5ddec005e641a6b
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-04-07 23:44:56 -07:00
Wenjie Qiao 8d5a638b93 hdmitx: set frac 0 when brr mode [1/1]
PD#SWPL-163844

Problem:
switch to 59.94hz, not set 60hz mode when qms enable
because frac mode

Solution:
set frac 0 when brr mode

Verify:
s7d

Test:
DRM-TX-75

Change-Id: I69fc38ffee456d2a917f586e7ed04dad3aa8a22d
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-04-07 21:54:09 -07:00
Wenjie Qiao 784e8ef37d hdmitx: eARC register callback fail [1/1]
PD#SWPL-145976

Problem:
eARC driver probe before hdmitx driver, so eARC register callback fail

Solution:
don't check hdmitx init when eARC register callback
and later probe and plugin/out will notify eARC HDMI Tx cable plug in/out

Verify:
TM2

Test:
DRM-TX

Change-Id: Ifa1a4d541e7d976ea1a0112f0755b463c11dcdf8
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-04-07 21:53:59 -07:00
mingxiu.sun a889d8a5cf vdin1: g12a/g12b/sm1 donot support screencap vpp [1/1]
PD#SWPL-158739
PD#SWPL-158743

Problem:
screencap osd + video use vpp loopback point,
g12a/g12b/sm1 do not support it

Solution:
modify registers as loopback post_blend

Verify:
g12a

Change-Id: I419a924bc2a72ae8d8a7c2c00ddc59b5189fc8ab
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2024-04-07 21:53:36 -07:00
mingxiu.sun 44740e2165 tvafe: vbi_probe memory optimization [1/1]
PD#SWPL-158562

Problem:
vbi alloc memory in probe

Solution:
Change the vbi memory allocation to tvafe_dec_open

Verify:
txhd2 androidu

Change-Id: I319204327b2f9aaea55aef9f7d13c310a8b3c090
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2024-04-07 21:53:13 -07:00
linfang.zhao d0fd43f239 drm: sync drm code from sandia to s7&trunk [1/1]
PD#SWPL-145614

Problem:
sync drm code from sandia to s7&trunk

Solution:
sync drm code from sandia to s7&trunk

Verify:
androidU_s5/androidU_T3X-BDS/androidU_s7/RDK_SC2/yocto_sc2

Test:
DRM-OSD-27
DRM-OSD-33

Change-Id: I7fddcabf1a901419fb4b79680bee3e6246180380
Signed-off-by: linfang.zhao <linfang.zhao@amlogic.com>
2024-04-07 21:53:08 -07:00
he.he 364cc722c2 usb: xhci not responding [1/1]
PD#SWPL-155224

Problem:
irq: nobody cared (try booting with the irqpoll option)
handlers:
[<0000000065ca241a>] usb_hcd_irq
Disabling IRQ #usb

Solution:
usb interrupt is coming,
but the op_regs->status register equals 0, if exit directly,
it may cause the status to remain at 0 and cause xhci to
falsely hang.

Verify:
t3x

Change-Id: I9b643c13b364ab86bb38384551bcb5008680c1ec
Signed-off-by: he.he <he.he@amlogic.com>
2024-04-07 03:51:05 -07:00
Jianxiong Pan 3869b9a068 zapper: block s7 board related code for s1a. [1/1]
PD#SWPL-126879

Problem:
block code unrelated to s1a.

Solution:
block s7 board related code for s1a.
disable some configs.

Verify:
s1a.

Test:
s1a.

Change-Id: I84d563b958980d1fad9e587c7a8474757759b109
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-04-07 01:55:40 -07:00
Hao Shi 58f6fbb424 codec_mm: scatter cache soft alloc [1/1]
PD#SWPL-161136

Problem:
Flexible growth of cache memory.

Solution:
Scatter cache alloc small slot when force_cache_on closed.

Verify:
sc2

Change-Id: I5162ddf2dfed5205225f18283c2f8402a75fb977
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-04-07 00:33:41 -07:00
qinghui.jiang ccc0a60795 amvecm: lc off not fit [1/1]
PD#SWPL-158582

Problem:
calling apis not fit for t3x.

Solution:
modify calling apis.

Verify:
t3x_revb

Change-Id: Ie900c4b0a1ae18163d6d31788c15d6e727353421
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2024-04-07 00:33:37 -07:00
yicheng shen ee9f3c1bb7 hdmirx: optimize 1.5G phy setting [1/1]
PD#SWPL-160572

Problem:
some specific device does not work well on the frequency 1.5G

Solution:
optimize 1.5 G phy setting

Verify:
T5M/TXHD2/T3X

Change-Id: Idacd41b0195fb76ee5deba79744a0ab7a6c94c6e
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2024-04-07 00:33:13 -07:00
jinbing.zhu d7c8c44b1c amvecm: need optimize vframe for 5.15 [1/1]
PD#SWPL-161639

Problem:
need optimize vframe for 5.15

Solution:
.need optimize vframe for 5.15

Verify:
t3

Change-Id: I7ecb26b4d602c3620a4064831e23fea961d74ff9
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-04-06 21:46:57 -07:00
yao liu 2619e87819 amdv: hdmi in precision function [1/1]
PD#SWPL-159561

Problem:
hdmi in precision function

Solution:
1.add disable_detunnel check for hdmi in dw data
2.add enable_ro_check,default is false
3.support precision for low crop

Verify:
t3x

Change-Id: I8d524b94c1d5f5df07bd89ae24c45fedb9046763
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-04-03 06:05:06 -07:00
congyang.huang 9dba6f4574 drm: support vrr range debugfs [1/1]
PD#SWPL-162048

Problem:
the value of the vrr range debugfs node is incorrect

Solution:
update the value of vrr range to the debugfs node in get_modes

Verify:
t7

Test:
DRM-OSD-16

Change-Id: Ie465fabc761f23beaca406c8bb60b743f173c3bb
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-04-03 06:04:58 -07:00
guoqing.sun 4c4f1eef84 usbcam: CB2 set driver disconnect state. [1/1]
PD#SWPL-127187

Problem:
when card is removed, the device node cannot released immediately

Solution:
If the device is disconnected, set the driver to disconnected state

Verify:
android-u ATF T5m

Change-Id: Ieb0caa11f4059ce495fb53083c46740aa9aff529
Signed-off-by: guoqing.sun <guoqing.sun@amlogic.com>
2024-04-03 03:49:22 -07:00
Wenjie Qiao e5512c9d42 hdmitx: set segment 0 when read block0 and block1 edid [2/2]
PD#SWPL-160326

Problem:
uboot and kernel read edid twice and
read edid error when edid has more than 2 block

Solution:
set segment 0 when read block0 and block1 edid

Verify:
sc2

Test:
DRM-TX

Change-Id: I8613f7e4c1c6826fbe5edefb7232d761693659b6
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-04-03 03:49:08 -07:00
Jian Cao 1a44c4421d vpp: dump current display buffer information [1/1]
PD#SWPL-161054

Problem:
vpp add log to print final display with timestamp and buffer address

Solution:
add this support

Verify:
t3x

Change-Id: I4df8f1fd1495291919e34942d3b2e4b6cb679713
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-04-03 00:15:28 -07:00
Pengcheng Chen c8f5991026 vpp: add no_compress info and bitdepth_dw [1/1]
PD#SWPL-160446

Problem:
1.add no_compress info for amdv
2.afbc and mif data format maybe different

Solution:
1.add no_compress info for amdv
2.add bitdepth_dw for dw data

Verify:
t3x

Change-Id: Ia47d24744dd1e87768e1b856d95ddb3e2e41780f
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-04-03 00:14:59 -07:00
Jianxiong Pan 3923075c2e mm: delay enable cma after kswap low. [1/1]
PD#SWPL-162740

Problem:
cma alloc too long in cts.

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

Verify:
t5d

Change-Id: Idac4be36533ed1ae9995ba84435ea7f44833dd61
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-04-02 07:44:55 -07:00
haitao.liu fe24a71897 vdin: enable auto clk gating of vdin [1/1]
PD#SWPL-159534

Problem:
Vdin clock gating is still enabled even not in use,
should be disable to save power.

Solution:
disable vdin clock when not in use.

Verify:
t5m

Change-Id: I8d1d6a8ff25bb8992db2fa318f91713a4855d715
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-04-02 05:53:13 -07:00
haitao.liu e27f5937c4 vdin: Configurable dw output width and height for dv hw5 [1/1]
PD#SWPL-159909

Problem:
Need debug cmd to set the h/v of double write frame

Solution:
Add debug cmd

Verify:
T3x

Change-Id: Ie93c1dfed65670d79f75553f892abad78a22a671
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-04-02 05:53:08 -07:00
Pengcheng Chen 76bd00f805 vpu_security: miss config vd1 slice3 secure [1/1]
PD#SWPL-159826

Problem:
miss config vd1 slice3 secure, the reg used for oled eco

Solution:
skip config vd1 slice3 secure

Verify:
t3x

Change-Id: Idb46ff3690b90f29d47f13fb270f38f14636a235
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-04-02 04:41:02 -07:00
yufei.huan 41b8a3ba39 deinterlace: txhd2 Insufficient bandwidth [1/1]
PD#SWPL-161202

Problem:
Insufficient bandwidth

Solution:
10bit-8bit

Verify:
txhd2

Change-Id: Icd2c39d96a03c7852e2c5a43407bb489bf23f74d
Signed-off-by: yufei.huan <yufei.huan@amlogic.com>
2024-04-02 04:40:58 -07:00
lizhi.hu a403694421 lcd: reduce lcd driver memory usage [1/1]
PD#SWPL-161573

Problem:
memory usage optimize

Solution:
remove text in lcd_debug.c

Verify:
none

Change-Id: I370cba27f8bc104f92f9fad6ca384b478adc31dd
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-04-02 01:51:29 -07:00
can.zhang d26cf75919 amdv: get ll_policy from uboot [1/1]
PD#SWPL-161157

Problem:
kernel can't get ll_policy

Solution:
add add

Verify:
local

Change-Id: Ie0a32df3691b6973741fc157732f0f178b2ade01
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2024-04-02 00:39:21 -07:00
linfang.zhao c52d22d045 drm: conflict between drm and dv when write afbc top ctrl reg [1/1]
PD#SWPL-153008

Problem:
conflict between drm and dv when write afbc top ctrl reg

Solution:
write osd_axi_sel bit when update_state func come firstly,
and the bit only set mali_afbcd_data one time.

Verify:
T7C

Test:
DRM-OSD-6

Change-Id: Ib05927b147f524862cfa20070cc0474dd0dc5854
Signed-off-by: linfang.zhao <linfang.zhao@amlogic.com>
2024-04-02 00:39:15 -07:00