Commit Graph

895 Commits

Author SHA1 Message Date
yujun.zhang dd2125bb0e dts: drm multi-display in 5.15 [1/1]
PD#SWPL-94676

Problem:
No dts config in kernel 5.15

Solution:
Add dts config for multiple DRM display

Verify:
t7c

Change-Id: Ia418eabbb2a6fa366bd796977fc8bfcca88cf76b
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2022-12-02 14:04:53 +08:00
Wanwei Jiang ffad82952a secmon: modify secmon dts [1/1]
PD#SWPL-94174

Problem:
modify secmon dts

Solution:
modify secmon dts

Verify:
sc2

Change-Id: I7409dfa9f59844145fe05f21a737d73cb309b153
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2022-12-02 14:04:53 +08:00
lizhi.hu 4a7d13ebe3 lcd: fix bug in lcd lcd_vsync_handler [1/1]
PD#SWPL-94121

Problem:
lcd_screen_restore and lcd_screen_black may be a nullptr,
under specific condition, results in kernel panic.

Solution:
remove pointer from pdrv.

Verify:
t7c

Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
Change-Id: If3bd01a8426ca6b67052265e98ff8ab9829ed07d
2022-12-02 14:04:53 +08:00
Cheng Wang2 7073714610 T7C: Android T bring up [1/1]
PD#SWPL-95016

Problem:
using partition_mbox_ab

Solution:
N/A

Verify:
lunch

Signed-off-by: Cheng Wang2 <cheng.wang2@amlogic.com>
Change-Id: Iadac9a5fbe5102e6badb6a3445832db7165f4848
2022-12-02 14:04:53 +08:00
Yu Tu 4a6977b555 dts: t7 and t7c support pcie [1/1]
PD#SWPL-94179

Problem:
t7 and t7c bringup pcie driver

Solution:
add dts config for pcie

Verify:
T7

Signed-off-by: Yu Tu <yu.tu@amlogic.com>
Change-Id: Id459fb43b85a1dc372638ccada718ca32c748c87
2022-12-02 14:04:53 +08:00
yuhua.lin 9d83c5d4a4 amlgdc: support amlgdc for kernel5.15 T7C [1/1]
PD#SWPL-94184

Problem:
need to support amlgdc for kernel5.15 T7C

Solution:
complete it

Verify:
t7c

Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
Change-Id: I10690c181ba22f503915473053c375304c1b69c7
2022-12-02 14:04:53 +08:00
ziyi 1feee1b1ba emmc: emmc hs400 sd high speed enable and revise clk [1/1]
PD#SWPL-94187

Problem:
emmc hs400 sd high speed enable and revise clk

Solution:
emmc hs400 sd high speed enable and revise clk

Verify:
Verified on t7 and t7c

Change-Id: I7241f5c2fa0ad662d842d7e4881fa924cd54c2bb
Signed-off-by: ziyi <ziyi.huang@amlogic.com>
2022-12-02 14:04:53 +08:00
Yao Jie 4fb89e60e0 reboot: t7c silicon reboot bringup [1/1]
PD#SWPL-94152

Problem:
t7c silicon reboot bringup

Solution:
t7c silicon reboot bringup

Verify:
T7C-AN400-A311D2

Change-Id: I0b91e582c5e68bcf10e756e0a7d018759949c6b5
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2022-12-02 14:04:53 +08:00
qinglin.li 5a203d8412 ddr_tool: bring up t7c dmc with androidT [1/1]
PD#SWPL-94103

Problem:
1.not show when dmc ops not find
2.delete not used value DMC_MULTIPLE

Solution:
bring up t7c dmc with androidT

Verify:
t7c

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I0cdc35f52f06a91d14ae050d3298e7db06e77c04
2022-12-02 14:04:53 +08:00
Qianggui Song 57ec42b992 t5m: dts: add basic device tree [1/1]
PD#SWPL-94411

Problem:
Need to bringup t5m to console on z1

Solution:
add a basic device tree base on t3

Verify:
t5m_z1

Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
Change-Id: I1963056eb46c18a8bae5a5b9aee79a76b6a37c2d
2022-12-02 14:04:53 +08:00
lizhi.hu 97130abbfd lcd: T7C Kernel 5.15 Bringup - lcd [1/1]
PD#SWPL-94121

Problem:
Add lcd support for t7c

Solution:
Add lcd support for t7c

Verify:
t7c

Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
Change-Id: Ic0153a8ec4ea1d94cf63e34ecea89920c83e6a36
2022-12-02 14:04:53 +08:00
lizhi.hu e7be8f6039 vpu: add support for vpu and vpu-top [1/1]
PD#SWPL-94142

Problem:
t7c bringup

Solution:
add support for t7c vpu and vout

Verify:
t7c

Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
Change-Id: Iba7ee9b49f1224299fa6ba81f5e2b6fabfcb77b3
2022-12-02 14:04:52 +08:00
Yu Tu aeed0f6d77 uart: add uart driver for t7 [1/1]
PD#SWPL-94190

Problem:
check t7 uart driver

Solution:
add uart driver support

Verify:
t7

Signed-off-by: Yu Tu <yu.tu@amlogic.com>
Change-Id: I05daa103f5fdbe4fcfe680cce44c78b4cea244d4
2022-12-02 14:04:52 +08:00
Jian Hu bafcd86101 clk: t7: fix clk_debug not working [1/1]
PD#SWPL-94081

Problem:
clk_debug does not work

Solution:
register clkdev for to look up a clk success

Verify:
t7c_an400

Change-Id: I2978d533428e9ab3a5bbe90c89eddd4129cb85e3
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2022-12-02 14:04:52 +08:00
Qianggui Song 03c39a8f48 t7c: bringup to console [1/1]
PD#SWPL-93876

Problem:
t7c also need to bringup

Solution:
1. copy dts related files from kernel 5.4
2. do the same modification as t7

Verify:
t7c_an400

Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
Change-Id: I7c517428bc474f83f7329d51a24424575d118b00
2022-12-02 14:04:52 +08:00
qinglin.li 7938f7464a typo: fix typo error [1/1]
PD#SWPL-103514

Problem:
fix typo error

Solution:
fix typo error

Verify:
sc2

Change-Id: I33ef17c30cc8f156f0b4b401fe65ac7412329f75
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-12-01 22:51:49 -07:00
jian zhou 8f2992fd87 audio: fix alsa driver typo [1/1]
PD#SWPL-103472

Problem:
alsa driver typo

Solution:
fix alsa driver typo

Verify:
T7C

Change-Id: I3c21521203d73cc0d658913662301ffa42a5bd18
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2022-12-01 22:51:22 -07:00
joy.rao d1669de600 resource_mgr: sync from S to T [1/1]
PD#SWPL-102262

Problem:
need to sync update to T

Solution:
sync from S to T

Verify:
AH212

Change-Id: Iefe9c437641fa632da1d28ff825ae88ac866aba6
Signed-off-by: joy.rao <joy.rao@amlogic.com>
2022-12-01 22:51:15 -07:00
yuna.liu c4da0cd780 media_modules: CB2 tsplayer supports DV playback [1/1]
PD#SWPL-100780

Problem:
Requirement:modify the DV link when tsplayer plays.

Solution:
When tsplayer plays, amvideo in the DV link is changed to v4lvideo.*.

Verify:
ohm

Change-Id: I84dbe550308aceff8bd39c1dd331274439599153
Signed-off-by: yuna.liu <yuna.liu@amlogic.com>
2022-12-01 20:36:32 -07:00
yidong zhang 2ac0baed4b common_drivers: fix CtsViewTestCases on 32 bit kernel [1/1]
PD#SWPL-102353

Problem:
CtsViewTestCases  fails

Solution:
enable CONFIG_INPUT_MOUSE.

Verify:
planck

Change-Id: Icb007ae59f8edca4768c50bebc708618e65e7492
Signed-off-by: yidong zhang <yidong.zhang@amlogic.com>
2022-12-01 02:40:38 -07:00
qinglin.li 95d75199c9 dmc_monitor: fix type error [1/1]
PD#SWPL-102608

Problem:
fix type error

Solution:
fix type error

Verify:
s4

Change-Id: I1d8c494a12d3066935e72228cea1d13d026e0a7d
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-11-30 19:28:44 +08:00
lizhi.hu cd93a55d33 vout_serve: kernel coverity defect cleanup [1/1]
PD#SWPL-100726

Problem:
coverity failed

Solution:
fix

Verify:
t7c

Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
Change-Id: I05c3dd601c5d5d266060f8a494c1aff470a41d60
2022-11-30 02:40:35 -07:00
qinglin.li 61c6f10791 dmc_monitor: add dmc dev access callback func [1/1]
PD#SWPL-102608

Problem:
add dmc dev access callback func

Solution:
add dmc access callback func
use see to https://confluence.amlogic.com/display/SW/06+DMC+Dev+Access

Verify:
sc2

Change-Id: I54faa5f383045b0441665af292a926cee52fca72
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-11-30 00:52:11 -07:00
kun.liu f4118886a9 decoder: CB2 Update max allocated value in codec_mm. [1/1]
PD#SWPL-101995

Problem:
In codec_mm,alloced size is greater than the value of the max alloced

Solution:
Update max allocated value

Verify:
ah212

Change-Id: I599bbedcddd06373e43cb83f947dc45c82c8c6cc
Signed-off-by: kun.liu <kun.liu@amlogic.com>
2022-11-30 00:52:07 -07:00
Qinglin Li ce358d0821 Revert "printk: arm not printk cpu etc info [1/1]"
This reverts commit f0085d6840.

Change-Id: I5aa1ace9012b3f8a24b8a1304fe1e29c6596889a
2022-11-29 22:45:05 -07:00
Chao Zhang 81be4d5fe4 dvfs: update dvfs table on dts of c3 [1/1]
PD#SWPL-102627

Problem:
CPU running at 2.0G system will be unstable

Solution:
AW409-C302X Limited to 1.7G max. frequency
AW419-C308L Limited to 1.9G max. frequency
Update C3 dvfs vddcpu table

Verify:
C302X_AW409/C308XL_AW419_

Change-Id: Ibeb08f466d449c33de2ef3dbea4cc574620012ca
Signed-off-by: Chao Zhang <chao.zhang@amlogic.com>
2022-11-29 22:44:58 -07:00
yujun.zhang 4a30708bdd drm: update header to MIT license [1/1]
PD#SWPL-102479

Problem:
Code pollution for codes with amlogic
drm header files

Solution:
Use MIT license header, and keep GPL license
in implementation files.

Verify:
sc2

Change-Id: Ie546e0754f8e2a4a451ce1e32d775ecb4e599e5d
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2022-11-29 08:42:21 -07:00
chuangcheng peng 1b1f49d9b4 smartcard: sync R code and add debug [1/1]
PD#SWPL-102624

Problem:
sync R code and add debug

Solution:
sync R code and add debug to replace mem debug

Verify:
not verified

Change-Id: I33882e61a4b727aeaecaf2aacec038055f99dba5
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2022-11-28 22:35:49 -07:00
shijie.xiong a0ea675993 freertos: modify rtos reserved address range [1/1]
PD#SWPL-97338

Problem:
0-80 Mb address is cannot used.

Solution:
modify rtos load address.

Verify:
N/A

Change-Id: Ib857add3b74fe5efd749994a79805a5c7f9f866e
Signed-off-by: shijie.xiong <shijie.xiong@amlogic.com>
2022-11-28 22:34:53 -07:00
Jianxiong Pan 56ff6bd8a9 mm: replace the vendor hook for dmc dump func. [1/1]
PD#SWPL-92714

Problem:
some vendor hook will break gki.

Solution:
replace the vendor hook.

Verify:
build pass.

Change-Id: I36970f96ca9b4d36623db577625eb2f5fff3a2ca
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-11-28 20:37:46 -07:00
lei.zhang1 21e02f69ff vout: fb can not be used [2/2]
PD#SWPL-102914

Problem:
fb can not be used

Solution:
add config

Verify:
aw409

Change-Id: Ia01d8ef9584096d1542e3ef44c59c8aface1a5b2
Signed-off-by: lei.zhang1 <lei.zhang1@amlogic.com>
2022-11-28 20:37:14 -07:00
hongyu.chen 592fbf50f8 demux: support demux dump data. [1/1]
PD#SWPL-81800

Problem:
Need to facilitate demux related issue debugging.

Solution:
support dump demux data.

Verify:
AH212/s905x4

Signed-off-by: hongyu.chen <hongyu.chen@amlogic.com>
Change-Id: I5c78d22de9f3567b2980fa3d5cf5fb613dc63869
2022-11-28 07:00:41 -07:00
min.yang e9c8477c65 demod: sync code from 5.4 to 5.15 [2/2]
PD#SWPL-102661

Problem:
sync ref code

Solution:
sync ref code

Verify:
verified by T + ohm

Change-Id: Ie765b01ce854bec0841c6bd5e8a16c58cd66dfa3
Signed-off-by: min.yang <min.yang@amlogic.com>
2022-11-27 21:14:18 -07:00
qinglin.li f0085d6840 printk: arm not printk cpu etc info [1/1]
PD#SWPL-101578

Problem:
arm not printk cpu etc info

Solution:
open CONFIG_AMLOGIC_DEBUG

Verify:
s4d

Change-Id: I106f96fe2206b90a1806a50d3ca9bf558215208c
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-11-25 02:44:22 -07:00
wei wang 818523e5d9 ircode: change KEY CODE. [1/1]
PD#SWPL-100703

Problem:
press list key, but disable wifi.
kernel5.15 is lost to commit in SWPL-84791.

Solution:
change key code ,from KEY_WLAN to KEY_LIST.

Verify:
verify by ohm-hybrid.

Change-Id: I76c7ff83d57c57e17bda7f3ac922b39480467f15
Signed-off-by: wei wang <wei.wang@amlogic.com>
2022-11-25 02:43:57 -07:00
Dezhen Wang 6b0730068e Unifykey: update kernel 5.15 dts(test1) [1/1]
PD#SWPL-99973

Problem:
update dts for dts

sc2_s905c2l_ah221_drm.dts
s4d_s905y4_ap223_drm.dts
s4_s905y4_ap223_drm.dts
s4d_s905c3_ap232_drm.dts
s4d_s905c3_ap232_mxl258c_drm.dts
s4_s905w2_ap201_1g.dts

Solution:
update dts

Verify:
no

Change-Id: I1297e2ade522c97a3942c132580184e9433dcb33
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2022-11-24 23:00:45 -07:00
chen.xu cbafe95c49 vpp: rm tvin_vf_disp_mode_check function [1/1]
PD#SWPL-101724

Problem:
HDMI RX access delay is more than 1s,when Screen rotation.

Solution:
while screen rotation, videoqueue and vpp will call disp_mode_check
function, causing repeated calls, result many frames status is
unknown, so rm disp_mode_check in vpp.

Verify:
T7C

Change-Id: I46675a4a4bb54a82f76a8ad08f89656269192e1b
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2022-11-24 22:55:41 -07:00
Mingyen Hung f75ec397ef Crypto: vts_kernel_net_tests fails on 32bits platform [1/1]
PD#SWPL-102281

Problem:
vts_kernel_net_tests fails

Solution:
1. Enable CONFIG_CRYPTO_MD5 for vts_kernel_net_tests

Verify:
1. On AQ222

Change-Id: Idd55615909041ea4d080d5d5ebcd6761ab1ef5d8
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2022-11-24 22:55:37 -07:00
Ao Xu 0812de9d10 drm: skip write vpp blend control register [1/1]
PD#SWPL-100531

Problem:
drm rdma will overwrite video rdma
no sysfs node to control vpp1&vpp2 osd blank

Solution:
skip write vpp blend control register
add sysfs node to control vpp1&vpp2 osd blank

Verify:
an400

Test:
DRM-OSD-13

Change-Id: I719591648e245059bd52213416b484437e9b52f0
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2022-11-25 10:13:44 +08:00
binbin.wang 1686ef8e8d Regulator: Disable the regulator of vddee [1/1]
PD#SWPL-102361

Problem:
The vddee voltage will jump when enter kernel when the regulator of
vddee is enabled.

Solution:
Disable the regulator in DTS.

Verify:
C3

Signed-off-by: binbin.wang <binbin.wang@amlogic.com>
Change-Id: I4b45df15b9bc7f45e5f022057a78f76a58e4626e
2022-11-23 22:49:28 -07:00
qinglin.li 931a53faa3 scrpits: add CONFIG_DEVTMPFS when build not android [1/1]
PD#SWPL-97112

Problem:
/dev node less when fatload

Solution:
add CONFIG_DEVTMPFS

Verify:
sc2

Change-Id: I32b9cf8b72e36c901adf4bd0a8e6bec9abf80197
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-11-23 22:48:38 -07:00
Jianxiong Pan cfe447605d mm: enable pagetrace. [1/1]
PD#SWPL-100589

Problem:
need to enable pagetrace.

Solution:
enable pagetrace.

Verify:
build pass.

Change-Id: Icb760b71737c033487a3d481e27e90d098c0e386
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-11-23 22:48:34 -07:00
min.yang 20f5c91358 dvb-extern: optimize attach and register [1/1]
PD#SWPL-99387

Problem:
It tooks too long in the way using command
to attach and register demod

Solution:
use work queue to attach and register

Verify:
verified by T + ohm

Change-Id: I83013b57e05cd6fa9016a27b0d719ddd2cfcbe79
Signed-off-by: min.yang <min.yang@amlogic.com>
2022-11-23 22:48:16 -07:00
Rong Chen 94501a169f mmc: crop boot log [1/1]
PD#SWPL-101050

Problem:
too many boot logs

Solution:
reduce boot log

Verify:
sc2

Change-Id: I3e2cf2ecb70acbf3a78fc8b1da59f7f0ab7137a3
Signed-off-by: Rong Chen <rong.chen@amlogic.com>
2022-11-22 20:43:21 -07:00
qiyao.zhou 9e7296318e vc: kernel panic when c3 mbd play. [1/1]
PD#SWPL-101787

Problem:
videodisplay in 5.15 branch has bug.

Solution:
cherry-pick such CL from 5.4 to 5.15:
commit <45db746ab454>
commit <466d7a3cc024>
open video_composer module config for C3

Verify:
c3

Change-Id: I9b952763dd3c6b3f91a4ff68f4eb2db513c31168
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2022-11-22 06:55:06 -07:00
Jianxiong Pan 884498649c mm: enable page map show for logcat/tombstone. [2/3]
PD#SWPL-96613

Problem:
No pfn information in tombstone and logcat files.

Solution:
enable pfn information form /proc/[pid]/pagemap for user
tasks. This feature is default enabled for userdebug/eng
build and disabled for release build.
Also you can manual enable it by:
echo pagemap_en=1 > /proc/mem_dbug

Verify:
s4_aq222.

Change-Id: I8530c28f4ff3786cd4c34341214ab66e30d54758
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-11-22 05:03:20 -07:00
dian.shao ae8e23ed34 coverity: usb and ethernet driver [1/1]
PD#SWPL-100740

Problem:
10897  Whitelist.
12436  added a null ptr check.
141141 added a return value check.
225361 Deleted the dead code.

Solution:
10897  Whitelist.
12436  added a null ptr check.
141141 added a return value check.
225361 Deleted the dead code.

Verify:
coverity.

Change-Id: I31a85828a1d0890d06348d415ce5a6da1ac0e932
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2022-11-22 05:03:09 -07:00
Jianxiong Pan 111f1e6cb8 mm: add print the [pin] flag in filecache. [1/1]
PD#SWPL-92714

Problem:
without the pin flag, it is impossible to know
which files are pinned.

Solution:
add pint the pin flag.

Verify:
s4_aq222.

Change-Id: I84aa9eaffe40b86043f00e019b5b359532b1f90e
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-11-22 02:25:46 -07:00
hang cheng 39b086f1fb cec: correct writing error [1/1]
PD#SWPL-99210

Problem:
there's writing error cause hpd
is not controlled accordingly

Solution:
correct writing error

Verify:
t5d

Change-Id: I16f32a4464760fc7e64a329005559684d756fd17
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2022-11-22 00:52:44 -07:00
Hao Shi 97ea26087c codec_mm: resolve coverity defect error [1/1]
PD#SWPL-100720

Problem:
codec_mm coverity defect cleanup

Solution:
codec_mm coverity defect cleanup

Verify:
coverity

Change-Id: I12cf01be1a31b03fdaee61b546347e578a2d5d68
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2022-11-21 22:36:55 -07:00