Ao Xu [Tue, 15 May 2018 07:59:14 +0000 (15:59 +0800)]
script: amlogic: add code scan script
PD#166377: script: amlogic: add code scan script
Add code scan script.
Usage: ./script/amlogic/code_scan.sh [path]
Examples:
# scan all code
./script/amlogic/code_scan.sh
# scan specified directory
./script/amlogic/code_scan.sh drivers/amlogic
scan result is in src code's parent directory, named coverity_html
Change-Id: I069cd99d08014cc50a3bf127e199690649e196c8
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
yicheng shen [Fri, 4 May 2018 08:58:26 +0000 (16:58 +0800)]
hdmirx: fixed the pink screen issue when connect with roku box
PD#165686: hdmirx: fixed the pink screen issue when connect with roku box
Change-Id: Ia1723b9e88bcf7dd0773bc301301e682d35a9c5c
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
hongmin hua [Wed, 9 May 2018 09:17:55 +0000 (17:17 +0800)]
cec: add err initiator int for cec error [2/3]
PD#163965: cec: add err initiator int for cec error
Change-Id: I7a10f4d6a90d2e3a15ec3ed969735aadb230db43
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
shuze.ma [Tue, 15 May 2018 10:52:28 +0000 (18:52 +0800)]
hdmitx: update hdmi phsycial size during hotplug [1/1]
PD#163001: update hdmi phsycial size during hotplug
Change-Id: I71e863c56abbe5ae8dd151de481b1465317cebf1
Signed-off-by: shuze.ma <shuze.ma@amlogic.com>
Xingyu Chen [Tue, 15 May 2018 09:09:22 +0000 (17:09 +0800)]
arm64: dts: txlx: adjust the position of saradc node
PD#165196: arm64: dts: txlx: adjust the position of saradc node
In order to compatible with the saradc driver in uboot, the node
must be placed in the /{}.
Change-Id: I135a89866249b23b89f466699ecdb8cd7f21db82
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
yicheng shen [Fri, 11 May 2018 03:23:12 +0000 (11:23 +0800)]
hdmirx: add new atmos edid handle method
PD#164867: hdmirx: add new atmos edid handle method
Change-Id: I03865be263d195b3b38bf782bd52b992e2084c71
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
Mark Rutland [Thu, 12 Apr 2018 11:11:09 +0000 (12:11 +0100)]
arm64: cpufeature: Pass capability structure to ->enable callback
PD#166068: arm64: cpufeature: Pass capability structure to ->enable callback
Fix CPU-hotplug fail to bringup issue once stopped CPU.
From: Will Deacon <will.deacon@arm.com>
commit
0a0d111d40fd1dc588cc590fab6b55d86ddc71d3 upstream.
In order to invoke the CPU capability ->matches callback from the ->enable
callback for applying local-CPU workarounds, we need a handle on the
capability structure.
This patch passes a pointer to the capability structure to the ->enable
callback.
Change-Id: I2c002dfbba4e923d0e44ab085ede46e6f47c9755
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com> [v4.9 backport]
Tested-by: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
Mark Rutland [Thu, 12 Apr 2018 11:11:07 +0000 (12:11 +0100)]
arm64: cpufeature: __this_cpu_has_cap() shouldn't stop early
PD#166068: arm64: cpufeature: __this_cpu_has_cap() shouldn't stop early
From: James Morse <james.morse@arm.com>
Fix CPU-hotplug fail to bringup issue once stopped CPU.
commit
edf298cfce47ab7279d03b5203ae2ef3a58e49db upstream.
this_cpu_has_cap() tests caps->desc not caps->matches, so it stops
walking the list when it finds a 'silent' feature, instead of
walking to the end of the list.
Prior to v4.6's
644c2ae198412 ("arm64: cpufeature: Test 'matches' pointer
to find the end of the list") we always tested desc to find the end of
a capability list. This was changed for dubious things like PAN_NOT_UAO.
v4.7's
e3661b128e53e ("arm64: Allow a capability to be checked on
single CPU") added this_cpu_has_cap() using the old desc style test.
Change-Id: I29788b05eb636de777de5d4f423097804d465a7b
CC: Suzuki K Poulose <suzuki.poulose@arm.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com> [v4.9 backport]
Tested-by: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
Jihong Sui [Mon, 14 May 2018 09:56:03 +0000 (17:56 +0800)]
hdr: fix the bug that sdr can't switch to hdr for g12a
PD#166004: hdr: fix the bug that sdr can't switch to hdr for g12a
Change-Id: Ia7c14f86d63aa8b00617c47abad14e2eab96d2f6
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
Hong Guo [Mon, 14 May 2018 11:35:02 +0000 (19:35 +0800)]
arm64: dts: g12a: add cpufreq 1.92G.
PD#165143: cpufreq: add cpufreq 1.92G.
Change-Id: I8b9dddf8c4c138bf4b5763f707c174ad48e8a53a
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
bin pang [Mon, 14 May 2018 09:37:57 +0000 (17:37 +0800)]
audio: add 16K mic aux and 32bit feature
PD#164543: audio: 16K mic aux and 32bit support[2/2]
Change-Id: I7e19374cae45821c6189c60eff4b1e2d872ba4c6
Signed-off-by: bin pang <bin.pang@amlogic.com>
Jian Hu [Mon, 14 May 2018 05:29:53 +0000 (13:29 +0800)]
arm64: dts: g12a: add default drive strength for i2c controllers
PD#165715: arm64: dts: g12a: add default drive strength for i2c controllers
Change-Id: I4d909e25d08fa29ac6ebdf756af76bef86bf0bf6
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
nengwen.chen [Thu, 10 May 2018 11:32:49 +0000 (19:32 +0800)]
atv_demod: Add atv color and sound system setting separately [7/8]
PD#165560: Add atv color and sound system setting separately.
Change-Id: I8279143706ddfd705bce95c3f40f701ae9af7829
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
Huan Biao [Fri, 11 May 2018 02:57:31 +0000 (10:57 +0800)]
thermal: fix thermal issue
PD#166068: thermal: fix cpu cooldev work issue and gpupp not match
Change-Id: I26f4626b309cad984e59f3c2f30eb60f1ec5121b
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
Zhuo Wang [Mon, 14 May 2018 04:43:29 +0000 (12:43 +0800)]
ethernet: bypass wol_reg12 check when 10M
PD#166287: 10M wol_reg12 error
Change-Id: I1b9bd412786509d2a4889c58ef634f6391b54e9e
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
Jihong Sui [Thu, 10 May 2018 11:18:01 +0000 (19:18 +0800)]
dtv_demod: modified dtv demod
PD#165971: dtv_demod: modified dtv demod
1. change folder name(amldemod ->dtv_demod);
2. set status 0 when not support;
Change-Id: I96c23b0b333ee0967d5013ebc8915fdffa097433
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
Jian Xu [Fri, 11 May 2018 14:39:17 +0000 (07:39 -0700)]
Merge "audio: add audio spdif format kcontrol [1/2]" into amlogic-4.9-dev
Brian Zhu [Wed, 9 May 2018 14:12:52 +0000 (22:12 +0800)]
vpp: fix the bypass pps condition for non-linear scaler
PD#164896: vpp: fix the bypass pps condition for non-linear scaler
Change-Id: Ie4e30499b6fe12253da52194d2b89002faf28bd2
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Hang Cheng [Thu, 26 Apr 2018 08:48:08 +0000 (16:48 +0800)]
hdmirx: optimize for cases do hdcp1.4 interaction very early
PD#165229: hdmirx: optimize for cases do hdcp1.4 interaction very early
Change-Id: I8b07c2f1be524eed47bde77681c3724b110db618
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
Sandy Luo [Fri, 11 May 2018 08:41:02 +0000 (16:41 +0800)]
dts: g12 socket: change max freq
PD#164108: change max freq to 2G Hz
Change-Id: I6ccb051485ee2ff04ddb6558a63340cd52151464
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
Zhe Wang [Fri, 11 May 2018 06:53:30 +0000 (14:53 +0800)]
audio: add audio spdif format kcontrol [1/2]
PD#165552: add audio spdif format kcontrol
1) remove drc control for ground noise
2) fast attrack for volume
3) add spdif format kcontrol
Change-Id: I3b4574170d808dd7fe955d249e3414880285eb3e
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
Yixun Lan [Fri, 11 May 2018 06:20:29 +0000 (14:20 +0800)]
debug: drop sscanf, use kstrto variant instead
PD#165796: debug: drop sscanf, use kstrto variant instead
kstrto is kernel reconmmend function which is more safe than sscanf
this will also fix the following checkpatch.pl warning
WARNING: Prefer kstrto<type> to single variable sscanf
+ ret = sscanf(buf, "%ld", &val);
Change-Id: I9a4673b9aa43c10f51a20778ba520461ee0a7984
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
Lei Qian [Thu, 10 May 2018 13:17:58 +0000 (21:17 +0800)]
hdmirx: fix deadlock issue
PD#164867: fix deadlock issue
Revert "hdmirx: add new atmos edid handle method"
This reverts commit
6bf27f9a5a1777fe965f0d381296f886085a3c87.
Change-Id: Ica0d99c9b4b3f05ccb86c85693c5cc4d2871bd7a
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
Nian Jing [Thu, 19 Apr 2018 11:46:03 +0000 (19:46 +0800)]
cvbs: cvbs performance for g12a Rev.B
PD#164108: cvbs performance for g12a Rev.B
Change-Id: If140535984762cf6d843878e78ab285e014868e7
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
wenbiao zhang [Wed, 9 May 2018 09:19:08 +0000 (17:19 +0800)]
ethernet: chage u200 buildroot default as internal phy
PD#163830: ethernet: chage u200 buildroot default as internal phy
Change-Id: I1be5bfddae6fc0c43e3da5f604a80cca36cfad6e
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
Jihong Sui [Wed, 9 May 2018 03:25:27 +0000 (11:25 +0800)]
dtv_demod: modify dtv demod to adapter tuner
PD#165971: dtv_demod: Modify atv demod to adapter tuner
1. add get_strength;
2. call release when switch to not-support format;
3. chang DVBT/DVBC from DVBFE_ALGO_SW to DVBFE_ALGO_HW;
Change-Id: I5d58542dd1dded1579e950ec36c395d6a01e6cd7
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
Jian Hu [Thu, 3 May 2018 03:01:00 +0000 (11:01 +0800)]
i2c: fix i2c clock-frequency inaccurate in fast-mode
PD#165568: i2c: fix i2c clock-frequency in fast-mode
1.When i2c controller used in U-boot,may affect i2c
controller in Kernel,should clear i2c registers.
2.Add i2c default clock-frequency for axg.
3.Add i2c clock-frequency debug sysfs, for i2c-0:
/sys/class/i2c-adapter/i2c-0/device/speed
4.change clock high/low = 1:2 to 2:3
Change-Id: I44ca7ecd8e2e7aec978f3240ff837121ae478ba7
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
Nian Jing [Tue, 8 May 2018 08:16:42 +0000 (16:16 +0800)]
vdin: fix atv nosignal after snowon
PD#164655: dynamic config clamp for signal stable
Change-Id: I29c42053d2014b2ba17ab62b9a670b82b0d3550e
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
Jian Hu [Wed, 9 May 2018 05:50:29 +0000 (13:50 +0800)]
pwm: fix min and max duty cycle
PD#165774: pwm: fix min and max duty cycle
When the duty equal 0% and 100%, there is one high or low
count ,the constant bit should be enabled;and constant
bit should be disabled for other duty_cycle.
Change-Id: I36eefee3613f113f6c30db076e41cd8223086c54
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
Shunzhou Jiang [Tue, 10 Apr 2018 02:41:02 +0000 (10:41 +0800)]
cpuidle: enable cpu idle
PD#163959: G12A: enable cpu idle
Change-Id: If5493f037f51092358b8f1c4151655aafec6e379
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
qi.yuan [Fri, 20 Apr 2018 11:08:29 +0000 (19:08 +0800)]
audio: add an interface for HDMI out disable [1/2]
PD#165284: add an interface control for audio hdmi out disable
1)add a gpio control switch for ARCIN and SPDIFIN
2)clean global value in audio driver
3)rewrite HDMITX audio control interface
4)remove HDMITX user space control SYSFS
Forbidden user space control of HDMITX audio, must via AUDIO
Change-Id: Ifc69c8553df903631d80f414771d91966045f85f
Signed-off-by: qi.yuan <qi.yuan@amlogic.com>
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
jiamin ma [Wed, 9 May 2018 00:44:20 +0000 (08:44 +0800)]
ir: fix ir memory overflow issue
PD#164774: kernel panic after mtk_cfg80211_set_power_mgmt
two possible overflow cases:
1. dev->debug_current + len == dev->debug_buffer_size
2. len > dev->debug_buffer_size
for the first case(currently triggered case)
the last byte of string pointed to by fmt, aka.'\0', will
overwrite the first byte of memory pointed to by header(in
function __register_sysctl_table), which is just the LSB of
ipv4_table[]'s base address. Leading to "Unable to handle
kernel paging request at virtual address xxxx" panic
for the second case
a bunch of memory pointed to by header(in function
__register_sysctl_table) will be overwritten
Change-Id: I6bc42308323b7ffb52fe4d1fa9d22742a31e8b1f
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
jianxin.pan [Mon, 7 May 2018 05:51:20 +0000 (13:51 +0800)]
workqueue: add more debug when null pwq
PD#158184: print work and worker function when null pwq
Change-Id: I552c6585935e47abfb9593f4a2d2f1588906aaf8
Signed-off-by: jianxin.pan <jianxin.pan@amlogic.com>
Nian Jing [Wed, 9 May 2018 08:19:02 +0000 (16:19 +0800)]
tvafe: reset vdin asynchronous fifo in tvafe reset
PD#165571: fix greenscreen on repeatly power on/off
Change-Id: Iefa412c2c4f86ba525bfdebbf395d38d34b77a30
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
jianxin.pan [Mon, 7 May 2018 06:25:48 +0000 (14:25 +0800)]
debug: add watchdog trigger in sysrq
PD#165796: watchdog trigger to debug wdt related behavior
"echo x > /proc/sysrq-trigger" to trigger watchdog
Change-Id: Iddd92cd64c9a7ccdf452f23706b396eaf50ae448
Signed-off-by: jianxin.pan <jianxin.pan@amlogic.com>
jianxin.pan [Sat, 20 Jan 2018 07:24:50 +0000 (15:24 +0800)]
debug: hard lockup detect
PD#165796: detect dead lock in isr and dead lock with irq disabled
Change-Id: I0aace28fd29e5aeb8c514f6ab1700ac1248f836c
Signed-off-by: jianxin.pan <jianxin.pan@amlogic.com>
Yi Zhou [Wed, 9 May 2018 07:48:20 +0000 (15:48 +0800)]
hdmitx: remove setting BT2020 in 4k color deptch mode
PD#162864: hdmitx: remove setting BT2020 in 4k color deptch mode
some TVs flash when changing colormetry
such as bt2020 to bt709, or bt709 to bt601
Change-Id: I360dfc1ea3299d4ec75903d435530425afb4f546
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
yicheng shen [Mon, 23 Apr 2018 02:50:25 +0000 (10:50 +0800)]
hdmirx: add new atmos edid handle method
PD#164867: hdmirx: add new atmos edid handle method
Change-Id: I4f6fa58ebfe106cedb9f814c92657f08dc6d2aaf
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
tao zeng [Thu, 26 Apr 2018 03:14:25 +0000 (11:14 +0800)]
ddr: fix wrong bandwidth result on g12 platform
PD#161475: ddr: fix wrong bandwidth result on g12 platform
Correct function name get_ddr_freq to get_dmc_freq in order
to avoid misunderstanding.
Change-Id: I9000970f100394cf63468149d431d05ece2aaa1d
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
Hong Guo [Wed, 25 Apr 2018 06:06:56 +0000 (14:06 +0800)]
arm64: dts: g12a: dvfs voltage duty modify.
PD#165143: cpufreq: dvfs voltage duty modify for 0.731mv.
Change-Id: I85370ea18b68eb3b37636629a9e0da8b26491f83
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
Jian Hu [Fri, 27 Apr 2018 09:16:44 +0000 (17:16 +0800)]
pwm: optimizing pwm duty calculation
PD#165143: pwm: optimizing pwm duty calculation
1.Fix duty equal 0% and 100% duty count incorrect
2.Change period unit to ps to increase accuracy
Change-Id: Ied478f21ac4b4f9f3d1508d69dfbcdbb9ca4e732
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
Nan Li [Mon, 7 May 2018 09:11:24 +0000 (17:11 +0800)]
sd: add sd_uart to g12a.
PD#165584: add sd_uart on g12a.
test on u211.
Change-Id: Ia8e5cde6c60b3019329324445593d82cf2543afe
Signed-off-by: Nan Li <nan.li@amlogic.com>
Zongdong Jiao [Tue, 8 May 2018 02:55:28 +0000 (10:55 +0800)]
hdmitx: set frac_rate_policy as 1.[1/2]
PD#165862: hdmitx: set frac_rate_policy as 1
For most video/films or NTSC, they are 23.976/29.97/59.94fps, so
hdmitx should adjust set frac_rate_policy as 1.
Change-Id: I9671935c5121634d1af6879d8ccd91eb4f92c9cb
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
manhao liang [Tue, 8 May 2018 07:22:01 +0000 (15:22 +0800)]
dtv_mode: R311 add tuner mxl661
PD#165368: dtv_mode: R311 add tuner mxl661
Change-Id: Ifbc3ffece7d30d29e295f3e70c37d9d25ee0ac69
Signed-off-by: manhao liang <manhao.liang@amlogic.com>
Nan Li [Fri, 20 Apr 2018 10:10:33 +0000 (18:10 +0800)]
sd: sd & wifi TDMA crash.
PD#164804: when system run with SD card in,
system will be crashed. rm post_dma() crash error.
Change-Id: I99c10fcbf151a4c349bf6b0584056cd9080349e8
Signed-off-by: Nan Li <nan.li@amlogic.com>
Zhuo Wang [Tue, 8 May 2018 07:22:37 +0000 (15:22 +0800)]
ethernet: add delay after reset phy
PD#165891: can't readout phyid when bootup
Change-Id: I775f4fe9b8c4b2e76475f239e75539ecbe2bf843
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
Brian Zhu [Fri, 4 May 2018 16:11:22 +0000 (00:11 +0800)]
vpp: use correct width to select the min skip ratio
PD#165601: vpp: use correct width to select the min skip ratio
Change-Id: Idcf9ff250c4d6af089dd2b8a25285b81c849a78a
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
nengwen.chen [Fri, 4 May 2018 12:49:01 +0000 (20:49 +0800)]
atv_demod: Modify atv demod to adapter tuner
PD#165368: atv_demod: Modify atv demod to adapter tuner
Change-Id: Ifa69db980dfe9519c80932d22dffbb1fb6600fc9
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
Yi Zeng [Thu, 26 Apr 2018 05:43:12 +0000 (13:43 +0800)]
mtd: add new slc nand type
PD#165148: mtd: add new slc nand type
add the MFR id, flash id and factory bad block
management of Dosilicon & ATO into our code.
Change-Id: If00e026460c6c3f5d354832bef9ba95a0733fdf3
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
Hui Zhang [Thu, 3 May 2018 12:47:49 +0000 (20:47 +0800)]
video_keeper: fixed greenscreen bug
PD#155455: fixed green screen bug
Change-Id: Idbb2ae30b1bd88d1782ff47b485e0cbf476641d0
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
Xing Wang [Thu, 3 May 2018 15:28:50 +0000 (23:28 +0800)]
dts: audio: disable dac for u211
PD#165585: dts: audio: disable dac for u211
Change-Id: I290cc1445e30c5b7de2003f579751d0cf6ce291f
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Weiming Liu [Wed, 11 Apr 2018 02:33:23 +0000 (10:33 +0800)]
lcd_extern: add mipi default driver [2/2]
PD#164036: lcd_extern: add mipi default driver
Change-Id: Id120299c2434a3cce9b154064cd0c7e5dd0bbe8e
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
Chuangcheng Peng [Sun, 29 Apr 2018 07:43:55 +0000 (15:43 +0800)]
demux: add demux irq for txlx
PD#165368: add demux irq for txlx
Change-Id: I165a524cd5e161b22ee21318d9379bb139622e2f
Signed-off-by: Chuangcheng Peng <chuangcheng.peng@amlogic.com>
Jihong Sui [Sat, 28 Apr 2018 04:51:24 +0000 (12:51 +0800)]
dtv_demod: add dtv demod for txlx
PD#165005: dtv_demod: add dtv demod for txlx
Change-Id: I311fea46351644902a5e886be4623601e21ec6ac
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
Bang Peng [Thu, 3 May 2018 08:25:41 +0000 (16:25 +0800)]
mm: fixed tvp alloc failed
PD#159668: fixed tvp alloc failed
[<
ffffff80091c38a0>] shrink_inactive_list+0x578/0x584
[<
ffffff80091c42c4>] shrink_node_memcg.isra.71+0x6a4/0x734
[<
ffffff80091c43c8>] shrink_node+0x74/0x1e0
[<
ffffff80091c46f0>] try_to_free_pages+0x1bc/0x4c0
[<
ffffff80091b3f10>] __alloc_pages_nodemask+0x5a8/0xd0c
[<
ffffff8009983898>] get_migrate_page+0x2c/0x34
[<
ffffff8009203c84>] migrate_pages+0xe0/0x890
[<
ffffff8009983548>] aml_alloc_contig_migrate_range+0x98/0x150
[<
ffffff8009983788>] cma_boost_work_func+0x188/0x26c
[<
ffffff80090c53e8>] kthread+0x10c/0x120
[<
ffffff80090836e0>] ret_from_fork+0x10/0x30
Change-Id: Iada340b48dcb2ba2ebf7570a15cec21553fd0d0a
Signed-off-by: Bang Peng <bang.peng@amlogic.com>
Yi Zhou [Thu, 3 May 2018 07:22:27 +0000 (15:22 +0800)]
hdmitx: fix frac_rate flag changed when setting mode
PD#165548: hdmitx: fix frac_rate flag changed when setting mode
Change-Id: Ie6d96ec6c7f58d17f02e241aa0aa122c7db1c0a2
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
Nan Li [Thu, 3 May 2018 07:06:51 +0000 (15:06 +0800)]
sd: open the macro of sd_uart func.
PD#165593: open the macro of sd_uart func.
Change-Id: Icf7c4c2faf7297a1da0bda47b4c648bb49faac2a
Signed-off-by: Nan Li <nan.li@amlogic.com>
bichao.zheng [Thu, 26 Apr 2018 06:03:40 +0000 (14:03 +0800)]
dts: g12a: add system led control for u200 [2/2]
PD#165027: gpio-led: g12a_s905d2_u200 add system led
1.Turns on green light when booting and resume.
2.Turns off green light,turns on red light when suspend and shutdown
Change-Id: I170b4745b320a5525fe128c025f2670103950922
Signed-off-by: bichao.zheng <bichao.zheng@amlogic.com>
Hui Zhang [Thu, 3 May 2018 09:53:49 +0000 (17:53 +0800)]
video_keeper: fixed unexpected green screen when seek
PD#162351:
when start to toggle frame, the disable video cmd is set,
and seek immediately, play will be quit before enable video,
so keep failed and cur_dispbuf is uncertain, it may cause
unexpected green screen after seek
Change-Id: I62526b3dda0256d7a9476d378a13baffb4785bd6
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
Hui Zhang [Thu, 3 May 2018 09:43:44 +0000 (17:43 +0800)]
codec_mm: fixed scatter cached bug
PD#159652: it may occur in tvp mode, no tvp may a lost less.
some free slot not insert free list after first alloc.
this leads to a lot of wasted memory
Change-Id: Ia62d7f661ee5bc1563cac0980da604e5d8356113
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
zhilei.wu [Thu, 3 May 2018 08:21:45 +0000 (16:21 +0800)]
dv: maintain previous md when md parser error to fix red screen
PD#157814: dv: maintain previous md when md parser error to fix red screen
Change-Id: Ie1b0c556ae65d275fdbd074356f633485bc5217a
Signed-off-by: zhilei.wu <zhilei.wu@amlogic.com>
Nan Li [Fri, 20 Apr 2018 05:53:51 +0000 (13:53 +0800)]
emmc: modify emmc shutdown time too long
PD#164859: modify emmc shutdown time too long.
Kingston EMMC08G-T227 POWER_OFF_LONG_TIME is 0xff,
shutdown time is too long.
modify mmc_delay 0 when POWER_OFF_LONG_TIME is 0xff.
Change-Id: Ie85be335a77d9ec82a12158996c2c773d113c41f
Signed-off-by: Nan Li <nan.li@amlogic.com>
zhilei.wu [Thu, 12 Apr 2018 07:17:15 +0000 (15:17 +0800)]
dv: below 720p was chaged to HDR10 mode in Dolby
PD#163239: dv: below 720p was changed to HDR10 in Dolby
Change-Id: Ie6cedbc03582e4b36b6d3a8c628bbf41001862c2
Signed-off-by: zhilei.wu <zhilei.wu@amlogic.com>
Brian Zhu [Wed, 2 May 2018 14:57:04 +0000 (22:57 +0800)]
vpp: adjust dmc for every YUV444 frame
PD#165450: vpp: adjust dmc for every YUV444 frame
Change-Id: I07da12c337b2ba5b8af3b9d5c17e6a9ba080f83e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
nengwen.chen [Tue, 24 Apr 2018 08:51:22 +0000 (16:51 +0800)]
atv_demod: Modify atv io ctrl and memory alloc for atv crash.
PD#165008: Modify atv io ctrl and memory alloc for atv crash.
Change-Id: Ib6aa737ffad5d155022ad276ecf16ce2a7537138
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
Xingyu Chen [Wed, 2 May 2018 09:33:33 +0000 (17:33 +0800)]
dts: disable saradc feature for u221
PD#165535: dts: disable saradc feature for u221
Change-Id: I442690cfdae5c1964bcef3cfb7810421cfc77d01
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
Yue Wang [Wed, 2 May 2018 08:45:52 +0000 (16:45 +0800)]
pcie: disable pcie feature in u221.
PD#165524: pcie: disable pcie feature in u211.
Change-Id: I7fd8108a167a745622b0b4d0582ca25caf3f0286
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
Yonghui Yu [Thu, 26 Apr 2018 15:10:57 +0000 (23:10 +0800)]
emmc: using rx delay to avoid invalid tuning
PD#165303: emmc: using rx delay to avoid invalid tuning
When emmc work at hs200@200Mhz, tuning result using fixed
adj mode may got a full window. The tuning result contains
invalid point. we have to adjust rx-delay to avoid it.
Change-Id: I33c5e234fe0f480180b0c9312641ba7a0a4e9cfb
Signed-off-by: Yonghui Yu <yonghui.yu@amlogic.com>
yicheng shen [Thu, 26 Apr 2018 13:33:32 +0000 (21:33 +0800)]
vdin: add force_color_range control[1/2]
PD#165178: vdin: add force_color_range control[1/2]
Change-Id: I5f8a94ed0416867841bc8d1c744e176cced64fc6
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
wenbiao zhang [Mon, 5 Feb 2018 02:16:30 +0000 (10:16 +0800)]
dts: update q200/p241 buildroot dts
PD#160248: dts: update q200/p241 buildroot dts
Change-Id: Ice6038373877ad2911e45a21888beed5a2f2f604
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
pengcheng chen [Sat, 28 Apr 2018 03:11:56 +0000 (11:11 +0800)]
osd: fix buildroot compile error issue
PD#163270: osd: fix buildroot compile error issue
Change-Id: I4745a302bc78a714a3f1cba464f4cfac86309378
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
Yi Zhou [Fri, 27 Apr 2018 09:00:15 +0000 (17:00 +0800)]
hdmitx: add drm flag in hdmitx driver
PD#165128: hdmitx: add drm flag in hdmitx driver
Change-Id: I56e4dc7ecf88a7ec330665d9dcff9744eac3d701
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
yicheng shen [Tue, 24 Apr 2018 07:53:50 +0000 (15:53 +0800)]
hdmirx: fix no HDR effect issue when the box is playing HDR videos
PD#164596: hdmirx: fix no HDR effect issue when the box is playing HDR videos
The previous irq_handle logic may miss some interrupts with a low probability.
Change-Id: I6ff1d8d9e25abc5b36dd60b7a479cab7700458ee
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
Dezhi Kong [Tue, 24 Apr 2018 08:38:29 +0000 (16:38 +0800)]
di: mark di debug info default
PD#164230: di; mark di debug info default
Change-Id: Ib09afe967167f5974540232870e9c19e6c065bfb
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
Evoke Zhang [Sat, 28 Apr 2018 02:10:27 +0000 (10:10 +0800)]
r311: lcd: modify lvds panel backlight pwm polarity
PD#163711: r311: modify lvds panel backlight pwm polarity
Change-Id: Iaa9211554957cb0bed0794561192cc9e960d378c
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
Weiming Liu [Thu, 19 Apr 2018 02:16:52 +0000 (10:16 +0800)]
ldim: add iw7027 driver
PD#164701: ldim: add iw7027 driver
Change-Id: I75dd8e802b2eecf2d3d9d2f32935721f1a1bb285
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
Dezhi Kong [Fri, 27 Apr 2018 10:44:54 +0000 (18:44 +0800)]
sr: fix calc issue
PD#159391: sr: fix calc issue
Change-Id: I4c52efe4fb09fd3b2516e8e46cef793a19a4003d
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
kele bai [Thu, 26 Apr 2018 13:08:08 +0000 (21:08 +0800)]
di: fix pre timeout issue for pq load
PD#165280: di: fix timeout issue for pq load
1) freerun pre clock
2) skip ctrl&enable regsiters loaded from pq db
Change-Id: If9a5c7923195b29f7cef0cb97aaa2cc4c2533ff2
Signed-off-by: kele bai <kele.bai@amlogic.com>
pengcheng chen [Fri, 27 Apr 2018 09:05:29 +0000 (17:05 +0800)]
dts: q201: fix osd driver probe fail issue
PD#163270: osd: fix q201 osd driver probe fail issue
Change-Id: I41276e09367079bafdbfedaea41cf8484815ac33
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
Long Yu [Tue, 24 Apr 2018 05:51:22 +0000 (13:51 +0800)]
emmc: DS shift picked the wrong window middle point
PD#165086: emmc: DS shift picked the wrong window middle point
Change-Id: If96b854b4e9669426351ba89d36e2d2a7dcf6be4
Signed-off-by: Long Yu <long.yu@amlogic.com>
Evoke Zhang [Thu, 26 Apr 2018 01:27:16 +0000 (09:27 +0800)]
lcd: correct CONFIG_AMLOGIC_UNIFYKEY for lcd unifykey usage [5/5]
PD#163711: lcd: correct CONFIG_AMLOGIC_UNIFYKEY for lcd unifykey usage
Change-Id: I235bada07a7082e5315fb4e48c30a34c11145f40
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
jiamin ma [Thu, 26 Apr 2018 06:59:00 +0000 (14:59 +0800)]
unifykey: add helper API so we can call unifykey APIs from drivers [4/5]
PD#165222: crash if call unifykey APIs from other drivers
example to call unifykey APIs from kernel space:
ret = key_unify_query(get_ukdev(), key_name, &key_exist, &keypermit);
Change-Id: I2e7f6cdad21c9faa4d95d0536b187ece485a5b46
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
pengcheng chen [Mon, 26 Feb 2018 06:39:34 +0000 (14:39 +0800)]
osd: add osd support hwc interface
PD#163270: osd: add osd support hwc interface
Change-Id: I17854518b63b0ecb6c13a4550364b6ede02fdb8d
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
Dezhi Kong [Wed, 25 Apr 2018 11:29:38 +0000 (19:29 +0800)]
vpp: fix vskip line calc issue
PD#164045: vpp: fix vskip line calc issue
Change-Id: I9ff41cac9220bae9f521987d4716e462b28c5fff
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
kele bai [Mon, 23 Apr 2018 07:10:47 +0000 (15:10 +0800)]
di: fix hardlock issue
PD#157641: di: fix hardlock issue
1) add protection for di vf get
2) add missing irq restore
Change-Id: I8e0cfce609b04564279a90109851f8e2859b1651
Signed-off-by: kele bai <kele.bai@amlogic.com>
Matthew Shyu [Mon, 16 Apr 2018 05:53:03 +0000 (13:53 +0800)]
dts: Enable dm-verity on system and vendor [2/3]
PD#164354: Enable dm-verity on system and vendor partition for
partition_mbox_normal.dtsi
Change-Id: Ia6b7d89de5d03734cd76425415776fd32dc9598a
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
Hui Zhang [Wed, 18 Apr 2018 07:54:50 +0000 (15:54 +0800)]
kernel: add s805 package define
PD#163927: add a interlace to get s805x package
Change-Id: I7ff61a52e24215aae557c12fcffea783abceac2c
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
rongrong zhou [Fri, 13 Apr 2018 06:46:33 +0000 (14:46 +0800)]
media: fix crash in viu_set_dcu
PD#164288: 1. add check in viu_set_dcu.
2. do not clear cur_dispbuf in irq & unreg
Unable to handle kernel NULL pointer dereference at virtual address
0000000c
task:
ffffff800a688900 task.stack:
ffffff800a670000
PC is at vsync_isr+0x2c20/0x51e0
LR is at vsync_isr+0x2c04/0x51e0
[<
ffffff80098398cc>] vsync_isr+0x2c20/0x51e0
[<
ffffff80091072bc>] __handle_irq_event_percpu+0x68/0x23c
[<
ffffff80091074d0>] handle_irq_event_percpu+0x40/0x94
[<
ffffff8009107570>] handle_irq_event+0x4c/0x7c
[<
ffffff800910b66c>] handle_fasteoi_irq+0xd4/0x1a4
[<
ffffff8009106268>] generic_handle_irq+0x34/0x4c
[<
ffffff8009106974>] __handle_domain_irq+0x90/0xf8
[<
ffffff80090815f4>] gic_handle_irq+0x5c/0xa8
Change-Id: I871bf078c25cbb92889d592ee7cb88cea62f089c
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
kele bai [Tue, 24 Apr 2018 05:21:46 +0000 (13:21 +0800)]
di: fix if2 disable issue
PD#164232: di: fix if2 disable issue
Change-Id: I0976e22738045c97e8ff1c9bd13d4e1b301b6eac
Signed-off-by: kele bai <kele.bai@amlogic.com>
Evoke Zhang [Thu, 19 Apr 2018 09:51:53 +0000 (17:51 +0800)]
lcd: optimize mipi clk sequence for LP mode
PD#163160: lcd: optimize mipi clk sequence for LP mode
Change-Id: I5006fb3bc4afe0a86cdea2aea45281f7cfd7da37
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
Xing Wang [Mon, 23 Apr 2018 10:55:34 +0000 (18:55 +0800)]
audio: meson: fix spdif buffer size and optimizing copy
PD#164044: audio: meson: fix spdif buffer size and optimizing copy
Change-Id: Ib734b39db7334a332924dd9e100be1d2f865df31
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Lei Qian [Wed, 25 Apr 2018 09:38:07 +0000 (17:38 +0800)]
dts: reduce r311 720p ion mem to 32m
PD#165131: dts: reduce r311 720p ion mem to 32m
Change-Id: I337fdefd538f789a03cbc2adbce511c2adee7478
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
Zhuo Wang [Wed, 25 Apr 2018 06:57:07 +0000 (14:57 +0800)]
ethernet: disable clkout ephy
PD#165111: disable ephy clk_out
Change-Id: Icecff2b903a0ae0c91cabefd15803aaa74948e74
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
Lei Qian [Tue, 24 Apr 2018 12:57:49 +0000 (20:57 +0800)]
dts: txlx add multi dtb function [1/7]
PD#165131: dts: txlx add multi dtb function
Change-Id: Iafdc84a887046d9d5117532468e6f4059481b85f
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
Hang Cheng [Mon, 23 Apr 2018 08:32:45 +0000 (16:32 +0800)]
hdmirx: optimize audio channel map
PD#154135: hdmirx: optimize audio channel map
set audio channel map according to received audio subpackets
layout and audio speaker allocation info.
Change-Id: I9438b25d422704bed4dba3c19fbd215365c8996f
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
Sunny Luo [Wed, 25 Apr 2018 03:26:03 +0000 (11:26 +0800)]
spicc: change txlx dts to use amlogic driver.
PD#164701: spicc: change txlx dts to use amlogic driver.
1. disable upstream dt and add amlogic dt on r311.
1. fix dirspi interface error for ldim.
Change-Id: Ia610cbb69ba03aea63fae8adbeb76579c0250de1
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
Ao Xu [Tue, 24 Apr 2018 12:44:18 +0000 (20:44 +0800)]
defconfig: update buildcheck defconfig
PD#149771: update buildcheck defconfig
in fs/proc/uid.c file, compile will fail
when CONFIG_CPU_FREQ_TIMES is not set
Change-Id: Icdab57085749c1d8ce1b5886f2c1b52a2acc913d
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
Xing Wang [Tue, 24 Apr 2018 08:21:44 +0000 (16:21 +0800)]
audio: auge: add spdifin sample rate and audio type event
PD#149689: audio: auge: add spdifin sample rate and audio type event
Change-Id: I1991711ddfda438ad5c0ffa602e4364eec0737a8
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Victor Wan [Tue, 24 Apr 2018 09:43:19 +0000 (17:43 +0800)]
Merge branch 'android-4.9' into amlogic-4.9-dev
Signed-off-by: Victor Wan <victor.wan@amlogic.com>
Conflicts:
arch/arm/configs/bcm2835_defconfig
arch/arm/configs/sunxi_defconfig
include/linux/cpufreq.h
init/main.c
wenbiao zhang [Thu, 19 Apr 2018 02:49:16 +0000 (10:49 +0800)]
dts: add g12a x2 u211 buildroot config
PD#165073: dts: add g12a x2 u211 buildroot config
Change-Id: I3e47f0b8bdd2f08add89b122edc7426651fdf5c7
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>