Commit Graph

4579 Commits

Author SHA1 Message Date
Jianxiong Pan 541ea28331 mm: autopatch: add memory extend support. [1/2]
PD#SWPL-150034

Problem:
add memory extend support

Solution:
add memory extend support.

Verify:
local.

Change-Id: If79a09ac0cb6ea50b7fd8b41423dbf95951deb13
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-28 01:09:16 -07:00
Jianxiong Pan 7bd0e5c3f5 mm: autopatch: add mem debug support. [1/1]
PD#SWPL-150034

Problem:
No mem debug.

Solution:
porting it from 5.15.

Verify:
local.

Change-Id: I74d8f6add93e162abdb8fe964bcd7fdea974825d
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-28 01:08:23 -07:00
Jianxiong Pan c639f92679 mm: porting CMA optimization from 5.15 [2/2]
PD#SWPL-150034

Problem:
No cma optimization on 6.6

Solution:
porting CMA optimization from 5.15

Verify:
local.

Change-Id: Ia74fd6262e903167b35bd33e3567690485df89b3
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-27 23:17:34 -07:00
Jianxiong Pan 576236afbe mm: autopatch: porting CMA optimization from 5.15 [1/2]
PD#SWPL-150034

Problem:
No cma optimization on 6.6

Solution:
porting CMA optimization from 5.15

Verify:
local.

Change-Id: I738daac3e0d880913dc44f848fea53749146bd31
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-27 23:13:54 -07:00
Mingyen Hung 4ac9f5ce9a crypto: crypto driver bringup for kernel6.6 [1/1]
PD#SWPL-149507

Problem:
Need to bringup crypto driver for kernel6.6

Solution:
Bringup crypto driver for kernel6.6.
Use crypto_request_complete instead of calling
async_req->complete() directly.

Verify:
1. A4 + ba400
2. A5 + av400

Change-Id: Ibf13df063d5346291b4609ed5b9deea5c55ceb3b
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2023-12-27 22:33:08 -07:00
Jianxiong Pan 20b22833ba mm: enable pagetrace for amlogic-6.6. [2/2]
PD#SWPL-150034

Problem:
enable pagetrace for amlogic-6.6.

Solution:
update the function interface according to 6.6.

Verify:
local.

Change-Id: I48fef620a1da21a40f38da4abe59b44d211ce015
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-28 11:03:26 +08:00
Jianxiong Pan 20251a4abe mm: autopatch: enable pagetrace for amlogic-6.6. [1/2]
PD#SWPL-150034

Problem:
enable pagetrace for amlogic-6.6.

Solution:
update the function interface according to 6.6.

Verify:
local.

Change-Id: Ic257caa3b507dcadb999de3dbc94c0aef22b4b0a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-27 19:57:23 +08:00
Dezhen Wang 59ef125d80 kernel6.6: not build dtbo temporarily for debug [1/1]
PD#SWPL-151469

Problem:
build error about dtbo

Solution:
not build dtbo temporarily for debug

Verify:
 a4 a5

Test:
local

Change-Id: I53284bfa01a2b1353be6c7aa19fedab7bc6de1f2
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-12-27 01:59:49 -07:00
he.he bc924e8231 usb: some errors while compiling xhci and dwc3 trace [1/1]
PD#SWPL-149504

Problem:
some errors while compiling xhci and dwc3 trace
./mk.sh --gki_20

Solution:
modified

Verify:
a4

Change-Id: I290eff0a29b476305ff846eb5222ebcef9f86307
Signed-off-by: he.he <he.he@amlogic.com>
2023-12-27 01:19:58 -07:00
Hangyu Li 335f302fe5 tee: kernel6.6 optee linuxdriver bringup [1/1]
PD#SWPL-150080

Problem:
optee linuxdriver support kernel 6.6

Solution:
optee linuxdriver support kernel 6.6.
sync from upstream https://github.com/linaro-swg/linux.git
tag optee-4.0.0 and branch wip/optee-v6.6

Verify:
A5 409

Change-Id: I67fe2ec366528780b66060eaa62ee13fcd45f870
Signed-off-by: Hangyu Li <hangyu.li@amlogic.com>
2023-12-26 04:02:48 -07:00
he.he 19c1b404b2 usb: move xhci and dwc3 code to common_drivers [1/1]
PD#SWPL-149504

Problem:
move xhci and dwc3

Solution:
move xhci and dwc3

Verify:
a4

Change-Id: I50b09d317b63f7f449a2b3ed57037228b7a3c0db
Signed-off-by: he.he <he.he@amlogic.com>
2023-12-26 00:36:51 -07:00
Qianggui Song dab9d87e2a pinctrl: remove unused code for compatible [1/1]
PD#SWPL-150131

Problem:
No need to compatible to 5.15, so make code clean.

Solution:
remove compatible code.

Verify:
A4 & A5

Change-Id: Id20b4ce8a675934fbe597951517b8e72f6512e1a
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2023-12-25 22:36:08 -07:00
Long 5c02d595ea storage: enable emmc/sdio. [1/1]
PD#SWPL-149491

Problem:
need to support emmc/sdio at a4/a5;

Solution:
add emmc/sdio at dts;

Verify:
A4,A5

Change-Id: I315fd86d6be1a692feb94d408320b2c70c0f3fdf
Signed-off-by: Long <long.yu@amlogic.com>
2023-12-25 19:03:14 +08:00
Chengbing.wu 05b8c82c21 regulator: a4 a5 kernel6.6 bringup [1/1]
PD#SWPL-149398

Problem:
need to support regulator at a4/a6 k6.6;

Solution:
add regulator at dts;
verify voltage at board;

Verify:
A4:BA400-A113L2-DEV #064
A5:AV400 #003, #019?

Change-Id: I6af27c779d8a2c88d2bf78945f8b46509fac98eb
Signed-off-by: chengbing.wu <chengbing.wu@amlogic.com>
2023-12-22 03:22:42 -07:00
yiting.deng f1b6d97729 rtc: a4 and a5 rtc bringup [1/1]
PD#SWPL-149396

Problem:
a4 and a5 rtc bringup

Solution:
a4 and a5 rtc bringup

Verify:
a4_ba400
a5_av400

Change-Id: I6b12773cffcbee522d4c8d0152fea1df5ad1f497
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2023-12-22 02:19:26 -07:00
Zelong Dong f0aeb8ad80 jtag: a4: support jtag [1/1]
PD#SWPL-149478

Problem:
a4 need support jtag

Solution:
support jtag

Verify:
a4

Change-Id: Ib784af8c3fdbc22f484896f0bc705fb27c90553d
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2023-12-21 20:26:59 -07:00
Dezhen Wang 9b9951c3ad kernel6.6: close the CONFIG_SND_SOC for debug [1/1]
PD#SWPL-150858

Problem:
amlogic-snd-codec-dummy.ko
amlogic-snd-soc.ko
amlogic-snd-codec-a1.ko
amlogic-snd-codec-t9015.ko
amlogic-snd-codec-ad82584f.ko
amlogic-snd-codec-tlv320adc3101.ko
can not insmod normally

Solution:
close the CONFIG_SND_SOC for debug

Verify:
sc2 c2 a4 a5

Test:
local

Change-Id: I0cc3a045f0ec7acc4231ab6940263fbe0e43370e
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-12-21 11:55:15 +00:00
Dezhen Wang e93cf9ea7f kernel6.6: bring up fix some code problem [1/1]
PD#SWPL-150782

Problem:
bring up kernel6.6

Solution:
fix some code problem

Verify:
sc2 c2 a4 a5

Test:
local

Change-Id: I6b9affa83e6d46f6b857f4b542991bc70de4bfb5
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-12-21 00:09:33 -07:00
Huqiang Qin fda2b4913b saradc: a4: support saradc [1/1]
PD#SWPL-149489

Problem:
Kernel 6.6 A4/A5 bringup.

Solution:
Refs: https://scgit.amlogic.com/#/c/353060/

Verify:
A4/BA400

Change-Id: I6fdf9934fafdf20754b08480e6d0caf232c65957
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2023-12-21 14:18:13 +08:00
Huqiang Qin 81856e7b29 saradc: code compatibility [1/1]
PD#SWPL-150132

Problem:
mlock in upstream struct iio_dev has been removed.

Solution:
Add lock in saradc driver.

Verify:
A5/AV400

Change-Id: I93e2ab2db94f85a4a5cce54ebfad29c108793001
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2023-12-20 19:56:35 +08:00
Yao Jie 3e50c8b359 mailbox: A4 and A5 mailbox bringup [1/1]
PD#SWPL-149443

Problem:
A4 and A5 mailbox bringup

Solution:
A4 and A5 mailbox bringup

Verify:
A4-BA409
A5-AV409

Change-Id: Id7be65a6baf621bf10e72b3a0a8ec16a21f7eeb1
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2023-12-20 01:52:30 -07:00
Jiucheng Xu 1e4f4a3903 dts: Fix wrong irq number of A5 arm_pmu [1/1]
PD#SWPL-149377

Problem:
irq number is wrong

Solution:
fix it

Verify:
A5

Change-Id: I6ff1e6b2fb6aaef7e31b1cfc3772f71006b438ca
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
2023-12-19 04:31:41 -07:00
Huqiang Qin 18948c1d46 wdt: a4: support watchdog [1/1]
PD#SWPL-149480

Problem:
Kernel 6.6: A4/A5 bringup.

Solution:
Refs: https://scgit.amlogic.com/#/c/311517/

Verify:
A4/BA400 A5/AV400

Change-Id: I1e64ca9c03e99ff95bb555ce1dee42fd923beea3
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2023-12-19 14:10:54 +08:00
qinglin.li e10fc94ead ddr_tool: bring up a4 && a5 dmc [1/1]
PD#SWPL-149336

Problem:
bring up a4 && a5 dmc

Solution:
bring up a4 && a5 dmc

Verify:
a4&&a5

Change-Id: I6c0f0fceb53d484d069afb8f842b73aaf2ff99a0
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-12-18 22:31:17 -07:00
Wanwei Jiang 24017a7415 spi: kernel panic [1/1]
PD#SWPL-149482

Problem:
kernel panic

Solution:
check gpio pointer

Verify:
a5

Change-Id: I3d757154e3d66964bb3ac4c2bc503c81da5b602a
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-12-19 09:57:01 +08:00
he.he a030a2c9d1 usb: support USB for a4/a5 [1/1]
PD#SWPL-149504

Problem:
support USB for a4/a5

Solution:
support USB for a4/a5

Verify:
A4

Change-Id: I0510166908b6d9094269cb72f632348ab13a03b8
Signed-off-by: he.he <he.he@amlogic.com>
2023-12-18 04:59:09 -07:00
Junyi Zhao 297884eb62 pwm: a4a5: pwm kernel6.6 bringup [1/1]
PD#SWPL-149476

Problem:
a4 a5 kernel6.6 pwm  bringup

Solution:
a4 a5 kernel6.6 pwm bringup

Verify:
a4_ba400 a5_av400

Change-Id: I67e521b576859d6f6f101ed1f6a60845a79076c4
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2023-12-18 17:45:26 +08:00
hongyu.chen1 973b493070 A4 A5: power domain: add config. [1/1]
PD#SWPL-149440

Problem:
The A4 A5 need power domain support in kernel6.6.

Solution:
add config.

Verify:
ba400 and av400.

Change-Id: I0ebfb0d08628ebcfd5ecb66fddcbe77eaf9e090d
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2023-12-18 01:41:08 -07:00
Zelong Dong c2bca15e27 pinctrl: a5: support pinctrl & gpio function [1/1]
PD#SWPL-149473

Problem:
a5 need support gpio & pinctrl

Solution:
add a5 pinctrl data

Verify:
a5

Change-Id: I3f1ba03577a3960a5a546a1f89202a63a11a8a98
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2023-12-18 01:40:18 -07:00
Zelong Dong 0cd0142b9e pinctrl: a4: support pinctrl & gpio function [1/1]
PD#SWPL-149473

Problem:
a4 need support gpio & pinctrl

Solution:
add a4 pinctrl data

Verify:
a4

Change-Id: I60ebf6c7412531c09902579fa2e11b34de446727
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2023-12-18 01:11:49 -07:00
yiting.deng 32bbb62d9b clk: a4: clk kernel6.6 bringup [1/1]
PD#SWPL-149436

Problem:
a4 kernel6.6 clock bringup

Solution:
a4 kernel6.6 clock bringup

Verify:
a4_ba400

Change-Id: I56f718e0f5023a68e69c27d6a16aceca4865426b
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2023-12-17 23:55:34 -07:00
yiting.deng 3f01197ec2 clk: a5: kernel6.6 clock bringup [1/1]
PD#SWPL-149436

Problem:
a5 kernel6.6 clock bringup

Solution:
a5 kernel6.6 clock bringup

Verify:
a5_av400

Change-Id: I09c645b5de57656794fbcf1936f108263e2b42e4
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2023-12-18 13:54:06 +08:00
Wanwei Jiang f87341e1ce kernel6.6: porting efuse driver for a4 and a5 [1/1]
PD#SWPL-149339

Problem:
porting efuse driver for a4 and a5

Solution:
enable by dts

Verify:
a4 a5

Change-Id: Idc965e6c448a8952c6d660b578393baf9bb98f65
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-12-15 18:34:29 +08:00
Wanwei Jiang c7668e4330 kernel6.6: proting secmon driver for a4 and a5 [1/1]
PD#SWPL-149342

Problem:
proting secmon driver

Solution:
enable by dts

Verify:
a4 a5

Change-Id: I40a272090c9e1ab0d74a12e2225c57a021756948
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-12-15 18:34:29 +08:00
Wanwei Jiang f36259392f kernel6.6: porting cpuidle driver for a4 a5 [1/1]
PD#SWPL-149331

Problem:
porting cpuidle driver

Solution:
modify dts

Verify:
a4 a5

Change-Id: I86a4a0ea9e141099061a143dbbd1f0aaab831f75
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-12-15 18:34:29 +08:00
Wanwei Jiang b5524e8e6c kernel6.6: bring up to console for a4 and a5 [1/1]
PD#SWPL-149306

Problem:
bring up to console

Solution:
1. poritng dts from kernel5.4
2. modify build script for kernel6.6

Verify:
local

Change-Id: I41748eedb1592c01b54c0b7c4a96623df99fa5ec
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-12-15 18:34:04 +08:00
Wanwei Jiang 43461aec82 kernel6.6: bring up [1/1]
PD#SWPL-145682

Problem:
bring up kernel6.6

Solution:
1. porting kernel6.6
2. compatible with different kernel versions
3. bring up kernel6.6

Verify:
sc2 c2 a4 a5

Test:
None

Change-Id: Ie22af0abc8ea96261e8a8cc7804b58565aedd904
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-12-14 16:55:55 +08:00
Jianxiong Pan 52549b9184 mm: set pagetrace y defalut no gki20. [1/1]
PD#SWPL-146738

Problem:
pagetrace too late in suspend phase.

Solution:
set pagetrace y default no gki20.

Verify:
local.

Change-Id: I258abab43c336e3de2a4190dce365705d2860f34
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-04 04:37:18 -07:00
sky zhou 4fb47a422e hdmitx: add kms/edid trace event [1/1]
PD#SWPL-142523

Problem:
no event for modesetting

Solution:
add kms/edid trace event

Verify:
verify on ohm.

Test:
DRM-TX-39

Change-Id: Ide543ed7928bfd94e11a520bb9401cdb543c93de
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-12-04 02:27:19 -07:00
shipeng.sun 30bcec85d3 S5: CF1 Update vdec memory size to support secure 8k playback [1/1]
PD#SWPL-146634

Problem:
Update vdec memory size to support secure 8k playback

Solution:
1.Update vdec memory from 12M to 48M  to support secure 8k playback

Verify:
S928X

Change-Id: I1a45e5756b35368fb9f86a37411184add6cefcf1
Signed-off-by: shipeng.sun <shipeng.sun@amlogic.com>
2023-12-04 00:07:08 -07:00
nengwen.chen b9be92e09f dtv_demod: support dtmb 6M BW (V3.5.026) [1/2]
PD#SWPL-148081

Problem:
support dtmb 6M BW.

Solution:
support dtmb 6M BW.
AMLDTVDEMOD_VER "V3.5.026".

Verify:
T3 AR321.

Change-Id: I68e4d8c4976fad797affc204d15fea9cf5d3f06a
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2023-12-03 23:03:19 -07:00
yongbing.he b530e1011c c3: aw409 Fix recovery DTS [1/1]
PD#SH-17407

Problem:
AW409 OTA upgrade failed

Solution:
Fix system size error

Verify:
C3

Change-Id: I6dd07b8fd3ae9c1f1ec9c1d01cb55914105f90b6
Signed-off-by: yongbing.he <yongbing.he@amlogic.com>
2023-12-03 23:03:15 -07:00
Jianxiong Pan 455d10eff1 zapper: disable hdmitx20 and mbox. [1/1]
PD#SWPL-126879

Problem:
s1a memory optimization.

Solution:
disable hdmitx20 and mbox.

Verify:
s1a.

Test:
s1a.

Change-Id: I317718936fdc14ec3b30faae7672fea66ac4541c
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-03 04:25:04 -07:00
mingyang.he 7385476aee drm: fix screen flash when video is playing while osd closed [1/1]
PD#SWPL-144746

Problem:
flash screen after osd disappear when play some h264/mpeg2 stream

Solution:
manipulate specific postblend reg and mif reg in the same vsync

Verify:
t7c

Test:
DRM-OSD-133

Change-Id: I651d4df3e0d4e82eadafa848e3aba2088028ea40
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2023-12-01 06:25:58 -07:00
ruofei.zhao 71f39f244f hdmitx: remove 640x480p60hz resolution [1/1]
PD#SWPL-145306

Problem:
when resolution switch to 640x480p60hz,
it will display no signal for 10s during boot up

Solution:
remove 640x480p60hz resolution

Verify:
S5/SC2

Test:
DRM-TX-66

Change-Id: I0c4373e9554c75bb1941dbab465b30e1d8f8d175
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2023-12-01 06:25:54 -07:00
xiang.wu1 fd267fc2d6 hdmitx: attach vinfo in set_current_vmode [1/1]
PD#SWPL-144323

Problem:
always hdr, when uboot enters the kernel, it will send the
sdr package first and then the hdr package, causing the TV
to flash black once or the color will darken.

Solution:
When the kernel starts up, vout takes priority over vpp.
the HDR/DV module will use vinfo information, it needs
to attach vinfo after the EDID is parsed and before the
HDR/DV module is enabled.

Verify:
ohm

Test:
DRM-TX-70

Change-Id: Ifb8e4700e33db96a2298d57d5413a8fceb232fc0
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-12-01 04:17:31 -07:00
qi duan ae6498c40e usb: txhd2 otg usb wr_outstanding tune [1/1]
PD#SWPL-146713

Problem:
data read from udisk on otg usb port is error

Solution:
set u2drd wr_outstanding as 0

Verify:
be311

Change-Id: I12a5e155f73526f31afd0f4ae48b9ee031fe2450
Signed-off-by: qi duan <qi.duan@amlogic.com>
2023-12-01 00:13:27 -07:00
Jian Cao 00af39e5bc video_processor: set an initial value for composer info [1/1]
PD#SWPL-138887

Problem:
kernel panic and pc is at set_alpha_scpxn+0x24/0xb4

Solution:
composer info addr is wrong
set an initial value for it

Verify:
g12a

Change-Id: I7d5806e41f1a7bf6a2c4520be6eb87b275a52964
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2023-12-01 00:13:17 -07:00
zhenteng.tian 4666dadb2a aicolor: checkout if aicolor is done before pq. [1/1]
PD#SWPL-146859

Problem:
kernel panic in ai_color_proc function.

Solution:
checkout if aicolor is done before access ai_color value.

Verify:
T3X

Change-Id: I08d563697861ba4b9fe3af53f94146daa9be3cfd
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2023-12-01 00:13:12 -07:00
zhenteng.tian 18ccf9769d ai: add dump vframe flow in aipq, aisr and so on. [1/2]
PD#SWPL-143281

Problem:
Add dump vframe flow in aipq, aisr and so on.

Solution:
Add dump vframe flow in aipq, aisr and so on.

Verify:
T3

Change-Id: Ib3b0bf62ba09d5cae40ce86730c2838f932e57e6
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2023-12-01 00:13:07 -07:00