platform/kernel/linux-amlogic.git
5 years agorlimits: increase memlock limit [1/1]
Hanjie Lin [Fri, 26 Oct 2018 08:23:34 +0000 (16:23 +0800)]
rlimits: increase memlock limit [1/1]

PD#SWPL-982

Problem:
CtsHostsideNetworkTests module 22 fail
netd can't create bpf map because of memlock limit

Solution:
increase memlock limit

Verify:
p212

Change-Id: Ia770fce7d826c639b171f8e8807425202de58320
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agoemmc: get emmc cmd-window for HS400 busmode
Long Yu [Tue, 31 Jul 2018 06:45:21 +0000 (14:45 +0800)]
emmc: get emmc cmd-window for HS400 busmode

PD#169808: emmc: get emmc cmd-window for HS400 busmode

Change-Id: I88de1e9e5470bb6be7ad91e1ee58f5636f994923
Signed-off-by: Long Yu <long.yu@amlogic.com>
5 years agohdmitx: add hdr10+ mechanism in hdmitx [2/2]
Yi Zhou [Wed, 17 Oct 2018 09:07:55 +0000 (17:07 +0800)]
hdmitx: add hdr10+ mechanism in hdmitx [2/2]

PD#SWPL-869

Problem:
need support hdr10+

Solution:
1. parse hdr10+ vsvdb
2. add hdr10+ vsif

Verify:
U200(G12A)

Change-Id: I0761efa7cadcb73bd9394820b080c9a127d03382
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agomtd: nand: tl1: add support slc nand driver [1/1]
xianjun.liu [Fri, 12 Oct 2018 07:35:51 +0000 (15:35 +0800)]
mtd: nand: tl1: add support slc nand driver [1/1]

PD#172587

Problem:
Bringup slc nand for TL1.

Solution:
Add mtd driver for TL1.

Verify:
Just coding for tl1 and test later.

Change-Id: I910a8047394e0ff8fa7e617b90502910e1186c68
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
5 years agoarm: dts: tl1: add spi-nor node for tl1 [1/1]
Yi Zeng [Wed, 17 Oct 2018 09:21:24 +0000 (17:21 +0800)]
arm: dts: tl1: add spi-nor node for tl1 [1/1]

PD#172587

Problem:
Bringup spi-nor for TL1.

Solution:
Add spi-nor node into dts file, default disabled.

Verify:
Verified on PXP.

Change-Id: I9edd358d41b052b7ecae47a550dcacbc27353955
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
5 years agoemmc: meson: add sdcard support for tl1 [1/1]
Ruixuan Li [Fri, 28 Sep 2018 12:04:23 +0000 (20:04 +0800)]
emmc: meson: add sdcard support for tl1 [1/1]

PD#172587

Problem:
Bringup emmc for tl1.

Solution:
Add sdcard support for tl1.

Verify:
Verified on pxp.

Change-Id: I73503d36b671da8d88a3613b4d6fd17434ff1fbf
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
5 years agoethernet: fix crash when not use gpioz14/15 [1/1]
Zhuo Wang [Thu, 25 Oct 2018 09:40:44 +0000 (17:40 +0800)]
ethernet: fix crash when not use gpioz14/15 [1/1]

PD#174843

Problem:
g12b will crash when not include internal_eth_pins

Solution:
continue when it null

Verify:
verified in w400 with liaomin

Change-Id: Ib636e307f0697fa4eab1d0784543af96641def2e
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
5 years agobuildroot: Enable ppmgr in g12b_a113d_skt DTS [1/1]
Blance Tang [Thu, 25 Oct 2018 09:27:44 +0000 (17:27 +0800)]
buildroot: Enable ppmgr in g12b_a113d_skt DTS [1/1]

PD#SWPL-802

Problem:
  Black screen when play video, due to ppmgr is not enabled in g12b_skt
dts

Solution:
  Enable ppmgr in g12b_a113d_skt DTS file

Verify:
  W400

Change-Id: Ibe94b113552d54d365775556807bdacb249f9a00
Signed-off-by: Blance Tang <guofeng.tang@amlogic.com>
5 years agoosd: fix osd get windows axis error [1/1]
pengcheng chen [Tue, 23 Oct 2018 01:32:05 +0000 (09:32 +0800)]
osd: fix osd get windows axis error [1/1]

PD#IPTV-31

Problem:
get sys class windows axis error

Solution:
fix osd get windows axis error

Verify:
u211

Change-Id: I5df5880bc43cb663255ecbf72d2b93b9c099b811
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
5 years agoemmc: emmc: modify the memory allocation mode when operate dtb [1/1]
Ruixuan Li [Tue, 23 Oct 2018 05:14:33 +0000 (13:14 +0800)]
emmc: emmc: modify the memory allocation mode when operate dtb [1/1]

PD#SWPL-426

Problem:
black screen when OTA upgrade

Solution:
modify the memory allocation mode when operate dtb

Verify:
p212

Change-Id: Idf67edd44f5e9f1d88be1e552fae485e04a655c6
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
5 years agovpp: add video disable for g12 [1/1]
Dezhi Kong [Fri, 19 Oct 2018 06:52:15 +0000 (14:52 +0800)]
vpp: add video disable for g12 [1/1]

PD#174579

Problem:
osd shake once after quit local video play

Solution:
add video disable in advance for g12

Verify:
u211

Change-Id: Ic43693b25cf7bf8be24801a22ad36ac09c84a475
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
5 years agoemmc: add sd/sdio fixdiv calc support [1/1]
Nan Li [Thu, 27 Sep 2018 03:11:48 +0000 (11:11 +0800)]
emmc: add sd/sdio fixdiv calc support [1/1]

PD#SWPL-139

Problem:
kernel sd card r/w error.

Solution:
add fixdiv calculate supported.

Verify:
verified in u200.

Change-Id: Ib454ffee5db26194631ae2e1c3d127bceab59bb7
Signed-off-by: Nan Li <nan.li@amlogic.com>
5 years agoethernet: add g12a/b mac wol function [1/1]
Zhuo Wang [Wed, 12 Sep 2018 07:28:29 +0000 (15:28 +0800)]
ethernet: add g12a/b mac wol function [1/1]

PD#173550

Problem:
g12a no wol function in internal phy, we add this function in mac

Solution:
add wol function in MAC

Verify:
verified in u200 board with uboot patch from guohong

Change-Id: I0a8fa81fbfb81d79c471bbafe68174118e276a46
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
5 years agotsync: tsync: fix av sync problem random [1/1]
live.li [Mon, 22 Oct 2018 11:10:50 +0000 (19:10 +0800)]
tsync: tsync: fix av sync problem random [1/1]

PD#SWPL-906

Problem:
The video and audio did not synchronous randomly

Solution:
it seems system time increase not by vsync isr,
so change the system time get interface to make
sure system time increase by vsync isr when
amaster mode

Verify:
R311&P321 32bit&64bit version

Change-Id: Ib3a556ba097fc6f0c51fd4560ab8101c6e7f509c
Signed-off-by: live.li <live.li@amlogic.com>
5 years agoMerge "debug: After reboot,the platform print a lot of logs Frequency [1/1]" into...
Tao Zeng [Tue, 23 Oct 2018 09:47:34 +0000 (02:47 -0700)]
Merge "debug: After reboot,the platform print a lot of logs Frequency [1/1]" into amlogic-4.9-dev

5 years agoMerge "dv: fix the flickered problem [1/1]" into amlogic-4.9-dev
Tao Zeng [Tue, 23 Oct 2018 08:54:35 +0000 (01:54 -0700)]
Merge "dv: fix the flickered problem [1/1]" into amlogic-4.9-dev

5 years agoaudio: solve 32bit system hdmi in mute issue [1/1]
Lianlian Zhu [Mon, 22 Oct 2018 08:55:57 +0000 (16:55 +0800)]
audio: solve 32bit system hdmi in mute issue [1/1]

PD#SWPL-813

Problem:
audio_iomap read audin reg 2800 error

Solution:
register val read from aml_read_cbus
maybe not positive number in 32bit system,
so change *val == -1 to judge mistake.

Verify:
verified by p321

Change-Id: Ie87001fa1daa621cadc2ce329d8dd863f39dcdb6
Signed-off-by: Lianlian Zhu <lianlian.zhu@amlogic.com>
5 years agopagetrace: add support for arm 32bit [1/1]
tao zeng [Tue, 23 Oct 2018 03:06:27 +0000 (11:06 +0800)]
pagetrace: add support for arm 32bit [1/1]

PD#SWPL-917

Problem:
On ARM32, reading of /proc/pagetrace get nothing output

Solution:
fix page trace print for ARM32 and improve read speed

Verify:
p212

Change-Id: I8963ad0cfaa403f69b9f1a56523bbd5b1d7b6980
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
5 years agodv: fix the flickered problem [1/1]
Yi Zhou [Tue, 16 Oct 2018 02:26:02 +0000 (10:26 +0800)]
dv: fix the flickered problem [1/1]

PD#SWPL-348

Problem:
fix the flickered problem.

Solution:
when dv core1 don't run, the reset can't be executed

Verify:
t962e (txlx)

Change-Id: I90e78676bbe64ded505148aa4c2516d808bf4a82
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agomm: change filecache reclaim policy for CMA [1/1]
tao zeng [Mon, 22 Oct 2018 00:34:12 +0000 (08:34 +0800)]
mm: change filecache reclaim policy for CMA [1/1]

PD#SWPL-119

Problem:
High IOW usually happen when start playing 4K video. This
is because codec drvier will using large amount of memory
from CMA pool. And many filecache will be dropped after CMA
allocation finished without considering mapcount of each
file cache page.

Solution:
Check mapcount of filecache for each file pages. And migrate
them if they have high map count. High map count means this
file cache page is shared by many process.

Verify:
verified by ampere

Change-Id: I3e09437286f14a6cd9f7025566eb855dc9ca98d5
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
5 years agodts: add partition_mbox_p241.dtsi. [1/1]
Luan Yuan [Tue, 23 Oct 2018 06:41:08 +0000 (14:41 +0800)]
dts: add partition_mbox_p241.dtsi. [1/1]

PD#SWPL-924

Problem:
It occurs error when the kernel is compiled separately.

Solution:
copy partition_mbox_p241.dtsi to common/arch/arm/boot/dts/amlogic/

Verify:
verify by curie

Change-Id: Id5821c50c1333f6c91c2559894b10181a41df6a6
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agoscript: fix the defects in the merge_pre_check.pl [1/1]
Jianxiong Pan [Tue, 23 Oct 2018 04:24:57 +0000 (12:24 +0800)]
script: fix the defects in the merge_pre_check.pl [1/1]

PD#174488

Problem:
some defects in the script.

Solution:
rechange check rules in the script.

Verify:
verified locally.

Change-Id: I9c7011d1bd3b1d52131318dae34112d0d0164a00
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
5 years agoMerge "dts: add support 32bit curie(805x) [1/1]" into amlogic-4.9-dev
Tao Zeng [Tue, 23 Oct 2018 03:16:18 +0000 (20:16 -0700)]
Merge "dts: add support 32bit curie(805x) [1/1]" into amlogic-4.9-dev

5 years agodts: add support 32bit curie(805x) [1/1]
Luan Yuan [Mon, 22 Oct 2018 04:23:35 +0000 (12:23 +0800)]
dts: add support 32bit curie(805x) [1/1]

PD#SWPL-889

Problem:
support 32bit curie(805x).

Solution:
add 32bit dts for curie(805x)
when KERNEL_A32_SUPPORT=true kernel 32bit build,
otherwise kernel 64bit build defaultly.

Verify:
verify by curie

Change-Id: I0ac24d4b2f6be1e3cd7241120ef06bfc9f46f2b8
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agodts: aarch32: modify timer for aarch32 [1/1]
Hanjie Lin [Wed, 17 Oct 2018 08:51:28 +0000 (16:51 +0800)]
dts: aarch32: modify timer for aarch32 [1/1]

PD#SWPL-663

Problem:
32bit_kernel VtsKernelLinuxKselftest module 1 fail
can't find __vdso_gettimeofday

Solution:
modify timer for aarch32

Verify:
p212 boot normal

Change-Id: Id7a6f656eabf5230dcd60f6c25f39419577bba64
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agodefconfig: enable CONFIG_NETFILTER_XT_MATCH_BPF [1/1]
Hanjie Lin [Mon, 22 Oct 2018 06:40:58 +0000 (14:40 +0800)]
defconfig: enable CONFIG_NETFILTER_XT_MATCH_BPF [1/1]

PD#SWPL-867

Problem:
VtsKernelConfig modules 1 fail
The following configs should be enabled: [CONFIG_NETFILTER_XT_MATCH_BPF]

Solution:
enable CONFIG_NETFILTER_XT_MATCH_BPF

Verify:
p212 boot normal

Change-Id: Iff38b23aba53c4663f1ca82bedfd8f3c55200835
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agosuspend: dts: solve system with the 32bit can not enter suspend state issue
zhiqiang.liang [Mon, 22 Oct 2018 09:31:50 +0000 (17:31 +0800)]
suspend: dts: solve system with the 32bit can not enter suspend state issue

PD#SWPL-495

problem:
Android P mainline 32bit can not enter suspend

solution:
modify the system sleep parameter

verify:
p321

Change-Id: I1ca5ee2043416c53e3301f5778a8ae8944292fc4
Signed-off-by: zhiqiang.liang <zhiqiang.liang@amlogic.com>
5 years agodebug: After reboot,the platform print a lot of logs Frequency [1/1]
jiamin ma [Mon, 22 Oct 2018 01:02:52 +0000 (09:02 +0800)]
debug: After reboot,the platform print a lot of logs Frequency [1/1]

PD#SWPL-892

Problem:
We can see many user space unhandled page fault at 0 address:
such as
[  140.882524@2] Chrome_InProcGp: unhandled page fault (11) at
0x00000000, code 0x005
which seems to be triggered by user space on purpose

Solution:
Show debug infos only if this fault cannot be handled by user
space

Verify:
Locally on P212

Change-Id: I54e8256de2f5465e5dd0f8d90d9d9058fe67f808
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
5 years agodts: add cpu idle for txl 32bit [1/1]
Sandy Luo [Mon, 22 Oct 2018 08:32:28 +0000 (16:32 +0800)]
dts: add cpu idle for txl 32bit [1/1]

PD#SWPL-815

Problem:
It cann't suspend/resume for txl platform because idle issue.

Solution:
Open idle in dts file.

Verify:
verified by txl P321 platform

Change-Id: I8f133eb8c974f5fe6f351a4d9f83e677209ce7d2
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
5 years agogdc: add a new handle interface [1/1]
keke.li [Fri, 19 Oct 2018 05:58:38 +0000 (13:58 +0800)]
gdc: add a new handle interface [1/1]

PD#173042

Problem:
user app need a new ioctl interface to handle image

Solution:
add a new ioctl cmd GDC_HANDLE to handle image

Verify:
verify by keke.li

Change-Id: I79ddc01962e4b2a40130ecd32cfebe5c1a7133e6
Signed-off-by: Keke Li <keke.li@amlogic.com>
5 years agomm: do not recache pages at the end of playback
rongrong zhou [Thu, 18 Oct 2018 03:13:15 +0000 (11:13 +0800)]
mm: do not recache pages at the end of playback

PD#SWPL-700

Problem:

The reset action will re-allocate the memory before the end of playback.
At this time, the codec_mm_scatter_mgt_delay_free_swith will raise the
cache pages from 20M to force_cache_page_cnt, resulting in redundant
allocation, resulting in memory fragmentation and more time-consuming
in reset action.

Solution:
Modify the judgment cache condition.

Verify:
verified by P212 platform

Change-Id: Ibe8bbbb1281667095d7c05daba48f75a8fae0dac
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
5 years agohdmitx: repeater need to update edid [1/1]
Kaifu Hu [Mon, 15 Oct 2018 03:22:55 +0000 (11:22 +0800)]
hdmitx: repeater need to update edid [1/1]

PD#174510

Problem:
Soundbar has no sound when playing DTS audio
on HDMI source.

Solution:
Only repeater need to update RX edid as TV edid.

Verify:
Atom

Change-Id: I3d6def33477e6846a7365e888c207b1758060a38
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
5 years agoosd: add new osd capacity. [1/1]
sky zhou [Tue, 18 Sep 2018 11:12:34 +0000 (19:12 +0800)]
osd: add new osd capacity. [1/1]

PD#163001

Problem:
need update osd capacity for hwc modified

Solution:
osd: add new osd capacity.

Verify:
verified in u200 board1

Change-Id: I3d5f457b8d7277214d68c5d4c90c3484e8ccd4fa
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
5 years agoosd: enable shift workaround and fix some zorder issue [1/1]
pengcheng chen [Tue, 9 Oct 2018 08:45:56 +0000 (16:45 +0800)]
osd: enable shift workaround and fix some zorder issue [1/1]

PD#163001

Problem:
osd shift workaround default disable
some zorder display error

Solution:
enable shift workaround and fix some zorder issue

Verify:
verified in u200 board

Change-Id: I88489c31bcc4d0db838e59dc3fe1929bdb2a93f6
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
5 years agoosd: add dimm layer support [1/1]
pengcheng chen [Wed, 26 Sep 2018 05:38:06 +0000 (13:38 +0800)]
osd: add dimm layer support [1/1]

PD#163001

Problem:
dim layer not supported

Solution:
 add dimm layer support

Verify:
verified in u200 board

Change-Id: Iba6f69b94b67c0d0861a1bbc9dff1724bc785133
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
5 years agoge2d: fixed ge2d_ion_config for axg error issue [1/1]
pengcheng chen [Mon, 15 Oct 2018 06:07:18 +0000 (14:07 +0800)]
ge2d: fixed ge2d_ion_config for axg error issue [1/1]

PD#SH-1

Problem:
run axg ge2d demo failed

Solution:
fixed ge2d_ion_config for axg error

Verify:
verified in A113D board

Change-Id: I48d789a42e7c0aad183fa4b6df1ca32a4ce1ab9b
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
5 years agoosd: remove osd sync by go_field which caused reg writte messed [1/1]
pengcheng chen [Mon, 15 Oct 2018 01:26:42 +0000 (09:26 +0800)]
osd: remove osd sync by go_field which caused reg writte messed [1/1]

PD#163001

Problem:
enable three osd layeres and run sftest caused afbc decode error

Solution:
remove osd sync by go_field which caused reg written messed

Verify:
verified in u200 board

Change-Id: Ida1647b93083608c7970d22b50125628c3528a5a
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
5 years agoRevert "usb: adb reboot and then adb disconnect[1/1]"
Luan Yuan [Fri, 19 Oct 2018 08:03:25 +0000 (16:03 +0800)]
Revert "usb: adb reboot and then adb disconnect[1/1]"

This reverts commit 7fb9d732feb64946f280ee4843527cb5095c97ef.

Change-Id: Ie5aad3c54ddfe0ab56f19b1f9f8e32dfe9c92dd6
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agodebug: show ioremap vmalloc pfn debug when user faults happens [1/1]
Jianxin Pan [Fri, 19 Oct 2018 08:20:55 +0000 (16:20 +0800)]
debug: show ioremap vmalloc pfn debug when user faults happens [1/1]

PD#173163

Problem:
ioremap/vmalloc pfn is not printed when user fault

Solution:
show ioremap/vmalloc pfn debug when user faults happens

Verify:
verify local

Change-Id: I654fac58db7d8b35144b4c639e32c324b95ed032
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
5 years agodts: remove ethmac gpio [1/1]
Jiacheng Mei [Thu, 18 Oct 2018 03:35:24 +0000 (11:35 +0800)]
dts: remove ethmac gpio [1/1]

PD#SWPL-770

Problem:
gpio conflict of isp i2c and ethmac

Solution:
remove gpio of ethmac

Verify:
g12b-skt

Change-Id: Icb2e6af14ecd397625565249f70d6fb58180b558
Signed-off-by: Jiacheng Mei <jiacheng.mei@amlogic.com>
5 years agoaudio: fix errors of coverity[1/1]
jiejing.wang [Mon, 15 Oct 2018 09:32:18 +0000 (17:32 +0800)]
audio: fix errors of coverity[1/1]

PD#166793

problem:
coverity detec errors of format

solution:
fix err

verify:
verify local

Change-Id: Ib86370e48a74ab9094cf7a2a80c3d1d2471f50eb
Signed-off-by: jiejing.wang <jiejing.wang@amlogic.com>
5 years agodts: sync 1g platform ion and codec_mm_cma with ampere [1/1]
Lei Qian [Tue, 16 Oct 2018 12:32:21 +0000 (20:32 +0800)]
dts: sync 1g platform ion and codec_mm_cma with ampere [1/1]

PD#166821

Problem:
34 media CTS fails in einstein

Solution:
enlarge codec_mm_cma to d000000

Verify:
verify by einstein

Change-Id: I026a1ff3e6155324dff1a5b9702c31f19d68a57f
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
5 years agodebug: show more debug infos when user faults happens
jiamin ma [Wed, 5 Sep 2018 07:39:24 +0000 (15:39 +0800)]
debug: show more debug infos when user faults happens

PD#173163: need more debug infos when user faults happens

1. show pfn for all registers;
2. show memory around all registers;
3. show vma maps around pc/lr

Change-Id: I37be84dcba66ce9ce6b60382a49cf6e9afd2bcb9
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
5 years agomm: show more information when in bad mode [1/1]
tao zeng [Wed, 17 Oct 2018 09:55:46 +0000 (17:55 +0800)]
mm: show more information when in bad mode [1/1]

PD#154260

Problem:
When bad mode happens, no pfn/far information is printed.
It get's problems to debug.

Solution:
1. Add far as parameter for bad_mode handler
2. Show pfn of all registers for bad_mode

Verify:
Local verified.

Change-Id: I4b0b457eff44ee717094ee8056f96ff16f111139
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
5 years agosuspend: dts: solve ampere with the kernel 32bit can not enter suspend state issue
zhiqiang.liang [Wed, 17 Oct 2018 01:24:07 +0000 (09:24 +0800)]
suspend: dts: solve ampere with the kernel 32bit can not enter suspend state issue

PD#SWPL-568

problem:
Ampere P mainline 32bit suspend,the serial port keeps printing

solution:
modify the system sleep parameter

verify:
p212

Change-Id: Id0827c09741a91b1fad8edcac603997e5bfd2880
Signed-off-by: zhiqiang.liang <zhiqiang.liang@amlogic.com>
5 years agoatv_demod: ATV sound system cannot be auto detected [1/2]
nengwen.chen [Wed, 17 Oct 2018 09:44:38 +0000 (17:44 +0800)]
atv_demod: ATV sound system cannot be auto detected [1/2]

PD#TV-44

Problem:
ATV sound system cannot be auto detected.

Solution:
Update demod and tuner config after adjust freqency, so that audio can detect.

Verify:
verified by einstein and p321

Change-Id: I8ce70a8f1fd2261c098b7b7f02c93ee061dd52c9
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agoscript: add new check rules in merge_pre_check.pl [1/1]
Jianxiong Pan [Thu, 18 Oct 2018 06:23:50 +0000 (14:23 +0800)]
script: add new check rules in merge_pre_check.pl [1/1]

PD#174488

Problem:
add some new rules

Solution:
expand the scope of check

Verify:
p212

Change-Id: Ica28adb7ddb43e39cd4570e0338dbd59ec6a42f3
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
5 years agodts: u212 1g: optimized cma [1/3]
Gongwei Chen [Thu, 11 Oct 2018 02:23:58 +0000 (10:23 +0800)]
dts: u212 1g: optimized cma [1/3]

PD#SWPL-492

Problem:
system response is slow

Solution:
optimized cma

Verify:
Verify by franklin 1g

Change-Id: I227fb168fa66566768fd4dbcefcbf100546daabd
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
5 years agoscript: dd new check rules in merge_pre_check.pl script [1/1]
Jianxiong Pan [Thu, 18 Oct 2018 01:42:33 +0000 (09:42 +0800)]
script: dd new check rules in merge_pre_check.pl script [1/1]

PD#174488

Problem:
add some new rules

Solution:
strictly check as required

Verify:
p212 pass

Change-Id: Iaa056eece6e9f812751cd585f0b5537476edfab5
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
5 years agousb: adb reboot and then adb disconnect[1/1]
he.he [Tue, 16 Oct 2018 11:20:23 +0000 (19:20 +0800)]
usb: adb reboot and then adb disconnect[1/1]

PD#174155: complete_ep 0xffffffc05bed2858, ep->queue empty!

Problem:
1. After adb process be killed, data buffer is freed and
this memory is allocated for the other. But the address
is hold by the controller.
2. Adbd in PC is running. So, the controller receive the
data and write to this memory.
3.The value of this memory is modified by the controller.
This could cause the memory problem.

Solution:
whenever io_data->aio equals 1, the data buffer is from a fixed array.

Verify:
verified by huang xiaojing

Change-Id: I2055ea013021c8411bf626ce170e6b32164bef4a
Signed-off-by: he.he <he.he@amlogic.com>
5 years agousb: fix deadlock caused by switching usb serial port
Yue Wang [Wed, 17 Oct 2018 01:54:52 +0000 (21:54 -0400)]
usb: fix deadlock caused by switching usb serial port

PD#174679: usb: Fix deadlock caused by switching usb serial port.

Change-Id: I0bc9bb5d15b5794cfb8e218c03a98c395713e4c0
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
5 years agoperf: aarch32: support arm pmu [1/1]
Hanjie Lin [Mon, 15 Oct 2018 11:27:49 +0000 (19:27 +0800)]
perf: aarch32: support arm pmu [1/1]

PD#SWPL-631

Problem:
32bit_kernel CtsSimpleperfTestCases modules 39 fail

Solution:
modify dts for arm pmu
port pmu interrupt issue fixup code
http://scgit.amlogic.com:8080/#/c/47552/

Verify:
p212 perf test ok

Change-Id: Icd31d645c8af0ca64e898251ffe8dbb0469e47e7
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agovts: aarch32: remove ext2 support [1/1]
Hanjie Lin [Wed, 17 Oct 2018 06:36:19 +0000 (14:36 +0800)]
vts: aarch32: remove ext2 support [1/1]

PD#SWPL-664

Problem:
32bit_kernel VtsKernelLtp module 6 fail

Solution:
ext2 cause VtsKernelLtp#fs.fs_fill_32bit fail

Verify:
p212 boot normal

Change-Id: Ib3113705939cccffd05ae4adc220b8aa333be4fb
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agovlock: fix issue of hdmitx output timing swith [1/1]
Dezhi Kong [Mon, 15 Oct 2018 06:31:11 +0000 (14:31 +0800)]
vlock: fix issue of hdmitx output timing swith [1/1]

PD#174283

Problem:
The display turned blank / black on switching HDMI input sources

Solution:
optimize timing swith check condition

Verify:
verified by r321 board in Android P

Change-Id: If6138794d02e34fcbde8be4a3a4fbcf42b49e85c
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
5 years agobacklight: ldim: add debug node for tooling [2/3]
Evoke Zhang [Sat, 4 Aug 2018 07:59:25 +0000 (15:59 +0800)]
backlight: ldim: add debug node for tooling [2/3]

PD#169790

Problem:
need tooling api support for ldim driver

Solution:
add debug node for tooling

Verify:
txlx r311

Change-Id: I1937a8154856aa694545ff40d7712132a113b8f3
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agodts: isp: add multi-sensor support
Jiacheng Mei [Thu, 20 Sep 2018 08:29:28 +0000 (16:29 +0800)]
dts: isp: add multi-sensor support

PD#SWPL-720

Problem:
multi-sensor need config dts

Solution:
add multisensor dts config

Verify:
g12b-skt

Change-Id: I13aa339a54ab33340438d0a2b284c857254ef08b
Signed-off-by: Jiacheng Mei <jiacheng.mei@amlogic.com>
5 years agovlock: update lcd vlock parameter flow [1/1]
Evoke Zhang [Fri, 12 Oct 2018 11:43:25 +0000 (19:43 +0800)]
vlock: update lcd vlock parameter flow [1/1]

PD#SWPL-321

Problem:
vlock parameters load fail for lcd unifykey loading is later

Solution:
use queue work to sync lcd unifykey vlock parameters

Verify:
txlx r311

Change-Id: I17fac4ca48fbd8f5b929eccfd38eb7e8a4b5b845
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoscript: add new check relus in merge_pre_check.pl script [1/1]
Jianxiong Pan [Wed, 17 Oct 2018 05:59:59 +0000 (13:59 +0800)]
script: add new check relus in merge_pre_check.pl script [1/1]

PD#174488

Problem:
add some new rules

Solution:
expand the scope of check

Verify:
p212

Change-Id: I4b5428367520456195645dbbce86c5f40411d59a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
5 years agounifykey: fix wrong KEY_UNIFY_NAME_LEN limit on ARM64_32 platform
jiamin ma [Mon, 15 Oct 2018 10:02:33 +0000 (18:02 +0800)]
unifykey: fix wrong KEY_UNIFY_NAME_LEN limit on ARM64_32 platform

PD#SWPL-628

Problem:
The KEY_UNIFY_NAME_LEN limit errorly set to 16 on ARM64_32
platform, for which the correct value is 48

Solution:
Define KEY_UNIFY_NAME_LEN based on the configuration of
CONFIG_ARM64 and CONFIG_ARM64_A32

Verify:
Locally

Change-Id: I93157a907405829b088cb0f7387c1eb90c917188
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
5 years agoMerge "interactive: disable idle notifier" into amlogic-4.9-dev
Tao Zeng [Tue, 16 Oct 2018 08:43:29 +0000 (01:43 -0700)]
Merge "interactive: disable idle notifier" into amlogic-4.9-dev

5 years agohdmirx: fix hdcp2.2 does not work issue
yicheng shen [Mon, 15 Oct 2018 06:06:13 +0000 (02:06 -0400)]
hdmirx: fix hdcp2.2 does not work issue

PD#SWPL-308

Problem:
32bit kernel + 32bit userspace,driver needs to use unlocked_ioctl.
Otherwise,IOCTL can not work normally and cause esm init fail.

Solution:
Add unlocked_ioctl handle.

Verify:
Locally

Change-Id: I5a3608088633d89c76c7b7684dc4580d44b77263
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
5 years agohdmitx: esm: add unlocked_ioctl in esm [1/1]
Yi Zhou [Mon, 15 Oct 2018 09:04:10 +0000 (17:04 +0800)]
hdmitx: esm: add unlocked_ioctl in esm [1/1]

PD#SWPL-566

Problem:
hdcp_tx22 can't work with 32bit kernel

Solution
add unlocked_ioctl in esm of 32bit kernel

Verify:
P215

Change-Id: I072abb2ba395c75d92f082ecadcc21e1fefc6f73
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agoclk: axg: fix 32bit set mpll clk overflow
Shunzhou Jiang [Mon, 15 Oct 2018 02:47:51 +0000 (10:47 +0800)]
clk: axg: fix 32bit set mpll clk overflow

PD#SWPL-394

Problem:
32bit system clk overflow

Solution:
let mpll clock not overflow

Verify:
gxl

Change-Id: I90c99c026264bb4d6820cd988bd5f8828456e0f6
Signed-off-by: shunzhou.jiang <shunzhou.jiang@amlogic.com>
5 years agointeractive: disable idle notifier
Jianxin Pan [Mon, 15 Oct 2018 13:07:36 +0000 (21:07 +0800)]
interactive: disable idle notifier

PD#SWPL-569

Problem:
Randomly encountered the phenomenon of kernel panic restart
(add_timer_on) from [<c09acdfc>] (slack_timer_resched+0xa8/0xdc)
(slack_timer_resched) from [<c09ae2f0>] (cpufreq_interactive_start+0xac/0x234)
(cpufreq_interactive_start) from [<c09a8168>] (cpufreq_start_governor+0x68/0xa4)
(cpufreq_start_governor) from [<c09a9e9c>] (cpufreq_online+0x4f8/0x794)
(cpufreq_online) from [<c09aa150>] (cpuhp_cpufreq_online+0x18/0x20)
(cpuhp_cpufreq_online) from [<c03231b8>] (cpuhp_invoke_callback+0xa8/0x638)
(cpuhp_invoke_callback) from [<c0323898>] (cpuhp_up_callbacks+0x34/0xe8)
(cpuhp_up_callbacks) from [<c0324774>] (cpuhp_thread_fun+0x13c/0x14c)
(cpuhp_thread_fun) from [<c034ab64>] (smpboot_thread_fn+0x1a8/0x32c)
(smpboot_thread_fn) from [<c0346428>] (kthread+0x124/0x140)
(kthread) from [<c03089d0>] (ret_from_fork+0x14/0x24)

Solution:
disable idle notifier for interactive

Verify:
verified by p212

Change-Id: I412dab961f04bea439d5a26564268289fc4b3940
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
5 years agodtsi: dtbo: change dto partition name to dtbo [1/1]
Luan Yuan [Mon, 15 Oct 2018 05:58:53 +0000 (13:58 +0800)]
dtsi: dtbo: change dto partition name to dtbo [1/1]

PD#173146

Problem:
All devices launching with Android 9 must use dtbo partition
and previous leave out curie dtsi

Solution:
Android P request device tree overlay partition name is dtbo

Verify:
verified by p241

Change-Id: If3067ef4d67c7b692668f28b3e5a2233ea393a1a
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agoRevert "script: add new check rules in merge_pre_check.pl script [1/1]"
Jianxiong Pan [Mon, 15 Oct 2018 12:10:38 +0000 (05:10 -0700)]
Revert "script: add new check rules in merge_pre_check.pl script [1/1]"

This reverts commit 57728014eeca00e12f843b293ce3be51c042450b.

Change-Id: Ia803a24fe6b6abd00d4015bb1e6857c2826efac7
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
5 years agoscript: add new check rules in merge_pre_check.pl script [1/1]
Jianxiong Pan [Mon, 15 Oct 2018 08:14:49 +0000 (16:14 +0800)]
script: add new check rules in merge_pre_check.pl script [1/1]

PD#174488

Problem:
some new rules should be added to the check scripts

Solution:
call the git_msg_check.sh script directly

Verify:
p212

Change-Id: I67c6515038ca2817236e63b4c9f4239583a20613
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
5 years agocts: dts: add dummy battery driver for TV [1/1]
Lei Qian [Fri, 12 Oct 2018 13:19:58 +0000 (21:19 +0800)]
cts: dts: add dummy battery driver for TV [1/1]

PD#169027

Problem:
some CTS and VTS testcases use the battery information

Solution:
here add a dummy battery for it.
for P, it requires a dummy charger to set the online property to 1.

Verify:
verified by einstein

Change-Id: I78d2cf54904144bb24cd46670aa7377f2055cf55
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
5 years agoBT: porting cpy 2704
Kuibao Zhang [Fri, 7 Sep 2018 07:45:56 +0000 (15:45 +0800)]
BT: porting cpy 2704

PD#172583: bt power and uart rts

Change-Id: I392b3caf0771c9608d532694ecd16b52dccf05a3
Signed-off-by: Kuibao Zhang <kuibao.zhang@amlogic.com>
5 years agohdmi: cec: change cec IP
Yong Qin [Fri, 14 Sep 2018 02:40:54 +0000 (10:40 +0800)]
hdmi: cec: change cec IP

PD#173638: cec: change cec IP

Change-Id: Ia5ef195a90b272ec74858a7afca0b7959b0c6817
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agoscript: allow JIRA BugId check in the merge_pre_check.pl script
Jianxiong Pan [Wed, 10 Oct 2018 06:40:28 +0000 (14:40 +0800)]
script: allow JIRA BugId check in the merge_pre_check.pl script

PD#174488: add JIRA BugId check in the merge_pre_check.pl script

Change-Id: I32f2fc123041e6c40ce2a5c4208734e11b307fd5
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
5 years agoatv_demod: modify PALM/N's resolution and sound system display error [3/3]
nengwen.chen [Thu, 11 Oct 2018 02:16:56 +0000 (10:16 +0800)]
atv_demod: modify PALM/N's resolution and sound system display error [3/3]

PD#SWPL-434

Problem:
PALM/N's resolution and sound system display error

Solution:
modify PALM/N's resolution and sound system display error
PALM: 480i PALN: 576i

Verify:
verified by einstein

Change-Id: I2271222634fb5d382aebff31289ab22ddb443bc3
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agovdac: fix crash issue
Nian Jing [Fri, 12 Oct 2018 09:51:01 +0000 (17:51 +0800)]
vdac: fix crash issue

PD#174269: fix crash issue

Problem:
crash when unplug hdmi.null pointer visiting

Solution:
delete dts config,add null pointer protect

Verify:
test pass on p212

Change-Id: I5176aa4eb398b1bedf14b36ec6529c471e927530
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agodriver: video: fix hdr info not disapear problem [2/2]
Yao.Liu [Thu, 11 Oct 2018 06:49:23 +0000 (02:49 -0400)]
driver: video: fix hdr info not disapear problem [2/2]

PD#173100

Problem:
still show hdr info after switching hdr stream
to non-hdr stream when surface not changed

Solution:
OMX set hdr to decoder, it will be used by amvecm

Verify:
verify by u212

Change-Id: I7d013921fb4124d9aed9f51871253c76c666c022
Signed-off-by: Yao.Liu <yao.liu@amlogic.com>
5 years agodtsi: dtbo: change dto partition name to dtbo [1/2]
Tellen Yu [Wed, 5 Sep 2018 11:12:03 +0000 (19:12 +0800)]
dtsi: dtbo: change dto partition name to dtbo [1/2]

PD#173146

Problem:
All devices launching with Android 9 must use dtbo partition

Solution:
Android P request device tree overlay partition name is dtbo

Verify:
verified by p212 board in Android P

Change-Id: If48b6eaf0a0ee2d76a5fb0b58353fb82381c71ee
Signed-off-by: Tellen Yu <tellen.yu@amlogic.com>
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
5 years agodts: arch32: support 32bit g12a bringup [1/1]
Hanjie Lin [Fri, 21 Sep 2018 09:31:57 +0000 (17:31 +0800)]
dts: arch32: support 32bit g12a bringup [1/1]

PD#169652

Problem:
support 32bit g12a

Solution:
add 32bit dts for g12a
when KERNEL_A32_SUPPORT=true kernel 32bit build,
otherwise kernel 64bit build defaultly.

Verify:
u212 can boot to console, but surfaceflinger can't work

Change-Id: Ia3e92267afbaaa069f3658a101756e4034d08b4d
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agoamdolby_vision: fix kernel crash [1/1]
shuanglong.wang [Tue, 2 Oct 2018 07:56:32 +0000 (15:56 +0800)]
amdolby_vision: fix kernel crash [1/1]

PD# 173406

Problem:
kernel crash when play dv after insmod 4.9 stb dovi.ko at t962x-r311 platform
[  118.398098@0] Internal error: Oops: 96000047 [#1] PREEMPT SMP
[  118.440794@0] CPU: 0 PID: 2869 Comm: irq/40-vdec-0 Tainted: GO    4.9.113 #2
[  118.448726@0] Hardware name: Amlogic (DT)
[  118.452694@0] task: ffffffc01ae2b700 task.stack: ffffffc023e4c000
[  118.458740@0] PC is at __memcpy+0x110/0x180
[  118.462878@0] LR is at dolby_vision_parse_metadata+0xb3c/0x1920
[  118.468736@0] pc : [<ffffff800947c690>] lr : [<ffffff800998b33c>]pstate: 200001c5
[  118.476239@0] sp : ffffffc027e3fb30

Solution:
fix vmalloc error, function pointer add protection

Verify:
need verify at t962x-r311 platform

Change-Id: I3f0872480dabbf8b415d798d6b205028f08fd89a
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
5 years agoaudio: add 9015s module for 32bit system[1/1]
Lianlian Zhu [Thu, 11 Oct 2018 08:25:48 +0000 (16:25 +0800)]
audio: add 9015s module for 32bit system[1/1]

PD#SWPL-509

Problem:
DAI link has no CODECs because of
configuration has no 9015s codec module.

Solution:
add 9015s module for configuration

Verify:
verified by p321

Change-Id: I448144bdc392dba1c528b41e37a9388c5343d7ec
Signed-off-by: Lianlian Zhu <lianlian.zhu@amlogic.com>
5 years ago32bit: enable running 32bit OS on AXG platforms [1/3]
jiamin ma [Thu, 11 Oct 2018 02:31:00 +0000 (10:31 +0800)]
32bit: enable running 32bit OS on AXG platforms [1/3]

PD#SWPL-513

Problem:
AXG platforms does not support running 32bit kernel

Solution:
Since kerenl already support build 32bit kernel for
64bit SOC, we only need new dts and configs for it
This patch adds DTS for 32bit kernel of S420 and S
400

Verify:
verified locally on S400 and S420

Change-Id: I47d3cb3a35a00d5450d978ba65af540edc601619
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
5 years agolcd: unify extern driver struct and flag [2/2]
Evoke Zhang [Tue, 4 Sep 2018 05:34:38 +0000 (13:34 +0800)]
lcd: unify extern driver struct and flag [2/2]

PD#173257: lcd: unify extern driver struct and flag
include:
1.lcd_extern
2.mipi
3.bl_extern
4.bl_ldim

Change-Id: Ibfd81423151bcefe5ca1c85d442ce029af5b54b7
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agodts: tv: optimize ion and codec_mm_cma usage [1/1]
Lei Qian [Thu, 11 Oct 2018 07:22:06 +0000 (15:22 +0800)]
dts: tv: optimize ion and codec_mm_cma usage [1/1]

PD#SWPL-334

Problem:
gfx graphics test fail caused by low memory

Solution:
enlarge ion and reduce codec_mm_cma

Verify:
verified by p321

Change-Id: I8dc3bfa35a4093199291f21ed0c80ce51e38ea81
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
5 years agolcd: axg: update gp0_pll range for mipi-dsi usage [2/2]
Evoke Zhang [Tue, 11 Sep 2018 09:31:26 +0000 (17:31 +0800)]
lcd: axg: update gp0_pll range for mipi-dsi usage [2/2]

PD#173483: lcd: axg: update gp0_pll range for mipi-dsi usage

Change-Id: I7db9efef0b646665dae12c84ba3aacf53fb95bcc
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agovdin: perfecting vdin_shutdown() interface
xuhua zhang [Fri, 14 Sep 2018 07:36:46 +0000 (15:36 +0800)]
vdin: perfecting vdin_shutdown() interface

PD#173740: vdin: perfecting vdin_shutdown() interface

Free vdin resource when the system shutdown but the application program
was not close vdin at some fortuitous event.

Change-Id: I343e1b93c6e2166a247592d8faa39b3f737f91d0
Signed-off-by: xuhua zhang <xuhua.zhang@amlogic.com>
5 years agoamvecm: read gamma in strings form to match gamma tool
Bencheng Jing [Thu, 27 Sep 2018 12:00:17 +0000 (20:00 +0800)]
amvecm: read gamma in strings form to match gamma tool

PD#171061: amvecm: read gamma in strings form

Change-Id: I89d45be748288d0ef1fc72e0f4ab34c2c77d920a
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agodv: update dv driver for g12a/b
Yi Zhou [Tue, 9 Oct 2018 06:33:25 +0000 (14:33 +0800)]
dv: update dv driver for g12a/b

PD#172453:dv: update dv driver for g12a/b

Change-Id: I16eafc1f09d72ade66d0a3d5bef199edf4461fab
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agovdac: modify cpu_type definition
Nian Jing [Thu, 11 Oct 2018 02:42:33 +0000 (10:42 +0800)]
vdac: modify cpu_type definition

PD#174269: modify cpu_type definition

Change-Id: I2f2bfc8f25a1014b623ddd411e997233c2cb0307
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agovdac: get cputype from dts
Nian Jing [Thu, 27 Sep 2018 05:32:14 +0000 (13:32 +0800)]
vdac: get cputype from dts

PD#174269: get cputype from dts

Change-Id: I50e240e8d1f2aa275a2c215989e02e8b51cb6738
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agodi: fix 4K black screen issue
Jihong Sui [Thu, 4 Oct 2018 04:42:18 +0000 (12:42 +0800)]
di: fix 4K black screen issue

PD#162632: di: fix 4K black screen issue

1. this is a patch for afbc;
2. close afbc for di temporary;

Change-Id: Ic70cb526dab431ef7caf827c322efe207bb7991f
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agoemmc: optimize tuning opration num
Nan Li [Tue, 9 Oct 2018 05:08:05 +0000 (13:08 +0800)]
emmc: optimize tuning opration num

PD#SWPL-421: modify tuning operation num 10->40.

Change-Id: Ife815f6ea2268038884a861ac2dac1931877a762
Signed-off-by: Nan Li <nan.li@amlogic.com>
5 years agoatv_demod: fix demod will be unlocked when input frequence offset -0.25MHz [1/1]
nengwen.chen [Sat, 29 Sep 2018 03:14:51 +0000 (11:14 +0800)]
atv_demod: fix demod will be unlocked when input frequence offset -0.25MHz [1/1]

PD#173985: fix demod will be unlocked when input frequence offset -0.25MHz

Change-Id: I0f9891c556456a2048d6cc846f0d349edb14a96e
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agousb: use-after-free in ffs_epfile_io+0x1c0/0x9b8
he.he [Wed, 26 Sep 2018 06:47:27 +0000 (14:47 +0800)]
usb: use-after-free in ffs_epfile_io+0x1c0/0x9b8

PD#174155: the io_data pointer have kfree in ffs_epfile_async_io_complete,
it can't use after that such as (if (io_data->aio)),
and this judgment is changed to if (data_flag>0).

Change-Id: I3b620b69bbf4e8040a43bd2435fdb836e11cc512
Signed-off-by: he.he <he.he@amlogic.com>
5 years agovideo: ignore omx drop frame for dv
rongrong zhou [Tue, 25 Sep 2018 05:57:05 +0000 (13:57 +0800)]
video: ignore omx drop frame for dv

PD#173912

If omx_run is set to false and these frames are not dropped, then it
will be stuck at the first second

Change-Id: I629f11b10c25180604fa6e3cdfb858f299cc0e64
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
5 years agomm: fix 2 MB memory lost problem for arm32
Jianxin Pan [Tue, 18 Sep 2018 06:49:06 +0000 (14:49 +0800)]
mm: fix 2 MB memory lost problem for arm32

PD#173956

Change-Id: Ie5fe1865a43d343c8a6ba9defe5508b62679fe92
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
5 years agoion: fix null page issue in alloc_buffer_page
Jianxin Pan [Wed, 19 Sep 2018 11:08:29 +0000 (19:08 +0800)]
ion: fix null page issue in alloc_buffer_page

PD#173802: Panic trace is
[<c011824c>] (dma_cache_maint_page) from [<c0118400>] (arm_dma_sync_single_for_device+0x58/0x60)
[<c0118400>] (arm_dma_sync_single_for_device) from [<c0118f24>] (arm_dma_sync_sg_for_device+0x60/0x8c)
[<c0118f24>] (arm_dma_sync_sg_for_device) from [<c07e52d0>] (ion_pages_sync_for_device+0x108/0x144)
[<c07e52d0>] (ion_pages_sync_for_device) from [<c07e71b4>] (ion_system_heap_allocate+0x38c/0x3bc)
[<c07e71b4>] (ion_system_heap_allocate) from [<c07e4c2c>] (ion_alloc+0x1e4/0x4d8)
[<c07e4c2c>] (ion_alloc) from [<c07e59f0>] (ion_ioctl+0x3b8/0x428)
[<c07e59f0>] (ion_ioctl) from [<c02a9368>] (do_vfs_ioctl+0xc0/0xa34)
[<c02a9368>] (do_vfs_ioctl) from [<c02a9d58>] (SyS_ioctl+0x7c/0x8c)
[<c02a9d58>] (SyS_ioctl) from [<c0108800>] (ret_fast_syscall+0x0/0x48)

Change-Id: I7e94ea05334693b6e9bfcc2400c9f7f3ff26736e
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
5 years agoprintk: fix user fault debug log in disorder issue
jiamin ma [Mon, 8 Oct 2018 03:16:00 +0000 (11:16 +0800)]
printk: fix user fault debug log in disorder issue

PD#154008: the log output is in disorder[2/2]

We should explicitly using pr_cont when try to print continuous
msgs in one line

Change-Id: I0d2f6f462c4b4b95898f9c33a5a1d138030e05e5
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
5 years agoclk: G12A/G12B: fix gpu clk enable count error [1/1]
Shunzhou Jiang [Wed, 16 May 2018 06:24:34 +0000 (14:24 +0800)]
clk: G12A/G12B: fix gpu clk enable count error [1/1]

PD#173995: fix gpu clk enable count error

Change-Id: I31f7908507ea2cdb76284977cb17fbe3fc68ce5c
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
5 years agoosd: fix osd coverity error
Jian Cao [Sat, 29 Sep 2018 01:46:57 +0000 (09:46 +0800)]
osd: fix osd coverity error

PD#174272: osd: fix osd coverity error

Change-Id: I7eb1c40b9453f85c618b9bd3f2112eb854ff9ef7
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agoclock: fix coverity warning
Jian Hu [Sun, 30 Sep 2018 07:53:28 +0000 (15:53 +0800)]
clock: fix coverity warning

PD#174376: clock: fix coverity warning

Fix suspicious implicit sign extension,
val << (shift), the val is defined as u16, after
shift to left,the val maybe overflow, a u32 variable
should instead of "val << (shift)".

Change-Id: I5b481c2b5d249426c20973fb261fb5ba905528f7
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
5 years agodi: support compress type progressive input
Jihong Sui [Mon, 17 Sep 2018 07:47:41 +0000 (15:47 +0800)]
di: support compress type progressive input

PD#162632: di: support compress input

1. for gxl, txlx, g12a;
2. change di post configuration;

Change-Id: Iff03f0e5bca379d593fade2ba6043538de9c81c7
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agoaudio: auge: check resample is inited
Xing Wang [Sun, 30 Sep 2018 05:14:42 +0000 (13:14 +0800)]
audio: auge: check resample is inited

PD#163795: audio: auge: check resample is inited

Change-Id: Ib6f06f1e6f9d95a03a8ae5f968fd67af8c17f197
Signed-off-by: Xing Wang <xing.wang@amlogic.com>