PD#SWPL-179304
Problem:
Single-frame Bandwidth Sampling
Solution:
Chips before s6 use the DMC method to get the bandwidth
value of a single frame, chips after s6 use the decoder
internal method to get the bandwidth value of a single frame.
Verify:
s6.s7
Change-Id: I135d98a0087733c5df34c7e8f9be39f8f2c96741
Signed-off-by: xing.xu <xing.xu@amlogic.com>
PD#SWPL-188348
Problem:
ker6.12 souce code is old. And ramdump
is not working properly.
Solution:
1. sync ramdump.c from ker5.15.
2. enable CONFIG_AMLOGIC_RAMDUMP
3. modify TEXTOFFSET=0X0200800 for ker 32bit
Verify:
SC2_AH212
Change-Id: Id19ba0ef1302e9cf4cdf379d10c625519a8eef36
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
PD#SWPL-188508
Problem:
aml_smmu can not find the symbol.
Solution:
update the symbol
Verify:
sc2.
Change-Id: Ia4f3a29e0275ac0a053d8ee5f42e86f3396796c9
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-188184
Problem:
upgrade kernel from 6.11 to 6.12
Solution:
AML_KERNEL_VERSION 3
UPSTREAM_VERSION "5a81cc3248a2"
AML_PATCH_VERSION "5a81cc3248a2"
MERGE_DATE "2024-10-09"
1. modify build script
2. port auto patch and move common-mainline to common16-6.12
3. modify the code due to the change of
the remove output_poll_changed in struct drm_mode_config_funcs
4. modify the code due to the change of the remove GPIOF_DIR_OUT
5. modify the code due to the change of the remove no_llseek
6. modify the code due to the change of the struct fd
7. modify the code due to the change of the struct mem_cgroup_reclaim_iter
8. modify the code due to the change of the file unaligned.h
Verify:
local
Test:
bootup to console in fatload mode
Change-Id: I98629ea9e68fca121176682d31dc73b8a8c936f8
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
PD#SWPL-183292
Problem:
upgrade kernel from 6.6.10 to 6.6.11
Solution:
1. modify auto patches
2. modify the code due to the change of
the remove function in struct platform_driver
3. modify the code due to the change of
the match function in struct bus_type
4. modify some page function to folio function
5. modify spi module due to some functions changed
Verify:
local
Change-Id: I92c266b6a1bbae363abd0ff50d7f3037e90bc624
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
PD#SWPL-160377
Problem:
need to support ramdump of sc2/sm1
Solution:
porting from ker5.15.
Verify:
ah212
Change-Id: I118c9409eb3d4b2dd87d859760b5bb4138091ee6
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
PD#SWPL-160944
Problem:
fix c2 reg error
fix port name is null due to strstr crash
Solution:
fix c2 reg error
fix port name is null due to strstr crash
update to dmc version to 1.5
Verify:
c2
Change-Id: I02f6528d0d61a3dff42852f8e479439993fadaa5
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-147355
Problem:
io_mem array get error
Solution:
fix io_mem array get error
update dmc version to 1.3
Verify:
local
Change-Id: I95b69d5c8a06b984858c73d6e2564c8d17214680
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-147355
Problem:
optimize port and subport name save
Solution:
update dmc version to 1.2
optimize port and subport name save
Verify:
local
Change-Id: I2e293ad8b359cdef93475ee976ddc0562e1593e5
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-147355
Problem:
old soc may creat a secure but irq thread not be init
when first irq set
Solution:
fix irq thread null pointer
update dmc version to 1.1
Verify:
g12a
Change-Id: I1f0e99db992d52f0acb8e66eb906f0d89bb52b32
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
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>
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
PD#SWPL-141263
Problem:
irq not disabled when mode close
Solution:
fix irq not disabled when mode close
Verify:
local
Change-Id: I632b145626e81cddf9aef3a05f7c1ee644c9c478
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-141263
Problem:
irq not disabled when mode close
Solution:
fix irq not disabled when mode close
Verify:
local
Change-Id: I1ba42fbe47860838683bdd7a117aabb32b617daa
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-150034
Problem:
reduce the ko number.
Solution:
move aml_smmu ko to memory_debug directory.
Verify:
local.
Change-Id: If537a6a6493a9944319caa344ad8e3a73c294179
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-151245
Problem:
kernel6.6 will not distinguish different versions of kernel.
so we do not make compatibility code in 6.6.
Solution:
revert compatibility code for kernel 6.6.
Verify:
local
Test:
local
Change-Id: I24b8acac62cec05ffb2f637a86f91789f1d0b905
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
PD#SWPL-150034
Problem:
no corresponding vendor hook.
Solution:
use kprobe to get not export function/variable.
Verify:
local.
Change-Id: I6c7abe40fd4d6e7802fe30b2426ace5cbb7ab067
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
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>
PD#SWPL-144091
Problem:
dmc not judge reserved memory failed if use reg function in dts
Solution:
modify alloc function in dts used to reserved memory
Verify:
Detail info
Change-Id: I2dfa087cbbc940273e6495f01eb5acdb7cb3c4b7
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-144091
Problem:
reserved zero address and enabled dmc monitor
Solution:
reserved zero address and enabled dmc monitor
Verify:
local
Change-Id: Ief29049b1938a163b2f73e516e38c6c29c703f3b
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-141263
Problem:
when ddr bandwidth irq handle not register but set,
will be due dmc irq too much,
if dmc and bandwidth use same irq num.
Solution:
not enabled bandwidth irq when irq handle not set
Verify:
sc2
Change-Id: Ie8622c8b8a9a623d936d37a43d3e56d039b83cd1
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-140453
Problem:
the newly released page is not filtered out.
Solution:
add check for free pages.
Verify:
local.
Change-Id: Ib8cfea7fb13cce9bef134864ce6f44c1dbccc7dc
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
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>
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>
PD#SWPL-137431
Problem:
need record page trace when access
Solution:
record page trace when access
Verify:
local
Change-Id: I8e940449715c8fc41855b1b811281aeea099030b
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-132402
Problem:
read no map memory failed when arm build
Solution:
check memory map when arm build
Verify:
local
Change-Id: I9219cf796b2091bed31df485d18621887a50c491
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>