Pengcheng Chen [Tue, 22 Jan 2019 06:42:34 +0000 (14:42 +0800)]
osd: fix a green line displayed when output is yuv420 4k/60hz [1/1]
PD#SWPL-4427
Problem:
a green line displayed when output is yuv420 4k/60hz
Solution:
set dummy data to 0x808000 can fix a green line
displayed when output is yuv420 4k/60hz
Verify:
verify by fanklin
Change-Id: I06125d36c2fb06a61dd072a1789217e7c3705207
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
riqun.ou [Thu, 8 Nov 2018 07:47:32 +0000 (15:47 +0800)]
sound: add resample node for axg_s420_v03gva.dts [1/1]
PD#SWPL-365
Problem:
System can't use resample function on GVA project.
Solution:
Add resample node in axg_s420_v03gva.dts
Verify:
Passed on s420
Change-Id: Ie48c579e9e9f6e1d61147f5410c95e5bca55b0a7
Signed-off-by: riqun.ou <riqun.ou@amlogic.com>
audio: codecs: fix TL1 reference board volume too small [2/2]
PD#SWPL-2652
Problem:
X301/T309 AMP volume configured to small
Solution:
change the default external AMP codec mixer name to a match
the ini parsing function in audio hal.
TODO: need dynamically check the different codec mixer name
in ini file.
Verify:
verify by x301
Change-Id: Iba835d37ea02bec3095556d54fbf327bd6390904
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
audio: codec: the DAC gain set of acodec not work [1/1]
PD#SWPL-3134
Problem:
the DAC gain set is not work
Solution:
update and aml_codec_tl1_acodec.c, change the method of
getting codec pointer from kcontrol pointer.
Verify:
verify by T962x2_X301 board
Change-Id: I02f02b73fab3b8391ef4866a71ffaf0d48bbbbbf
Signed-off-by: Shuyu Li <shuyu.li@amlogic.com>
audio: add tas5805 [1/1]
PD#SWPL-3081
Problem:
compatiable tas5805 module
Solution:
add tas5805 drivers
Verify:
T962X2
Change-Id: I3608e47fe768af0f924751a8bcc103389d0811de
Signed-off-by: Yonghao Jiao <yonghao.jiao@amlogic.com>
audio: auge: add HDMIRX SPDIF in support [1/2]
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>
udio: auge: tl1 acodec mapping to data 1 [1/2]
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>
Conflicts:
arch/arm/boot/dts/amlogic/tl1_t962x2_t309.dts
audio: Fix TDM not wokring on HDMI I2S in [1/1]
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>
audio: codec: fix to resume ad82584's volume after suspend [1/1]
PD#SWPL-3456
Problem:
1) After suspend, volume is not resume
2) ARC connected, still sound out from spk
Solution:
1) save channel volume when suspend, then resume the volume
2) add mute mixer control for ad82584
Verify:
x301
Change-Id: Ic6e7502e3f9689cc2d1053295f26aaf4d5be2603
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
audio: auge: add vad driver [1/1]
PD#SWPL-2404
Problem:
VAD for wake up
Solution:
Add vad driver to fetch VAD buffer and ALSA buffer, in userspace, they
will be combined for wakeup engine
Verify:
x301
Change-Id: I3b4de5fdfe173ce18e58a187a3adeda601e226b3
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
audio: fix pop snd after bootup [2/2]
PD#SWPL-3178
Problem:
output big pop noise after system boot up.
Solution:
Add zero and then unmute the stream.
NOTICE: user should unmute the
AD82584F after boot.
Verify:
local verified.
Change-Id: I21555318f9347c5340a28f7e5cf0e3e2cde849a0
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
audio: fix no audio after resume of
ad82584f [1/1]
PD#SWPL-4090
Problem:
No audio after suspend and resume.
Suspend won't save the mute value,
and after resume, it could not be restored.
Solution:
Add a mute val to save when suspend,
and after resume, restore the mute value.
Verify:
Verified by QA.
Change-Id: Ie24bb11f5c565048391846a66b5d12bab1d55666
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
audio: auge: fix sharebuffer channel map [1/1]
PD#SWPL-2645
Problem:
play ddp source, then play pcm source, no sound
Solution:
1. fix same source control and channel map issue
2. i2s 8ch, spdif 2ch, channels are not mapped, make spdif 8 channel mask
3. when same source used, keep mpll use same mpll
Verify:
x301
Change-Id: I2fe4bbcbcbfff0a1c1a6cebf61d1da5aba9b7a9d
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Conflicts:
arch/arm64/boot/dts/amlogic/tl1_t962x2_t309.dts
arch/arm64/boot/dts/amlogic/tl1_t962x2_x301.dts
audio: add stream mute and continuous clk [1/1]
PD#SWPL-2952
Problem:
Pop noise could be heard
when switching between sources.
Solution:
1. Add stream digital mute functions.
2. continuous clock to eliminate
the clk reset issue.
Verify:
Local verified.
Change-Id: I372f4c03aaf875d75aa903c9c2dfda00619af000
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
dts: tl1: enable resample for tl1 [1/2]
PD#SWPL-3365
Problem:
not resample for audio in, so output in wrong sample rate
Solution:
1. enable resample in dts
2. fix to check whether resample is needed
Verify:
x301
Change-Id: I99238cc21a00ab53df6a1f8ab1703bc9ab48cbaa
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Conflicts:
arch/arm64/boot/dts/amlogic/tl1_t962x2_t309.dts
arch/arm64/boot/dts/amlogic/tl1_t962x2_x301.dts
shuanglong.wang [Thu, 10 Jan 2019 13:12:12 +0000 (21:12 +0800)]
video: omx get first frame toggoled flag [1/2]
PD#SWPL-4048
Problem:
omx can not detect first frame have toggled
Solution:
omx get first frame toggoled flag
Verify:
verify by p212
Change-Id: I632824390287dd0257dca23a009ff8851054f68d
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
Yi Zhou [Fri, 11 Jan 2019 03:31:16 +0000 (11:31 +0800)]
dv: keep dv enable when connecting to sdr TV [1/1]
PD#SWPL-3226
Problem:
turn off the dv core, the osd flutters
Solution:
keeping core2 open when dv enable under sdr TV
Verify:
u212
Change-Id: Idf57c6e67676fb5eec944e543cb596247c932df4
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
Luan Yuan [Wed, 16 Jan 2019 13:44:38 +0000 (21:44 +0800)]
hdmitx: fixed logo flash error [1/1]
PD#SWPL-4194
Problem:
array need to initial.
Solution:
fixed it.
Verify:
verify by ampere
Change-Id: Ia72eb1afa54f092bbbb7265694ecec314691b14e
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Kaifu Hu [Tue, 15 Jan 2019 06:43:08 +0000 (14:43 +0800)]
hdmi: fix uboot logo flash [1/2]
PD#SWPL-4194
Problem:
Systemcontorl set display mode when attr is difference
Solution:
Fix color space property parser
Verify:
G12A/U200
Change-Id: Iddbcbbf3925b175833f534a287de413315ca1170
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
Jihong Sui [Thu, 10 Jan 2019 12:48:47 +0000 (20:48 +0800)]
deinterlace: change holdline default value to 8 [1/1]
PD#SWPL-3384
Problem:
DI post holdline setting is not map with video
Solution:
change holdline to 8
Verify:
verified by gxl
Change-Id: Ia352604086cefb4c69d5dd268d12741c4cf4f173
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
Cheng Tong [Mon, 14 Jan 2019 06:33:07 +0000 (14:33 +0800)]
dts: u212 2G ddr add dvb dts config [1/1]
PD#SWPL-4140
Problem:
u212 2G dts didn't have dvb config
Solution:
add dvb dts config
defalut commented out as reference
Verify:
Verify by Android P franklin
Change-Id: I1ffc631ff0a729e6701fd8cd17b28f70666b1e30
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
Pengcheng Chen [Fri, 11 Jan 2019 09:40:36 +0000 (17:40 +0800)]
osd: afbc decode error when write afbc start before afbc reset [1/1]
PD#SWPL-4016
Problem:
afbc decode error when write afbc start before afbc reset reg
Solution:
replace invalid reg when found afbc start before afbc reset reg
Verify:
test pass on franklin
Change-Id: Ia01608fe4d5c6132d0b54e63c48560e9e77bfe0a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Yi Zhou [Fri, 11 Jan 2019 02:49:11 +0000 (10:49 +0800)]
dv: mute the first frame when playing video [1/1]
PD#SWPL-4091
Problem:
due to the ip bug, the first frame has dirty data
Solution:
mute the first frame
Verify:
u212
Change-Id: Ia21e96c338b22e25d1073f27083f10634a09edad
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
Luan Yuan [Fri, 11 Jan 2019 12:15:13 +0000 (20:15 +0800)]
Revert "canvas: get canvas w/h for frame check [2/2]"
This reverts commit
8667f1fbc184ccfc001a7006717cb0b5a7bdbdf9.
MingLiang Dong [Tue, 8 Jan 2019 13:23:33 +0000 (08:23 -0500)]
hdr: sdr2hdr on/off switch, osd flutter [1/1]
PD#SWPL-3038
Problem:
sdr2hdr on/off switch, osd flutter
Solution:
always enable osd1 hdr, if osd hdr bypass, set hdr bypass parameters
Verify:
verify on G12A
Change-Id: I4d5ae0588b06c4989b3a4f22b00ba41ef80be0d0
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
shuanglong.wang [Tue, 9 Oct 2018 09:33:14 +0000 (17:33 +0800)]
video: drain and hold frame when pattern broken. [1/1]
PD#SWPL-795
Problem:
video video caton
Solution:
1. For 23.97 and 29.97fps, broken patten case, such as 2323..2233..2323
(23.97), 222..2213(2)22(29.97) will hold one sync to toggle.
For 23.97 and 29.97fps, broken patten case, such as 2323..233223...2323
(23.97), 222..223122...22(29.97), will drain frame one sync to toggle.
2. For 24 and 30fps, every 16.6s will occur pattern broken, one frame
will display less vsync. For 24, will happen
22221222, for 30, will
happen
3232223232. Here will escape one sync and also hold one sync to
ensure pattern detection not broken, which others will lead patten
broken, and nothold or drain frame, then frame frezee or lost will
happen.
3. add pts-trace debug. Follow command could help debug video av sync.
echo 0x400000 > /sys/module/amvideo/parameters/debug_flag
echo 1,1,1 > /sys/kernel/debug/video/pts_log_enable
Above command will print too many debug info, you can use follow
echo 0 > /proc/sys/kernel/printk && dmesg -c > /dev/null
dmesg > kernel.log
Verify:
verify by p212
Change-Id: Icc03faec772937c273ca74be67f5c52ae25fea39
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
Hui Zhang [Fri, 4 Jan 2019 06:35:51 +0000 (14:35 +0800)]
dts: release memory of the reserved 1MB [2/2]
PD#SWPL-2372
Problem:
phy addr (0 - 0x100000) is reserved before. once it is release for system use.
it will be polluted by video decoder (avs2 & vp9)
Solution:
init hw addr (not 0) in decoder to avoid 0 address polluted.
then release reserved 1MB memory space in dts
Verify:
U212
Change-Id: I36f6caa09267ab1180ff12cfed9b9c7befff2842
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
shihong.zheng [Tue, 6 Nov 2018 12:29:19 +0000 (20:29 +0800)]
canvas: get canvas w/h for frame check [2/2]
PD#SWPL-1738
Problem:
support frame crc32 check and dump yuv.
Solution:
support frame check and yuv dump in media_module, add interface
to get canvas width/height.
Verify:
u212
Change-Id: Ieadc95521c4a21bec5685f8c8926d3bb2f92637b
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
rongrong zhou [Mon, 7 Jan 2019 08:14:56 +0000 (16:14 +0800)]
video: disable video in early suspend [1/1]
PD#SWPL-2736
Problem:
suspend green screen
Solution:
disable video in early suspend
Verify:
Ampere
Change-Id: If5ad13d2964b1541791d95ffb239293ab1e4ffb6
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
Yi Zhou [Tue, 8 Jan 2019 05:59:32 +0000 (13:59 +0800)]
dv: set g12a/b core run_mode_delay as 0 [1/1]
PD#SWPL-3890
Problem:
when starting to play video, the manu bar shakes
Solution:
stb core don't need run mode delay.
Verify:
u212
Change-Id: If8634cfd33598343cef84b93d4757f5d5c9c72e5
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
Yi Zhou [Tue, 8 Jan 2019 01:24:45 +0000 (09:24 +0800)]
dv: add compatibility to prevent panic [1/1]
PD#SWPL-3889
Problem:
when the metadata parsed by decode is error, the array will overflow
in dv module.
Solution:
dolby type just appears once in metadata. After parsing dolby type,
breaking the circulation directly.
Verify:
U212
Change-Id: I715e28c1b9a8aab2fcb4059dd132b5b98c043f31
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
Yong Qin [Mon, 7 Jan 2019 07:59:00 +0000 (15:59 +0800)]
cec: too more log when cec bus error [1/1]
PD#SWPL-3921
Problem:
Too more log when cec bus error
Solution:
print the log at log level 1
Verify:
verified on tl1 android p
Change-Id: I8273e0a46470d59160f1ac8dc71494a9abb19b0f
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
Zhuo Wang [Tue, 25 Dec 2018 08:16:50 +0000 (16:16 +0800)]
ethernet: setup tx_amp from efuse [1/1]
PD#SWPL-3552
Problem:
tx_v show different for each chip
Solution:
add new function to setup
Verify:
co-work with analog on G12B SOCKET board
Change-Id: I1f2711b9414464c7044efc3f3128cc3c3808cfc5
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
Shunzhou Jiang [Fri, 21 Dec 2018 09:12:01 +0000 (17:12 +0800)]
mailbox: mailbox: add eth calc data read interface [2/2]
PD#SWPL-3498
Problem:
ethernet need read data from efuse
Solution:
add interface to read data
Verify:
g12a_skt
Change-Id: I7ce7ffe2f194c875155e6db8acb55eb8ac5500a0
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
Kaifu Hu [Wed, 2 Jan 2019 02:54:09 +0000 (10:54 +0800)]
hdmitx: disable spead spectrum when 4k mode [1/1]
PD#SWPL-3696
Problem:
Flash black screen when 4k mode
Solution:
Disable spead spectrum when 4k mode
Verify:
GXL/P215
Change-Id: I131633c26492548146cdc6e75a4d65b91cfd77ad
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
Tao Zeng [Wed, 2 Jan 2019 06:47:13 +0000 (14:47 +0800)]
mm: fix range mistake for virt_check [1/1]
PD#SWPL-3793
Problem:
Address 0xC0000000 is in lowmem, which should not be warned by
virt_check:d input of virt:
c0000000
~~~~~~~~
CPU: 1 PID: 5141 Comm: Binder:3297_5 Tainted: G O 4.9.113 #1
Hardware name: Generic DT based system
[<
c030e760>] (show_stack+0x20/0x24)
[<
c06ee8a8>] (dump_stack+0x90/0xac)
[<
c031c7b4>] (virt_check+0x64/0x68)
[<
c049c45c>] (__check_object_size+0x184/0x1f8)
[<
c07058c0>] (copy_page_to_iter+0x288/0x5b8)
[<
c04425dc>] (generic_file_read_iter+0x390/0xa48)
[<
c049f238>] (__vfs_read+0xec/0x13c)
[<
c04a00e0>] (vfs_read+0x9c/0x164)
[<
c05ce7e8>] (sdcardfs_read+0x28/0x50)
[<
c049f194>] (__vfs_read+0x48/0x13c)
[<
c04a00e0>] (vfs_read+0x9c/0x164)
[<
c04a13ac>] (SyS_read+0x5c/0xbc)
[<
c0308980>] (ret_fast_syscall+0x0/0x48)
Solution:
Not warning for 0xC0000000 if virt address is equal to it
Verify:
R311
Change-Id: I9a3f8efe89564f31f9a49ab4448323c93ddc761d
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Nan Li [Fri, 28 Dec 2018 10:07:27 +0000 (18:07 +0800)]
sdio: optimize 1bit mode cfg [1/1]
PD#SWPL-3719
Problem:
optimize sdio 1bit cfg fail for dts.
Solution:
move MMC_PM_KEEP_POWER setting from
amlsd_get_host_caps(). so modify dts to
set 1bit mode.
Verify:
p212
Change-Id: I268f25a9550058e7bbf3562eec53c8cd92b58b1b
Signed-off-by: Nan Li <nan.li@amlogic.com>
Hui Zhang [Sat, 22 Dec 2018 08:55:43 +0000 (16:55 +0800)]
codec_mm: not to be blocked to wait scatter cache done [1/2]
PD#SWPL-2206
Problem:
decoding thread was blocked to wait scatter memory to be cached done. it
may take 30+ ms and lead to cts/vts fail
Solution:
not to wait scatter cached done. it save timing of system
Verify:
Verified U212
Change-Id: I75fa3e892e0b9b8023c07b62a31ebd43d3c92044
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
Lifeng Cao [Wed, 12 Dec 2018 03:22:07 +0000 (11:22 +0800)]
video: dv: Change omx pts upper and lower threshold for dv [3/3]
PD#SWPL-2465
Problem:
DV av-sync test diff between audio and video too big
Solution:
Change omx pts upper and lower threshold
Verify:
Test pass by S905X2-U212
Change-Id: I916773300b29a9b6368d7e2283effae2a6440d14
Signed-off-by: Lifeng Cao <lifeng.cao@amlogic.com>
Yao.Liu [Fri, 28 Dec 2018 12:38:21 +0000 (07:38 -0500)]
ion: add invalid cache function [1/1]
PD#SWPL-3736
Problem:
H265 encoder use ge2d to do format convert, ge2d dst
buffer is allocated from ion heap and is cached buffer.
The cache consistency problem caused encoded stream error.
Solution:
ION add invalid cache function, invalid cache before
CPU access cache buffer
Verify:
U212
Change-Id: Ib14f2a9ee5b536c3546c5957fd0505cacae45f80
Signed-off-by: Yao.Liu <yao.liu@amlogic.com>
Zhongfu Luo [Sat, 29 Dec 2018 05:12:08 +0000 (13:12 +0800)]
defendkey: change defendkey read function process [1/1]
PD#SWPL-3204
Problem:
GXL: need to fix bug for defendkey read function
Solution:
1.change defendkey read function process
Verify:
GXL skt board verify pass
Change-Id: I61c7e7074eefa1ab20bdb8fa31f970b39bfe5a1b
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
Zhongfu Luo [Fri, 28 Dec 2018 08:16:28 +0000 (16:16 +0800)]
defendkey: change defendkey reserved memory process [1/1]
PD#SWPL-3706
Problem:
GXL: defenkey cause system crash
Solution:
1.change defendkey reserved memory process
2.limit reserved memory region
Verify:
GXL skt board verify pass
Change-Id: I23c6fe861803de96eccec9b643824eeae2c2e564
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
Nan Li [Thu, 20 Dec 2018 09:21:24 +0000 (17:21 +0800)]
sdio: optimize data1 interrupt cfg reg error [1/1]
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>
Nanxin Qin [Wed, 26 Dec 2018 11:29:18 +0000 (19:29 +0800)]
codec_mm: add the flush cache away for the highmem [1/1]
PD#SWPL-3588
Problem:
bad using virt_to_pfn in stream_input ko
Solution:
add the flush cache away for the highmem.
Verify:
p212
Change-Id: I70fd18f97b5b91c9154b7eeb9f488d16113daf8d
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Tao Zeng [Tue, 25 Dec 2018 11:17:25 +0000 (19:17 +0800)]
mm: check virt_to_xxxx macro on 32bit OS [1/1]
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>
rongrong zhou [Tue, 11 Dec 2018 07:42:46 +0000 (15:42 +0800)]
dts: add netflix MGKID unify key [3/3]
PD#SWPL-2847
Problem:
add netflix MGKID support
Solution:
add netflix MGKID support
Verify:
ampere NTS
Change-Id: I7bf7f7b7527a36dc7b50f1a98bdb5d0a60af8741
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
Pengcheng Chen [Mon, 24 Dec 2018 02:40:34 +0000 (10:40 +0800)]
osd: the border below has a green horizontal line [1/2]
PD#SWPL-3478
Problem:
the border below has a green horizontal line
Solution:
add freescale repeat last line, supported chip after G12B
Verify:
verify on T962X2-X301
Change-Id: I5dab91774eea3949062fe3254db7a074563fe1c4
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Brian Zhu [Wed, 26 Dec 2018 14:37:51 +0000 (22:37 +0800)]
vpp: set the preblend horz size correctly for hdr input [2/2]
PD#SWPL-3478
Problem:
the border below has a abnormal line
Solution:
Set the preblend horz size correct
Verify:
verify on T962X2-X301
Change-Id: Ie7b20a6b030d40d3a0eb3458df07e7632491aa2c
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Hanjie Lin [Fri, 23 Nov 2018 07:14:28 +0000 (15:14 +0800)]
dts: fix g12b energy-cost config error [1/1]
PD#SWPL-1007
Problem:
g12b a53 core energy-cost config is error.
Solution:
modify with right cost value
Verify:
w400
Change-Id: I1ffba5b147879a4178f255247f338b594e440eed
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
Yi Zhou [Tue, 25 Dec 2018 09:08:39 +0000 (17:08 +0800)]
dv: fix the error setting in dv core [1/1]
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>
Zhongfu Luo [Thu, 27 Dec 2018 09:47:20 +0000 (17:47 +0800)]
defendkey: script signing tool: support upgrade check [5/5]
PD#SWPL-3204
Problem:
GXL/TXLX/G12A/G12B: script signing tool need to support defendkey
Solution:
1.change dtb decrypt process
Verify:
GXL/TXLX/G12A/G12B skt board verify pass
Change-Id: I165db827dec82837edb8a4a5197090bbd79d536d
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
Luan Yuan [Thu, 27 Dec 2018 08:32:23 +0000 (16:32 +0800)]
Revert "mm: check virt_to_xxxx macro on 32bit OS [1/1]"
This reverts commit
0d79066451f17a1fe66e8a1440c99371e58cf325.
Tao Zeng [Tue, 25 Dec 2018 11:17:25 +0000 (19:17 +0800)]
mm: check virt_to_xxxx macro on 32bit OS [1/1]
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>
Huan Biao [Thu, 20 Dec 2018 09:42:24 +0000 (17:42 +0800)]
thermal: cooldev: fix cpucore cool devices driver issue [1/1]
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>
Tao Zeng [Tue, 25 Dec 2018 09:43:02 +0000 (17:43 +0800)]
mm: fix too many wrong kasan report [1/1]
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>
Zongdong Jiao [Thu, 13 Sep 2018 02:17:34 +0000 (10:17 +0800)]
hdmitx: fix KASAN Bug in set_disp_mode_auto [1/1]
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>
Hanjie Lin [Tue, 18 Dec 2018 11:21:12 +0000 (19:21 +0800)]
sched: EAS: sched_energy for arm on g12b [1/1]
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>
qingwei.xu [Mon, 17 Dec 2018 09:04:57 +0000 (17:04 +0800)]
dts: Optimize ion memory to 36MB for Android P 720P Project [1/1]
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>
Pengcheng Chen [Tue, 11 Dec 2018 04:55:59 +0000 (12:55 +0800)]
osd: add dd functions used phys_to_page and vmap [1/1]
PD#SWPL-3153
Problem:
remove phys_to_vir caused dd functions disable.
Solution:
add dd functions used phys_to_page and vmap
Verify:
franklin
Change-Id: Ic28ac0107adfee58933d0b19a2a7c2893c06b789
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Yi Zhou [Tue, 18 Dec 2018 06:56:48 +0000 (14:56 +0800)]
dv: update the hsize and vsize of dv core 2 [1/1]
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>
Tao Zeng [Wed, 19 Dec 2018 03:10:51 +0000 (11:10 +0800)]
mm: close vmap stack if open KASAN [1/1]
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>
Blance Tang [Tue, 18 Dec 2018 02:42:43 +0000 (10:42 +0800)]
buildroot: Enable ddr_window tool [1/1]
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>
Jian Cao [Mon, 17 Dec 2018 06:19:16 +0000 (14:19 +0800)]
osd: need information whether current OSD is blanked or not [1/1]
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>
Rui Wang [Thu, 13 Dec 2018 11:52:47 +0000 (19:52 +0800)]
video: add freeze video function [1/1]
PD#SWPL-3154
Problem:
Implement video freeze
Solution:
Add freeze video function
Verify:
Test pass by r311
Change-Id: I6a3839d26ea99ead7097f20c283afe9b8103a668
Signed-off-by: Rui Wang <rui.wang@amlogic.com>
tao zeng [Wed, 14 Nov 2018 02:29:45 +0000 (10:29 +0800)]
mm: save wasted memory by slab [1/1]
PD#SWPL-1767
Problem:
When driver/kernel call kmalloc with large size, memory may waste
if size is not equal to 2^n. For example, driver call kmalloc with
size 129KB, kmalloc will allocate a 256KB memory block to caller.
Then 127kb memory will be wasted if this caller don't free it.
Solution:
Free tail of slab memory if size is not match to 2^n. This change
can save about 900KB memory after boot, and more than 100KB during
run time.
Verify:
P212
Change-Id: Iba378792ec30003358b64384361c0f0c4c2800d8
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
Brian Zhu [Wed, 12 Dec 2018 15:39:15 +0000 (23:39 +0800)]
tb_detect: add external canvas config when multi-dec source [1/1]
PD#IPTV-52
Problem:
vframe from multi-dec has no canvas index
Solution:
use external canvas index for vframe from multi-dec
Verify:
verified by u211
Change-Id: I767f86e492cddb9cc054c048de7078d2f6b85d33
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Zhuo Wang [Fri, 7 Dec 2018 10:13:56 +0000 (18:13 +0800)]
ethernet: resume/suspend NULL pointer [1/1]
PD#SWPL-3000
Problem:
repeat resume/suspend will NULL pointer
Solution:
use globle var
Verify:
verify in u200
Change-Id: If44e52a5907c85fb181a450af92b18fe37e09d4f
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
tao zeng [Thu, 29 Nov 2018 01:55:14 +0000 (09:55 +0800)]
ddr_bandwidth: support multi-ports config for one channel [1/1]
PD#172256
Problem:
ddr bandwidth prot config can only set 1 port for 1 channel. But
dmc controller support measure many ports on 1 channel.
Solution:
Using bit mask to support multi-ports config for one channel.
Verify:
P212
Change-Id: Iad79e6ebd6aeb74b0e31b3f1bee08de4fd557cc1
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
Jian Xu [Thu, 13 Dec 2018 14:57:23 +0000 (22:57 +0800)]
audio: dts: config tdmb/spdif continuous clk to fix spdif no clk issue [1/1]
PD#SWPL-2491
Problem:
HDMI output no sound when system boot up
Solution:
When system bootup,there is no sound,Checked the issue, pcm_write always fail,
cat /d/aml_clkmsr/clkmsr ,[120][ 6000000]audio_spdifout_mst_clk.
the spdif has no clock.Seems after enable same source, the spdifa clock
is not configured correctly. now configure that to continous clock.
TBD, need check the root cause in alsa kernel code.
Verify:
verify by galilei, reboot 20 times.
Change-Id: I0c50c71d2436894d63b83d4040a77a8a9aa6977c
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
Kaifu Hu [Fri, 30 Nov 2018 08:00:08 +0000 (16:00 +0800)]
hdmitx: default set frac_rate_policy to 1 [1/1]
PD#SWPL-1955
Problem:
The /sys/class/amhdmitx/amhdmitx0/frac_rate_policy is 0 when
uboot not contain frac_rate_policy
Solution:
Default set frac_rate_policy to 1
Verify:
T962e/R321
Change-Id: Ifff2dbaeef0a3012a730d14405963d994f3eeed3
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
Bichao Zheng [Tue, 11 Dec 2018 02:59:09 +0000 (10:59 +0800)]
gpio-led: g12b: add system led control for w400 [2/2]
PD#SWPL-3008
Problem:
g12b_w400 need add led control
Solution:
Add system led control for w400
Verify:
g12b_w400
Change-Id: I7b27af95c92f06bb0ca89e00aeccc65f398dad70
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
Cheng Tong [Tue, 11 Dec 2018 09:21:06 +0000 (17:21 +0800)]
dts: add LiveTv support [2/2]
PD#SWPL-3105
Problem:
dts didn't have dvb config
Solution:
add dvb dts config
defalut commented out as reference
Verify:
Verify by Android P franklin
Change-Id: I47ab10c22b32f6bfd51a0c113a692f0c5863178b
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
Zhiwei Yuan [Wed, 12 Dec 2018 12:48:20 +0000 (20:48 +0800)]
dtv_demod: "No signal" is seen when video is playing [1/1]
PD#SWPL-3019
Problem:
Unplug the DTV signal, then do AC off then on, enter DTV source, plug the DTV signal, then change channel, the current channel will display abnormally, the video will display with "no signal" together
Solution:
sync the signal status(using read sts interface) with tuning result
Verify:
verified by T962-P321-DDR4
Change-Id: I3ba01dc976c40391f3f305a3754632d2cccfd571
Signed-off-by: Zhiwei Yuan <zhiwei.yuan@amlogic.com>
Shuyu Li [Wed, 12 Dec 2018 08:25:47 +0000 (16:25 +0800)]
audio: auge: The recorded data L/R channel has 7.5 degree phase diff [1/1]
PD#SWPL-3145
Problem:
The L/R channel has 7.5 degree phase diff
Solution:
Change reg_tdmin_in_rev_ws of EE_AUDIO_TDMIN_X_CTRL 1->0
Verify:
Verify by T962x2_X301 board
Change-Id: I6ca624db10ff96481dd7f413d9f184aeee8c95b3
Signed-off-by: Shuyu Li <shuyu.li@amlogic.com>
shuyu.li [Wed, 28 Nov 2018 11:24:14 +0000 (19:24 +0800)]
audio: codec: add tl1_acodec support for tl1 [1/1]
PD#SWPL-1759
Problem:
add tl1_acodec support
Solution:
add code, update xxx.dts and aml_codec_tl1_acodec.c
Verify:
verify by T962x2_X309 board
Change-Id: Ia91e4e0f113af3d537d1828c5c4cfabc127eac8f
Signed-off-by: shuyu.li <shuyu.li@amlogic.com>
Xing Wang [Tue, 30 Oct 2018 07:38:34 +0000 (15:38 +0800)]
audio: auge: fix drivers for tl1 [1/1]
PD#172587
Problem:
resample, eqdrc, dolby efuse, audio input (from atv, hdmirx)
Solution:
add drivers for them
Verify:
x301
Change-Id: I5187f9824d904283794f6e4be3dd9ce8463908e1
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Conflicts:
arch/arm/boot/dts/amlogic/mesontl1.dtsi
arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts
arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts
Zhiwei Yuan [Wed, 12 Dec 2018 07:10:14 +0000 (15:10 +0800)]
dtv_demod: TL1,dtmb,change frequency,show "no signal" at first [1/1]
PD#SWPL-3025
Problem:
Different frequency channel switch, the channel first pops up "no signal" and then displays the channel
Solution:
do dtmb sw reset before re-tune
Verify:
verified by t962x2_x301
Change-Id: Ibc14de37f2f3f6b07af4d125e9fb58dd308e61c4
Signed-off-by: Zhiwei Yuan <zhiwei.yuan@amlogic.com>
Zhiwei Yuan [Thu, 29 Nov 2018 07:20:43 +0000 (15:20 +0800)]
dtv_demod: TL1 timeshift display have a lot mosaic [1/1]
PD#SWPL-2618
Problem:
TL1 timeshift display have a lot mosaic
Solution:
tune ts clk to a smaller value
Verify:
verified by t962x2_x301
Change-Id: I89c8cdb3317e42101fc8f161436d33ccd0761945
Signed-off-by: Zhiwei Yuan <zhiwei.yuan@amlogic.com>
Zhiwei Yuan [Tue, 27 Nov 2018 09:38:34 +0000 (17:38 +0800)]
dtv_demod: for dtmb no signal issue [1/1]
PD#172587
Problem:
for dtmb no signal issue
Solution:
update status to "read status" interface
Verify:
verified by t962x2_x301
Change-Id: I6099d2dbe4dcdc23c3a4bd9e489113b26429f2ec
Signed-off-by: Zhiwei Yuan <zhiwei.yuan@amlogic.com>
Zhiwei Yuan [Fri, 23 Nov 2018 14:33:36 +0000 (22:33 +0800)]
dtv_demod: add DTV demod driver for tl1 [1/1]
PD#172587
Problem:
add DTV demod driver for tl1
Solution:
add DTV demod driver for tl1
Verify:
verified by t962x2_x301
Change-Id: I27e88090aa51c0385867cee4d31a5a75192cf650
Signed-off-by: Zhiwei Yuan <zhiwei.yuan@amlogic.com>
Conflicts:
arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts
arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts
Nian Jing [Fri, 23 Nov 2018 12:34:03 +0000 (20:34 +0800)]
tvafe: add tvafe support for tl1 [1/1]
PD#172587
Problem:
tl1 do not support tvafe
Solution:
add tvafe support
Verify:
test pass on x301
Change-Id: I34185a3f10e7540b7c2317c270a306b8904e0ca3
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
Conflicts:
arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts
arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts
Pengguang Zhu [Fri, 12 Oct 2018 11:46:00 +0000 (19:46 +0800)]
board: get ao_register_base from dts [1/1]
PD#SWPL-3203
Problem:
android P can not boot up on G12A with 32bit kernel
Solution:
get register base from dts
Verify:
Local
Change-Id: Ifb3163a867c1c8ed4f8c344d064cead216334773
Signed-off-by: Pengguang Zhu <pengguang.zhu@amlogic.com>
keke.li [Tue, 27 Nov 2018 05:54:21 +0000 (13:54 +0800)]
gdc: add a convert function to map dma address [1/1]
PD#SWPL-2157
Problem:
gdc module need to get dma address directly
Solution:
add a convert function to map dma address
Verify:
g12b
Change-Id: I1d40350e4727335d1f69f38caafb1dfe7b0db842
Signed-off-by: Keke Li <keke.li@amlogic.com>
Tao Zeng [Wed, 12 Dec 2018 06:37:26 +0000 (14:37 +0800)]
mm: fix suspend crash on u200 [1/1]
PD#SWPL-1219
Problem:
When open vmap stack, suspend will fail on U200. If open cpu idle,
resume from idle will fail too.
Solution:
set up vmap stack early before open IRQ. If set up this stack late
than IRQ open, stack will point to a ramdom address
Verify:
u200
Change-Id: Ie60f6faadf9afece47ccc887a0af46814f070897
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Jiamin Ma [Wed, 12 Dec 2018 09:37:01 +0000 (17:37 +0800)]
debug: show pfn info when undefined instr happens at user space [1/1]
PD#SWPL-3076
Problem:
Lack of debug infos when undefined instr happens at user space
Solution:
Call show_all_pfn when undefined instr happens at user space
Verify:
Locally on ampere
Change-Id: Id24e797c2781c94c507ad07ec17a3d4ae7d44cd9
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
he.he [Tue, 20 Nov 2018 05:57:37 +0000 (13:57 +0800)]
usb: adb panic [1/1]
PD#SWPL-2678
Problem:
adb panic in release_ffs_buffer
Solution:
1.when kzalloc data_ep use GFP_ATOMIC instead of GFP_KERNEL
and keep spin lock protection.
2.check buffer_temp->data_ep == NULL, return
Test: adb push
Verify:
verified by he he
Change-Id: I3402b17d62b8a0ef4e3185a87729a0c3e87449e9
Signed-off-by: he.he <he.he@amlogic.com>
Bencheng Jing [Thu, 6 Dec 2018 08:53:17 +0000 (16:53 +0800)]
pq: fix sr registers load fail on txl [1/1]
PD#SWPL-2941
Problem:
sr top ctrl is closed when video off
Solution:
txl and txl sr top don't close
Verify:
TxL
Change-Id: Ia8e7e3bd93dd328497af66cf9758e3021cafe22c
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
tao zeng [Wed, 7 Nov 2018 08:51:50 +0000 (16:51 +0800)]
mm: optimize stack usage for functions [1/1]
PD#SWPL-1773
Problem:
After adding optimization of vmap stack, we can found stack usage
of each functions when handle vmap fault. From test log we see some
functions using large stack size which over 256bytes. Especially
common call path from fs. We need to optimize stack usage of these
functions to reduce stack fault probability and save stack memory
usage.
Solution:
1. remove CONFIG_CC_STACKPROTECTOR_STRONG and set STACKPROTECTOR to
NONE. This can save stack usage add by compiler for most functions.
Kernel code size can also save over 1MB.
2. Add some noinline functions for android_fs_data rw trace calls. In
these trace call it allcated a 256 bytes local buffer.
3. Add a wrap function for mem abort handler. By default, it defined a
siginfo struct(size over 100 bytes) in local but only used when fault
can't be handled.
4. reduce cached page size for vmap stack since probability of page
fault caused by stack overflow is reduced after function stack usage
optimized.
Monkey test show real stack usage ratio compared with 1st vmap
implementation reduced from 35% ~ 38% to 26 ~ 27%. Which is very
close to 25%, theory limit.
Verify:
P212
Change-Id: I5505cacc1cab51f88654052902852fd648b6a036
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
Pengcheng Chen [Tue, 11 Dec 2018 09:23:43 +0000 (17:23 +0800)]
osd: remove phys_to_vir to prevent crash on the 32bit & 2G boadr [1/1]
PD#SWPL-3079
Problem:
phys_to_vir in height mem rw caused crashed.
Solution:
remove phys_to_vir(dd funs not work)
Verify:
tl1
Change-Id: Ic9679471a51974cabf84b61efe90c88e845d01ea
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Hongmin Hua [Tue, 11 Dec 2018 06:03:04 +0000 (14:03 +0800)]
cec: add the port map for connect status [1/1]
PD#SWPL-3010
Problem:
the arc can't work
Solution:
add the port map for connect status
Verify:
verified on darwin
Change-Id: I9f886c35de8670acdc431185bb26aa1836a8c150
Signed-off-by: Hongmin Hua <hongmin.hua@amlogic.com>
Yi Zeng [Mon, 10 Dec 2018 07:57:18 +0000 (15:57 +0800)]
nand: fix the free-node leak in rsv manager [1/1]
PD#SWPL-2776
Problem:
did not release the free node of rsv information
Solution:
release free node and set bit mask in right way
Verify:
S400
Change-Id: I781f2374b91ca1e7cd1a66e75fc554318737c377
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
Jian Cao [Fri, 7 Dec 2018 09:46:36 +0000 (17:46 +0800)]
video: fix picdec coverity error [1/1]
PD#SWPL-2797
Problem:
fix picdec coverity error
Solution:
solve picdec coverity issues
Verify:
verified on P212
Change-Id: Iee0a7beb3fbf8382e9dd4207075df85171ed62ae
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Jian Cao [Thu, 6 Dec 2018 14:56:27 +0000 (22:56 +0800)]
video: fix ppmgr coverity error [1/1]
PD#SWPL-2797
Problem:
fix ppmgr coverity error
Solution:
solve ppmgr coverity issues
Verify:
verified on P212
Change-Id: I05b837073ec9c981004320afaa0680648198d5b3
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Jian Cao [Fri, 7 Dec 2018 09:52:12 +0000 (17:52 +0800)]
osd: fix ge2d coverity error [1/1]
PD#SWPL-2798
Problem:
fix ge2d coverity error
Solution:
add return val timeout for waiting completion
Verify:
verified on P212
Change-Id: Iaacf3f5b30721eb5d72d3c355f0404f4848969b5
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Jian Cao [Thu, 6 Dec 2018 08:07:41 +0000 (16:07 +0800)]
osd: fix osd coverity error [1/1]
PD#SWPL-2798
Problem:
fix osd coverity error
Solution:
solve osd coverity issues
Verify:
verified on P212
Change-Id: I9714e3b229786d39ffa5a150633d59082bdf3549
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
MingLiang Dong [Tue, 11 Dec 2018 10:37:04 +0000 (05:37 -0500)]
hdr: Enable default output to HDR for HDR TV [1/1]
PD#SWPL-3096
Problem:
G12A/G12B need enable sdr2hdr
Solution:
enable sdr2hdr function
Verify:
verify on G12A
Change-Id: I1e771a13d33fe675cfc36d8308afc37077545cd4
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
nengwen.chen [Mon, 12 Nov 2018 12:44:35 +0000 (20:44 +0800)]
dtv_demod: DTV search menu does not have ISDB-T entry [4/6]
PD#SWPL-1664
Problem:
DTV search menu does not have ISDB-T entry
Solution:
add ISDB-T system support.
Verify:
verified by einstein
Change-Id: Ie0bdc988d53256487e24c3123320b50f2a58cdf3
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
Chuangcheng Peng [Fri, 7 Dec 2018 10:16:13 +0000 (18:16 +0800)]
dvb-core: compatile with 32bit in 64bit kernel [1/1]
PD#SWPL-3009
Problem:
32bit frontend app can't call ioctl in 64bit-kernel
Solution:
Add 32bit define in header and handle in dvb_frontend in 64bit-kernel
Verify:
Verify at android_p at R311
Change-Id: I63178803cfb1cf7d670e3c2b55f104e97f5afa63
Signed-off-by: Chuangcheng Peng <chuangcheng.peng@amlogic.com>
tao zeng [Tue, 20 Nov 2018 04:14:57 +0000 (12:14 +0800)]
mm: check phys_to_xxxx macro on 32bit OS [1/1]
PD#SWPL-1909
Problem:
If physical address of a memory location is not in linear mapping
range, then any caller with phys_to_xxxx to get a pointer will
cause bug.
Solution:
Check input address range for phys_to_xxxx to get a BUG output.
This change is used for debug
Verify:
P212
Change-Id: I13bcaa3983e2d730b8d2bc03cd28c62585f49969
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
qiu.zeng [Fri, 7 Dec 2018 02:49:08 +0000 (10:49 +0800)]
BT: resolve bt remote re-connected fail [1/1]
PD#SWPL-2735
Problem:
bt remote re-connected fail
Solution:
control bluetooth opwer up
Verify:
Verifying on Public Edition r311
Change-Id: I8c74442894f606d5afd992e52d6c80bada0aed9f
Signed-off-by: Qiu Zeng <qiu.zeng@amlogic.com>
Brian Zhu [Fri, 7 Dec 2018 06:21:43 +0000 (14:21 +0800)]
video: sr: add the missing bit mask for sr core1 [1/1]
PD#SWPL-2948
Problem:
Miss the sr core1 bit mask to cause display abnormal
Solution:
Add the bit mask for sr core1
Verify:
Test pass by x301
Change-Id: I742d86b610a9748adad7c143d7a85c6796d3c8f7
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Tao Zeng [Thu, 6 Dec 2018 07:24:44 +0000 (15:24 +0800)]
mm: subtract CMA isolated pages when allocate TVP [1/1]
PD#SWPL-2933
Problem:
When allocate CMA pages in buildroot enverioment, system will
hung in congestion_wait:
Call trace:
[<
ffffff8009086a78>] __switch_to+0xa0/0xc8
[<
ffffff8009de3eb8>] __schedule+0x268/0x7d8
[<
ffffff8009de4464>] schedule+0x3c/0xa0
[<
ffffff8009de7c9c>] schedule_timeout+0x1b4/0x448
[<
ffffff8009de3be8>] io_schedule_timeout+0x98/0x100
[<
ffffff80091e3fb8>] congestion_wait+0x90/0x190
[<
ffffff80091ebcf4>] isolate_migratepages_block+0x7ec/0x890
[<
ffffff80091ec794>] isolate_migratepages_range+0x8c/0x100
[<
ffffff8009a8f34c>] aml_alloc_contig_migrate_range+0x104/0x158
[<
ffffff8009a8f518>] cma_boost_work_func+0x178/0x270
[<
ffffff80090cc228>] kthread+0xf8/0x110
[<
ffffff80090836c0>] ret_from_fork+0x10/0x50
Solution:
subtract isolated CMA pages when allocation large CMA for TVP.
Verify:
local
Change-Id: I96153cf104abb009a8965c2230a5242e495dd031
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
pengcheng chen [Mon, 26 Nov 2018 12:14:26 +0000 (20:14 +0800)]
osd: fix afbc dd length error issue [1/1]
PD#SWPL-2674
Problem:
fix afbc dd length error issue
Solution:
add afbc_len to set screen_size
Verify:
verified on g12a-u200
Change-Id: I00df7945f0f928efe2b8be88c56f10f20bb1700f
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
Hongmin Hua [Fri, 30 Nov 2018 07:55:59 +0000 (15:55 +0800)]
cec: set the phy port the same as ui id [2/2]
PD#SWPL-2685
Problem:
the atom switch wrong channel when wakeup by device
Solution:
set the phy port the same as ui id
Verify:
atom
Change-Id: I4e43f83af5bb30a2388df7e7030f135c3f0830ad
Signed-off-by: Hongmin Hua <hongmin.hua@amlogic.com>
Jian Hu [Wed, 5 Dec 2018 08:48:19 +0000 (16:48 +0800)]
clk: g12a: add gen clock [1/1]
PD#OTT-1025
Problem:
not support gen clock
Solution:
add gen clock
Verify:
test passed on g12a u200
Change-Id: I5199289d3cd1483fffbbd41f8d104369214ba302
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
Xingyu Chen [Wed, 5 Dec 2018 11:13:21 +0000 (19:13 +0800)]
pinctrl: meson: add gen_clk_ee/ao pin groups for G12A/B [1/1]
PD#OTT-1025
Problem:
don't support gen_clk_ee and gen_clk_ao pin groups
Solution:
add gen_clk_ee/ao pin groups according to the corepinmux document
Verify:
test pass on U200
Change-Id: Ia3e61079def285c482d8dc4957b5f9e7db35847d
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
tao zeng [Mon, 15 Oct 2018 07:20:38 +0000 (15:20 +0800)]
mm: optimize thread stack usage on arm64 [1/1]
PD#SWPL-1219
Problem:
On arm64, thread stack is 16KB for each task. If running task number
is large, this type of memory may over 40MB. It's a large amount on
small memory platform. But most case thread only use less 4KB stack.
It's waste of memory and we need optimize it.
Solution:
1. Pre-allocate a vmalloc address space for task stack;
2. Only map 1st page for stack and handle page fault in EL1
when stack growth triggered exception;
3. handle stack switch for exception.
Verify:
p212
Change-Id: I47f511ccfa2868d982bc10a820ed6435b6d52ba9
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
Jihong Sui [Tue, 4 Dec 2018 09:51:39 +0000 (17:51 +0800)]
deinterlace: deinterlace: fix coverity error [1/1]
PD#SWPL-2863
Problem:
cdev_add without checking return value.
Solution:
add check
Verify:
p212
Change-Id: Ib1d96f6e5ee07dd28f67eb4ee77acb6580a1f877
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
Jihong Sui [Tue, 4 Dec 2018 09:25:29 +0000 (17:25 +0800)]
deinterlace: deinterlace: set post_ctrl when no mirror [1/1]
PD#SWPL-1076
Problem:
Kplayer 4KDemo.mp4, show green screen.
Solution:
add DI_IF1_GEN_REG set when no mirror
Verify:
p212
Change-Id: I2cfb27068393832fb47498ebdb9b93349f1fe635
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
Pengcheng Chen [Wed, 5 Dec 2018 05:45:55 +0000 (13:45 +0800)]
osd: add osd log module control [2/2]
PD#SWPL-2551
Problem:
add osd log module control
Solution:
add osd log module control
Verify:
verified on P212
Change-Id: Iadbf795cb7afe4ddcab0f9283b9c7f542eca0b29
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Jian Cao [Wed, 5 Dec 2018 07:31:30 +0000 (15:31 +0800)]
osd: range of mouse is wrong under 4K mode [1/2]
PD#SWPL-2551
Problem:
range of mouse is wrong under 4K mode
Solution:
new cursor coordinate paras without using scale
add osd_cursor_hw_no_scale() to deal with it.
Verify:
verified on P212
Change-Id: I1748df569b96522eb58dc00af862983bca17815a
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Tao Guo [Sun, 4 Nov 2018 03:22:49 +0000 (03:22 +0000)]
media: add get free handle cmd [4/9]
PD#SWPL-1081
Problem:
Need get freed handle for DRM frame mode
Solution:
Add ioctl cmd to get freed handle
Verify:
P212
Change-Id: Ic0ce64061e334fdea5580d9f92b3e0b58caa88eb
Signed-off-by: Tao Guo <tao.guo@amlogic.com>
Evoke Zhang [Fri, 23 Nov 2018 13:55:44 +0000 (21:55 +0800)]
lcd: mipi_dsi: update clk_post timing for dphy [1/1]
PD#SWPL-2436
Problem:
sometime the dphy clk_post is not match spec
Solution:
update clk_post config
Verify:
w400
Change-Id: Ib6b585f833bf923e72109991509915f4ad35d316
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>