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-1908
Problem:
rtl 8822bs sdio wifi tx data crc when Online on demand.
Solution:
remove cfg reg invalid setting in enable_sdio
when data1 interrupt breaks.
Verify:
u212
Change-Id: I49e21a6d213d9c60e315d23bdf9937385b6d75e9
Signed-off-by: Nan Li <nan.li@amlogic.com>
PD#SWPL-3046
Problem:
movie player will keep video layer when playing video films.
Even if jumping to the next films, it will not close video layer.
When meeting this situation, dv core will keep the front
film's setting.
Solution:
when jumping the next film, we know the first frame.
So we clean the setting in the first frames.
Verify:
u212
Change-Id: I61ebc8f58baed32abc519018676e40b08d059cac
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
PD#SWPL-3144
Problem:
The latch function cause the super scaler size asynchronous
Solution:
Disable sr core0 and core1 scaler latch
Verify:
T962x2 x301 board test pass
Change-Id: Iecbcc3e0c751093b6515f7b46973eca2157cd349
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
PD#SWPL-3110
Problem:
add backlight pwm debug node for tvapi
Solution:
1,change pwm node for pwm main parameters(duty, freq, pol)
2,add pwm_info node to display all pwm state
Verify:
verified by t962x_r311
Change-Id: Ibd9575412ca9704a0002073679d19c5426c1838c
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
PD#SWPL-2456
Problem:
Lack the latency info of RX
Solution:
Add the latency info of RX
Verify:
T962E/R321
Change-Id: I480398466753dd93ca6e908d39157acadff6879f
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
PD#SWPL-3437
Problem:
the cam regions that specified by the alloc-ranges property are scattered,
it is not convenient to debug the memory issues.
Solution:
remove alloc-ranges property in cam nodes, but secmon and fb. the system
will allocate the cma region automatically that more gathered.
Verify:
test pass on x301
Change-Id: Ibbe64b48843c1295110242c17d7691284f08a66b
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
PD#SH-224
Problem:
buildroot no w411 dts
Solution:
1.add w411 dts
2.w411 dts copy form w400_buildtoot dts, and do some memory cost down,
and also sdio port has some different with w400 board
Verify:
w411 board test pass
Change-Id: Iba3de4fc4fe1d37dbb6070dbe54ad35c9caf45d9
Signed-off-by: Dianzhong Huo <dianzhong.huo@amlogic.com>
PD#SWPL-2887
Problem:
When TDM is used for HDMI I2S in, the solt set is wrong.
Solution:
Fix the lane max value from 3 to 4
Verify:
A113
Change-Id: I33f5ca21bf1e2407d83fa5d0f22e21f7b1f5e749
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
PD#SWPL-2636
Problem:
Picture flash when av connect some dvd or mbox
Solution:
Modify the vafe ctrl config
Verify:
verified by x301
Change-Id: Ie6ae659f3f59d7daba680e2bb32112031232c956
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
PD#SWPL-3583
Problem:
After merge change:
http://scgit.amlogic.com:8080/#/c/55018/
Too many wrong kasan report occur when booting kernel
Solution:
Fix kasan poison address range when free wasted memory.
Verify:
P212
Change-Id: I576a7edb7b4e70f9c6c782639f433ad45bafba1d
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
PD#SWPL-3437
Problem:
the arm64 does not support tl1
Solution:
add arm64 support for tl1
Verify:
test pass on x301
Change-Id: I9531731650c7e8e962f681e357580d3dd0eb0137
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
PD#SWPL-3129
Problem:
1.verify manual pll mode
2.modify vlock hiu register access api
3.add a new fsm for tl1 test
4.add chip match data
Solution:
add function for tl1
Verify:
verified on tl1
Change-Id: I75f8d2a40437056135f8dd0fb241016a9ea680df
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
PD#SWPL-2887
Problem:
adapt Soundbar solution to S410 platform
Solution:
These two dts files are changed from S400.
Change the audio related like following.
hw:0,0 is for LINE in
hw:0,1 is for HDMI i2s in
hw:0,2 is for speaker out (4 i2s)
Verify:
S410 A113D
Change-Id: I09fff371e511432f363e2ec8999b584af533ff9c
Signed-off-by: Yeping Miao <yeping.miao@amlogic.com>
PD#SWPL-1909
Problem:
virt_to_page may get bad input with virtual address
in high mem.
Solution:
Check input address of this macro and get a warn print
Verify:
p212
Change-Id: I69d81f7aac43f1865d3d1112263276603de166ce
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
PD#SWPL-3543
Problem:
current driver does not support toshiba ir remote control protocol
Solution:
add register setting and decode code for toshiba protocol
use REMOTE_TYPE_TOSHIBA/REMOTE_TYPE_NEC_TOSHIBA to configure toshiba
only/toshiba and nec.
Verify:
tl1_t962x2_x301
Change-Id: Idad70c3879fad6e8267f0c4d80d2447c34114103
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
PD#SWPL-1005
Problem:
add lcd/power debug node
Solution:
1,add lcd/power node to control lcd power on/off sequence
2,change old lcd/power to lcd/power_step
Verify:
verified by t962x_r311
Change-Id: I0b10caa4cbd8f7ce489f3ceef7780dba2e0b00dc
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
PD#SWPL-1909
Problem:
On 32bit kernel, codec cma is located in normal zone by
"alloc-ranges" parameter with large size. This takse up
memory space for kernel and drivers. Sometimes we can see
memory allocation fail log but there are still enought
free pages. But most of these pages are CMA pages.
Solution:
Move codec cma location to high memzone. On 32bit, low
768MB memory is normal zone.
This change also correct first 1MB memory lost problem
for chips later than TXLX
Verify:
TL1 x301/x309/socket board
Change-Id: I2fc62ae8b03143cc91bfecc62c123d1925aac482
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
PD#SWPL-3334
Problem:
cpucore cool devices upper date type no match
cpucore num set error
Solution:
modify cpucore upper num check
Verify:
w400 pass
Change-Id: I83f829d31cab565d5ca3b892bb58a4a68b8f0f20
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
PD#173549: hdmitx: fix KASAN Bug in set_disp_mode_auto
==================================================================
BUG: KASAN: global-out-of-bounds in set_disp_mode_auto+0x244/0x870
Read of size 32 at addr ffffff900a67e4c0 by task power@1.0-servi/2924
CPU: 2 PID: 2924 Comm: power@1.0-servi Tainted: G B O 4.9.113 #1
Hardware name: Amlogic (DT)
Call trace:
[<ffffff900908ecc0>] dump_backtrace+0x0/0x368
[<ffffff900908f0cc>] show_stack+0x24/0x30
[<ffffff900963bdb0>] dump_stack+0xa0/0xc8
[<ffffff90092ba234>] print_address_description+0x144/0x258
[<ffffff90092ba6ac>] kasan_report+0x264/0x338
[<ffffff90092b8ff4>] check_memory_region+0x12c/0x1c0
[<ffffff90092b90dc>] __asan_loadN+0x14/0x20
[<ffffff9009c12804>] set_disp_mode_auto+0x244/0x870
[<ffffff9009c13994>] hdmitx_late_resume+0x1cc/0x288
[<ffffff9009da5f30>] early_suspend_trigger_store+0x1a8/0x1d0
[<ffffff9009640ac4>] kobj_attr_store+0x44/0x60
[<ffffff90093973b0>] sysfs_kf_write+0x98/0xb8
[<ffffff9009396134>] kernfs_fop_write+0x12c/0x270
[<ffffff90092c9888>] __vfs_write+0xd8/0x268
[<ffffff90092cae48>] vfs_write+0xd8/0x240
[<ffffff90092ccd8c>] SyS_write+0xc4/0x148
[<ffffff9009083f00>] el0_svc_naked+0x34/0x38
The buggy address belongs to the variable:
all_fmt_paras+0x1460/0x14a0
Memory state around the buggy address:
ffffff900a67e380: 00 07 fa fa fa fa fa fa 00 02 fa fa fa fa fa fa
ffffff900a67e400: 00 07 fa fa fa fa fa fa 00 02 fa fa fa fa fa fa
>ffffff900a67e480: 00 07 fa fa fa fa fa fa 00 02 fa fa fa fa fa fa
^
ffffff900a67e500: 00 07 fa fa fa fa fa fa 00 03 fa fa fa fa fa fa
ffffff900a67e580: 00 04 fa fa fa fa fa fa 00 04 fa fa fa fa fa fa
==================================================================
Change-Id: Ie2435c031c04ac23e801cfefa80a29071c120b4f
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
PD#SWPL-3413
Problem:
when playing SD/HD/VP9/H265 video, there
are 3 veritcal lines on the picture.
Solution:
disable afbc
Verify:
verified on tl1
Change-Id: I839d8f26aefdf2c71272d8d3e7bf93e4c3294491
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
PD#SWPL-3355
Problem:
vfq size large than kmalloc mem
Solution:
reduce vfq size to kmalloc mem size
Verify:
T962X-R311
Change-Id: Ibbc0c0219d6f170b4169d76e57419cdeb354f7fe
Signed-off-by: Jiacheng Mei <jiacheng.mei@amlogic.com>
PD#SWPL-3419
Problem:
enable local contrast function
Solution:
enable local contrast function
Verify:
x301
Change-Id: I6a1daa7c82224956614b4da46078efdd66424b82
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
PD#SWPL-2210
Problem:
multi wifi not support
Solution:
add multi wifi support
Verify:
ampere
Change-Id: Iea32268fd081a71a1ade00e56a2dcecd975da849
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
PD#TV-1361
Problem:
Add scene change detection for DM (read part),
start from TL1 by VLSI(Zheng.Bao).
Solution:
1. add control in function noise_meter_process;
2. add debug information:
cat /sys/class/deinterlace/di0/nr4_param
3. set NR2_CUE_MODE[11:10] as 3; (by feijun)
Verify:
tl1
Change-Id: Ib34d1b403539ba5fe5135d6608bfa2cf27490826
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
PD#SWPL-3334
Problem:
tl1 ipa coeff and power data no match test data
Solution:
tl1 ipa coeff and power data update for match chip test data
Verify:
x301 pass
Change-Id: I8005140a4ef0b87998f2f637d604db85e58e7316
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
PD#SWPL-3316
Problem:
g12b/w400 has not sched-energy config in arm for EAS.
Solution:
port from arm64
Verify:
w400
Change-Id: I4f3ddd9d5f2abb9787ab95d6652db6cea1c54b24
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
PD#SWPL-3277
Problem:
tl1 internal codec volume can by adjusted
Solution:
configure the acodec data layout mapping
to a fixed volume
Verify:
x301
Change-Id: I14d3762b39a0a5291722ef5489026f10fc960120
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
PD#SWPL-3324
Problem:
Ion's memory configuration is unreasonable for Android P 720P Project
, resulting in waste.
Solution:
More reasonable memory size configuration,Optimize ion memory to 36MB
for Android P 720P Project
Verify:
Verify by Android P 720P Project
Change-Id: Ibf13989f91c1cce5e030d900de2a30b0a16f7994
Signed-off-by: qingwei.xu <qingwei.xu@amlogic.com>
PD#SWPL-3117
Problem:
Cannot get the HDR packets/
Solution:
add HDR RCV detection, Low priority than EMP.
Verify:
txlx tl1
Change-Id: I364fc942840b6eef465df16b89fd0a9fd0ccb3ff
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
PD#SWPL-2956
Problem:
HDMI in DTS/Dolby input has noise when treated to LPCM
Solution:
By default,we are using PAO mode for HDMIRX,but we have not
enabled the PaPb search for 61937 raw data input, after add
that, we can detect the raw data, but it can not by clear when
switch from NONE-LPCM to NONE-LPCM, need add IRQ function to
clear that by sw.we enabled spdif in from HDMIRX, which is the same
design as txl/txlx.we can get the Pc information now.
also we add a new interface to set spdif in source when hdmirx input.
Verify:
x301
Change-Id: I3c4e8b387308ef862a069c29d15b8b5a9e865564
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
PD#SWPL-3223
Problem:
get parameters from vpp blend to core 2 is error
Solution:
we get the parameters from OSD blend instead vpp blend
Verify:
u212
Change-Id: I31a5e4cf90b5d665cfd291aab5554d311ec19346
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
PD#SWPL-2909
Problem:
The gpu clock rate can not be changed.
Solution:
1.it called meson_init_gpu function which used by txlx
in txl clock driver, change it to meson_txl_gpu_init function.
2.the /sys/kernel/debug/aml_clk/clk_test node can not work
in txl platform, Initial value for clk_numbers which needed
by clk_test driver.
Verify:
test passed on P321
Change-Id: Iade63691edf5b39325f34abb4789d48d33339329
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
PD#SWPL-1219
Problem:
if open KASAN, kernel can't boot.
Solution:
Close vmap if open KASAN
Verify:
p212
Change-Id: I3ad4da890aca20fe59ff99dfd55592d8e9a08f3c
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
PD#OP-6
Problem:
Tuner cann't work on tl1 socket board
Solution:
add tuner in dts
Verify:
test pass on tl1 socket board
Change-Id: I49d70c3ab3c3747000faf40cd06bdb368231311e
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
PD#SWPL-2761
Problem:
not support tvconfig yet
Solution:
1.enable key_valid in panel dtsi
2.enable fr_auto_policy in panel dtsi
3.enable clk ss for lvds and vbyone in panel dtsi
4.also fix some coverity errors
Verify:
x301
Change-Id: I00dd5ff621cfbc3f100bbe6045a35c8f917ade29
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
PD#SWPL-3340
Problem:
DDR Window tool is no longer generated as a separate KO after DDR TOOL
configuration setting changed CL:41064
Solution:
Change DDR Window Tool configuration to tristate which can support
standalone KO
Enable DDR_TOOL in SmartHome default config
Verify:
Local
Change-Id: I15370cabe428a5103c1fe9b345a085822c056932
Signed-off-by: Blance Tang <guofeng.tang@amlogic.com>
PD#SWPL-3254
Problem:
need information whether current OSD is blanked or not
Solution:
add sysfs node osd_status
Verify:
verified on u212
Change-Id: Ie73417f08c648a750a881af375800aae57a48762
Signed-off-by: Jian Cao <jian.cao@amlogic.com>