PD#SWPL-194719
Problem:
filter media use scatter memory
Solution:
media use alloc_page_boost_work_func alloc scatter memory
filter function alloc_page_boost_work_func
Verify:
local
Change-Id: Iafdbe4fc76b94cd857d232586d0f4b8c00bec2de
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-191355
Problem:
For the low_mem project, the ramdump driver is
built-in. If many kernel configs are removed
during kernel size trimming, it may lead to build
errors in ramdump parsing info.
The removed configs info can be found in CL 486868.
Solution:
Romove parse info of kimage_voffset when ramdump
drv is built-in.
Verify:
sc2
Change-Id: I36b533bd06e56ca66b87850d01c0b0ad57c3a73c
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
PD#SWPL-190766
Problem:
Ramdump has a high probability of compression failure.
Solution:
Change the malloc size from 1MB to 512kb to free more mem.
Verify:
T5D loki
Change-Id: Ib2384556113092a642082e35f40da4e63694f6ce
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
PD#SWPL-185687
Problem:
there is panic when envp_init stores over 32 members
Kernel panic - not syncing: Too many boot env vars at `reboot_mode=normal'
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.180-rksec-1.0 #2
Hardware name: Generic DT based system
[<b020a1b8>] show_stack+0x10/0x14
[<b0cbd7b4>] dump_stack+0x8c/0xa8
[<b0cad7a4>] panic+0x104/0x304
[<b1100b84>] start_kernel+0xa4/0x42c
[<b11004a4>] _sinittext+0x44/0x48
Solution:
set __setup return value as 1 to avoid envp_init full
Verify:
t5w
Test:
t5w
Change-Id: Id717cf132b5a5ec97a2be2c710ed9fddbbd9e0ae
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
PD#SWPL-184920
Problem:
there is compiling error with
./common/common_drivers/scripts/amlogic/mk_gx64.sh
when CONFIG_AMLOGIC_DDR_BANDWIDTH_T6D enabled
Solution:
modify outstanding_init to __init
Verify:
t6d br301
Change-Id: Ia337de8a341679cf8a20249841bfbeac919af44b
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-170602
Problem:
support iotm function on t6d
Solution:
support iotm funciotn on t6d
Verify:
t6d
Change-Id: Ifb5e32d0ff3ee455dae60088133c01514188159f
Signed-off-by: song.han <song.han@amlogic.com>
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
PD#SWPL-182359
Problem:
use aml_ddr_tool.h as ddr_tool drivers common head file
Solution:
use aml_ddr_tool.h as ddr_tool drivers common head file
Verify:
local
Change-Id: Ie2abc7e3405192192b9de65374371b6301934933
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-177699
Problem:
1. the ioremap size is res->end - res->start,
it should be res->end - res->start + 1
2. freq be fix to dmc freq and ddr freq
3. t6d dtsi not need freq_reg
Solution:
use resource_size instead
fix t6d_get_dmc_freq_quick
remove freq_reg in ddr_bandwidth node
Verify:
t6d ptm
Change-Id: Id3794e268434b799cef98879b1b90cca03552943
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-177699
Problem:
there is a panic in ddr bandwidth with old uboot
Solution:
1.panic is gone with the latest uboot, enable
ddr_bandwidth
2.add the missing break when fix conflict
Verify:
t6d ptm
Change-Id: Id66bbc4d187aca94ed76b41bb1f80722b577ed38
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
PD#SWPL-179075
Problem:
a:0x0 cannot be determined,
add order to determine whether it is really free.
Solution:
add pagetrace order for dmc.
Verify:
local.
Change-Id: Iad923992cc11cb3aa507ed97dec28a6ba86f9fa6
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-181574
Problem:
s7 not amfc port
Solution:
remove s7 amfc port
Verify:
local
Change-Id: Ic98cabbdb7b20bf6f755f87f82227bebf9780b01
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-179075
Problem:
the page status printed in dmc is incorrect.
Solution:
correct the page status.
Verify:
local.
Change-Id: I670fd6a7437f93b680deeba81e1511fb657a42d0
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-175587
Problem:
arm64 aml_flush_cache_all will corrupt some regs
Solution:
save and restore corrupted registers in flush cache
Verify:
S7D
Change-Id: I6e9d7edc4643fa340c592806f725d37666a0b8a6
Signed-off-by: song.han <song.han@amlogic.com>
PD#SWPL-172962
Problem:
fixed s6 port not be config
Solution:
fixed s6 port not be config
port will be set default when mode enabled
Verify:
s6
Change-Id: I72cbce0e4f769b07186423a2a85660b00fdacc23
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-156505
Problem:
porting dmc for s6
Solution:
1. support ddr bandwidth
2. support dmc monitor
3. analyzing register information according to
the latest secure register definitions
Verify:
s6 pxp
Change-Id: I90067dab06a268e8f87c4f5df1960375b2eecf32
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
PD#SWPL-175818
Problem:
"cat /sys/class/watch_point/watch_addr" will crash,
dbgwvr4_el1 that should not be accessed was accessed..
Solution:
Delete "do{}while(0)". and break will take effect on 'switch' rather
than 'while'.
Verify:
SC2
Change-Id: Ie613f032fe8f6b951c503f318064cc5b3511b914
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
PD#SWPL-173394
Problem:
prefetch abor error when set dmc
kasan check use after free when read value
Solution:
ddr init set dmc reg to check overflow
this will be due to prefetch abor
need to clear reg before set.
Verify:
Detail info
Change-Id: Ia45c2cd30e408f5f6d36c177564433fa3cefd4fa
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-173670
Problem:
support sc2 and t5w priority
Solution:
support sc2 and t5w priority
Verify:
local
Change-Id: I010790af9ee2c8e6fe46d2a426f3b1d9a17b4491
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-173670
Problem:
support sc2 and t5w priority
Solution:
support sc2 and t5w priority
Verify:
local
Change-Id: Ibe6c3858e04eb60f59b6d44b66a9c0dab7b6f44c
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-161628
Problem:
arm64 unable get _text and module_base parameters via find symbal.
Solution:
use long type to store pagetrace information.
Verify:
sc2.
Change-Id: Id52bed43bbeed50a6d8ef0e32a54c5d9d9eab331
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-165513
Problem:
Autosuspend can't resume when connect usb disk
and enable ramdump.
Solution:
Optimize the DDR cleaning strategy:
1.delay 120s to clean up memory.
2.stop cleaning when the remaining free size
drops to 10%.
Verify:
on t7c
Change-Id: I93e64706e1a39a7e37f3a7dd4afb081c687c1f9f
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
PD#SWPL-163624
Problem:
get out of ddr size addr page flags to panic
Solution:
panic when write addr out of ddr
warning when read addr out of ddr
Verify:
txhd2 && g12a
Change-Id: I8bbe6e4185f433eb34868bb94fe0f32a06400a29
Signed-off-by: qinglin.li <qinglin.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>
PD#TV-107858
Problem:
support build kasan with parameter for androidt
Solution:
support build kasan with parameter for androidt
Verify:
local
Change-Id: I0538542862e5e708aea92257d90b49ab47ced9be
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>