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-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-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-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>
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-143634
Problem:
tm2 dmc bring up
cpu info modules need to load earlier due to get cpu version
Solution:
tm2 dmc bring up
cpu info modules load earlier
Verify:
local
Change-Id: I0ce73c49a9c0aefb1d3beac3151eac20eec2b166
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-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-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>