Liang Ji [Thu, 7 Mar 2019 03:08:25 +0000 (11:08 +0800)]
avb_ab: add avb check for product product [1/2]
PD#SWPL-6168
Problem:
avb+abupdate with care map.txt cann't boot up
because of check product partition
Solution:
add avb for product partition in dts
Verify:
ampere
Change-Id: I0310853965340d9b810a89cbf1719f9ba002261d
Signed-off-by: Liang Ji <liang.ji@amlogic.com>
shuanglong.wang [Fri, 22 Mar 2019 02:36:38 +0000 (10:36 +0800)]
video: hold frame for non-tunnel mode [1/1]
PD#SWPL-6179
Problem:
PLAY-AL1-30FPS-HEAAC exist multi short frame every 16.6s
Solution:
Hold one frame in case occur pattern broken. Problem occur as this,
for non-tunnel mode, amlvideo vidioc_dqbuf in omx so fast, then lead
decoder buffer quickly pushed to amlvideo queue with only current frame,
without next frame. Hold one frame we need next frame and next frame pts
after next frame, here we use next frame pts and a crease with duraion
as next next frame pts.
Verify:
verify by u212
Change-Id: Ie98c30791e785abb886aa19a7e930d191f5c2b3e
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
Chuangcheng Peng [Fri, 22 Mar 2019 10:08:48 +0000 (18:08 +0800)]
dvb: sm1 bringup add one asyncfifo [2/2]
PD#SWPL-5403
Problem:
demux add one asyncfifo, need compatile
Solution:
demux compatile with previous code.
Verify:
verify at sm1
Change-Id: Iea0b7b5f69d3200062b9e757f2712b98926fb3b9
Signed-off-by: Chuangcheng Peng <chuangcheng.peng@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Zhe Wang [Thu, 28 Mar 2019 10:31:04 +0000 (18:31 +0800)]
audio: support 16ch i2s playback for SM1 [1/1]
PD#SWPL-5430
Problem:
new function lane 6 and lane 8
Solution:
support max 16 channel playback
Verify:
sm1_ac200, verify pass
Change-Id: I3af42a0b68bca8804afa042ad4a506a379b9bf86
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
Huan Biao [Tue, 2 Apr 2019 10:56:10 +0000 (18:56 +0800)]
thermal: move thermal dts for sm1 [1/1]
PD#SWPL-6675
Problem:
sm1 thermal dts issue
Solution:
move thermal dts for dtsi to board dts
Verify:
test pass on sm1_ac200
Change-Id: I3fa5f2f4b15bc78d322d94402b8d0894fd8cbd35
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
Jianxin Pan [Wed, 3 Apr 2019 10:53:20 +0000 (18:53 +0800)]
debug: enable ftrace_ramoops [1/2]
PD#SWPL-6028
Problem:
enable ftrce in ramoops
Solution:
enable ftrce in ramoops
Verify:
u200
Change-Id: I2403bf82c342416b7c34f2115b14dce623406997
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
dts: debug: enable ftrace_ramoops for new dts [1/1]
PD#SWPL-6028
Problem:
enable ftrce in ramoops for new dtbs
Solution:
enable ftrce in ramoops for new dtbs
Verify:
X301
Change-Id: I0643329a873a310d1078ebd898fec2d3cb75d43c
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Hong Guo [Fri, 15 Mar 2019 07:06:25 +0000 (15:06 +0800)]
cpufreq: dts: adjust cpufreq table for g12b [1/1]
PD#SWPL-5975
Problem:
adjust cpufreq table for g12b
Solution:
adjust cpufreq table for g12b
Verify:
test pass on g12b_w400
Change-Id: I037ab2a1718a2aae0f42a15b7d95f163bc77ca85
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
Gongwei Chen [Thu, 21 Mar 2019 12:17:49 +0000 (20:17 +0800)]
dts: g12a and g12b no audio output [1/1]
PD#SWPL-6171
Problem:
no audio output
Solution:
modify dts spdifout_a_mute
Verify:
Verify by Android P AOSP fermi
Change-Id: Ie19d22326154b8f59ce06dce994f8dd072e93170
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Xing Wang [Sat, 23 Mar 2019 10:12:24 +0000 (18:12 +0800)]
audio: auge: support earc rx for sm1 [1/2]
PD#SWPL-5389
Problem:
earc rx dmac reset and clk issue
Solution:
fix earc rx dmac and clk
Verify:
ac200
Change-Id: Ie8e5582f1ee358a8cf694965c9963ae1eeb6685a
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Zhe Wang [Fri, 29 Mar 2019 09:21:05 +0000 (17:21 +0800)]
audio: fixed conflict of SM1-bringup and mainline [1/1]
PD#SWPL-6486
Problem:
merge to mainline conflict.
Solution:
add clk change in dts
Verify:
sm1_ac200, verify pass
Change-Id: I37e7317cd795cd8cb9815ff20db49bc8644f0087
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
Xing Wang [Thu, 21 Mar 2019 14:52:17 +0000 (22:52 +0800)]
audio: auge: support av out and amp spk for sm1 [1/2]
PD#SWPL-6192
Problem:
no sound from av and amp spk
Solution:
1) fix tocodec for sm1
2) add no mclk control for ad82584
Verify:
ac200
Change-Id: I63f0ec94d2f5b980249ac5c9c810c8e4d8410ea3
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Xing Wang [Wed, 20 Mar 2019 14:44:51 +0000 (22:44 +0800)]
audio: auge: add sound card for sm1 [2/2]
PD#SWPL-6151
Problem:
sound card for sm1
Solution:
add sound card for sm1
Verify:
ac200
Change-Id: I4f65472af7a8399fb6fe003db608158e11bed566
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Xing Wang [Wed, 20 Mar 2019 14:11:44 +0000 (22:11 +0800)]
dts: sm1: add sound card config [1/2]
PD#SWPL-6151
Problem:
sound card for sm1
Solution:
add sound card for sm1
Verify:
ac200
Change-Id: I1de0cfe1748d401ab0e21b0a244def37b277b1ff
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
yujie.wu [Mon, 21 Jan 2019 09:25:19 +0000 (17:25 +0800)]
audio: Add HBR audio info for HDMI input [2/3]
PD#SWPL-3435
Problem:
P321 doesn't support DTS HD decoding
Solution:
In HDMI RX module, we add a new field to
indicate whether the input audio is HBR.
With this info, hal can enable the PAO
mode to decode the HBR audio.
Verify:
P321
Change-Id: I6fd180e6636905f5119fe1d313214d4b56d07d5e
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
audio: codec: The tl1_acodec_probe takes 340ms time [1/1]
PD#SWPL-4345
Problem:
The tl1_acodec_probe operation takes 340ms time
Solution:
Using workqueue to replace the msleep func
Verify:
verify on T962x2_X309 board
Change-Id: I5316beb8a0e94ae022c948ec112b6fb219050212
Signed-off-by: Shuyu Li <shuyu.li@amlogic.com>
audio: auge: fix hw resample crash when pcm disabled [1/1]
PD#SWPL-4387
Problem:
system would reboot when carshed by hw resample
Solution:
actrl of toddr is modified to null pointer, so it leads to crash.
fix to pass toddr pointer to function, not fetched by resample module.
Verify:
x301
Change-Id: I91c30260ee825d843e8ed17304031382b42ac119
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
audio: fix tas5808 no sound [1/1]
PD#SWPL-3081
Problem:
1,lack suspend/resume function
2,lack reset pin control
Solution:
1,add suspend/resume function
2, add reset pin control
Verify:
962x2
Signed-off-by: Che Song <che.song@amlogic.com>
Change-Id: I1cb920fdba4ad32048518fdad93e3a5a81039dd9
audio: Fix Linein Not work [2/2]
PD#SWPL-4737
Problem:
HDMI in and Line in use the same device.
But their input I2S inskew is not same.
Solution:
We need use separate skew setting for different
source.
Verify:
A113
Change-Id: I8e306af06d9c9d614c4032f2030dbedb64a7f6df
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
audio: Add binv setting [1/2]
PD#SWPL-4733
Problem:
The Speaker has noise
Solution:
The binv is not correct for TDM out c,
we will use amixer to set it
Verify:
A113
Change-Id: I7c8af8e00e3c8834533347947630a6944b7e2136
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
dts: Add new dts files for S400 SBR [1/3]
PD#SWPL-4435
Problem:
adapt Soundbar solution to S400 SBR platform
Solution:
new dts file axg_s400_v03sbr.dts changed from axg_s400_v03.dts
add reference remote control mapping in mesonaxg.dtsi
add tas5782m
Verify:
S400+D621 A113D
Change-Id: I6feee3993192656eb66b7ee5a9ff6c85d22075e4
Signed-off-by: bing.jiang <bing.jiang@amlogic.com>
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
audio: auge: fix spdifout clk for share buffer [1/1]
PD#SWPL-4278
Problem:
spdif out clk is related to tdm clk for share buffer.
For play raw data 32k/44.1k, it's not correct for spdif out clk.
Solution:
separate spdif out clk and tdm clk
Verify:
x301
Change-Id: Ie6e3d7413d9577c9c80ea90e8b1f9ff4bf3eefcf
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Revert "audio: fix samesource clk after play DDP [1/1]"
This reverts commit
aeb98641dfb4149cadf6590c0fb02fc2befdef28.
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Conflicts:
sound/soc/amlogic/auge/spdif_hw.c
Revert "audio: audio glitch at tdm startup [1/1]"
This reverts commit
47425f47c1fb2fed6ee60abcfad1921f37d3f51a.
audio: audio glitch at tdm startup [1/1]
PD#SWPL-5219
Problem:
audio glitch at tdm startup
Solution:
Pad 0 data to clear the remaining data
in the module.
Verify:
Local tested.
Change-Id: Iab526c6893a32030799567b57e05e7bb11b8fea0
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
audio: auge: fix spdif reset when used for share buffer [1/1]
PD#SWPL-3655
Problem:
spdif output 8 channel, channel map in wrong order.
Solution:
reset spdif before enable as soon as quickly.
modification is limited for tl1 now
Verify:
x301
Change-Id: I224032390404be85c77d7436a9be9148df09c997
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
audio: auge: modify share buffer can be occupied by later module [1/2]
PD#SWPL-5300
Problem:
share buffer is not alaway used for tdm and spdif,
but raw data needs to output by spdif.
this would lead to spk silence for dual output
Solution:
share buffer can be occupied by later module.
when tdm and spdif output in share buffer, then play spdif,
spdif will release from share buffer,
only frddr is only used for tdm, another new frddr is used for spdif.
Verify:
x301
Change-Id: Ib0c2e02e575f496c0b0911d347857ede0d0cfa14
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
audio: add kcontrol of EQ setting [1/2]
PD#TV-1808,TV-1809,TV-1810,TV-1811
Problem:
HW EQ on TL1 doesn't work
Solution:
Add kcontrol of EQ setting and getting
Verify:
test on X301
Change-Id: Iea1525b4a57241a99389c746c0238d96424df316
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
audio: Add tas5782 volume control [1/1]
PD#SWPL-4734
Problem:
There is no volume control for tas5782
Solution:
Add ch1/ch2 volume control for tas5782
Verify:
A113
Change-Id: I1e866a2bc024713278aea0c19cc8c91084a24b90
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
audio: Merge code from RSR project [1/2]
PD#SWPL-5495
Problem:
There is some improvement code on RSR
project, we need to merge them back to
trunk.
Solution:
Merge the code from rsr branch
Verify:
A113
Change-Id: I0ba11c8ff412db659ff2f10bfc00d63c49f84bb5
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
audio: Add PDM lane mask [1/1]
PD#SWPL-5594
Problem:
The PDM input channel is not always in the
first lane, we need a mask to detect which
lane to use
Solution:
Add lane config in PDM module
Add lane-mask-in in W411 config
Verify:
W411
Change-Id: I48ca5927402282611ba5e225d75d034eeceacad6
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
audio: tune audio volume slew time [1/1]
PD#SWPL-5845
Problem:
audio playback too slow
Solution:
change audio volume slew time
Verify:
Locally test on X301
Change-Id: I48c920037cac852aaa01818bb02eaa8991c1df6b
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
audio: fix H-voltage when tdm disable [1/1]
PD#SWPL-2952
Problem:
High voltage will cause the tdmout
data pin wrong I2S data which cause pop.
Solution:
Disable the bias of gpio.
Verify:
I2S data will be low when I2s closed.
Change-Id: If5d68e0f30df074f528dfec21cbe297795bc4ea7
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
audio: add spdif/HDMI mute ctrl [1/1]
PD#TV-3016
Problem:
HDMI SPDIF mute interface has no effect.
Solution:
Add these interfaces for auge platform.
Verify:
Tested locally.
Change-Id: I168c0940e0f2b3d94091d43c6b8190f6f833c0f1
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
audio: auge: fix PAO for frhdmirx [1/2]
PD#SWPL-4010
Problem:
Not detect audio type by PAO for frhdmirx
Solution:
Add hw detect for frdhmirx PAO
audio type is checked by hw for PCM too
Verify:
x301
Change-Id: Ib60d738c69f336866250a8181609503912bf0485
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
audio: Add Mute function for tas5782 [1/1]
PD#SWPL-5961
Problem:
There is no mute control for tas5782
Solution:
Add mute function for tas 5782
Verify:
A113
Change-Id: I75f8b82a359778f28494636fe76c7bc4db848643
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
audio: Image signal delay of 1.5 seconds when switching to AV source [1/2]
PD#TV-3067
Problem:
Image signal delay of 1.5 seconds when switching to AV source.
Solution:
1.add av audio control for audio patch.
Verify:
verified by x301
Change-Id: I3e820923a26439b3aeb9841562b81cd6d55ed4ea
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
audio: add I2S samesrc channel mapping to spdif [1/1]
PD#SWPL-6147
Problem:
I2S has 8 channels but spdif only 2.
Need map every single i2s lane to spdif sharebuffer.
Solution:
Add the DTS setting MASKS as former does.
Verify:
Local tested.
Change-Id: If212fc1b9c937a42778682948773874951b8a55a
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
audio: add soc DRC tune interface [1/3]
PD#SWPL-5904
Problem:
Audio DRC in SOC is out of work
Solution:
Add DRC tune interface
Verify:
Verify on X301
Change-Id: I5e8ecc6dafd7fc3805b0c3e60a6ec4c945729119
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
audio: auge: transfer audio data to wake word algorithm [1/3]
PD#TV-3389
Problem:
add vad wake engine in kernel
Solution:
transfer audio data to wake engine
Verify:
x301
Change-Id: I7f44d0141141775bb40f01dbc344a295a72c9d87
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
audio: add tdm and spdif clk fine tuning interface [1/1]
PD#SWPL-5518
Problem:
In DTV passthrough, the output clk drifts from input
Solution:
add clk fine tuning interface
Verify:
verify by X301
Change-Id: I969d3eb865fb1aba90f155965548454cc3040c99
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
Hong Guo [Mon, 25 Mar 2019 09:08:59 +0000 (17:08 +0800)]
CPUFREQ: update cpufreq tables for sm1. [1/1]
PD#SWPL-6205
Problem:
update cpufreq tables.
Solution:
update cpufreq tables.
Verify:
sm1_ac200, verify pass
Change-Id: I360264df88981a16267a20896f97c93dbd0e4b37
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Hong Guo [Fri, 22 Mar 2019 06:09:36 +0000 (14:09 +0800)]
CPUFREQ: delete different cpufreq tables for sm1. [1/1]
PD#SWPL-6205
Problem:
delete different cpufreq tables.
Solution:
delete different cpufreq tables.
Verify:
sm1_ac200, verify pass
Change-Id: I99142d2f99847f45eafc876a1b2d785a28815e15
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
Hang Cheng [Fri, 22 Mar 2019 07:58:50 +0000 (15:58 +0800)]
cec: add change for sm1 [1/1]
PD#SWPL-5419
Problem:
cec change for sm1
Solution:
add cec change for sm1
Verify:
ac200
Change-Id: Ic808e4bd128358b7f10c7f0b21a629d72f1c71cc
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Brian Zhu [Tue, 19 Mar 2019 16:13:20 +0000 (00:13 +0800)]
vpp: sm1: add vpp and sr support [1/1]
PD#SWPL-6101
Problem:
Need vpp and sr supprt for sm1
Solution:
add support for sm1
Verify:
test pass on sm1 ac200
Change-Id: I038ceba52a0b47512767e851d0047a3ee36e351c
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Brian Zhu [Mon, 3 Dec 2018 14:04:24 +0000 (22:04 +0800)]
vpp: sr: remove the vpp misc operation in sr function [1/1]
PD#SWPL-2613
Problem:
sr mux in vpp misc is set incorrectly.
Solution:
move the vpp misc operation together
Verify:
verify by x301
Change-Id: Ie813e5b04b97a4481c2e45bcf0c8b4c065fb9f69
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Jian Cao [Thu, 28 Mar 2019 09:42:39 +0000 (17:42 +0800)]
ge2d: sm1: add ge2d power control [1/1]
PD#SWPL-6186
Problem:
add ge2d power control
Solution:
add ge2d power control
Verify:
SM1-AC200 board
Change-Id: I3ea08c4d800f78e5187b6ae334849db02309ce0e
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Yue Wang [Fri, 29 Mar 2019 09:32:18 +0000 (17:32 +0800)]
usb: add usb power control [1/1]
PD#SWPL-6186
Problem:
add usb power control
Solution:
add usb power control
Verify:
sm1
Test: pass
Change-Id: I6c2822105ae02f955e56dc4d64163e8e14a7e329
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
Shunzhou Jiang [Thu, 21 Mar 2019 09:43:57 +0000 (17:43 +0800)]
power: sm1: add power control driver [1/1]
PD#SWPL-6186
Problem:
add power control register
Solution:
avoid same register access at the same time
Verify:
sm1_skt
Change-Id: I0ec61cda9721c1b95a9d78f7884458f442581fe5
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Nian Jing [Wed, 20 Mar 2019 03:26:28 +0000 (11:26 +0800)]
cvbs: add cvbs support for sm1 [1/1]
PD#SWPL-6112
Problem:
need add cvbsout support for sm1
Solution:
add cvbsout support for sm1
Verify:
sm1
Change-Id: I037fbdb41b823d9ef93a9069f3798f8d38ac5796
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Nanxin.Qin [Wed, 20 Mar 2019 07:46:56 +0000 (15:46 +0800)]
dts: update chip name. [2/2]
PD#SWPL-5261
Problem:
update chip name.
Solution:
the chip name used for media modules.
Verify:
AC200
Change-Id: I229ca3f991b29fdebf10f98dff5173768b910aaa
Signed-off-by: Nanxin.Qin <nanxin.qin@amlogic.com>
Evoke Zhang [Tue, 19 Mar 2019 04:38:30 +0000 (12:38 +0800)]
vpu: fix mem_pd reg addr mistake [1/1]
PD#SWPL-5857
Problem:
vpu_mem_pd register address changed
Solution:
update vpu_mem_pd register address for sm1
Verify:
pxp
Change-Id: Iefcb190b40a5ac949351a4c88bea502e437cd59f
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
Evoke Zhang [Thu, 14 Mar 2019 04:30:44 +0000 (12:30 +0800)]
vpu: add vpu support for sm1 [1/1]
PD#SWPL-5857
Problem:
sm1 is a new chip
Solution:
add sm1 support for vpu driver
Verify:
pxp
Change-Id: I88966a26fb4f8f90620081c4d9a86ad21a6e03fc
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
cancan.chang [Fri, 29 Mar 2019 10:00:49 +0000 (18:00 +0800)]
usb: add NN power control [1/1]
PD#SWPL-5380
Problem:
add NN power control
Solution:
add NN power control
Verify:
sm1
Test: pass
Change-Id: I729d782181490fc31b0b18bb27718ad12b3937c0
Signed-off-by: cancan.chang <cancan.chang@amlogic.com>
cancan.chang [Mon, 25 Mar 2019 10:42:53 +0000 (18:42 +0800)]
NNA: add NNA support on sm1 [1/1]
PD#SWPL-5380
Problem:
sm1 not support NNA now.
Solution:
add NNA support.
Verify:
sm1_ac200 & sm1_skt
Change-Id: I3de566bbc730ef69f26160ad9f915ac92b4f2e2b
Signed-off-by: Cancan Chang <cancan.chang@amlogic.com>
Jian Cao [Wed, 20 Mar 2019 09:37:08 +0000 (17:37 +0800)]
ge2d: change ge2d to independent power [1/1]
PD#SWPL-5391
Problem:
change ge2d to independent power
Solution:
add independent power switch
Verify:
verified on SM1-AC200 board
Change-Id: Ifce980fc88753db63317c11bc1126e492b677a64
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Tao Guo [Wed, 16 Jan 2019 09:11:54 +0000 (17:11 +0800)]
debug: add atrace support [1/1]
PD#SWPL-4956
Problem:
Need atrace to debug multimedia issue
Solution:
Add atrace functions
Verify:
P212
Change-Id: Ieee441fc75b6f83e8e8a22350a402ec7e77f1134
Signed-off-by: Tao Guo <tao.guo@amlogic.com>
Yi Zhou [Mon, 18 Mar 2019 08:53:42 +0000 (16:53 +0800)]
dv: dv bringup for sm1 [1/1]
PD#SWPL-5408
Problem:
dv bringup for sm1
Solution:
dv bringup for sm1, add chip id
Verify:
sm1 ptm
Change-Id: Ifbf175cb5c495949f5e4bd02b98690f08239a735
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
Yi Zhou [Mon, 4 Mar 2019 10:57:46 +0000 (18:57 +0800)]
hdmitx: hdmitx bringup for sm1 [1/1]
PD#SWPL-5408
Problem:
hdmitx bringup for sm1
Solution:
hdmitx bringup for sm1, add chip id
Verify:
sm1 ptm
Change-Id: I804dec4b743c660b180b7061d110ab76b9ec0468
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
Pengcheng Chen [Wed, 20 Mar 2019 02:36:09 +0000 (10:36 +0800)]
osd: add osd SM1 feature [1/1]
PD#SWPL-6106
Problem:
bring up osd for SM1
Solution:
add osd SM1 feature
Verify:
Verified on SM1-AC200
Change-Id: I5cba13f7539e48f6cba1ca0fb3abcaad2ba8494d
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Qianggui Song [Fri, 8 Mar 2019 07:52:57 +0000 (15:52 +0800)]
pinctrl: add extra pins for sm1 base on g12b [1/1]
PD#SWPL-5405
Problem:
sm1 add some new pins base on g12b, pinmux need update.
Solution:
update extra pins to g12b pinmux.
Verify:
pxp
Change-Id: Idbdddb1e64ffb4e5a63ee3a69b5fc40e7ecfcc44
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
Jian Cao [Tue, 19 Mar 2019 11:26:04 +0000 (19:26 +0800)]
media: add codec support for SM1 [1/1]
PD#SWPL-2867
Problem:
bringup codec for SM1.
Solution:
add the register ops for SM1
Verify:
Verified on SM1-AC200
Change-Id: I31db8f0b5816d67664e8161b3dc73574909afe31
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Qiang Li [Wed, 20 Mar 2019 15:21:45 +0000 (23:21 +0800)]
dts: sm1: dts enable sdio node. [1/1]
PD#SWPL-5409
Problem:
dts sdio node disable.
Solution:
dts enable sdio node.
Verify:
SM1_AC200
Change-Id: Ifd33de0f08adb202af07eee13db8894fdf0c77fa
Signed-off-by: Qiang Li <qiang.li@amlogic.com>
Qiang Li [Wed, 20 Mar 2019 03:15:04 +0000 (11:15 +0800)]
sdcard: sm1: fix dts problem. [2/2]
PD#SWPL-5409
Problem:
dts compile error.
Solution:
delect sd_emmc_b2 node.
Verify:
SM1_AC200
Change-Id: Ib3965a083fdc3f95a5c0a9de37bff98c898d0993
Signed-off-by: Qiang Li <qiang.li@amlogic.com>
Qiang Li [Tue, 19 Mar 2019 06:44:14 +0000 (14:44 +0800)]
sdcard: sm1: add sdcard support. [1/2]
PD#SWPL-5409
Problem:
sm1 sdcard failed.
Solution:
change sm1 sdcard high speed mode co_phase.
Verify:
SM1_AC200
Change-Id: I295c6fac2594e611bf278f83a97bb503fb8bb13b
Signed-off-by: Qiang Li <qiang.li@amlogic.com>
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Huan Biao [Tue, 19 Mar 2019 07:53:11 +0000 (15:53 +0800)]
thermal: dts: enable sm1 thermal [1/1]
PD#SWPL-6071
Problem:
enable thermal for sm1
Solution:
enable thermal for sm1
Verify:
test pass on sm1_skt
Change-Id: I54fd4431bec1a48135da0b0b9c05cd53d4055a56
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
Qianggui Song [Fri, 8 Mar 2019 07:40:42 +0000 (15:40 +0800)]
irqchip: sm1 support double-edge gpio irq trigger [1/1]
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>
Shunzhou Jiang [Fri, 22 Mar 2019 11:09:42 +0000 (19:09 +0800)]
clk: sm1: add sm1 special clk [1/1]
PD#SWPL-5407
Problem:
not include sm1 special defined clk
Solution:
add this clk
Verify:
sm1_skt
Change-Id: Iaf20aebe377d077d95eb053f7eea99473e3ac45d
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
Shunzhou Jiang [Wed, 20 Mar 2019 07:33:25 +0000 (15:33 +0800)]
clk: sm1: add clk measure driver [1/2]
PD#SWPL-5407
Problem:
sm1 support clk measure
Solution:
support clk measure
Verify:
ac200
Change-Id: I43c74375c16fee73037a1df4e4531c429e1229fd
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
Shunzhou Jiang [Tue, 19 Mar 2019 07:13:53 +0000 (15:13 +0800)]
clk: sm1: add clk measure driver [2/2]
PD#SWPL-5407
Problem:
sm1 support clk measure
Solution:
support clk measure
Verify:
ac200
Change-Id: If87c7c0bc53c8e2bcbf58a685f9ef7ac75462a70
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
Shunzhou Jiang [Wed, 6 Mar 2019 06:10:20 +0000 (14:10 +0800)]
clk: sm1: add clk driver [1/1]
PD#SWPL-5407
Problem:
sm1 not have clk driver
Solution:
add clk driver
Verify:
PxP
Change-Id: Id48257d88ef200fd4adb309bf2e4ada1be407753
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
Yue Wang [Wed, 20 Mar 2019 07:24:46 +0000 (15:24 +0800)]
usb: modify usb dts for sm1 [1/1]
PD#SWPL-5385
Problem:
SM1 bring up
Solution:
modify usb dts for SM1 bringup
Verify:
g12a
Test: pass
Change-Id: Ie6f2925315ce12b3ad2964cf85aa3f4cee4bf2a7
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
Yong Qin [Fri, 22 Mar 2019 12:41:15 +0000 (20:41 +0800)]
di: add di for sm1 bringup [1/1]
PD#SWPL-5865
Problem:
SM1 bring up
Solution:
add the chipid
Verify:
sm
Change-Id: I9b738efea210b4fb3deb2dab9de6a443aabadb53
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Conflicts:
drivers/amlogic/media/deinterlace/deinterlace.c
drivers/amlogic/media/deinterlace/deinterlace_dbg.c
drivers/amlogic/media/deinterlace/deinterlace_hw.c
drivers/amlogic/media/deinterlace/nr_drv.c
Jianxiong Pan [Fri, 22 Mar 2019 06:48:48 +0000 (14:48 +0800)]
dts: add dts-id for sm1 and g12a_u200. [1/1]
PD#SWPL-5865
Problem:
add dts-id for sm1 and g12a.
Solution:
sm1_ac200_2g
g12a_u200_1g
g12a_u200_2g
Verify:
no test.
Change-Id: Id09b2b811529d11b85898e5f3e83f558dc7ba5f6
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Hanjie Lin [Fri, 22 Mar 2019 06:04:22 +0000 (14:04 +0800)]
dts: arm: disable cpu idle [1/1]
PD#SWPL-5865
Problem:
SM1 bring up
Solution:
cpu idle has not ready, disable it
Verify:
AC200
Change-Id: I5dd4bf8d2940587b10b8c85ff64122ce931bfb85
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
zhiqiang liang [Wed, 20 Mar 2019 07:00:40 +0000 (15:00 +0800)]
cpu: add the cpuid check interface [1/1]
PD#SWPL-5865
Problem:
SM1 bring up
Solution:
add the cpuid check interface
Verify:
AC200
Change-Id: Ifa7dd8fb0b6ec621411652acf6b799e69c4069b7
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
zhiqiang liang [Mon, 18 Mar 2019 14:50:37 +0000 (22:50 +0800)]
dts: modify the dts for skt and ac200 board [1/1]
PD#SWPL-5865
Problem:
SM1 bring up
Solution:
modify the dts for skt and ac200 board
Verify:
AC200
Change-Id: I5e5d52329d7a190ad2b4bd967be837b4ae91ea11
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
zhiqiang liang [Mon, 18 Mar 2019 13:01:31 +0000 (21:01 +0800)]
dts: add the chipid for sm1 bringup [1/1]
PD#SWPL-5865
Problem:
SM1 bring up
Solution:
add the chipid
Verify:
PxP
Change-Id: I7164a4fff39932f81de1b5c4404f1ad0d878484c
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
Jianxiong Pan [Mon, 18 Mar 2019 06:53:06 +0000 (14:53 +0800)]
dts: sm1: add sm1_s905d3_ac200 and sm1_s905d3_skt dts. [1/1]
PD#SWPL-5865
Problem:
add sm1 dts.
Solution:
copy from g12a_s905d2_u200.dts.
Verify:
no.
Change-Id: Idcd997d2c1a52a247c55ad41b557941314dfcb2c
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
zhiqiang liang [Fri, 15 Mar 2019 07:07:16 +0000 (15:07 +0800)]
dts: add the partition info for sm1 bringup [1/1]
PD#SWPL-5865
Problem:
SM1 bring up
Solution:
add the partition info
Verify:
PxP
Change-Id: I779369d92780f9380cb634a90cabb012df11859d
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
Jiyu Yang [Wed, 13 Mar 2019 02:30:06 +0000 (10:30 +0800)]
dts: use mesong12a-bifrost instead [1/1]
PD#SWPL-5865
Problem:
SM1 bring up
Solution:
commit dts for SM1 bringup
Verify:
PxP
Change-Id: Ifdbc751e2fa9ecb3d747c114ac820ab60021294d
Signed-off-by: Jiyu Yang <Jiyu.Yang@amlogic.com>
zhiqiang liang [Wed, 13 Mar 2019 03:14:11 +0000 (11:14 +0800)]
dts: modify dts for SM1 bringup with SMP [1/1]
PD#SWPL-5865
Problem:
SM1 bring up
Solution:
modify dts for SM1 bringup with smp
Verify:
PxP
Change-Id: Ie83ad7434acfb8c6232a8e373dfc63ef0ba9b87e
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
zhiqiang liang [Tue, 12 Mar 2019 07:20:22 +0000 (15:20 +0800)]
dts: rename dts for SM1 bringup [1/1]
PD#SWPL-5865
Problem:
SM1 bring up
Solution:
rename dts for SM1 bringup
Verify:
PxP
Change-Id: I991b6a0fb65cf9a03c6cb75a1ad8823a067e6bdd
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
zhiqiang liang [Mon, 11 Mar 2019 11:46:30 +0000 (19:46 +0800)]
dts: commit dts for SM1 bringup [1/1]
PD#SWPL-5865
Problem:
SM1 bring up
Solution:
commit dts for SM1 bringup
Verify:
PxP
Change-Id: Id117d7ff130c67feb8ca04657d8a4ad463793fed
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Conflicts:
MAINTAINERS
long yu [Wed, 6 Mar 2019 06:21:48 +0000 (14:21 +0800)]
storage: emmc: Compatible with G12B revA and revB [1/1]
PD#SWPL-5575
Problem:
not Compatible with G12B version a and b
Solution:
add revA match-data
Verify:
G12B-W400 RevA and RevB
Change-Id: Iee09861f7b162ee0660ea12dab60a238a9ae6be5
Signed-off-by: long yu <long.yu@amlogic.com>
he.he [Tue, 19 Feb 2019 06:50:29 +0000 (14:50 +0800)]
usb: revB usb EL compliance test [2/1]
PD#SWPL-4941
Problem:
EL27,28,29,31 failed in the el compliance test.
tl1 frameworks test result(USB20CV) failed.
Solution:
Change the parameters (0x10 and 0x38) of usb phy
to solve the el failed problem and modified the
dwc_otg_pcd_handle_enum_done_intr function to solve
the USB20CV failed problem.
Verify:
verify on revB
Test: Pass
Change-Id: I9d7dc6472f95c6bcdf2c031222db4fed25be8a13
Signed-off-by: he.he <he.he@amlogic.com>
Nan Li [Tue, 26 Feb 2019 02:19:07 +0000 (10:19 +0800)]
sdio: set sdio hs mode co_phase [1/1]
PD#SWPL-5152
Problem:
Setup time in sdio highspeed mode of g12a is
inconsistent with the protocol standard.
Solution:
set co_phase = 2.
Verify:
u212
Change-Id: Ifc4576ce83c810c2ae5cbd57fe53d12959a9acca
Signed-off-by: Nan Li <nan.li@amlogic.com>
Luan Yuan [Mon, 1 Apr 2019 05:42:57 +0000 (13:42 +0800)]
config: replace stack protector config [1/1]
PD#SWPL-4617
Problem:
CONFIG_CC_STACKPROTECTOR_STRONG will increase stack size for some large
functions and may cause stack overflow problems or increase real stack
usage after we have enabled VMAP STACK config. But direct remove it
from defconfig will cause CTS fail.
Solution:
using CONFIG_CC_STACKPROTECTOR_STRONG_AMLOGIC for real stack protect
config
Verify:
p212
Change-Id: Ic7d205459523f6156b1014f139b4da31068165ae
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Hong Guo [Thu, 14 Mar 2019 02:55:36 +0000 (10:55 +0800)]
cpufreq: set fixpll to 1G when cpufreq init. [1/1]
PD#SWPL-5392
Problem:
set fixpll to 1G when cpufreq init.
Solution:
set fixpll to 1G when cpufreq init.
Verify:
test pass on A311D-W400
Change-Id: I65eb70b86eca5192f8d153ac59a24a03d6018421
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
Brian Zhu [Sun, 20 Jan 2019 16:19:47 +0000 (00:19 +0800)]
vpp: disable vd2 again if the last vframe is MVC [1/1]
PD#SWPL-4003
Problem:
VD2 keep displaying after keep last frame for mvc streaming
Solution:
check the last frame type and disable vd2 again
Verify:
verify by tl1
Change-Id: Ia2b598331e8f65c02974d41c498408bee40a407e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Rongjun Chen [Thu, 29 Nov 2018 10:40:14 +0000 (18:40 +0800)]
wifi: change mem size to support multi wifi [2/2]
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>
deng.liu [Thu, 14 Mar 2019 11:42:45 +0000 (19:42 +0800)]
common: NN API implementation [1/3]
PD#SWPL-86
Problem:
Android tensorflow lite ,NN API implementation
Solution:
NN API implementation
Verify:
Local on galilei
Change-Id: I699a53b3fa2fd199cea7ef4db2f439ef49536a9c
Signed-off-by: deng.liu <deng.liu@amlogic.com>
Daniel Rosenberg [Fri, 20 Jul 2018 23:11:40 +0000 (16:11 -0700)]
ANDROID: sdcardfs: Change current->fs under lock
PD#SWPL-5666
Problem:
STS test fail
testPocCVE_2018_9515
Solution:
bug:
111641492 from security
Verify:
U212
Change-Id: I79e9894f94880048edaf0f7cfa2d180f65cbcf3b
Reported-by: Jann Horn <jannh@google.com>
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Jiamin Ma [Tue, 19 Feb 2019 10:19:27 +0000 (18:19 +0800)]
debug: fail to show active cpu stacks [1/1]
PD#SWPL-4718
Problem:
Will have "PC=0, LR=0" issue when try to
show active cpu stacks via sysrq
Solution:
Save the addr of current interrupted task's context to the
interrupt stack first, so that we can easily obtain pt_regs
later
Verify:
Locally on Ampere
Change-Id: I1cc5095e0ec356bed90f76cdf9af1b2617ce7834
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
Jiamin Ma [Thu, 31 Jan 2019 08:41:15 +0000 (16:41 +0800)]
debug: fail to show active cpu stacks [1/1]
PD#SWPL-4718
Problem:
The task stack address is not saved to irq_stack_ptr-0x08,
so when switching from irq stack to task stack, we can not
obtain the right task stack address
Solution:
save task stack address to irq_stack_ptr-0x08
Verify:
Locally on Ampere
Change-Id: I8ad9a45cee33681cc00de3a0bb264dbd9f1b859f
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
Tao Zeng [Fri, 15 Feb 2019 06:17:36 +0000 (14:17 +0800)]
mm: close vmap stack print for armv7 [1/1]
PD#SWPL-2681
Problem:
If cpu support idle/hotplug, there are many vmap stack prints:
[ 74.096973@1] cpu 1, vmap stack:[
e8e90000-
e8e91de0]
[ 74.097084@1] cpu 1, irq stack:[
e8e92000-
e8e93de0]
[ 74.105901@3] cpu 3, vmap stack:[
e8ee0000-
e8ee1de0]
[ 74.105984@3] cpu 3, irq stack:[
e8ee2000-
e8ee3de0]
Solution:
Close these debug print
Verify:
P212
Change-Id: I000df1f0952328af9f359f20341eb0fe88590056
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
tao zeng [Fri, 30 Nov 2018 10:01:31 +0000 (18:01 +0800)]
mm: optimize thread stack usage on ARMv7 [1/1]
PD#SWPL-2681
Problem:
Kernel stack usage is large when running many tasks.
Solution:
Map kernel stack to module space and handle page-fault
for stack fault. This can save about 50% memory of stack
usage
Verify:
p212
Change-Id: Ie894bc8f00cb525ddf8ac63c6d99d9c6e937fdc0
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
Nanxin Qin [Tue, 12 Mar 2019 12:35:54 +0000 (20:35 +0800)]
codec_mm: changes the prot of pages to PAGE_KERNEL. [2/2]
PD#SWPL-4597
Problem:
Probabilistic full-screen display mosaic after seek 8K H265
Solution:
alloc mem area with the cached which from the vmap. this way
can improve the efficiency of I/O.
Change-Id: Icf18b9cd57bdc54f832aa827a535399939b28611
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Nanxin Qin [Wed, 30 Jan 2019 03:42:22 +0000 (11:42 +0800)]
codec_mm: fixed some issues of the mem operation. [1/2]
PD#SWPL-3593
Problem:
the memory data might be discordant.
Solution:
1. opitimize the mem mapping and change the page type to nocache.
2. modified the way of flush mem which from lowmem or highmem.
Verify:
x301
Change-Id: I82351c235915c98a86fd201c2ff3994e4d2085ec
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Rong Zhang [Wed, 23 Jan 2019 12:04:29 +0000 (20:04 +0800)]
media_module: vdec [1/1]
PD#OTT-1699
Problem:
not support multi-vdec user data read
Solution:
Add getting available user data vdec interface
Verify:
Verified U212
Change-Id: I9ec65367935ac42a83808db23f2fb08f694e1483
Signed-off-by: Rong Zhang <rong.zhang@amlogic.com>
Jian Hu [Mon, 4 Mar 2019 12:01:08 +0000 (20:01 +0800)]
clkmsr: axg: delete hard code which added during bringup [1/1]
PD#SWPL-5356
Problem:
when cat clkmsr node in sysfs, i2c bus does not work
Solution:
delete hard code
Verify:
verify on axg s400
Change-Id: Ib01f251f4b77685db5a57df395f1c1a75620c07b
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
Zhuo Wang [Tue, 5 Mar 2019 05:45:26 +0000 (13:45 +0800)]
ethernet: remove internal_phy_remove [1/1]
PD#SWPL-5478
Problem:
system will crash rately if not init success
Solution:
remote internal_phy_remove function for chip
later then g12a
Verify:
verify on u200 board
Change-Id: Id6c3bf77c2a448aee9675deff47dc106206146d6
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
Yi Zhou [Wed, 13 Feb 2019 02:34:30 +0000 (10:34 +0800)]
dv: hang when home during DoVi playback [1/1]
PD#SWPL-4406
Problem:
SDR meta size > 0 during DoVi to SDR transition
Solution:
fixed SDR meta size to 0 for SDR
Verify:
u212
Change-Id: I92129163da0df9c81bb508ce56b78268fbd87a2e
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
Kai Song [Wed, 13 Feb 2019 02:12:39 +0000 (10:12 +0800)]
codec_mm: Fix cma clear and rebuild map for codec_mm. [1/1]
PD#172483
Problem:
To avoid A73 core speculative data loading from protected
memory, which triggers SError fault, the mapping of the
protected region should be cleared. In codec_mm driver, the
page structure pointer used to clear the mapping is wrong.
Although the memory is allocated from CMA, because we are
using CMA_res mode the address from CMA_res_pool is actually
a physical address, similar as reserved memory case. As a
result, the mapping to protected address is not cleared.
Solution:
1.Add "mem->from_flags ==
AMPORTS_MEM_FLAGS_FROM_GET_FROM_CMA_RES" case processing.
Verify:
Run YTTV and there is no SError crash after the fix.
Change-Id: Ia912337c1d7d5a55800fc55ad1d61016f9710f4d
Signed-off-by: Kai Song <kai.song@amlogic.com>
Yong Qin [Wed, 13 Mar 2019 06:05:34 +0000 (14:05 +0800)]
di: play 1080i timing always print di err[1/1]
PD#SWPL-5807
Problem:
1080i always print di err,modify di pre idle register
define are wrong
Solution:
1.modify register define according g12a
Verify:
g12a
Change-Id: I13400d8b18e0e85894ba8d10afc0ae119874aab4
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Conflicts:
drivers/amlogic/media/deinterlace/deinterlace.c
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>
Peng Yixin [Sat, 16 Feb 2019 02:23:57 +0000 (10:23 +0800)]
media_module: add function to statistics drop frame on video layer [1/1]
PD#SWPL-1885
Problem:
We need a function to statistics drop frame.
Solution:
Add a function to statistics drop frame.
Verify:
Verified U212
Change-Id: I30b429c2f3710c5c8d0da6ec083060c9cc3e61ad
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Brian Zhu [Sat, 2 Mar 2019 12:52:35 +0000 (20:52 +0800)]
vpp: refresh the vd/osd blend ctrl when enable/disable video [1/1]
PD#SWPL-4932
Problem:
The vd/osd blend ctrl is not correct when disable video
Solution:
Refresh the vd/osd blend ctrl for that case
Verify:
Verified on tl1
Change-Id: I6a7bfc58c810279cdfbf55f3d6a51e94890b4899
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Nanxin Qin [Sat, 26 Jan 2019 17:21:20 +0000 (01:21 +0800)]
tee: add an interface for the teeload with swapping. [1/1]
PD#SWPL-2367
Problem:
building err and issue of compatibility.
Solution:
1. fixed building err without merging media_modules
2. add a new api tee_load_video_fw_swap
Verify:
p212,u212
Change-Id: Ifeedf2f3fa04b2427dccf2ac3940bad6860362d6
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Nanxin Qin [Thu, 20 Dec 2018 08:59:53 +0000 (16:59 +0800)]
tee: add swapping of the fw for the tee loading. [3/7]
PD#SWPL-2367
Problem:
can not playback hevc after update video fw.
Solution:
add swapping of the fw for the tee loading.
Verify:
p212,u212
Change-Id: I698e43ba8e71060f85be4b468c4c61d625f46d4a
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Pengcheng Chen [Tue, 26 Feb 2019 09:08:35 +0000 (17:08 +0800)]
osd: move wait hw vsync for afbc when phy_addr==0 only before chip g12A [1/1]
PD#SWPL-5148
Problem:
bootvideo stuck when starting to play
Solution:
wait hw vsync for afbc when phy_addr==0 only before chip g12A
Verify:
tl1
Change-Id: I883c8f6699729854a852fc70c22b5629aa025c60
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Jian Cao [Thu, 15 Nov 2018 09:37:14 +0000 (17:37 +0800)]
osd: osd: screen blank when boot [1/1]
PD#172587
Problem:
screen blank when boot
Solution:
modify free_scale_switch
Verify:
verified on tl1 dev board
Change-Id: I3c53e832c83c71bd8e98f71fcd654865a467df3c
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Shunzhou Jiang [Thu, 24 Jan 2019 01:46:06 +0000 (09:46 +0800)]
clk: g12a: clear pcie cntl5 for save power [1/1]
PD#SWPL-4583
Problem:
cntl5 caused power increase
Solution:
clear pcie cntl5 when pcie clk disabled
Verify:
test pass on g12a skt
Change-Id: I495590af2ccb81eb5ae90c86008679def8673a70
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
Jianxiong Pan [Fri, 15 Feb 2019 12:07:42 +0000 (20:07 +0800)]
printk: fix print_time bug when run dmesg [1/1]
PD#SWPL-4900
Problem:
printk_prefix() passes NULL buf to print_time() to get the length of
the time prefix; when printk times are enable, the current code just
return "snprint(NULL, 0, "[%5lu.000000]", (unsigned long)ts)"
but in the SMP case, we add cpu core id at the end of time prefix, the
format is "[%5lu, %06lu@%d]", this gives a wrong size(shorter).
this will make buf get out of boundary, when run dmesg.
Solution:
replace [%5lu.000000] with [%5lu.000000@0]
Verify:
g12a-u200
Change-Id: Ic74b9f466b5af5aac7e6569a1afc7a46d9594050
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
changqing.gao [Thu, 21 Feb 2019 09:19:06 +0000 (17:19 +0800)]
mm: The first 1MB mem is wasted for CPU series coming after TXLX [1/1]
PD#SWPL-3744
Problem:
For the previous Amlogic CPU series(before TXLX), the CPU booting vector
locates at physical address starting from 0x00. To avoid influencing cpu
booting procedure, we have to reserve the first 1MB physical memory. But
it has changed since TXLX, the normal text section can safely use 0~1M
physical address. So it's no need to reserve the first 1MB in DTS.
Solution:
Change the starting address of usable memory from 0x100000 to 0x0 for CPU
series coming after TXLX.
Verify:
Locally on W400
Change-Id: I2df7859a38feca48abd58459e8b231ee15ada9e2
Signed-off-by: changqing.gao <changqing.gao@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Conflicts:
arch/arm/boot/dts/amlogic/txlx_t962x_r311_1g.dts
arch/arm64/boot/dts/amlogic/tl1_t962x2_t309.dts
arch/arm64/boot/dts/amlogic/tl1_t962x2_x301.dts
Jianxiong Pan [Tue, 19 Feb 2019 06:57:21 +0000 (14:57 +0800)]
dts: fix the warnings when compiling the g12a device tree. [1/1]
PD#SWPL-4967
Problem:
warning when compiling the g12a device tree.
Solution:
fix the warning.
Verify:
locall.
Change-Id: I1f93c788d1914441e48305c04330701bfd718b87
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Jihong Sui [Mon, 21 Jan 2019 08:52:35 +0000 (16:52 +0800)]
deinterlace: modify suspend function [1/1]
PD#SWPL-4196
Problem:
atv suspend/resume, DI deadlock causing hangup
Solution:
add unreg process and clear timer/tasklet
Verify:
tl1
Change-Id: Id50de8649455f0a2f77ad2fcb585bf233d5c362f
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
Zongdong Jiao [Fri, 22 Feb 2019 01:53:13 +0000 (09:53 +0800)]
hdmitx: rename HDMI_IEEE_OUI to avoid conflicts [1/1]
PD#SWPL-4705
Problem:
In 61207 patch, the define HDMI_IEEE_OUI is conflicted with the kernel
head file include/linux/hdmi.h
Solution:
rename HDMI_IEEE_OUI
Verify:
GXL/P212
Change-Id: I75a12734e85478f22edf0b48636ed86e60302b58
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Zongdong Jiao [Mon, 18 Feb 2019 09:33:22 +0000 (04:33 -0500)]
hdmitx: add auto low latency mode(ALLM) [1/1]
PD#SWPL-4705
Problem:
Lack ALLM function
Solution:
Add ALLM function
Verify:
GXL/P212
If Rx supports ALLM, then
echo 1 > /sys/class/amhdmitx/amhdmitx0/allm_mode
otherwise it will set failed, cat allm_mode and will get 0.
Change-Id: I00233e5a5aac133b405590e7df78c7c4805ed0ef
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Zongdong Jiao [Tue, 20 Nov 2018 04:37:30 +0000 (12:37 +0800)]
hdmitx: add rx latency info [1/4]
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>
Guosong Zhou [Tue, 19 Feb 2019 06:43:42 +0000 (01:43 -0500)]
camera: config adapter buffer size from dts [1/2]
PD#SWPL-4934
Problem:
kernel panic when adjust adapter memory size
Solution:
config adapter buffer size from dts
Verify:
verify by w411
Change-Id: Ie66cf57e870e140dd63516672c7f90f7d9ddda72
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
Jiamin Ma [Mon, 18 Feb 2019 08:44:22 +0000 (16:44 +0800)]
license: add missing license header [1/1]
PD#SWPL-4728
Problem:
Missing license header
Solution:
Add correct license header
Verify:
Compling passed
Change-Id: I291a41172f9ecf2cde7f7705e99ecb20567c9c8f
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
Hanjie Lin [Tue, 19 Feb 2019 05:42:16 +0000 (13:42 +0800)]
perf: fix sys_cpu_status0 reg error dts [1/1]
PD#SWPL-4843
Problem:
CtsSimpleperfTestCases 1 Fail on p231
Solution:
gxl,gxm,txl perf sys_cpu_status0 reg config error
modify it
Verify:
p212
Change-Id: Ie6e8747e8e4f02734bd7883ce6dcbc3fd3d28829
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Conflicts:
arch/arm/boot/dts/amlogic/mesontxl.dtsi
arch/arm64/boot/dts/amlogic/mesontxl.dtsi
Brian Zhu [Mon, 18 Feb 2019 13:56:29 +0000 (21:56 +0800)]
vpp: correct the vpp dummy reg for g12a/g12b/tl1 [1/1]
PD#TV-1565
Problem:
After g12a chip, vpp post dummy reg was changed. The
test_screen/rgb_screen sysfs did not work.
Solution:
Use the correct vpp post dummy reg for those chip
Verify:
Verified on X301 and W400
Change-Id: I1cb718a1f7040804b63d0197de0bb6aafe233357
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Shuai Li [Fri, 15 Feb 2019 02:39:14 +0000 (10:39 +0800)]
audio: remove unused PDM controls which cause panic [1/1]
PD#SWPL-3907
Problem:
PDM controls are dynamically added or removed.
This will bring in panic.
Solution:
Remove the unused controls.
Verify:
Need stress test.
Change-Id: I69f63a0516e0812e9abb86e42f091ecb496004d4
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
Hanjie Lin [Thu, 31 Jan 2019 02:58:01 +0000 (10:58 +0800)]
sched: eas: add sched-energy support for gxm [1/1]
PD#SWPL-4651
Problem:
Kernel 32bit Support for S912(kernel 4.9)
Solution:
add arm/arm64 sched-energy dts
Verify:
q201
Change-Id: I13077632b730d5f2b1427b3d9bee9ff24031cfcd
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
Hanjie Lin [Mon, 18 Feb 2019 12:03:16 +0000 (20:03 +0800)]
perf: arm: enable pmuserenr [1/1]
PD#SWPL-4673
Problem:
userspace can't access perf monitor cnt with "mrc ... c9,c13,0"
Solution:
actually userspace should check perf monitor cnt access permissions first
before use, so this is a workround.
enable pmuserenr with "mcr ... c9,c14,0" in several places:
1, perf probe
2, cpu idle (state>0) exit
3, cpu online
4, system resume after suspend
Verify:
u212
Change-Id: Ib09682d1d47545dfef8b088283ddbbf390630d3e
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>