Commit Graph

648141 Commits

Author SHA1 Message Date
Xingyu Chen
e3666d7fe3 pinctrl: fix some mistakes [1/1]
PD#172438

Problem:
1. return a negative when parsing the dts property
"output-high/output-low"
2. the prefix "bt565" don't meet corepinmux document

Solution:
1. add break statement in case PIN_CONFIG_OUTPUT to avoid
returning a negative value.
2. rename the "bt565" to "bt656" according to corepinmux document

Verify:
test pass on U200

Change-Id: Ieeb98367e2269007a6774592abac86ef05ee8f64
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2018-10-28 22:09:32 -07:00
Xingyu Chen
dd4a0b513e irqchip: add a new gpio IRQ driver to support double-edge detection [1/1]
PD#SWPL-922

Problem:
the existing gpio IRQ driver(porting from the upstream) does not
double-edge detection

Solution:
add a new gpio IRQ driver to support the double-edge detection,
the new driver is with different software structure but compatible
with functions of the existing driver

Verify:
test pass on s400

Change-Id: Id69dd0b4459eef20a6755947c7d95a24d7b17fa9
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2018-10-28 19:40:06 -07:00
Tao Zeng
805261a0c2 Merge "audioinfo: fix kasan compile problem [1/1]" into amlogic-4.9-dev 2018-10-28 19:29:42 -07:00
MingLiang Dong
43f0f630e9 amvecm: hdr: add hdr10 plus support [1/2]
PD#SWPL-869

Problem:
new feature, add hdr10 plus support

Solution:
1. add hdr10 plus metadat parser
2. add hdr10 plus code support
3. add hdr10 plus bypass mode

Verify:
verify on U200

Change-Id: I957954ce148021882e17f2913dd2552e64f1298c
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2018-10-28 19:15:46 -07:00
Blance Tang
efa5e53610 buildroot: Enable fb memory allocation in g12b_skt dts [1/1]
PD#SWPL-802

Problem:
  Kernel crash when run GPU slt program

Solution:
  Enable meson fb memory allocation in g12b_skt dts

Verify:
  w400

Change-Id: I3074c2053cda06cf4ae237d24bad2c89d789f90d
Signed-off-by: Blance Tang <guofeng.tang@amlogic.com>
2018-10-28 19:03:31 -07:00
Hanjie Lin
1e6c6118ec 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>
2018-10-27 08:28:25 -07:00
Long Yu
133c9560ef 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>
2018-10-26 08:39:27 -07:00
Yi Zhou
73c0a0b001 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>
2018-10-26 05:35:55 -07:00
xianjun.liu
5d78760a78 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>
2018-10-26 04:50:13 -07:00
Yi Zeng
2b3d5fef40 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>
2018-10-26 04:48:19 -07:00
Ruixuan Li
78027c0e6d 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>
2018-10-26 04:01:25 -07:00
Zhuo Wang
841e4fb4f1 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>
2018-10-25 23:56:50 -07:00
Blance Tang
f5040dfe88 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>
2018-10-25 19:50:16 -07:00
pengcheng chen
fd943af50c 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>
2018-10-25 08:21:43 -07:00
Ruixuan Li
37c199da52 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>
2018-10-25 08:18:47 -07:00
Dezhi Kong
d0365ffe94 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>
2018-10-24 23:44:58 -07:00
Nan Li
050918ac85 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>
2018-10-24 17:46:44 +08:00
Zhuo Wang
3d481c04c2 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>
2018-10-24 00:38:41 -07:00
live.li
4ea2c5aab0 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>
2018-10-23 22:26:31 -07:00
Tao Zeng
f80f942eb6 Merge "debug: After reboot,the platform print a lot of logs Frequency [1/1]" into amlogic-4.9-dev 2018-10-23 02:47:34 -07:00
Tao Zeng
5afbb4d83c Merge "dv: fix the flickered problem [1/1]" into amlogic-4.9-dev 2018-10-23 01:54:35 -07:00
Lianlian Zhu
e8614f100f 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>
2018-10-23 01:43:05 -07:00
tao zeng
dccd086909 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>
2018-10-23 01:40:07 -07:00
Yi Zhou
807ac46d3e 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>
2018-10-23 01:36:40 -07:00
tao zeng
0a7b298a78 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>
2018-10-23 01:28:09 -07:00
Luan Yuan
8fced213f3 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>
2018-10-23 15:15:40 +08:00
Jianxiong Pan
cdc14a2bb8 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>
2018-10-22 22:22:03 -07:00
Tao Zeng
09f912276e Merge "dts: add support 32bit curie(805x) [1/1]" into amlogic-4.9-dev 2018-10-22 20:16:18 -07:00
Luan Yuan
84dd792b60 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>
2018-10-22 19:41:25 -07:00
Hanjie Lin
850405f42d 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>
2018-10-22 19:37:35 -07:00
Hanjie Lin
c8439cdca0 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>
2018-10-23 10:25:28 +08:00
zhiqiang.liang
28050c6128 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>
2018-10-22 03:29:03 -07:00
jiamin ma
c99b23299f 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>
2018-10-22 01:38:42 -07:00
Sandy Luo
2199b3de53 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>
2018-10-22 16:35:34 +08:00
keke.li
a840cbfec7 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>
2018-10-21 23:34:37 -07:00
rongrong zhou
cd23615060 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>
2018-10-21 23:12:16 -07:00
Kaifu Hu
254c5cce1c 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>
2018-10-20 07:31:07 -07:00
sky zhou
5cf2279083 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>
2018-10-20 07:30:32 -07:00
pengcheng chen
2346bba770 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>
2018-10-20 07:29:27 -07:00
pengcheng chen
268099f8ae 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>
2018-10-20 07:29:04 -07:00
pengcheng chen
a02649496a 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>
2018-10-20 07:28:40 -07:00
pengcheng chen
7bb1e5c754 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>
2018-10-20 07:23:30 -07:00
Luan Yuan
464b79c1a9 Revert "usb: adb reboot and then adb disconnect[1/1]"
This reverts commit 7fb9d732fe.

Change-Id: Ie5aad3c54ddfe0ab56f19b1f9f8e32dfe9c92dd6
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2018-10-19 04:07:41 -07:00
Jianxin Pan
d44d611fc4 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>
2018-10-19 01:37:01 -07:00
Jiacheng Mei
f21834f924 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>
2018-10-18 23:25:51 -07:00
jiejing.wang
cccac54b6b 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>
2018-10-18 23:15:09 -07:00
Lei Qian
2673659638 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>
2018-10-18 22:52:45 -07:00
jiamin ma
20f5526a6b 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>
2018-10-18 19:15:23 -07:00
tao zeng
0d158ae286 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>
2018-10-18 18:23:37 -07:00
jiejing.wang
4f93bbc909 audioinfo: fix kasan compile problem [1/1]
PD#173553

Problem:
check stack out of bounds

Solution:
change variable's definition

Verify:
verifyed by r311

Change-Id: Id6efc3ac56b297b6812e2af786732e65867a07da
Signed-off-by: jiejing.wang <jiejing.wang@amlogic.com>
2018-10-18 19:04:02 +08:00