Commit Graph

156 Commits

Author SHA1 Message Date
qinglin.li cc7396a25f dmc_monitor: sec vio check print subid when sub not parse [1/1]
PD#SWPL-243386

Problem:
sec vio check print subid when sub not parse

Solution:
print subid when sub not parse

Verify:
local

Change-Id: I9292400fb5af535cd0c8210ff921b1fc32925958
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-12-18 01:20:24 -08:00
qinglin.li 6dfde12f3a dmc: clear prot cache when irq [1/1]
PD#SWPL-238820

Problem:
clear prot cache when irq

Solution:
clear prot cache when irq

Verify:
t6d t6w t6x

Change-Id: Id3cd9daa423c8b216cdc20dcb2d13391d26ddbf3
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-11-28 00:23:06 -08:00
qinglin.li 48e91588c5 dmc_monitor: optimize dmc recheck function [1/1]
PD#SWPL-238820

Problem:
old recheck not check page status
emmc continuous access not ignore

Solution:
recheck add page status check
if recheck access and page status not free ignore it

Verify:
local

Change-Id: I71498711263269c049b73d421e1e672a42348e93
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-11-19 22:27:43 -08:00
qinglin.li 99162fa6cb dmc_monitor: t6x vpu sud id update [1/1]
PD#SWPL-237512

Problem:
t6x vpu sud id update

Solution:
t6x vpu sud id update

Verify:
local

Change-Id: I81acc8a88f622daada899580d98973b89177ca14
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-10-31 02:10:50 -07:00
Jianxiong Pan 67ad107d12 pagetrace: dmc not find pagetrace information. [1/1]
PD#SWPL-235140

Problem:
dmc print error pagetrace info.

Solution:
enable CONFIG_UNWINDER_FRAME_POINTER
disable CONFIG_VMAP_STACK

Verify:
txhd2.

Change-Id: I0f1d0a857d4ab5d38c4a98f712d1f00b76f671e6
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-10-16 01:19:01 -07:00
qinglin.li af23d0810c dmc_monitor: t5m vpu subid is error [1/1]
PD#SWPL-234991

Problem:
t5m vpu subid is error

Solution:
t5m vpu subid is error

Verify:
local

Change-Id: Ibfe2b17c16bbb204110eebbe81557e9ed1942290
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-10-10 14:03:49 -07:00
qinglin.li 021639bd12 ddr_tool: t6x ddr_tool bringup kernel6.12 [1/1]
PD#SWPL-234349

Problem:
t6x ddr_tool bringup kernel6.12

Solution:
t6x ddr_tool bringup kernel6.12

Verify:
local

Change-Id: I029951b0a7dda08e52666140173584eb2ee9c507
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-10-10 03:39:31 -07:00
qinglin.li 7a8d1ee8b7 dmc_monitor: use dmc prot buf recheck [1/1]
PD#SWPL-231748

Problem:
use dmc prot buf recheck

Solution:
when device access continuous
recheck can verify invalid when pagetrace is free
the function will be add 5-10us once irq
and check 2-3 continuous access

Verify:
local

Change-Id: I8073b9da2fa881f18540c15f83e72224cb7ffd0f
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-10-10 01:19:35 -07:00
qinglin.li a4d551373d dmc_monitor: default ignore TCON* device [1/1]
PD#SWPL-217581

Problem:
default ignore TCON* device

Solution:
default ignore TCON* device

Verify:
local

Change-Id: I45d39c11be879bd71fe439026e996c82d55bdb65
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-09-30 18:14:59 -07:00
yao zhang1 88ea1e31f2 license: Fix amlogic drivers license. [1/1]
PD#SWPL-217731

Problem:
Fix amlogic license.

Solution:
Fix amlogic license.

Verify:
all chip

Change-Id: I36cc711e44a201ec944c6b0b54c0d21ab671b068
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2025-09-25 03:48:58 -07:00
qinglin.li d6b3f99910 dmc_monitor: fix t6w vpu subid [1/1]
PD#SWPL-232292

Problem:
fix t6w vpu subid

Solution:
fix t6w vpu subid

Verify:
local

Change-Id: Ic413b15df09709304ae735c22210649088f3b171
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-09-23 20:20:03 -07:00
qinglin.li c2817b6511 ddr_bandwidth: fix s7d sideband reg set error [1/1]
PD#SWPL-231711

Problem:
s7d sideband reg set error

Solution:
s7d sideband reg offset not same as s7
fix s7d sideband reg offset

Verify:
local

Change-Id: I67123caca03ad9ea1bc97124fd1eb36c324c60d1
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-09-18 21:02:24 -07:00
jian.hu 10f2de01c0 iotrace: do nothing if linux,iotrace status is disabled [1/1]
PD#SWPL-181650

Problem:
1.set linux,iotrace status as disabled
BUG: Bad mage state in process insmod  pfn:04f00
page:(ptrval) refcount:1 mapcount:129 mapping:00000000 index:0x0 pfn:0x4f00
anon flags: 0x80014(uptodate|lru|swapbacked|zone=0)
raw: 00080014 00000100 00000122 c1e9c1f9 00000000 00000000 00000080 00000001
page dumped because: PAGE_FLAGS_CHECK_AT_PREP flag(s) set
CPU: 1 PID: 177 Comm: insmod Not tainted 5.15.153-android14-11-00133-gc9b6039dc794 #1
Hardware name: Generic DT based system
[bc0a9928+  12][<c030df1c>] show_stack+0x28/0x2c
[bc0a9958+  44][<c103b9a4>] dump_stack_lvl+0x48/0x54
[bc0a9958+  28][<c0566fec>] bad_page+0x11c/0x120
[bc0a99f8+ 156][<c0567ff8>] get_populated_pcp_list+0xbe4/0xf2c
[bc0a9af0+ 244][<c055fd08>] __rmqueue_pcplist+0x84/0x1270
[bc0a9bc8+ 212][<c05615b0>] get_page_from_freelist+0x268/0x1508
[bc0a9c18+  76][<c0561154>] __alloc_pages+0xf4/0x2e8
[bc0a9c60+  68][<c0558ec8>] __vmalloc_node_range+0x26c/0x420
[bc0a9c98+  52][<c030f090>] module_alloc+0x58/0xac
[bc0a9d10+ 116][<c04083b4>] load_module+0x1388/0x1f54
[bc0a9d98+ 132][<c0405510>] sys_init_module+0x1bc/0x1ec
[0010062a+1141205134][<c0300060>] ret_fast_syscall+0x0/0x48

Solution:
do nothing if linux,iotrace status is disabled in
free_iotrace_reserved_memory

Verify:
t6d br301

Change-Id: I6b5cf5b8ef9b2bce056c2a5d9fd91df9185c73ef
Signed-off-by: jian.hu <jian.hu@amlogic.com>
(cherry picked from commit 398e006c67)
2025-09-17 18:47:11 -07:00
Jian Hu 6b3dece99d vpu: fix compiling error with rescue defconfig [1/1]
PD#SWPL-231117

Problem:
common_drivers/drivers/media/common/vpu/vpu_sideband.o: in function `set_vpu_sideband_enable':
(.text+0x82): undefined reference to `disable_side_band'
 common_drivers/drivers/media/common/vpu/vpu_sideband.o: in function `dmc_reg_setting':
(.text+0x5d4): undefined reference to `enable_side_band'

Solution:
add depends on for ddr_tool

Verify:
t6x

Change-Id: Ifa6c5e759259018072ba1ba203e7822d879d70b6
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2025-09-15 20:26:24 -07:00
Jianxiong Pan 5a8a90af1c mm: export the cma priority interface to the module. [1/1]
PD#SWPL-229258

Problem:
some scenarios hope to dynamically modify the cma task priority.

Solution:
provide interface to set cma task priority.

Verify:
local.

Change-Id: Ic0ce3ef8d58923e8506789864553bde36afba4fe
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-09-12 03:56:57 -07:00
qinglin.li db87c83a68 coverity: fix ddr_tool coverity error [1/1]
PD#SWPL-230495

Problem:
fix ddr_tool coverity error

Solution:
fix ddr_tool coverity error

Verify:
local

Change-Id: I1ccce1716cb401e94b58dff333b43f29c4a81d53
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-09-04 00:42:57 -07:00
qinglin.li a9f2096a4f ddr_bandwidth: fix multiple dmc bandwidth overflow max [1/1]
PD#SWPL-228047

Problem:
bandwidth overflow max due to crash

Solution:
multiple dmc need calculate after irq finish
reg data only be clear after irq finish

Verify:
local

Change-Id: I94d02d3ed8f01f62cdcda04482b20b150f8c957b
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-09-01 03:11:55 -07:00
qinglin.li dcacedfe95 ddr_bandwidth: bus width auto recognition [1/1]
PD#SWPL-228573

Problem:
bus width auto recognition

Solution:
bus width auto recognition

Verify:
t6d t6x

Change-Id: I5f9fc3684839129882e0ff2dc6c6c0e5fbfbe95f
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-09-01 00:23:19 -07:00
Wanwei Jiang cb42ad9de2 ddrtool: kernel6.12 t6w bringup [1/1]
PD#SWPL-228464

Problem:
kernel6.12 t6w bringup

Solution:
kernel6.12 t6w bringup

Verify:
t6w

Change-Id: Ia59d67c6b8022775c66aef33bd35b3c12d8c9422
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2025-08-31 20:31:37 -07:00
qinglin.li 5724876ed7 debugfs: add class debug replace debugfs [1/1]
PD#SWPL-227680

Problem:
add class debug replace debugfs

Solution:
limit aml_reg and aml_ddr, set cmdline 'debug_class=2'
/sys/class/debug/atrace_tag --> /sys/class/debug/atrace/atrace_tag
/sys/kernel/debug/aml_debug --> /sys/class/debug/aml_debug
/sys/kernel/debug/aml_reg --> /sys/class/debug/aml_reg
/sys/kernel/debug/aml_ddr --> /sys/class/debug/aml_ddr
/sys/kernel/debug/watchdog --> /sys/class/debug/watchdog

Verify:
Detail info

Change-Id: I90d6944729b699b7c4b0c3cceb56eff9956edd57
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-08-25 19:54:30 -07:00
qinglin.li e082145e14 dmc_monitor: CCI pagetrace is invalid [1/1]
PD#SWPL-222462

Problem:
CCI will be trigger when alloc before pagetrace set

Solution:
t7 default exclude CCI and filter MALI1
fix cmdline show

Verify:
local

Change-Id: If9d8378c386132407932d11d72c64ab19f6dc823
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-08-19 03:12:43 -07:00
xia.jin 2cebc0869e t5m: ramdump result in system panic [1/1]
PD#TV-171675

Problem:
ramdump result in system panic

Solution:
correct return flow

Verify:
t5m

Change-Id: Iddd936cca512cfec32bb4dd285df431beb9d5b8e
Signed-off-by: xia.jin <xia.jin@amlogic.com>
(cherry picked from commit 6daeb667f85ec99d9be5ac6200907c9724442e9c)
2025-08-11 13:15:03 -07:00
qinglin.li ab669692c7 dmc_monitor: disabled dmc_monitor build fail [1/1]
PD#SWPL-225640

Problem:
disabled dmc_monitor build fail

Solution:
add inline flag

Verify:
local

Change-Id: I0024758e0bdacddb1fa983fd88d4dcf04a4270da
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-08-06 05:24:36 -07:00
Jianxiong Pan b00699a8cf dmc: not print the function name. [1/1]
PD#SWPL-223295

Problem:
dmc not print the function name.

Solution:
update the dmc_unpack_ip code.

Verify:
sc2.

Change-Id: If28612fa05c36f9fde2d79a91b8b5a6e385c39b2
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-07-30 16:23:26 -07:00
qinglin.li 359cafd8ab ddr_tool: fix large ddr range arm32 build error [1/1]
PD#SWPL-225004

Problem:
fix large ddr range arm32 build error

Solution:
default addr than 32bit is 0 when arm32 build

Verify:
local

Change-Id: I4716c6d695506918fcb890ae171f26bf1cdabcb3
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-07-29 07:09:40 -07:00
qinglin.li 7c75e3a211 dmc_monitor: fix vpu sub port analysis error [1/1]
PD#SWPL-224014

Problem:
virt_addr_valid only return true line addr

Solution:
save name and id point

Verify:
local

Change-Id: I256f8b9ec9c91a052b792bea6e9de9575ad1826a
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-07-23 04:58:19 -07:00
Wanwei Jiang 3d597dbf9a dmc: add get_vpu_bus_num() for sideband [1/1]
PD#SWPL-218353

Problem:
other modules are unable to determine how many VPU buses this chip has

Solution:
add get_vpu_bus_num() for sideband

Verify:
local

Change-Id: Iccd1e2dc157fae98efa57df0b3543e06f779ead4
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-07-15 05:37:27 -07:00
Wanwei Jiang 9fb4a06e58 dmc: modify reg field access interface [1/1]
PD#SWPL-218353

Problem:
1. extract repeated code into a separate function.
2. change the parameter type from unsigned long to unsigned int
since the register is 32 bits

Solution:
modify reg filed access interface

Verify:
t5m

Change-Id: Ie9db201eb84c3bf59299a6b5e382e988b6d8110c
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-07-14 07:36:49 -07:00
Wanwei Jiang af1bcffcc1 dmc: support side band function [1/1]
PD#SWPL-218353

Problem:
support side band function

Solution:
1. add debugfs file interface;
2. add side band function interface for other modules

Verify:
local

Change-Id: Iddcd236dbeaf443e97d7784bec3828a121ec5809
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-07-14 07:36:43 -07:00
Jian Hu 439ae138ce vendor_hook: correct macro for CONFIG_ANDROID_VENDOR_HOOKS [1/1]
PD#SWPL-209777

Problem:
config ANDROID_VENDOR_HOOKS
bool "Android Vendor Hooks"
depends on TRACEPOINTS

Solution:
remove CONFIG_TRACEPOINTS for vendor hooks

Verify:
t6d

Change-Id: I756a2e6e592b50699cfe8ec84d420e080565dbe0
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2025-07-03 09:22:51 -07:00
Wanwei Jiang f64efd123e ddr bandwidth: support lpddr5 [2/2]
PD#SWPL-191305

Problem:
the frequency and bandwidth of LPDDR5 are inaccurate

Solution:
the frequency calculation methods for LPDDR5 and DDR3/2 are different

Verify:
local

Change-Id: Idb7bc333383f094c5071c0ac71276672f92dd06f
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-06-27 19:07:15 -07:00
qinglin.li 85d4245ea5 coverity: fix coverity error [1/1]
PD#SWPL-219104

Problem:
fix coverity error

Solution:
fix coverity error

Verify:
local

Change-Id: I92c4774bf3e58e462fe49873a079c0617870ab79
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-06-24 23:48:19 -07:00
yao zhang1 7ccedacd01 license: Fix amlogic license. [1/1]
PD#SWPL-217731

Problem:
Fix amlogic license.

Solution:
Fix amlogic license.

Verify:
all chip

Test:
license check pass

Change-Id: I05c47245ff58bf92abccaa7ca08a85524d73f924
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2025-06-23 21:15:59 -07:00
Wanwei Jiang 7634db5521 bandwidth: support to debug wbuf_mid_level [1/1]
PD#SWPL-217338

Problem:
support to debug wbuf_mid_level

Solution:
support to debug wbuf_mid_level

Verify:
local

Change-Id: I8ddeb05776982ba6f94d9bf092965e1aff47018b
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-06-23 17:51:26 -07:00
qinglin.li a84a4d585b Converty: fix Converty error [1/1]
PD#SWPL-217794

Problem:
fix Converty error

Solution:
fix Converty error

Verify:
local

Change-Id: I57b83c4fc37db5f95c776b34b4f3cd8edd884ac9
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-06-19 19:56:10 -07:00
qinglin.li 047d8f91af dmc_monitor: default mode exclude NNA [1/1]
PD#SWPL-217581

Problem:
default mode exclude NNA

Solution:
default mode exclude NNA

Verify:
local

Change-Id: I9fc56110e672fbb8916fa12d024f189f3e796926
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-06-13 01:21:51 -07:00
dongqing.li 89d3368483 radump: kernel save dump file to android data [1/1]
PD#SWPL-209926

Problem:
ramdump can not save to android data.

Solution:
1. add dts node ramdump_data for kernel 32bit.
2. add debug log for ramdump_bin_read.

Verify:
S7D/T6D

Change-Id: Ib2e113fa0c34afa7059da026ea842ebb344c2573
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2025-05-17 15:11:03 -07:00
Wanwei Jiang 0ebbe91209 build: supports direct compilation using tools/bazel [1/4]
PD#SWPL-211590

Problem:
supports direct compilation using tools/bazel

Solution:
1. Default is the trunk's kernel, and can also be configured to
use the project kernel.
2. Default is the trunk's build.config.project, and can also be configured to
use the project's build.config.project.
3. Default is the trunk's Kconfig.ext_modules, and can also be configured to
use the project's Kconfig.ext_modules.
4. Default is the trunk's project.bzl, and can also be configured to
use the project's project.bzl. For other drivers' BUILD.bazel,
currently the corresponding GKI_CONFIG is automatically selected
based on the project. Other members are not distinguished at present.
5. Package all variables in project.bzl into a struct called project_configs,
which facilitates accessing the corresponding variables on a per-project basis.
6. Remove the DDK dependency check mechanism. However,
since it is protected by the configuration of the config, the impact is
not significant.
7. Change kernel_build to kernel_select in ddk_module.
8. support build command:
tools/bazel run --config=adt4 //project/sei/adt4:adt4_dist
./mk.sh --package adt4
9. Optimize the Bazel configure settings.
10. Optimize the copying of ko sources.
11. Optimize the copying of ko sources with debugging symbols.
12. Optimize the paths of some temporary files, so that the files are located
in the out directory instead of the /tmp directory.

Verify:
local

Test:
PB

Change-Id: I38f631215a41156910ae378c34c92de5a255309f
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-05-12 18:25:48 -07:00
qinglin.li 42787d5085 ddr_tool: fix ddr_tool error [1/1]
PD#SWPL-210775

Problem:
filter is null when none before set default
MTE default mode not set
fix bandwidth mode set

Solution:
filter default be set when all mode
MTE default mode not set
fix bandwidth mode set

Verify:
local

Change-Id: Ic993420aa57c727ee10b7ac4b3eb5165ca26b31b
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-04-23 19:39:45 -07:00
Lei Zhang ae8f7a4020 preempt_rt: bringup preempt rt kernel [7/9]
PD#SWPL-201692

Problem:
spinlock is sleeping lock, cause BUG_ON in atomic context

Solution:
change spinlock to raw_spinlock

Verify:
on A5

Change-Id: Iea05aa36c58143d0efe880631d8906d9125fe55e
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2025-04-23 01:14:29 -07:00
qinglin.li db6071cf2a ddr_tool: add dmc secure violation irq handle [2/2]
PD#SWPL-204747

Problem:
limit print number
only handle irq dmc if multiple dmc

Solution:
limit print number
only handle irq dmc if multiple dmc
update dmc version 1.10.1

Verify:
local

Change-Id: I3a7fdc3418978cc35ad568d7cbfc3df7ddfe1645
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-04-17 01:12:06 -07:00
qinglin.li 9294f0bbf9 scripts: use kernel build ddk_module_headers [1/1]
PD#SWPL-208157

Problem:
use kernel build ddk_module_headers

Solution:
use kernel build ddk_module_headers

Verify:
local

Test:
local

Change-Id: I68cb33366c826fcd58fdb0a040229011ea669064
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-04-15 04:35:40 -07:00
biao.sun 9460c30e50 smc: can't patch to kernel for google [1/1]
PD#SWPL-208253

Problem:
can't patch to kernel for google

Solution:
modify in common_drivers

Verify:
SC2

Test:
boot and play video

Change-Id: If7adf4b52c10ec259f6ce4549f31b215895c828e
Signed-off-by: biao.sun <biao.sun@amlogic.com>
2025-04-09 21:18:46 -07:00
qinglin.li c7c5aff9b7 ddr_tool: add dmc secure violation irq handle [1/1]
PD#SWPL-204747

Problem:
add dmc secure violation irq handle

Solution:
add dmc secure violation irq handle
update dmc version to 1.10

Verify:
local

Change-Id: Ia7062ff3d5e5d950ca8c7d2517aba804e46ddf57
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-03-28 00:14:13 -08:00
Dezhen Wang 054039b58e scripts: add Kconfig and Makefile to common kernel source [1/1]
PD#SWPL-206164

Problem:
ddk_module cannot find Kconfig and Makefile in sub package

Solution:
add Kconfig and Makefile srcs to common kernel srcs

Verify:
local

Test:
local

Change-Id: I3e71b7e1ddea15e9d32efc0e6cb7e8e81b95b793
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2025-03-26 02:30:24 -08:00
qiankun.wang e327da4c18 IOTM: kernel6.12: all patches up to 2025-02-11 [1/1]
PD#SWPL-205945

Problem:
T6D kernel6.12 bringup on IOTM.

Solution:
https://scgit.amlogic.com/#/q/topic:SWPL-170602_kernel
https://scgit.amlogic.com/#/c/473118/
https://scgit.amlogic.com/490156
https://scgit.amlogic.com/#/q/topic:IOTM

Verify:
t6d

Change-Id: Ibf939699b89719e56b166ea442da84777e1055f6
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2025-03-19 22:00:31 -08:00
qinglin.li 6efa5b9725 ddr_bandwidth: freq node value does not match actual [1/1]
PD#SWPL-206552

Problem:
freq node value does not match actual

Solution:
register has only the lower 16 bits used ddr freq

Verify:
local

Change-Id: I74e8f59def96916abd44cd39eaa28b615e3d8fdd
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-03-19 14:32:39 -08:00
Wanwei Jiang 22a093e819 ddk: optimize ddk build [1/1]
PD#SWPL-195997

Problem:
optimize ddk build

Solution:
optimize ddk build

Verify:
sc2

Test:
PB

Change-Id: I662f1e2a33ae0e5bdae97a70deb624964c5e1c5a
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-03-03 22:25:19 -08:00
Wanwei Jiang cadab66c37 build: support ddk [1/1]
PD#SWPL-195997

Problem:
the drivers in the common_drivers directory can be built using DDK
with gki_20 mode, it is also compatible with the original build.

Solution:
add BUILD.bazel and modify build script

Verify:
sc2

Test:
PB

Change-Id: Ie138e63f4eec8715d976d421dc8a431bcfadd859
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-02-25 07:17:36 -08:00
Jianxiong Pan 80b1b7a9f0 dmc: filter pages of isolate migrate type. [1/1]
PD#SWPL-197897

Problem:
The cma allocated by the driver is considered normal access.

Solution:
filter pages of isolate migrate type.

Verify:
local.

Change-Id: I9261f5b2de41b5b9896e4628b0c1e06890f4679f
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-01-19 18:14:28 -08:00