Commit Graph

169 Commits

Author SHA1 Message Date
dian.shao fb2db42f7f usb: t6d usb2t controller clks update [1/1]
PD#SWPL-180337

Problem:
S6 usb2t controller clks need update.

Solution:
Add clk mux codes & dts nodes.

Verify:
br201.

Change-Id: I5342898a9864601f58f3ba6aa49f113ca1e81642
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-08-22 14:27:53 +08:00
Qianggui Song f575d64461 pinctrl: add debugfs node to debug pinctrl [1/1]
PD#SWPL-152890

Problem:
Some one may need to config pins via user space

Solution:
export some debugfs nodes from driver
usage:
1. echo gpiox_y input/output-low/high > gpio
2. echo gpiox_y bias-disable/up/down > bias
3. echo gpiox_y 500/2500/3000/4000 > drive_strength

Verify:
t7_an400 & sc2

Change-Id: Ic380ee98609c897463f3db5be3c4c941633537fa
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2024-08-13 05:44:29 -07:00
Rong Chen e75d5b42da mmc: add hs400 para save [1/1]
PD#SWPL-178572

Problem:
lack hs400 para save.

Solution:
add hs400 para save.

Verify:
S5

Change-Id: Ie363d3b303dd26c55b47778aa7753444be4af423
Signed-off-by: Rong Chen <rong.chen@amlogic.com>
2024-08-07 21:48:49 -07:00
qinglin.li f5f881670d upgrade: kernel upgrade by July with kernel [1/1]
PD#SWPL-169224

Problem:
update include/linux/upstream_version.h
fix conflict

Solution:
update include/linux/upstream_version.h
fix conflict

Verify:
local

Change-Id: I032f25e9054eeda9ad10dd7e6a20a184787d8518
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-08-02 03:44:28 -07:00
Qianggui Song 8f99482df6 symbol: add some i2c & gpio & pwm symbol [1/1]
PD#SWPL-176918

Problem:
some customers may use some apis which are not exported
to write their drivers

Solution:
Add three apis which are required by customers

Verify:
local build

Change-Id: Ia934a497e6de4522ae4bab62bb7db34d6e941594
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2024-07-11 00:46:30 -07:00
Huqiang Qin ee5368f84e pdd: s7d: add a new power down detection driver [1/1]
PD#SWPL-169074

Problem:
Add a new power down detection driver.

Solution:
1. A new amlogic_saradc_common driver has been added for register mapping.
2. A new independent power-down detection driver has been added.

Verify:
S7D/BM201

Change-Id: I2b72e24da9e7dc288e6df7351c65a50980df3748
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-07-05 10:44:46 +08:00
Tao Zeng f771c0e99b amfc: enable amfc on S6 [2/2]
PD#SWPL-173836

Problem:
amfc not enabled on S6

Solution:
add it

Verify:
s6

Change-Id: Id92962b11292a02b67f6ab185f23837fe0f62ede
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-07-05 10:41:13 +08:00
Ao Xu e0c8f47751 drm: remove wait vblank warning messages print [1/1]
PD#SWPL-171726

Problem:
WARN api print so many messages, it will lead to system
high latency occasionally

Solution:
remove wait vblank warning messages print

Verify:
s7d

Test:
DRM-OSD-24, DRM-OSD-54

Change-Id: I03b22d692edf78dc116cd50f74f5a7d52ad398e0
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-06-27 03:35:45 -07:00
Tao Zeng 1ca8311a90 amfc: add aml erofs ko to suppor hardware [1/2]
PD#SWPL-173093

Problem:
build in erofs do not support amfc hardware

Solution:
add aml erofs ko to support it

Verify:
s7d bm201

Change-Id: I89ef060fabaca2f4d7cbaf26b552ba147c73f539
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-06-24 20:04:09 -07:00
Dezhen Wang fdb27f127d upgrade: change s7&s7d to gki_20 [1/1]
PD#SWPL-171423

Problem:
change s7&s7d to gki_20

Solution:
change s7&s7d to gki_20

Verify:
Detail info

Change-Id: I4f5e2e2ce5e486d5632c7acb4b2159f9e7ad2e3c
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-06-11 01:49:55 -07:00
Huqiang Qin 9e86fcd757 pdd: s7d: add a new power down detection driver [1/1]
PD#SWPL-169074

Problem:
Add a new power down detection driver.

Solution:
1. A new amlogic_saradc_common driver has been added for register mapping.
2. A new independent power-down detection driver has been added.

Verify:
S7D/BM201

Change-Id: I2b72e24da9e7dc288e6df7351c65a50980df3748
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-06-06 00:31:30 -07:00
qing.zhang cd39c3771d audio: Speaker output for sy6026 [1/1]
PD#SWPL-170755

Problem:
No speaker output for sy6026

Solution:
1. use the sy6026 i2c original api
2. update symbol, it was included in stg already
3. issue from SWPL-169746

Verify:
ross

Change-Id: I525ace5ebfdc5beb4afea40a0c80fb0a5808b6d5
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-05-29 01:59:29 -07:00
yiting.deng f61d85fdf5 clk: clean scmi related config [1/1]
PD#SWPL-170472

Problem:
scmi macro configuration is improper. For 64-bit only
need to configure CONFIG_COMMON_CLK_SCMI and for 32-bit
need to configure CONFIG_ARM_SCMI_PROTOCOL=y to
a32_base_defconfig

Solution:
fix it

Verify:
s7

Change-Id: I2cd9750fc59a85b1fba1b561569400c812e2cd3d
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-05-23 08:05:54 -07:00
Qianggui Song 77cc50034b gpio: porting gpiolib-sysfs from common [1/1]
PD#SWPL-166758

Problem:
Some customer neeed to support gpio sysfs in gki mode

Solution:
Porting common gpiolib-sysfs to common_driver

Verify:
T7_an400 & txhd2_be311

Change-Id: I72f60644fa383abe05409bfe0bf978c7ea901d92
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2024-04-28 06:08:17 -07:00
wenlong.zhang 560bdbdbac drm: s7d bringup & support gfcd [1/1]
PD#SWPL-147645

Problem:
s7d bringup & support gfcd

Solution:
s7d bringup & support gfcd

Verify:
s7d

Test:
DRM-OSD-138

Change-Id: I6e8f268f0fa42a6906f18a21d923ec059b749954
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-04-17 19:31:20 +08:00
Matthew Shyu c566c0b12d sha3: add aml-sha-3 driver [1/1]
PD#SWPL-147293

Problem:
New SHA-3 module in S7D

Solution:
1. Add SHA-3 driver
2. Change SHA-2 ctx size to 40

Verify:
Z1

Change-Id: I515813081c73c07aee7683d2a986a4d42b880ba1
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
2024-04-17 19:31:20 +08:00
qinglin.li 7a681f79c6 upgrade: kernel upgrade by Feb with kernel [1/1]
PD#SWPL-157933

Problem:
update include/linux/upstream_version.h
fix conflict

Solution:
update include/linux/upstream_version.h
fix conflict

Verify:
local

Change-Id: I13c92d8bf2c8a51057cb3e49450835dbfabab550
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-14 04:40:57 -08:00
Zhu Lv 78add0a045 bt: optimize aml_bt driver loading time [1/1]
PD#SWPL-155688

Problem:
aml_bt driver loading time too long

Solution:
optimize aml_bt driver loading time

Verify:
calla

Change-Id: I3b9f8dbd9e2b5f278a4d1c0d01f64c1172693f85
Signed-off-by: Zhu Lv <zhu.lv@amlogic.com>
2024-02-22 01:53:57 -07:00
qiankun.wang 0f9b8fb4de iotrace: kernel14-5.15: iotrace vendor hooks. [1/1]
PD#SWPL-142603

Problem:
iotrace read/write use vendor hooks in kernel14-5.15

Solution:
iotrace read/write use vendor hooks.

Verify:
sc2_ah212

Change-Id: I56e5b1f17ac8ef805be879891f70a57146e71c33
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-02-02 04:06:18 -07:00
Hanjie Lin 318edc8359 isolcpus: don't select isolate cpu for non-bind tasks. [1/1]
PD#SWPL-151292

Problem:
Some tasks have been running in apu before isolating cpu.

Solution:
when tasks were scheduled,if tasks shouldn't be run
on the apu, they will be migrated to other cpus.

Verify:
T5M

Change-Id: I97a91f1a40425a3ab26801de9a6bcb4b19c33019
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2024-02-01 07:51:08 -07:00
qinglin.li f0bef1b9b5 dmc_monitor: use dmc irq thread when irq ratio is too high [1/1]
PD#SWPL-147355

Problem:
due to lockup when dmc irq ratio is too high

Solution:
use dmc irq thread when irq ratio is too high

Verify:
local

Change-Id: Ie13d584f81563e3c2e111fb5d6033f0e2aa0d337
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-01-31 04:53:17 -07:00
mingyang.he 8d6a204093 drm: postpone osd write rdma reg 1 vsync [1/1]
PD#SWPL-148385

Problem:
video and ui disappear when ui quit after playing video

Solution:
make mif and video write reg in the same time

Verify:
t7

Test:
DRM-OSD-11

Change-Id: I9d16bac1c2da30e908d849b41f1865e441d70a74
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-01-29 02:08:31 -07:00
Ao Xu 2bb724a658 drm: add sysfs node to set display mode [1/1]
PD#SWPL-141593

Problem:
/sys/class/display/mode is not used anymore
need add a new sysfs node to do modesetting

Solution:
add sysfs node to set display mode

Verify:
ohm/t7c

Test:
DRM-OSD-122

Change-Id: Ie897a1cfdf1a0f2574fd14f6576b2bc1fb377c1a
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-01-23 04:49:25 -07:00
Zhuo Wang 50a12a1f8a eth: tuning exphy mode with s5 [1/2]
PD#SWPL-147959

Problem:
5.15 exphy not work

Solution:
tuning exphy mode with s5

Verify:
QA

Change-Id: Idfa123543d85a6070e7186b34e435e15d9580f36
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2023-12-20 20:51:20 -07:00
he.he 66f87be1d7 usb: support CRG HOST problem [1/1]
PD#SWPL-134919

Problem:
support CRG HOST problem for host-003, host-008, host-007,
host-010, host-011, host-014, host-hub-died, host-016, host-71

Solution:
support CRG HOST problem

Verify:
t3,t7,t5d

Change-Id: Iedb229fe5861f09178a1b96facf21a67d0ca1668
Signed-off-by: he.he <he.he@amlogic.com>
2023-12-13 02:43:19 -07:00
he.he 99069eab13 usb: move xhci and dwc3 code to common_drivers [1/1]
PD#SWPL-142854

Problem:
move xhci and dwc3 code to common_drivers

Solution:
move xhci and dwc3 code to common_drivers

Verify:
all

Change-Id: I9351b3cb5bf515b89c8e9c62a7070947a6a18968
Signed-off-by: he.he <he.he@amlogic.com>
2023-12-10 22:45:19 -07:00
qinglin.li be4ff1dfed upgrade: kernel upgrade by Dec with kernel [1/1]
PD#SWPL-148305

Problem:
update include/linux/upstream_version.h
fix conflict

Solution:
update include/linux/upstream_version.h
fix conflict

Verify:
local

Change-Id: Ic64ae62d9dcbf2665433aa7ebec23a3cb0d70a35
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-12-07 06:38:04 -07:00
Junyi Zhao c5f52b5721 led: power led: keep led on [1/1]
PD#SWPL-146932

Problem:
power led off when device is running

Solution:
set this gpio when device is running

Verify:
sc2 ah212

Change-Id: Ib31e3ff674c061e560f8bb1035250e57bb9ea332
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2023-12-07 00:09:30 -07:00
guoqing.sun 073e8a7480 usbcam: CB2 USBCAM Driver in kernel5.15. [1/1]
PD#SWPL-134049

Problem:
USB CAM Driver

Solution:
usb cam Driver

Verify:
android-u T5m

Change-Id: I9897ab68d35e0d9db337c1703101505f2e57c668
Signed-off-by: guoqing.sun <guoqing.sun@amlogic.com>
2023-11-28 02:15:26 -07:00
Nanxin Qin e8045f9b34 media: CF1 Adds debugfs for codec status management. [1/1]
PD#SWPL-145646

Problem:
Adds debugfs for codec status management.

Solution:
Add codec state module, mainly collect and
manage codec status information, and facilitate
the management of the configuration of each module.

Verify:
ohm

Change-Id: I8f877a954f9873c4aa4d632e007a67c0a41ff2b1
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2023-11-15 20:27:47 -07:00
Hanjie Lin a0caa34843 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>
2023-11-15 02:02:45 -07:00
mingyang.he e61010de29 drm: add crtc and plane blank nodes in sysfs [1/1]
PD#SWPL-143984

Problem:
crtc and osd blank not immediate

Solution:
duplicate state and commit to fix

Verify:
t7

Test:
DRM-OSD-115

Change-Id: I98bdd779cfa43456f4f23936629860eaf70bdcf4
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2023-11-07 04:51:23 -07:00
Nanxin Qin b34f32f4a9 media: CF1 Added sampling detail information for dmabuf dumping. [1/1]
PD#SWPL-143590

Problem:
Added sampling detail information for dmabuf dumping

Solution:
Currently supported, the point at which fd was installed
and operated by that thread, In addition, supported shows
the total holding time of FD from the beginning of
allocation to the current time.

Verify:
ohm

Change-Id: I80c658ddc311320b45a966e830bb17118376f040
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2023-11-06 02:15:12 -07:00
Ao Xu 0001b19357 drm: add shutdown interface [1/1]
PD#SWPL-137248

Problem:
no shutdown interface

Solution:
add shutdown interface

Verify:
ohm

Test:
DRM-OSD-116

Change-Id: Ib8a27854684de5f14c52f3909a921a520da45e9f
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-11-02 04:53:17 -07:00
yao zhang1 f02c82366f bringup: Fixed g12a build error. [1/1]
PD#SWPL-143240

Problem:
G12a build error

Solution:
Disabled adc configs & fix abi format.

Verify:
g12a

Change-Id: Ibfa28ae13b36352e77d592d68d34e8bc5d22e3f7
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2023-11-01 20:38:59 -07:00
Long 482b6555d3 G12a: sdio and sdcard use time-sharing multiplexing. [1/1]
PD#SWPL-133324

Problem:
not support time-sharing multiplexing function.

Solution:
enable time-sharing multiplexing function.

Verify:
g12a_u212

Change-Id: I78392775c01b6b58aaf224b47537669bfe7737e1
Signed-off-by: Long <long.yu@amlogic.com>
2023-11-01 20:38:03 -07:00
Ao Xu 36ecdca6fa drm: use drm_print to add state in drm sysfs [1/1]
PD#SWPL-143050

Problem:
no drm state sysfs node

Solution:
use drm_print to add state in drm sysfs

Verify:
ohm

Test:
DRM-OSD-112

Change-Id: Iafbaa10dd7c17b9a244654948478f588c63caae9
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-10-25 00:33:43 -07:00
Liming Xue d70741d666 host driver: reconstruct dsp host driver [1/1]
PD#SWPL-99041

Problem:
reconstruct dsp host driver

Solution:
config CONFIG_AMLOGIC_MCU_DRIVER to enable mcu driver
the new driver support multiple dsp/m4 cores

Verify:
a1/c1/c2/sc2/t3/t3x/t7/t7c

Change-Id: Ib1e666e615260bb5b7377a18eeaaf8daa65de86f
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2023-09-25 00:13:42 -07:00
qi duan f6218e3177 usb: IDT test failed with replacing gki [1/2]
PD#SWPL-139422

Problem:
IDT test failed with replacing GKI

Solution:
using kprobe method to solve problem

Verify:
oppen

Change-Id: Iccdbb2d0a8529a43b2df638b2423ce21580319be
Signed-off-by: qi duan <qi.duan@amlogic.com>
2023-09-21 20:34:24 -07:00
lele xiang 7824003060 upgrade: add symbol list_sort [1/1]
PD#SWPL-138577

Problem:
common14-5.15 can't recognize symbol list_sort

Solution:
add symbol list_sort

Verify:
ohm

Change-Id: Iecb0b0a367431b2dc3c1c5cc399a72bf8062ebc8
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2023-09-19 19:53:40 -07:00
song.han 6ddd2f7641 iotrace: record module base on last start [1/1]
PD#SWPL-136207

Problem:
use kprobe to forbid free module init text

Solution:
record module base and use offset to parse
this module symbol

Verify:
SC2_AH212

Change-Id: I43bd306e94e9a6a5afe6411a9cd9e93db0342b7a
Signed-off-by: song.han <song.han@amlogic.com>
2023-09-18 20:08:36 -07:00
Qinglin Li e95fa9a592 Revert "usb: IDT test failed with replacing gki [1/2]"
This reverts commit 16e98f321b.

SWPL-139422: USB owner submits these patches themselves

Change-Id: I1128ff5da7f97165925dd5fd1bad056e8d3ab010
Signed-off-by: Qinglin Li <qinglin.li@amlogic.com>
2023-09-17 23:10:08 -07:00
qiankun.wang afcf37f44f arm64: traps: optimize do_undefinstr print [1/1]
PD#SWPL-136432

Problem:
Native code will perform the 'BUG_ON' process,
and the log isn't favorable for debug.

Solution:
add the vendor hook function to perform the
'show_regs' and 'panic'.

Verify:
T3

Change-Id: I7a0f2c10b5db8ed10207d1fcbc7cc214054c7ae3
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-09-17 22:49:00 -07:00
dongqing.li e9d42c748b ramdump: ker5.15 creat /sys/kernel/mdump/compmsg [1/1]
PD#SWPL-132538

Problem:
The core-dump file cannot be saved to /data in Android.

Solution:
a. Fix BUG for bad page state when lazy_clear_work is running.
b. Print the parameter infor required for the crash tools.
c. Support for storing crashdump files in Android /data/vender/ramdump/
1)  When a kernel panic occurs, flush cache all.
2)  Restart to uboot stage and compress the full DDR.
3)  Set kernel dts rsv mem based on compressed infor.
4)  Crop reserved memory sub nodes to reduce mem usage.
5)  Kernel stage parsing dts to configure rsv mem.
6)  Android init.rc read sysnode, and generate crash file.

Verify:
sc2_ah212

Change-Id: Ic6fba2c305f9e3171445f3b89afa02c75c27a080
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2023-09-15 02:53:46 -07:00
Hanjie Lin 16e98f321b usb: IDT test failed with replacing gki [1/2]
PD#SWPL-139422

Problem:
IDT test failed with replacing gki

Solution:
using the kprobe method to solve this problem

Verify:
oppen

Change-Id: I0d640fd1d171f1303a34265a54fd790444a21c90
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2023-09-11 16:03:35 -07:00
qinglin.li 85af1edaad upgrade: kernel upgrade by Sep with kernel [1/1]
PD#SWPL-138629

Problem:
modules out remove need fix conflict
update include/linux/upstream_version.h

Solution:
modules out remove function fix
update include/linux/upstream_version.h

Verify:
local

Change-Id: Id2481bd3e13f07f4986db4390e6e02d340872e9e
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-09-07 05:33:16 -07:00
dongqing.li 26df3302ed ramdump: ker5.15 flush cache all when kernel panic. [1/1]
PD#SWPL-137107

Problem:
The data in the ramdump crash file is abnormal
because the cache data has not been flushed back.

Solution:
1. Use ipi_stop hook to flush online cpu cache.
2. Use panic_notifier to flush panic cpu cache.

Verify:
sc2_ah212

Change-Id: Ifad5bd4203fdde327b8c2b19357aa2d92586063f
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2023-08-30 06:18:47 -07:00
qinglin.li a40f7b66e3 upgrade: kernel upgrade by July with kernel [1/1]
PD#SWPL-132973

Problem:
common14-5.15 rel_path is deprecated
update include/linux/upstream_version.h

Solution:
use 'realpath $1 --relative-to $2' instead.
update include/linux/upstream_version.h

Verify:
local

Change-Id: Iae256322e030a13076c9e40c3162e56d2cb87127
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-07-28 02:16:29 -07:00
Hanjie Lin b257fa1e5d debug: GKI20 clean [2/6]
PD#SWPL-132209

Problem:
GKI20 code clean

Solution:
1, clean irq_check function
2, clean smc_thr and psci smc
3, clean AMLOGIC_BGKI_DEBUG_IOTRACE
4, clean CONFIG_AMLOGIC_BGKI_DEBUG_MISC
5, restore trace_android_vh_ftrace_format_check
6, sched_show_task optimize
7, change cpupri_check_rt kretprobe to kprobe
8, iotrace dump use unbound workqueue

Verify:
sc2

Change-Id: Idcdf9010cfd960b80c493e58b3c81bec8468ac84
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2023-07-25 22:16:21 -07:00
qinglin.li 7c257b8aa7 abi: remove symbol have been commit to google [1/1]
PD#SWPL-129165

Problem:
remove symbol have been commit to google

Solution:
remove symbol have been commit to google

Verify:
local

Change-Id: I25c9da6662a7ae8f2de4761dd0b98b13fc24c7ed
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-07-02 21:03:48 -07:00