Commit Graph

648995 Commits

Author SHA1 Message Date
Peng Yixin
c524489caf video: set pcrscr after 2 frames ready [2/3]
PD#SWPL-795

Problem:

Solution:
add a sysfs to get vframe ready count

Verify:
Verified p212

Change-Id: I92171f57d336063e4a3af751e808b4a778184fe0
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
2019-04-04 02:12:25 -07:00
Tao Zeng
a459b9444e ramdump: write compressed data [2/2]
PD#SWPL-6193

Problem:
ramdump need write compressed data to persist storage device.
But if we write it under uboot, it may cause journal and block
bitmap mismatch due to different version of file system. This
caused kernel panic after ramdump finished.

Solution:
Write compressed data under kernel.
This change also removed some extern function of ramdump since
we use sticky register to store ramdump information.

Verify:
p212

Change-Id: Idd83ec6ead4783918b90a39cf716fd3117402278
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-04-03 22:38:27 -07:00
Jianxiong Pan
a098693b5f paddr16: add paddr16 to get register values for 16-bits aligned address. [1/1]
PD#SWPL-6718

Problem:
paddr just can get register and memory values for 32-bits aligned address.

Solution:
add paddr16 to get register or memory values for 16-bits aligned address.

Verify:
g12b w400_a

Change-Id: Ic7f32dcc6c2a24d0ac1e8c3ed60acc27e81887e0
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2019-04-03 22:09:43 -07:00
Nanxin Qin
d1f81490a2 vdin: fixed the issue of mem mapping from vmap. [1/1]
PD#SWPL-6196

Problem:
the memory issue cause to kernel crash.

Solution:
1. add flush cache when the mem oper end.
2. unmap addr which from vmap in vdin driver.

Verify:
X301

Change-Id: Id6efe2b009fe64ad753d51eb06784bd4e66f5e87
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2019-04-03 19:24:36 -07:00
Jianxin Pan
325a18ae9c 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>
2019-04-03 18:59:03 +08:00
Xingyu Chen
2f278c55ca iio: adc: try to get flag again after the first failure [2/2]
PD#SH-451

Problem:
to get flag maybe occasionally fail

Solution:
try to get flag again after the first failure

Verify:
test pass on s400

Change-Id: Ibf430c9c331c7740864e797047962ad45e6698e3
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2019-04-03 02:18:14 -07:00
huijie.huang
b2cdbd0668 memory: tl1 compatible with 1G and 2G memory [3/4]
PD#SWPL-6343

Problem:
Compatible 1G and 2G platform in one suite code

Solution:
Kernel add 1G and 2G config for TL1

Verify:
test pass on TL1-X301

Change-Id: Ic906c6b62cc6ae15166baf666d5823687359f823
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2019-04-03 01:49:19 -07:00
renjiang.han
4edc749535 ppmgr: The cut table caused a crash. [1/1]
PD#SWPL-6557

Problem:
The cut table caused a crash.

Solution:
modify dma flag

Verify:
on X301

Change-Id: Ic0ced1f4934d1125c56a79d1e102de9d2e02a528
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-04-03 00:13:08 -07:00
Peng Yixin
494bde0769 media_module: add double cache in codec_mm_scatter [1/1]
PD#SWPL-6677

Problem:
    Decocder allocation and free mmu memory spend a long time.

Solution:
    Add double cache to solve this problem.

Verify:
    Verified P212

Change-Id: I393ad47b921631a49f551b32e31fd776ff4dfeea
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
2019-04-02 23:10:41 -07:00
Huan Biao
f2789c9a47 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>
2019-04-02 22:53:01 -07:00
Zhe Wang
6e71db4f03 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>
2019-04-02 22:43:22 -07:00
Zhuo Wang
867ae48973 ethernet: reset ethernet when resume [1/1]
PD#SWPL-6608

Problem:
system will report tx error somethime after resume

Solution:
reset ethernet when resume

Verify:
verify on u200 board

Change-Id: I9863a8a50c08addd4e2d8c024f46a2e7568c28b4
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2019-04-02 19:54:56 -07:00
changqing.gao
5e47d3792b fs: KASAN error in nls uniname cmp [1/1]
PD#SWPL-6404

Problem:
KASAN error:global-out-of-bounds in nls_uniname_cmp

Solution:
Append "\0\0" to the string of UNI_CUR_DIR_NAME and UNI_PAR_DIR_NAME

Verify:
x301

Change-Id: Ic94e837ed7874d337207c31eedfc966b46ab8ecd
Signed-off-by: changqing.gao <changqing.gao@amlogic.com>
2019-04-02 19:06:42 -07:00
Brian Zhu
e8a3758855 vpp: 3d: disable crop when 3d playback or hdmi in [1/1]
PD#TV-3962

Problem:
3D mode does not support crop function

Solution:
Remove crop when 3D display.

Verify:
Verified on x301

Change-Id: Id35dd662886be24e3ec78d070e3a70f513f89b16
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-04-02 18:15:41 -07:00
Pengcheng Chen
6862fb2e96 osd: add viu2 fence support [1/1]
PD#SWPL-6384

Problem:
viu2 not support fence

Solution:
add viu2 fence support.

Verify:
test pass on tl1

Change-Id: I94a5e483c88cace79b7386bb918c203ada6b8274
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-04-02 05:12:32 -07:00
Hang Cheng
867de9cdfb cec: remove func that may cause deadlock [1/1]
PD#SWPL-5836

Problem:
kernel panic when read cec reg

Solution:
remove func that might cause sleep in spinlock,
so as to avoid deadlock

Verify:
S805X-P241

Change-Id: I8394f69bdbeff6673c795a221c08ef76164c5bdb
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
2019-04-02 04:48:54 -07:00
Yeping Miao
74d7d4a92e dts: GVA on SBR platform [1/1]
PD#SWPL-4760

Problem:
  Port GVA on S400 SBR platform

Solution:
  Port GVA on S400 SBR platform

Verify:
  S400_SBR A113D

Change-Id: I615e9457ba83df1c30829aa8ce01b6bc6072929f
Signed-off-by: Yeping Miao <yeping.miao@amlogic.com>
2019-04-02 03:02:04 -07:00
MingLiang Dong
09849e0f33 amvecm: remove driver lc setting by timing [1/1]
PD#SWPL-5248

Problem:
lc setting load from db

Solution:
remove driver lc setting by timing

Verify:
verify on TL1

Change-Id: I7dac2429220d31f7930087ffb01176863cd74453
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-04-02 00:48:42 -07:00
MingLiang Dong
f37e79b2d7 hdr: TL1 HDR gamut bug fix [1/1]
PD#SWPL-5248

Problem:
1. finetune TL1 HDR.
2. workaround fix ootf overwrite
3. workaround fix gamut bug

Solution:
TL1 HDR gamut bug fix

Verify:
verify on TL1

Change-Id: Iaf9535f3b6d096967f67ba118ff54eeb2c5c01c5
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-04-02 00:48:15 -07:00
deng.liu
aa2d12379f common: NN API implementation,upload 64bit dts [1/1]
PD#SWPL-86

Problem:
Android tensorflow lite ,NN API implementation

Solution:
NN API implementation

Verify:
Local on galilei

Change-Id: I7c1a3a68005218544d0a3c7a7360c9ee38fc53de
Signed-off-by: deng.liu <deng.liu@amlogic.com>
2019-04-02 00:26:20 -07:00
shuanglong.wang
cc688651c3 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>
2019-04-01 05:16:04 -07:00
Xingyu Chen
21cf6aea22 iio: adc: disable software calibration for txlx and later platform [1/1]
PD#SWPL-6483

Problem:
the txlx and later platform use the VDDA as vref by default, and we
can use directly the adc sampling value, so it is unnecessary to
recalculate calibration factor through ch7.

Solution:
add new variable to judge whether enabling the software calibration

Verify:
test pass on u200

Change-Id: I611b4d8b76c95d8fdbdf23a96801bf6d9e5eb1f7
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2019-04-01 05:15:16 -07:00
Liang Ji
e908649b08 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>
2019-04-01 05:11:56 -07:00
Shuai Li
d6e5cf539b audio: always on DDR arb [1/1]
PD#TV-3452

Problem:
Toddr stuck after a long time playback.

Solution:
For debug usage.

Verify:
No need.

Change-Id: Ibf4446148f5e028040d7d6527c7695f23f964f7c
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2019-04-01 17:47:11 +08:00
Yong Qin
b506e92a3b vlock: vlock: improve vlock flow [1/1]
PD#TV-3683

Problem:
1. write pll m will cause vbyone lockn unlock.

Solution:
1.not change m,f at the sametime
2.reduce the frequency of write m and f

Verify:
tl1

Change-Id: Ia1ff93122d8b2ae355eae73b0094f8e09edba1cd
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-03-31 22:38:05 -07:00
Jianxin Pan
bdd6af7b03 compile: fix smarthome compile error [1/1]
PD#SWPL-6186

Problem:
smarthome compile error

Solution:
fix smarthome compile error

Verify:
compile OK

Change-Id: I6909374b8abbeac8ccb4bca760208d309d24f4bd
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2019-03-31 22:31:04 -07:00
Hong Guo
900fa1c7c2 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>
2019-03-31 19:04:32 -07:00
Shuai Li
0663274a19 audio: add HW resample for HDMIRX [1/1]
PD#SWPL-6118

Problem:
No resample will cause mismatch between
input and output if they are not at same
samplerate.

Solution:
Add resample for hdmirx case

Verify:
Local tested.

Change-Id: I298e401578bf49484d6b75fd736d2a74c38508e4
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-03-30 09:38:02 -07:00
shuanglong.wang
9b0245f273 video: reuse initial phase [1/1]
PD#SWPL-5664

Problem:
for netflix 23.97fps non-tunnle playback 3:2 patten broken so many times

Solution:
reuse initial phase that Tim use in amazon

Verify:
verify by u212

Change-Id: I5d988e1c3a3dbf1bb728f55a921e8b8fb6990985
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
2019-03-30 05:58:06 -07:00
Nian Jing
e26fb92ce4 tvafe: lower shutdown power for tl1 [1/1]
PD#SWPL-6165

Problem:
TL1 vdee power too high when shutdown

Solution:
close bandgap when shut down for tl1
close vafe ctrl
close adc pll

Verify:
X301

Change-Id: I374bbe09ecdd456ea07f1fda3391acd4ab0bc949
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
2019-03-30 17:22:48 +08:00
renjiang.han
3c6f005419 PPMGR: modify phys_to_virt to codec_mm_vmap. [5/5]
PD#TV-2649

Problem:
Kernel panic with phys_to_virt.

Solution:
Replace phys_to_virt with codec_mm_vmap.

Verify:
on u212

Change-Id: Ib3f94f66d37463490720cd1348b4ec94ad12aa15
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-03-29 06:06:50 -07:00
Jian Cao
bad9d8cf88 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>
2019-03-29 20:33:43 +08:00
cancan.chang
79f0daf1ee 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>
2019-03-29 20:33:38 +08:00
Yue Wang
b4df47aa99 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>
2019-03-29 20:33:32 +08:00
Zhe Wang
9fce86835d 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>
2019-03-29 20:33:26 +08:00
Shunzhou Jiang
5ad9f60beb 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>
2019-03-29 20:33:20 +08:00
Hong Guo
77f5f061ca 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>
2019-03-29 20:31:33 +08:00
Xing Wang
503fb108c6 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>
2019-03-29 20:31:33 +08:00
cancan.chang
9a23cef01b 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>
2019-03-29 20:31:33 +08:00
Shunzhou Jiang
e2fc8c6205 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>
2019-03-29 20:31:33 +08:00
Hang Cheng
0a983b2a49 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>
2019-03-29 20:30:36 +08:00
Evoke Zhang
0b049e146e vdin: add sm1 support [1/1]
PD#SWPL-6065

Problem:
need add vdin support for sm1

Solution:
add vdin support for sm1

Verify:
pxp

Change-Id: I55af5273607a88f4e5a2394de0acbb44811da8f9
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-03-29 20:24:31 +08:00
Qianggui Song
f3c9ff5205 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>
2019-03-29 20:24:31 +08:00
Xing Wang
633cfac2e0 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>
2019-03-29 20:23:06 +08:00
Chuangcheng Peng
d1325d3852 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>
2019-03-29 20:23:06 +08:00
Yong Qin
75f7142847 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>
2019-03-29 20:23:06 +08:00
Jianxiong Pan
29f0f37a3f 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>
2019-03-29 20:23:06 +08:00
Hong Guo
94095e8215 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>
2019-03-29 20:23:06 +08:00
Hanjie Lin
0f338c0eb0 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>
2019-03-29 20:23:06 +08:00
Jian Cao
0dc91500b2 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>
2019-03-29 20:23:06 +08:00