PD#SWPL-2767
Problem:
If DMC violation address is in highmem, then it will panic
when show memory using page_address();
Solution:
map violation address for highmem
Verify:
p212
Change-Id: Ib6213eaab42b129c8c0a381511a0b3376b0d3e66
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
PD#SWPL-4511
Problem:
1Gb SLC Nand ZDND1G08U3D-IA requested by Marketing
aka ZDND1G08U3D-xx module number in code
Solution:
add the nand id into amlogic nand flash id table
Verify:
AXG_S400
Change-Id: I4e221497b801239aa62f62f844ff247fa05925d0
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
PD#SWPL-11771
Problem:
Hackers can use signed integer erase_boot_num to cause systems crash
Solution:
replace signed variable with unsigned variables
Verify:
AXG-S400
Change-Id: I9cc8d8f43c199f48e7d7bff2664bca740681d274
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
PD#SWPL-11772
Problem:
Inadequate clearing of keys/dtbs/env buf in memory
Solution:
clear the corresponding buf before free the buf
Verify:
AXG-S400
Change-Id: I61971c11a41c7062270a3863ae711c856d66f332
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
PD#SWPL-11776
Problem:
missing return value check for copy_from_user in uboot_write method
Solution:
checking return value after call copy_from_user/copy_to_user
Verify:
AXG-S420
Change-Id: I087a341cbf0b603b2898e81773dc266d8e3debe1
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
PD#SWPL-7804
Problem:
OTA upgrade would fail because nand info page no consisent
Solution:
Keep nand info page consisent between bl2/bl33/kernel
Verify:
s420
Change-Id: Icef5f720ba80e5f639b4ee7d1f1201833d5a5656
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
PD#SWPL-5613
Problem:
boot fail because of the UBI write error
Solution:
fixed nested-calls spin-lock when update bbt
Verify:
AXG-S420
Change-Id: I56b603ebffa5557ab7949ead2fddd41323346d09
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
PD#OTT-1590
Problem:
bt mac write
Solution:
Accept the MAC address from uboot and create nodes
Verify:
Verifying on Public Edition P212
Change-Id: I77ff3543aff937adc07bf3a0933a350c27e9dd20
Signed-off-by: Qiu Zeng <qiu.zeng@amlogic.com>
PD#SWPL-9137
Problem:
tl1 add APIs to control pixel probe for debug
Solution:
tl1 add APIs to control pixel probe for debug
Verify:
X301
this commit MUST not be merged into trunk!!!
Change-Id: I3a538ff3afdd80ef5669fac63a3ab5f43b8e1055
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
Conflicts:
arch/arm/configs/meson64_a32_defconfig
arch/arm64/configs/meson64_defconfig
drivers/amlogic/Kconfig
PD#SWPL-7711
Problem:
Executing echo l > /proc/sysrq-trigger each 5 seconds for about
15 minius will trigger hardlockup
Solution:
Add more strict checking for show_regs to filter out addresses
in secure monitor region and ioremap region, deferencing which
triggers external abort on none-linefetch, and finally leading
to hardlockup
Verify:
Locally pass on U200
Change-Id: I6bd219e7dc3ad29904e6bd1b7d2f4cfb3928d8ed
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
PD#SWPL-6028
Problem:
save irqflag locally when ftrace_ramoops io
Solution:
save irqflag locally when ftrace_ramoops io
Verify:
TL1 x301
Change-Id: I6df9700cceaccc97dc983d88ada73197a6968f73
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
PD#SWPL-6718
Problem:
paddr just can get register and memory values for 32-bits aligned address.
Solution:
add paddr16 to get register or memory values for 16-bits aligned address.
Verify:
g12b w400_a
Change-Id: Ic7f32dcc6c2a24d0ac1e8c3ed60acc27e81887e0
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-3542
Problem:
2Gb SLC Nand ZDND2G08U3D-IA requested by Marketing
aka ZDND2GXXXXX module number
Solution:
add the nand id and MFR id into amlogic id table
adapt it's bad block identification
Verify:
AXG_S400
Change-Id: I6f0e2caf424e09c1f186beb42a146d92b675f161
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
PD#SWPL-14700
Problem:
When open lockdep there is a warnning:
WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected
Solution:
use hardirq-safe lock to protect critical sections
Verify:
g12a
Change-Id: Icd7550efcdefb5589d248b862b77919db8581484
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
PD#SWPL-5651
Problem:
tm2 has 2 extra pins than tl1, should use new param data
Solution:
add tm2 param data
Verify:
T962e2_ab319
Change-Id: I77aaaead7b10024cd5f12354ba6b47db74ba96f5
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
PD#SWPL-5395
Problem:
sm1 support double-edge trigger, current code do not support.
Solution:
add relatvie bitmask to support this function.
Verify:
ptm & sm1_skt
Change-Id: I48ebc9b38db868f946c49b6fd5f98d427b2669df
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
PD#TV-5021
Problem:
1.bt rcu cann't wakeup host when the system is in freeze mode;
2.There is no wake source in the bluetooth kernel.
3.current irqchip driver will complain "Unbalanced IRQ xx wake
disable" when gpio irq use as wakeup source, and can not wake device.
Solution:
1.add a gpio interrupt for bt in the bt kernel;
2.Wake up the interrupt;
3.Add a flag to skip undefined .irq_set_wake function in irqchip
driver.
Verify:
marconi.
Change-Id: Ic8d5525621e015a13fd765779f944cd1010144aa
Signed-off-by: Kuibao Zhang <kuibao.zhang@amlogic.com>
PD#172587
Problem:
1.Bringup TL1.
2.Invalid frequency setting
Solution:
1.Add ir blaster device tree for tl1.
2.Add frequency setting
Verify:
verify on tl1.
Change-Id: I51759e32577172ff766fd4d50f92a00ef77c7495
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
PD#SWPL-14925
Problem:
The system can't be reset by wdt which is fed by the tv-service
when the tv-service is abnormally hanged.
Solution:
Add extra option to avoid the wdt is disabled when the fed dog
thread aborts, but we can disable wdt when certain condition is
met.
Verify:
test pass on customer board
Change-Id: I1fd5ff4e36f06bda99726c0a2ced399299596f95
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
PD# SWPL-4823
Problem:
1. After stack optimization, stack memory cannot be
mapped as dma buffers and thus causing crypto dma failed to
generate correct result.
2. crypto dma was not enabled on G12B
Solution:
1. Move key_iv buffer from stack to memory provided by kzalloc
2. Enable crypto dma on G12B
3. Replace module_param with debugfs
4. Replace pr_err with dev_err
Verify:
verified on G12B
Change-Id: I6de682e3d1fc141f8c6179c7d91f9b4bff165eae
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
PD#TV-9896
Problem:
provide sys interface to get last reboot reason
Solution:
add reboot reason sys infterface
Verify:
test pass on tl1_x301
Change-Id: I6c4046c892eff9f92506fadb0cddee7041c8f882
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
PD#TV-2272
Problem:
can't get corrent reboot reason in system panic
Solution:
get corrent reboot reason in system panic
Verify:
test pass on T962x2_x301
Change-Id: If0fc95c2807d89542b4ccbc8e3709be20f17b03b
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
PD#SWPL-5360
Problem:
According to TL1-core-pin-mux-register-spec.xlsx:
bt656 pins function number is 3 but not 2.
Solution:
bt656 func change 2-->3
Verify:
TL1-sktboard
Change-Id: I740e0a446ef2b6018b2eca706548148b8c9d1156
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
PD#SWPL-4501
Problem:
All platforms but m8b use "gpio_periphs" as gpio pinctrl function, that
breaks consistency.
Solution:
rename m8b pinctrl function "gpio" to "gpio_periphs" to make it
consistent with code and other platform.
ref:
https://patchwork.kernel.org/patch/10720219/
Verify:
m200
Change-Id: I940d1e30882cc8b042c02022ed3435a659aa3921
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
PD#172587
Problem:
some pin groups are not supported
Solution:
update pin groups according to pinmux document v8.
Verify:
TL1 skt board.
Change-Id: I88750e307208fd30c20343c1c5418c1035961b4e
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
PD#SWPL-16531
Problem:
Coverity defect cleanup: memory_ext
Solution:
Modify code according to coverity
Verify:
verify on the board of U212
Change-Id: Ibfba4655938561071f40cd9cd78c7ec0d5c51194
Signed-off-by: changqing.gao <changqing.gao@amlogic.com>
PD#SWPL-14800
Problem:
/proc/pagetrace is not exist in 64bit kernel.
Solution:
Using right macro for create fs node.
Verify:
x301
Change-Id: I27b8db9a349f37db4bc0d6752b06f3d6a6a6c46c
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
PD#TV-10462
Problem:
Memory will allocation fail if play secure vedio source. Usually
seen by zram/wifi driver
Solution:
1, wake up kswapd earlier if water mark without free cma is not ok;
2, using zone-filecache to increace active of lmk. Which can be more
accurate than using global page status;
3, remove some restrict of using cma when allocate movable page by
zram or migrate from cma pool;
4, try allocate hard for atomic request in soft IRQ
Verify:
T950L
Change-Id: Ibf03f3c11a32175e9983ee8a61a14ae4b2436f1e
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>