Commit Graph

648122 Commits

Author SHA1 Message Date
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
zhiqiang.liang
17a672d3e8 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>
2018-10-18 01:38:45 -07:00
nengwen.chen
50369c98b4 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>
2018-10-18 00:09:00 -07:00
Jianxiong Pan
3f25fef9ac 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>
2018-10-17 23:29:40 -07:00
Gongwei Chen
90277a9ebc 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>
2018-10-18 14:17:45 +08:00
Jianxiong Pan
ef8311d41d 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>
2018-10-17 19:20:00 -07:00
he.he
7fb9d732fe 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>
2018-10-17 19:03:15 -07:00
Yue Wang
4bae26a45d 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>
2018-10-17 18:50:49 -07:00
Hanjie Lin
2fa90e8e1f 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>
2018-10-17 18:46:36 -07:00
Hanjie Lin
3f281eedfb 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>
2018-10-17 18:45:16 -07:00
Dezhi Kong
af669a7801 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>
2018-10-17 16:06:29 +08:00
Evoke Zhang
9c2c0fde7f 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>
2018-10-17 00:31:12 -07:00
Jiacheng Mei
43052acc27 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>
2018-10-17 00:30:42 -07:00
Evoke Zhang
329bc258fd 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>
2018-10-16 23:47:11 -07:00
Jianxiong Pan
5940d7f258 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>
2018-10-16 23:27:48 -07:00
jiamin ma
dab56dff36 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>
2018-10-16 05:05:41 -07:00
Tao Zeng
659c3e9c36 Merge "interactive: disable idle notifier" into amlogic-4.9-dev 2018-10-16 01:43:29 -07:00
yicheng shen
251912743d 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>
2018-10-15 23:09:07 -07:00
Yi Zhou
2a6b1f0b9e 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>
2018-10-16 14:01:41 +08:00
Shunzhou Jiang
cc0f619561 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>
2018-10-15 22:44:07 -07:00