Commit Graph

643638 Commits

Author SHA1 Message Date
tao zeng
eb001fe66a mm: optimize for lowmemory killer
PD#164558: mm: optimize for lowmemory killer

1. Remove change for LRU;
2. Only subtract cma file caches when task is not kswapd.

Change-Id: I09ad86fc9754c1136cd976d656a023dee6cbe2eb
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
2018-04-17 17:58:08 -08:00
Xingyu Chen
32e08326b6 pinctrl: axg: fix w/r error for partial ao pins and add TESTN support
PD#164428: pinctrl: axg: fix w/r error for partial ao pins and add TESTN support

it returns error when operating the pins include the GPIOAO_10 - GPIOAO_13 which
are used as gpio.

Change-Id: I1337ab4d59110b87bd6b685e4ce7481cee02be46
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2018-04-17 05:23:14 -08:00
Nan Li
d3991e7a9c sd: add port base addr in the matchdata.
PD#163048: add port base addr in the matchdata,
for sd & sdio TDMA check.

Change-Id: Ib7432ffbf26c749d8799bfa5f60eaaff7735539d
Signed-off-by: Nan Li <nan.li@amlogic.com>
2018-04-17 04:52:15 -08:00
Lei Qian
545efef108 dts: optimize txlx_t962x_r311_720p memory usage[2/3]
PD# 164558: dts: decrease memory usage

Change-Id: I0822e43ba8ecab264963d12a14fe102686d4ed70
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
2018-04-17 02:04:27 -08:00
Nan Li
fec161eb1b sdemmc/sdio: g12a revA/B compatible
PD#163379: sdemmc: g12a revA/B compatible

Change-Id: I5edaf1e490de73d160b25d5976a71edda50038d6
Signed-off-by: Nan Li <nan.li@amlogic.com>
2018-04-17 18:01:01 +08:00
Nan Li
7808c86161 sd: add sd & sdio wifi TDMA on portB.
PD#163048: add sd & sdio wifi time division multiple access
on portB.

Change-Id: Ie38a56daf03d5066af160575a322812ab5ffe5be
Signed-off-by: Nan Li <nan.li@amlogic.com>
2018-04-17 00:51:17 -08:00
Kaifu Hu
67a662f312 hdmitx: config DDC to 100kHz
PD#164530: hdmitx: config DDC to 100kHz

Config DDC to 100kHz for HDMI I2C.

Change-Id: I9b450bb8f9b727a3f468f55138aa64596abe92ef
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
2018-04-17 00:29:35 -08:00
wei wang
85f3e27ee9 cec: support 4 hdmi ports in board R311
PD#162758: modify dts to support hdmi4

Change-Id: I2216bc2c1f5a6dabd6890025075f7b40ad082799
Signed-off-by: wei wang <wei.wang@amlogic.com>
2018-04-16 19:18:18 -08:00
nengwen.chen
a7ca14be81 atv_demod: Add atv demod
PD#163853: Add atv demod

Change-Id: I6e1fe3b50cccc2d6ee734ca77cf8593b95f47671
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2018-04-16 18:43:20 -08:00
Long Yu
b87a68b2c8 emmc: optimized emmc timing parameter configuration method
PD#162872: emmc: Optimizing eMMC/sd/sdio timing parameter configuration method

Change-Id: I5e9991a42d6f262a58e2b2c5635eadc690e39d4d
Signed-off-by: Long Yu <long.yu@amlogic.com>
2018-04-15 23:15:52 -08:00
Hang Cheng
50407b7c09 hdmirx: revert audio fifo reset alternatively
PD#154135: hdmirx: revert audio fifo reset alternatively

MIK-8267R device outputs 4 channel audio of pcm, which
txlx doesn't support. So revert this workaround and
avoid side effect.

Change-Id: Id969f27ed44567c9bcb6bfd8e77d8ff33d70b0f6
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
2018-04-15 21:10:25 -08:00
liangzhuo.xie
daa97253c6 drm: add drm buildroot dts for g12a
PD#162577: add drm buildroot dts for g12a

1. g12a default buildroot dts use g12a_s905d2_u200_buildroot.dts
2. g12a drm buildroot dts use g12a_s905d2_u200_drm_buildroot.dts

Change-Id: I08616ab1ce38b8db24ca78c1133294fff8e82ff8
Signed-off-by: liangzhuo.xie <liangzhuo.xie@amlogic.com>
2018-04-15 18:11:52 -08:00
Yue Wang
084a2f0f8c usb: set bit18 of GUCTL1.[1/1]
PD#164190: usb: set bit18 of GUCTL1.[1/1]

for improve bulk transfer performance.

Change-Id: I986ddea677a9a31a6613cf00936b4c4e79449c1e
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2018-04-15 18:10:29 -08:00
Zhe Wang
b16920aaa4 dts: axg: fixed audio dts error of U211 & U221
PD#163841: change dts for U211 & U221

Change-Id: I49e3a5fb7d740aa77e277f97c1fea14bd9b9da71
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2018-04-14 01:54:13 -08:00
Brian Zhu
54d3171e9e video: change the correct config define for notify amvideo
PD#163615: video: change the correct config define for notify amvideo

Change-Id: I57a049060e355b396591003463454292e10ad164
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2018-04-13 06:09:41 -08:00
Evoke Zhang
278832c410 u200: dts: modify panel P070ACB reset sequence
PD#163160: u200: dts: modify panel P070ACB reset sequence
also optimize place check state function into dsi_on_init sequence.

Change-Id: I22cbb057b278bd44efb2e7b141f6426c03c1945f
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-04-13 02:30:34 -08:00
Evoke Zhang
37fc47c9bf vout: optimize same mode checking for 1st setting
PD#163691: vout: optimize same mode checking for 1st setting

Change-Id: Ia2be46b0f0433f09106cb8f08937baea371d4c62
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-04-13 02:10:50 -08:00
nengwen.chen
cadc6e9ee2 atv_demod: Add atv demod
PD#163853: Add atv demod

Change-Id: I572568d30136801cfb244757a5d1114974158192
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2018-04-13 00:18:02 -08:00
Kaifu Hu
e7b8b75b3e hdmitx: move AVI position from line4 to line10
PD#163964: hdmitx: move AVI position from line4 to line10

Move AVI position from line4 to line10 for HDMI1.4 CTS 7.24
fail in QD980.

Change-Id: I6c84445de942cce383c3bb339223589e3fb39d5f
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
2018-04-12 23:05:26 -08:00
Qianggui Song
537cf2650a remote: add remote led blink function to u211
PD#163342: add remote led blink function to u211

Change-Id: I92ba57af1f3c83e6d432a344d35021734dfecf3c
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2018-04-12 18:57:02 -08:00
Kuibao Zhang
19a79c7079 BT: Bluetooth poweroff by default
PD#164170: BT: Optimize the bluetooth code structure

Change-Id: Iadc70c12f85c0ad48597f0066ae235b3d67716a9
Signed-off-by: Kuibao Zhang <kuibao.zhang@amlogic.com>
2018-04-12 05:34:38 -08:00
Xing Wang
92f16104bf audio: meson: fix i2s/spdif buffer for split mode when bootup to play
PD#162285: audio: meson: fix i2s/spdif buffer for split mode when bootup to play

Change-Id: I730993dd183cee40c92d232414d6752f75cb2b06
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2018-04-12 02:38:54 -08:00
Yalong Liu
6d4b1f3db2 drm: modify drm framework
PD#162577: modify drm framework
1. add component framework, support dynamic loading modules
2. remove DRM_MESON_BYPASS_MODE config, abandon
Unnecessary code and Optimization code

Change-Id: Ib7698190254d147d9749c30f479477103ed52af7
Signed-off-by: Yalong Liu <yalong.liu@amlogic.com>
2018-04-11 23:54:13 -08:00
Weiming Liu
3ea9b4e5c1 lcd: mipi phy timing adjustment
PD#163895: lcd: mipi phy timing adjustment

Change-Id: I87d563d6b9040ef7af0ed7874c99e6414675118e
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
2018-04-11 23:53:05 -08:00
Evoke Zhang
87315a572a lcd: prevent lcd enable repeatedly to avoid abnormal display
PD#164037: lcd: prevent lcd enable repeatedly to avoid abnormal display
also optimize backlight init state by detect lcd state

Change-Id: I517c3c47aa5fcb0f5026f6dd782e5f522ec847aa
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-04-11 23:09:30 -08:00
Jian Hu
d363baac44 i2c: fix different frequency duty according to I2C-BUS spec
PD#164083: i2c: fix duty of different frequency

1.General usage
Frequency   Duty    mode

100k	    1:2	    standard
400k	    1:3	    fast
3400k	    1:3	    high

2.Frequency below 100k can be configured as fast mode

Change-Id: Ib6254efabfbd614c014c98bbeb3d07c35cf7b904
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2018-04-11 22:53:13 -08:00
kele bai
d4ca0fee7e di: add protection for odd width
PD#163274: di: enable protection for odd width

enable odd protection patch mask by g12a bringup

Change-Id: I74793acc664981c23c3bbf2f8e892c8b4c8d8b84
Signed-off-by: kele bai <kele.bai@amlogic.com>
2018-04-11 22:51:57 -08:00
Nian Jing
618d9ba48e avin: dynamic en/disable avdetect for compatibility
PD#161632: dynamic en/disable avdetect for compatibility

Change-Id: Icb3038323292ca246c5aaac499b58c75a89c2ec1
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
2018-04-11 22:28:21 -08:00
yicheng shen
1a9fd1c3a4 PD#162660: hdmirx: enable hdcp22 related clk when resume
fix the issue "black screen after resume".

Change-Id: I654a6dad8347d5bd04af0faeb46fc77be184514f
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2018-04-11 18:55:02 -08:00
Kaifu Hu
1b2232f8ba hdmitx: remove NULL characters of aud_cap
PD#164062: hdmitx: remove NULL characters of aud_cap

remove NULL characters of aud_cap.

Change-Id: Ie82de9879071d87c204058e7b81498fe72eb3a19
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
2018-04-11 18:33:54 -08:00
wenfeng.guo
7119d31089 amvecm: serial print unexpected information
PD#163944: amvecm: serial print unexpected information

Change-Id: Ia18adf8426e25a1a960609df2d25c76f8adf5690
Signed-off-by: wenfeng.guo <wenfeng.guo@amlogic.com>
2018-04-11 05:06:18 -08:00
Yi Zhou
24211bf098 hdmitx: use bt2020 in aviinfo on dv LL mode
PD#163981: hdmitx: use bt2020 in aviinfo on dv LL mode

1.add bt2020 in aviinfo
2.porting PD151662 to kernel4.9
3.use system 422 mode

Change-Id: Ia4cd60c02e6fc02eef001d296ca20b504f1f3e2a
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2018-04-10 22:15:26 -08:00
Jianxin Qin
f09ebd4568 usb: phy3: USB3.0 PHY Tuning for S905
PD#163833: usb: phy3: USB3.0 PHY Tuning for S905

As the weak compatibility of USB 3.0 interface, we set some proper
values to the Parameter controls of USB3.0 PHY.

Change-Id: Icdaf4d3620f25f98f72eb9ddc7738bcc4328ded7
Signed-off-by: Jianxin Qin <jianxin.qin@amlogic.com>
2018-04-10 17:54:29 -08:00
Brian Zhu
428e770673 vpp: increase the vskip count to 8 for scale down
PD#163431: vpp: increase the vskip count to 8 for scale down

Change-Id: I2022a031a95c0598ad31276e7a2aebd5ba2a977c
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2018-04-10 00:54:27 -08:00
Weiming Liu
9137c54d5f lcd_extern: update mipi_tv070wsm init_table
PD#163292: lcd_extern: update mipi init code for boe panel on g12a board

Change-Id: I8a9aea07b23423c268943c754d4f64131e0c4c6f
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
2018-04-09 23:14:26 -08:00
Nan Li
b3ee8b3f69 sd: del sd no-use caps on g12a dts.
PD#162559: remove sd no-use caps, or UHS-I SD card will init
fail on g12a.

Change-Id: Ib4fede1e03fce87ad9766370b405eb34054f97e0
Signed-off-by: Nan Li <nan.li@amlogic.com>
2018-04-09 22:09:44 -08:00
Yalong Liu
9d53f7be21 drm: add vblank sent while disable crtc
PD#163846: add vblank sent while disable crtc
shutdown results in hung atomic commit cause DRM hangup a few secs

Change-Id: I54dcbe33b05ab9cb3487ae0509ce23e61e67a4ca
Signed-off-by: Yalong Liu <yalong.liu@amlogic.com>
2018-04-09 17:19:18 -08:00
pengcheng chen
1ea364997a osd_drm: fix osd drm vsync irq error
PD#160546: osd_drm: fix osd drm vsync irq error

Change-Id: Ieebc611553142ccc41052d1395f323f693b9330a
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
2018-04-09 05:27:20 -08:00
Brian Zhu
8a2d6653cd vpp: adjust the max process height by checking vpu clk
PD#163431: vpp: adjust the max process height by checking vpu clk

Change-Id: Ic7c264d9b287839a457b0cd4e2f090b459739a80
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2018-04-09 01:08:25 -08:00
Ruixuan Li
05c2000c14 emmc: add dtb backup machinisim
PD#162119: emmc: add dtb backup machinisim

Change-Id: Ie8fd8f1a72f0e04c2ceacf5338add3c5c3862b84
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2018-04-08 22:00:31 -08:00
Tong Li
2d98977c63 g12a_u220_v1: g12a_u220_v1 bring up.[2/3]
PD#163870: g12a_u220_v1 bring up.

Change-Id: I9347c8f955c09186092ce73364378e2ff13956d0
Signed-off-by: Tong Li <tong.li@amlogic.com>
2018-04-09 12:20:32 +08:00
wenfeng.guo
eabf26b56e amvecm: modify dnlp algorithm
PD#161646: amvecm: modify dnlp algorithm

1. separate dnlp algorithm to dnlp_cal.c
2. modify dnlp algorithm
3. add dnlp curve debug interface

Change-Id: Ic5dd20f606b6cd612897c30ec09c6f0535ffefca
Signed-off-by: wenfeng.guo <wenfeng.guo@amlogic.com>
2018-04-07 23:19:47 -08:00
Zhe Wang
18898d41c5 audio & hdmi-rx: add hdmi-rx audio fifo reset and hdmi audio status[1/2]
PD#161408: reset hdmi-rx audio fifo

add hdmi audio status for audio driver.

Change-Id: I6616301b2468204d4c0d56162b11f3efedd0650e
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2018-04-07 22:55:06 -08:00
Nanxin Qin
185f15a6e2 frame_sync: the pcr value may be negative that should be avoided
PD#162854: the pcr value may be negative that should be avoided

Change-Id: I66fbe8866a23458ff1da9e2ec38ace8ae6325d48
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2018-04-07 19:18:27 -08:00
libo
7ed504095c bluetooth: fix some coverity error
PD#163690: driver defects cleanup
 #254
 #361

Change-Id: I6ba110926488bc598c37b462edbb3a1dee56a2dd
Signed-off-by: libo <bo.li@amlogic.com>
2018-04-04 02:28:56 -08:00
Tong Li
d076e8ae43 u211: u211 net led open.[1/3]
PD#163344:

u211 net led open.

Change-Id: I4f99c9134f47f2e56a2ee1c76fa9b31252aa011b
Signed-off-by: Tong Li <tong.li@amlogic.com>
2018-04-03 23:15:26 -08:00
Qiufang Dai
5bbb3b261f clk: update g12a pll parameters for Note 2.7
PD#163494: clk: update g12a sys/hifi/pcie/gp0 pll parameters

Change-Id: Ia1485943570614732c9f8e785d4cf0e50473f04e
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
2018-04-03 22:51:15 -08:00
Weiming Liu
c9025a58e0 lcd: mipi_dsi parse error init_table gpio type
PD#163487: lcd: mipi_dsi parse error init_table gpio type

Change-Id: I32ebb84eb4804be65ff5548d3a0d78e271ea3956
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
2018-04-03 20:04:29 -08:00
Jian Wang
e1a47a1a0a ionvideo: fix ionvideo_thread panic [1/1]
PD# 161775: fix ionvideo_thread panic

merge from jintao.xu 3.14 jane commit:
[PATCH] NEEDLEPLAT-4635: fix ionvideo_thread panic[1/1]

[Problem]
Kernel panic (ionvideo_thread+0x5ac/0x6bc) in the field

[Solution]
Add ge2d timeout protect

[Platform]
Needle/Stark

[Test]

Change-Id: Iee8a6930bbb6b3a140db73e74aa287f2367b71b0
Signed-off-by: Jian Wang <jian.wang@amlogic.com>
2018-04-03 19:09:16 -08:00
Sebastian Andrzej Siewior
7b641fadc1 serial: core: mark port as initialized after successful IRQ change
PD#163025: fix pwq null pointer
commit 44117a1d17 upstream.

setserial changes the IRQ via uart_set_info(). It invokes
uart_shutdown() which free the current used IRQ and clear
TTY_PORT_INITIALIZED. It will then update the IRQ number and invoke
uart_startup() before returning to the caller leaving
TTY_PORT_INITIALIZED cleared.

The next open will crash with
|  list_add double add: new=ffffffff839fcc98, prev=ffffffff839fcc98, next=ffffffff839fcc98.
since the close from the IOCTL won't free the IRQ (and clean the list)
due to the TTY_PORT_INITIALIZED check in uart_shutdown().

There is same pattern in uart_do_autoconfig() and I *think* it also
needs to set TTY_PORT_INITIALIZED there.
Is there a reason why uart_startup() does not set the flag by itself
after the IRQ has been acquired (since it is cleared in uart_shutdown)?

Change-Id: I8c86b0aeb36986195276d94abd68917a08758a3e
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-03 18:52:11 -08:00