Ruixuan Li [Mon, 16 Apr 2018 06:31:43 +0000 (14:31 +0800)]
emmc: add dtb backup machinisim
PD#162119: emmc: change memory alloction mode
Change-Id: I108557d914d42158820d5cba00e2fc60e3d38451
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
bichao.zheng [Thu, 12 Apr 2018 02:56:45 +0000 (10:56 +0800)]
gpio-led: add system led
PD#163340: gpio-led: add system led
1.Add CONFIG_LEDS_TRIGGER_CPU=y in meson64_defconfig
2.Turns on green light when booting and resume.
3.Turns off green light,turns on red light when suspend and shutdown
Change-Id: I237745e87737682364ab946abd2253025ac89984
Signed-off-by: bichao.zheng <bichao.zheng@amlogic.com>
Yi Zhou [Mon, 9 Apr 2018 12:21:46 +0000 (20:21 +0800)]
hdmitx: update hdmitx pll parameter
PD#163960: hdmitx: update hdmitx pll parameter
Change-Id: I4a770a976586d42b510c128586a5239ade54a7c0
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
jiamin ma [Wed, 18 Apr 2018 00:37:52 +0000 (08:37 +0800)]
defect: fix section mismatch warning
PD#164617: section mismatch warning
When a variable or function with __initxxx anotation refers a
variable or function without it, there will be a section mismatch
warning.
In such case, memory belong to the latter will be released after
kernel booting up, if the former still refers the latter, strange
things happens
So we have to use __initxxx anotations correctly or add __refxxx
anotations to teach modpost that it is okay and save to use __init
anotations in this way.
Change-Id: Ic97dac8998b2a01c82dd7a3bae12fa9c7a113bc4
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
kunpeng.tang [Fri, 13 Apr 2018 04:18:20 +0000 (12:18 +0800)]
amlvideo: fix H264/VP9 adaptiveSkipBack cts errors
PD#163463: fix H264/VP9 adaptiveSkipBack cts errors
1.android.media.cts.AdaptivePlaybackTest#testH264_adaptiveSkipBack
2.android.media.cts.AdaptivePlaybackTest#testVP9_adaptiveSkipBack
Change-Id: Ib5f514ceb9a312b2bc608fa8192208dc49be74c9
Signed-off-by: kunpeng.tang <kunpeng.tang@amlogic.com>
Rongjun Chen [Thu, 15 Mar 2018 08:02:46 +0000 (16:02 +0800)]
wifi: add fw path to support mt7668 wifi fw load
PD# 161514
Change-Id: I5e067f2fb6503f1f2b537a6b36fb69b0e8f30b87
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
tao zeng [Tue, 17 Apr 2018 07:29:50 +0000 (15:29 +0800)]
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>
Xingyu Chen [Sat, 14 Apr 2018 02:28:40 +0000 (10:28 +0800)]
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>
Nan Li [Tue, 17 Apr 2018 11:51:22 +0000 (19:51 +0800)]
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>
Lei Qian [Tue, 17 Apr 2018 07:08:33 +0000 (15:08 +0800)]
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>
Nan Li [Tue, 17 Apr 2018 08:18:11 +0000 (16:18 +0800)]
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>
Nan Li [Tue, 3 Apr 2018 11:16:06 +0000 (19:16 +0800)]
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>
Kaifu Hu [Tue, 17 Apr 2018 03:06:47 +0000 (11:06 +0800)]
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>
wei wang [Mon, 16 Apr 2018 09:15:59 +0000 (17:15 +0800)]
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>
nengwen.chen [Sat, 14 Apr 2018 12:12:25 +0000 (20:12 +0800)]
atv_demod: Add atv demod
PD#163853: Add atv demod
Change-Id: I6e1fe3b50cccc2d6ee734ca77cf8593b95f47671
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
Long Yu [Fri, 23 Mar 2018 09:50:00 +0000 (17:50 +0800)]
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>
Hang Cheng [Thu, 12 Apr 2018 02:59:26 +0000 (10:59 +0800)]
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>
liangzhuo.xie [Fri, 13 Apr 2018 09:38:44 +0000 (17:38 +0800)]
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>
Yue Wang [Thu, 12 Apr 2018 07:35:00 +0000 (15:35 +0800)]
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>
Zhe Wang [Fri, 13 Apr 2018 13:52:45 +0000 (21:52 +0800)]
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>
Brian Zhu [Thu, 12 Apr 2018 08:21:36 +0000 (16:21 +0800)]
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>
Evoke Zhang [Wed, 28 Mar 2018 05:49:35 +0000 (13:49 +0800)]
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>
Evoke Zhang [Mon, 9 Apr 2018 09:56:03 +0000 (17:56 +0800)]
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>
nengwen.chen [Thu, 12 Apr 2018 03:11:22 +0000 (11:11 +0800)]
atv_demod: Add atv demod
PD#163853: Add atv demod
Change-Id: I572568d30136801cfb244757a5d1114974158192
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
Kaifu Hu [Thu, 12 Apr 2018 07:47:48 +0000 (15:47 +0800)]
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>
Qianggui Song [Mon, 9 Apr 2018 04:23:54 +0000 (12:23 +0800)]
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>
Kuibao Zhang [Thu, 12 Apr 2018 10:22:46 +0000 (18:22 +0800)]
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>
Xing Wang [Sun, 8 Apr 2018 14:03:48 +0000 (22:03 +0800)]
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>
Yalong Liu [Tue, 10 Apr 2018 02:25:32 +0000 (10:25 +0800)]
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>
Weiming Liu [Mon, 9 Apr 2018 08:17:25 +0000 (16:17 +0800)]
lcd: mipi phy timing adjustment
PD#163895: lcd: mipi phy timing adjustment
Change-Id: I87d563d6b9040ef7af0ed7874c99e6414675118e
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
Evoke Zhang [Tue, 10 Apr 2018 10:30:26 +0000 (18:30 +0800)]
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>
Jian Hu [Wed, 11 Apr 2018 08:11:55 +0000 (16:11 +0800)]
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>
kele bai [Mon, 9 Apr 2018 02:36:12 +0000 (10:36 +0800)]
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>
Nian Jing [Wed, 4 Apr 2018 10:28:02 +0000 (18:28 +0800)]
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>
yicheng shen [Wed, 11 Apr 2018 09:21:52 +0000 (17:21 +0800)]
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>
Kaifu Hu [Wed, 11 Apr 2018 05:14:43 +0000 (13:14 +0800)]
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>
wenfeng.guo [Wed, 11 Apr 2018 02:17:07 +0000 (10:17 +0800)]
amvecm: serial print unexpected information
PD#163944: amvecm: serial print unexpected information
Change-Id: Ia18adf8426e25a1a960609df2d25c76f8adf5690
Signed-off-by: wenfeng.guo <wenfeng.guo@amlogic.com>
Yi Zhou [Tue, 10 Apr 2018 06:39:33 +0000 (14:39 +0800)]
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>
Jianxin Qin [Tue, 27 Mar 2018 09:16:29 +0000 (17:16 +0800)]
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>
Brian Zhu [Thu, 29 Mar 2018 10:01:20 +0000 (18:01 +0800)]
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>
Weiming Liu [Thu, 29 Mar 2018 08:39:25 +0000 (16:39 +0800)]
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>
Nan Li [Wed, 28 Mar 2018 06:27:06 +0000 (14:27 +0800)]
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>
Yalong Liu [Sun, 8 Apr 2018 09:19:18 +0000 (17:19 +0800)]
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>
pengcheng chen [Mon, 9 Apr 2018 07:32:49 +0000 (15:32 +0800)]
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>
Brian Zhu [Fri, 6 Apr 2018 14:15:16 +0000 (22:15 +0800)]
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>
Ruixuan Li [Mon, 2 Apr 2018 03:37:27 +0000 (11:37 +0800)]
emmc: add dtb backup machinisim
PD#162119: emmc: add dtb backup machinisim
Change-Id: Ie8fd8f1a72f0e04c2ceacf5338add3c5c3862b84
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
Tong Li [Mon, 9 Apr 2018 04:16:31 +0000 (12:16 +0800)]
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>
wenfeng.guo [Wed, 7 Mar 2018 11:34:52 +0000 (19:34 +0800)]
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>
Zhe Wang [Thu, 5 Apr 2018 12:30:54 +0000 (20:30 +0800)]
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>
Nanxin Qin [Thu, 22 Mar 2018 20:53:36 +0000 (04:53 +0800)]
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>
libo [Wed, 4 Apr 2018 07:35:13 +0000 (15:35 +0800)]
bluetooth: fix some coverity error
PD#163690: driver defects cleanup
#254
#361
Change-Id: I6ba110926488bc598c37b462edbb3a1dee56a2dd
Signed-off-by: libo <bo.li@amlogic.com>
Tong Li [Mon, 2 Apr 2018 11:07:17 +0000 (19:07 +0800)]
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>
Qiufang Dai [Fri, 30 Mar 2018 13:47:16 +0000 (21:47 +0800)]
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>
Weiming Liu [Mon, 2 Apr 2018 06:10:06 +0000 (14:10 +0800)]
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>
Jian Wang [Mon, 12 Mar 2018 12:20:14 +0000 (20:20 +0800)]
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>
Sebastian Andrzej Siewior [Thu, 11 Jan 2018 17:57:26 +0000 (18:57 +0100)]
serial: core: mark port as initialized after successful IRQ change
PD#163025: fix pwq null pointer
commit
44117a1d1732c513875d5a163f10d9adbe866c08 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>
Sebastian Andrzej Siewior [Sat, 3 Feb 2018 11:27:23 +0000 (12:27 +0100)]
serial: core: mark port as initialized in autoconfig
PD#163025: fix pwq null pointer
commit
714569064adee3c114a2a6490735b94abe269068 upstream.
This is a followup on
44117a1d1732 ("serial: core: mark port as
initialized after successful IRQ change").
Nikola has been using autoconfig via setserial and reported a crash
similar to what I fixed in the earlier mentioned commit. Here I do the
same fixup for the autoconfig. I wasn't sure that this is the right
approach. Nikola confirmed that it fixes his crash.
Change-Id: I33f2d6abd165db80a23eafe812634475e9b62865
Fixes:
b3b576461864 ("tty: serial_core: convert uart_open to use tty_port_open")
Link: http://lkml.kernel.org/r/20180131072000.GD1853@localhost.localdomain
Reported-by: Nikola Ciprich <nikola.ciprich@linuxbox.cz>
Tested-by: Nikola Ciprich <nikola.ciprich@linuxbox.cz>
Cc: <stable@vger.kernel.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Tested-by: Nikola Ciprich <nikola.ciprich@linuxbox.cz>
Acked-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Sahara [Wed, 13 Dec 2017 05:10:48 +0000 (09:10 +0400)]
pty: cancel pty slave port buf's work in tty_release
PD#163025: fix pwq null pointer
[ Upstream commit
2b022ab7542df60021ab57854b3faaaf42552eaf ]
In case that CONFIG_SLUB_DEBUG is on and pty is used, races between
release_one_tty and flush_to_ldisc work threads may happen and lead
to use-after-free condition on tty->link->port. Because SLUB_DEBUG
is turned on, freed tty->link->port is filled with POISON_FREE value.
So far without SLUB_DEBUG, port was filled with zero and flush_to_ldisc
could return without a problem by checking if tty is NULL.
CPU 0 CPU 1
----- -----
release_tty pty_write
cancel_work_sync(tty) to = tty->link
tty_kref_put(tty->link) tty_schedule_flip(to->port)
<< workqueue >> ...
release_one_tty ...
pty_cleanup ...
kfree(tty->link->port) << workqueue >>
flush_to_ldisc
tty = READ_ONCE(port->itty)
tty is 0x6b6b6b6b6b6b6b6b
!!PANIC!! access tty->ldisc
Unable to handle kernel paging request at virtual address
6b6b6b6b6b6b6b93
pgd =
ffffffc0eb1c3000
[
6b6b6b6b6b6b6b93] *pgd=
0000000000000000, *pud=
0000000000000000
------------[ cut here ]------------
Kernel BUG at
ffffff800851154c [verbose debug info unavailable]
Internal error: Oops - BUG:
96000004 [#1] PREEMPT SMP
CPU: 3 PID: 265 Comm: kworker/u8:9 Tainted: G W 3.18.31-g0a58eeb #1
Hardware name: Qualcomm Technologies, Inc. MSM 8996pro v1.1 + PMI8996 Carbide (DT)
Workqueue: events_unbound flush_to_ldisc
task:
ffffffc0ed610ec0 ti:
ffffffc0ed624000 task.ti:
ffffffc0ed624000
PC is at ldsem_down_read_trylock+0x0/0x4c
LR is at tty_ldisc_ref+0x24/0x4c
pc : [<
ffffff800851154c>] lr : [<
ffffff800850f6c0>] pstate:
80400145
sp :
ffffffc0ed627cd0
x29:
ffffffc0ed627cd0 x28:
0000000000000000
x27:
ffffff8009e05000 x26:
ffffffc0d382cfa0
x25:
0000000000000000 x24:
ffffff800a012f08
x23:
0000000000000000 x22:
ffffffc0703fbc88
x21:
6b6b6b6b6b6b6b6b x20:
6b6b6b6b6b6b6b93
x19:
0000000000000000 x18:
0000000000000001
x17:
00e80000f80d6f53 x16:
0000000000000001
x15:
0000007f7d826fff x14:
00000000000000a0
x13:
0000000000000000 x12:
0000000000000109
x11:
0000000000000000 x10:
0000000000000000
x9 :
ffffffc0ed624000 x8 :
ffffffc0ed611580
x7 :
0000000000000000 x6 :
ffffff800a42e000
x5 :
00000000000003fc x4 :
0000000003bd1201
x3 :
0000000000000001 x2 :
0000000000000001
x1 :
ffffff800851004c x0 :
6b6b6b6b6b6b6b93
Change-Id: I5ed9952cc1c9e20111546c9e50219823a06c82df
Signed-off-by: Sahara <keun-o.park@darkmatter.ae>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Gaurav Kohli [Tue, 23 Jan 2018 07:46:34 +0000 (13:16 +0530)]
tty: fix data race between tty_init_dev and flush of buf
PD#163025: fix pwq null pointer
commit
b027e2298bd588d6fa36ed2eda97447fb3eac078 upstream.
There can be a race, if receive_buf call comes before
tty initialization completes in n_tty_open and tty->disc_data
may be NULL.
CPU0 CPU1
---- ----
000|n_tty_receive_buf_common() n_tty_open()
-001|n_tty_receive_buf2() tty_ldisc_open.isra.3()
-002|tty_ldisc_receive_buf(inline) tty_ldisc_setup()
Using ldisc semaphore lock in tty_init_dev till disc_data
initializes completely.
Change-Id: I8a9d58a674e0267c2eda3c6bf58c7510e86e3b33
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
Reviewed-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Jiamin Ma [Thu, 29 Mar 2018 10:56:01 +0000 (18:56 +0800)]
defect: driver defect cleanup
PD#163273: driver defect cleanup
435
477
478
479
480
482
485
486
487
488
555
573
594
617
648
650
678
855
Change-Id: Ifb2d89576e4cbb77449732d79f688c970bb0dca1
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
Dezhi Kong [Wed, 7 Mar 2018 12:06:08 +0000 (20:06 +0800)]
di: optimize di buf optimization
PD#161171: optimize di buf optimization
1.optimize di buf queue operation
2.add di task semaphone check
Change-Id: Ia60d1ebd57d839fb1783b1257d82300469038415
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
xianjun.liu [Thu, 29 Mar 2018 08:46:23 +0000 (16:46 +0800)]
emmc: fix coverity question in kernel_4.9
PD#163327: emmc: fix coverity question in kernel_4.9
coverity id: #698 #729 #546 #456 #446 #531 #862
Change-Id: Iac65949972de4ce5388730a703432f8213af2f69
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
Long Yu [Fri, 23 Mar 2018 03:31:39 +0000 (11:31 +0800)]
sdio: Adjust the location of the GXL best sampling point
PD#160789: sdio: optimizing the selection of sdio tuning sampling points
[problem] When all sampling points can be sampled correctly,
select 0 points as the best sampling point.M8 platform is normal,
but some S905 platform is not suitable.
[resolved] The GXL platfoarm selects the intermediate
point of all sampling points as the best sampling point
Change-Id: I59097daa8fe3d99f2f11a3e1347945c8eea4e1c9
Signed-off-by: Long Yu <long.yu@amlogic.com>
Chao Liu [Wed, 28 Mar 2018 05:44:00 +0000 (13:44 +0800)]
dts: add the attestationkeybox of unifykey[1/3]
PD#162644: Attestation key burn tool development
Change-Id: I53903436560957026b8dc1ab4b72c48b4b160399
Signed-off-by: Chao Liu <chao.liu@amlogic.com>
Qi Duan [Tue, 28 Mar 2017 02:21:22 +0000 (10:21 +0800)]
usb: compliance test partner
PD#163486: usb: compliance test parnter
Change-Id: If4f82e9a131af59187fed7df39b12630cb8db0f8
Signed-off-by: Qi Duan <qi.duan@amlogic.com>
kele bai [Wed, 28 Mar 2018 09:01:20 +0000 (17:01 +0800)]
di vpp: merge vskip condition from 3.14
PD#162624: di,vpp: merge vskip condition from 3.14
Change-Id: I2749a35758df814d4bf28806f7a9745801a0afbe
Signed-off-by: kele bai <kele.bai@amlogic.com>
Qiufang Dai [Fri, 30 Mar 2018 09:08:53 +0000 (17:08 +0800)]
clk: low clk mux printk message
PD#163212: clk: low clk mux printk message
make the printk message at debug level
Change-Id: Id7e7864755be4f8809e5c44d5eeea2f6a7c4b5c3
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
tao zeng [Mon, 26 Mar 2018 02:54:55 +0000 (10:54 +0800)]
ddr: add driver for ddr bandwidth measure
PD#161475: ddr : add driver for ddr bandwidth measure
1. change dtsi for related chips;
2. porting driver for each dmc contoller;
3. export sysfs for debug and upper layer.
Change-Id: Iaac6ac671bae26d9bff9c7a480ef44e2b0912b3c
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
yicheng shen [Fri, 30 Mar 2018 07:39:35 +0000 (15:39 +0800)]
hdmirx: fix Coverity errors
PD#163391: hdmirx: fix Coverity errors
#629
#633~640
#643
#587
#691~692
#715
#721
#757~759
#761
#601
#861
Change-Id: I088bc5f13bcad837e26d6216363063cad2ac497c
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
Yi Zhou [Mon, 26 Mar 2018 07:53:21 +0000 (15:53 +0800)]
hdmitx: add prbs debug function
PD#163020: hdmitx: add prbs debug function
method(in kernel):
echo 444,8bit > /sys/class/amhdmitx/amhdmitx0/attr
echo 1080p60hz > /sys/class/display/mode
echo prbs > /sys/class/amhdmitx/amhdmitx0/debug
Change-Id: I07fe69166383105ec3df74fc7df24b95b1a3ab84
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
Yi Zhou [Wed, 28 Mar 2018 11:23:14 +0000 (19:23 +0800)]
hdmitx: clean up deadcode
PD#163222: hdmitx: clean up deadcode
#457
#491~530
#579
#608
#610
#624~642
#842~843
Change-Id: I939566450c2c18ade53d4d7e6a264dccc4982872
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
hongmin hua [Tue, 27 Mar 2018 11:40:05 +0000 (19:40 +0800)]
cec: add the control of arc line[1/2]
PD#159184: cec: add the control of arc line
add audio control interface for switch
Change-Id: I7981451c449435e5974c8321d99fc6c31e66f957
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
Tong Li [Fri, 30 Mar 2018 05:47:55 +0000 (13:47 +0800)]
g12a_s905d2_skt: set the spicc1 disabled.[1/1]
PD#NONE:set the spicc1 disabled.
Change-Id: Ide96ade1278475d80548e87fa94361308ce7d2ba
Signed-off-by: Tong Li <tong.li@amlogic.com>
Xing Wang [Mon, 26 Mar 2018 03:31:07 +0000 (11:31 +0800)]
audio: auge: fix oe pin setting
PD#162710: audio: auge: fix oe pin setting
Change-Id: Ia3a19b1887a60653a1b1bd13018808496ce6f595
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Xing Wang [Tue, 27 Mar 2018 08:40:22 +0000 (16:40 +0800)]
audio: auge: share buffer only for playback
PD#162769: audio: auge: share buffer only for playback
Change-Id: I5313a52ef493ee699a173370a82657bf27a43008
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Bencheng Jing [Thu, 29 Mar 2018 04:17:20 +0000 (12:17 +0800)]
amvecm: optimize gamma table write
PD#163289: amvecm: optimize gamma table write
Change-Id: I2e97b37084c78a0dfb7109c4aeef8898c2bf94c6
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
Huan Biao [Fri, 23 Mar 2018 09:11:52 +0000 (17:11 +0800)]
dts: cooldev: enable gpu cooling devices.
PD#160967: dts: cooldev: enable g12a gpu cooling devices.
Change-Id: Ib04b1e835bdafe939015e4d085a3c76919d4a9fe
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
Lei Qian [Thu, 29 Mar 2018 11:20:03 +0000 (19:20 +0800)]
dts: add txlx_t962x_r311_720p.dts
PD#163339: dts: add txlx_t962x_r311_720p.dts
Change-Id: I007acf0b662b3dbcb8aad20c80bc968659a8f65f
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
Huan Biao [Fri, 23 Mar 2018 07:23:07 +0000 (15:23 +0800)]
cooldev: add gpu cooldev api set for mali ko.
PD#160967: cooldev: add g12a gpu cooldev api.
Change-Id: I5825afcdb22cebae885a373063b6ce9f4c6a9a7a
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
wenbiao zhang [Tue, 27 Mar 2018 03:36:53 +0000 (11:36 +0800)]
u200: set fb mem_alloc flag for mali test
PD#162862: u200: set fb mem_alloc flag for mali test
Change-Id: I129bf5cfb94f957a020cd957b85a1842321df0e0
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
Weiming Liu [Mon, 26 Mar 2018 08:32:40 +0000 (16:32 +0800)]
lcd: sync linux3.14 lcd driver
PD#163027: lcd: synchronous lcd driver from linux3.14
1.add the frame rate adaptive to each panel control alone
2.optimize vx1 phy large vswing
3.perfect the unifykey read way to improve efficiency
4.add i2c_pinmux for power sequence
Change-Id: I548591a5f54a9080e2d721b3b944d5bc511728cc
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
Brian Zhu [Tue, 27 Mar 2018 15:09:19 +0000 (23:09 +0800)]
stb_dv: fix the dv dual layer playing out-sync
PD#163116:
1. vfm: increase the receiver size from 16 to 32
2. vpp: put el vframe toggle when omx dropping frame
Change-Id: Iecb0686e08a0bfb66ef259ea5fc32333fbbbd3e4
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Yi Zhou [Wed, 21 Mar 2018 13:13:55 +0000 (21:13 +0800)]
hdmitx: fix the zigzag problem in color depth mode
PD#160883: hdmitx: fix the zigzag problem in color depth mode
When reset HDMITX_DWC_MC_SWRSTZREQ directly, these pulses may not align.
Therefore, the following steps must be executed.
steps
1.disable video encoder output and controller clocks
2.reset HDMITX_DWC_MC_SWRSTZREQ
3.enable video encoder output and controller clocks
Change-Id: I6cebc299d0a61da878d7c87a131d06f2601b2989
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
wenbiao zhang [Wed, 28 Mar 2018 09:06:59 +0000 (17:06 +0800)]
ethernet: fix for ifconfig eth0 down error
PD#163006: ethernet: fix for ifconfig eth0 down error
Change-Id: I48bfbc8fe9b824269009c8d673cd097ccb85a5e4
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
Nanxin Qin [Wed, 28 Mar 2018 07:30:54 +0000 (15:30 +0800)]
media: fixes an issue that playback audio cause crash.
PD#161244: modify the short address of aiu fifo regs to match g12a.
Change-Id: Idfe935c1710d5a0f091a7796138a56f78fdfe7b4
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
zhilei.wu [Wed, 28 Mar 2018 06:59:41 +0000 (14:59 +0800)]
ge2d: disable src2 alpha with notsupport src2_alp
PD#162344: ge2d: disable src2 alpha with notsupport src2_alp
Change-Id: I049568f57c328ed6128e95ee83c6974226c36544
Signed-off-by: zhilei.wu <zhilei.wu@amlogic.com>
Jiacheng Mei [Wed, 28 Mar 2018 03:11:26 +0000 (11:11 +0800)]
dts: enable node amvenc_avc for encoder[1/2]
PD#162608: enable node amvenc_avc for encoder
Change-Id: If66e4d04b3803b22c638f38958f96db157c2ef14
Signed-off-by: Jiacheng Mei <jiacheng.mei@amlogic.com>
Xingyu Chen [Tue, 27 Mar 2018 10:59:13 +0000 (18:59 +0800)]
pinctrl: keep the same GPIO ID after adding GPIOV_0 for G12A
PD#163124: pinctrl: keep the same GPIO ID after adding GPIOV_0 for G12A
Change-Id: I45b99df3a15e2bf0f7ad34ae8705dc4a509c70a1
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
yu.fang [Wed, 21 Mar 2018 05:26:32 +0000 (13:26 +0800)]
DTS: partitions: change axg partitions for bringup android O
PD#158937: A113 Android O trunk bring up.
Change-Id: Ibdb605b5c17abe8165270621e6893ea1d2ab88ef
Signed-off-by: Yu Fang <yu.fang@amlogic.com>
Signed-off-by: yuehu mi <yuehu.mi@amlogic.com>
Xingyu Chen [Mon, 26 Mar 2018 09:04:10 +0000 (17:04 +0800)]
pinctrl: improve the eth groups for gxl
PD#163038: pinctrl: improve the eth groups for gxl
add "eth_link_led" and "eth_act_led" pin groups to eth function group
Change-Id: I28f434f100be7636ddbc9a5159418d6efb7f027a
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
Sunny Luo [Sat, 24 Mar 2018 09:48:40 +0000 (17:48 +0800)]
spicc: support irregular bit-width
PD#162464: spicc: support irregular bit-width
some device work at a irregular bit-width for example,
11 bit-width and tx data is {0xa1, 0x62},
the LSB bit order is:
10100001 011 (0xa1 + 3 bits of 0x62)
the MSB bit order is:
01100010 101 (0x62 + 3 bits of 0xa1)
note: all case more than 16 bits will run at 4-byte-per-word though one
byte discarded.
to print the difference between tx and rx if mode[16]=1
Change-Id: Ibdd438c3fe764986c71b77ec2d4fa0db489dd439
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
Zhuo Wang [Mon, 26 Mar 2018 08:47:45 +0000 (16:47 +0800)]
ethernet: add eye pattern and phy default value
PD#163016: add eye pattern and modify internal phy status
Change-Id: I18e0164646b17b86187fe1fe5c0189c9c2302130
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
Xingyu Chen [Thu, 15 Mar 2018 03:11:12 +0000 (11:11 +0800)]
keypad: avoid repetition of reporting power key event
PD#160889: keypad: avoid repetition of reporting power key event
If the adc_keypad and gpio_keypad driver are enabled at the same time,
the system will report two power key event when it resumes, and the
second event will result in the system suspend again. The patch resolves
the bug.
Change-Id: Iea4d9e2bf6632e4603dc9743fce07e5af74d0273
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
Weiming Liu [Tue, 20 Mar 2018 05:21:00 +0000 (13:21 +0800)]
lcd_extern: add tl050fhv02ct driver
PD#162533: lcd_extern: add tl050fhv02ct driver
Change-Id: Ie046eb45542327b77ad3897785ecd99378b689fd
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
Xingyu Chen [Mon, 26 Mar 2018 02:16:39 +0000 (10:16 +0800)]
pinctrl: add virtual GPIO "GPIOV_0" for g12a
PD#162992: pinctrl: add virtual GPIO "GPIOV_0" for g12a
The gpio is used to set the bit PERIPHS_PIN_MUX_2 BIT[17]. Please refer
the following method to use it.
1). set the PERIPHS_PIN_MUX_2 BIT[17] to <1>
mux_en {
groups = "sdio_dummy";
function = "sdio";
}
2). set the PERIPHS_PIN_MUX_2 BIT[17] to <0>
mux_dis {
groups = "GPIOV_0";
function = "gpio_periphs";
}
Change-Id: Ied0e6c71ed1ff8ab9a26cb76ec1508d83a4453d7
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
Xingyu Chen [Fri, 23 Mar 2018 08:22:11 +0000 (16:22 +0800)]
pinctrl: add new pinconf attrs "output-high" and "output-low"
PD#162858: pinctrl: add new pinconf attrs "output-high" and "output-low"
we can refer the following example to use:
mux {
groups = "GPIOC_0", "GPIOC_1", "GPIOC_2",
"GPIOC_3", "GPIOC_4", "GPIOC_5";
function = "gpio_periphs";
output-high; // or output-low
}
output-high: GPIO_EN_N[pin]=<0> and GPIO_O[pin]=<1>
output-low : GPIO_EN_N[pin]=<0> and GPIO_O[pin]=<0>
Change-Id: I3f8ec1bd1eff7c7d6e7416b608e4c5d6c7b15955
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
Yixun Lan [Fri, 19 Jan 2018 01:47:01 +0000 (09:47 +0800)]
clk: meson: axg: fix the od shift of the sys_pll
PD#159137: clk: meson: axg: fix the od shift of the sys_pll
According to datasheet, the od shift of sys_pll is 16,
fix the typo which introduced at previous commit.
Change-Id: I8d7e36b1178c0ab7f89791964fe4bb216c551d6d
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
Zhe Wang [Sat, 24 Mar 2018 09:09:06 +0000 (17:09 +0800)]
audio: fixed dts error for spdif out[1/1]
PD#162258: spdif out is no audio output
1) fixed pinmux error
2) add mute flag for Pause
Change-Id: Icb60dba86d5b305eedf78b0fd410e0a16800c503
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
Yi Zeng [Fri, 23 Mar 2018 06:28:12 +0000 (14:28 +0800)]
mtd: use sprintf instead of printk in show functions
PD#134355: mtd: use sprintf instead of printk in show functions
Remove the unused system attribute in dtb and env.
Change-Id: Ie7f7bda60ac1b192708a6b6fd0dc1c77ca1eb0e0
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
Kaifu Hu [Tue, 20 Mar 2018 09:14:45 +0000 (17:14 +0800)]
hdmitx: add enci clktree
PD#162219: hdmitx: add enci clktree
Add enci clktree support for 480i and 576i.
Change-Id: Id7bc3444bd634deb1a52c8faf7f3d2f017d33e73
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>