Commit Graph

648105 Commits

Author SHA1 Message Date
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
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
Jianxin Pan
73d8a197e2 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>
2018-10-15 18:39:36 -07:00
Luan Yuan
0f59b37c5e 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>
2018-10-15 05:33:34 -07:00
Jianxiong Pan
c08c90524f Revert "script: add new check rules in merge_pre_check.pl script [1/1]"
This reverts commit 57728014ee.


Change-Id: Ia803a24fe6b6abd00d4015bb1e6857c2826efac7
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2018-10-15 05:10:38 -07:00
Jianxiong Pan
57728014ee 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>
2018-10-15 04:49:28 -07:00
Lei Qian
a9f42ab19f 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>
2018-10-15 02:15:57 -07:00
Kuibao Zhang
655155d978 BT: porting cpy 2704
PD#172583: bt power and uart rts

Change-Id: I392b3caf0771c9608d532694ecd16b52dccf05a3
Signed-off-by: Kuibao Zhang <kuibao.zhang@amlogic.com>
2018-10-15 01:06:25 -07:00
Yong Qin
22084c568b hdmi: cec: change cec IP
PD#173638: cec: change cec IP

Change-Id: Ia5ef195a90b272ec74858a7afca0b7959b0c6817
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2018-10-15 15:49:10 +08:00
Jianxiong Pan
fa6fba02af 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>
2018-10-14 23:24:17 -07:00
nengwen.chen
f4176cd13b 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>
2018-10-12 21:45:41 -07:00
Nian Jing
cd2fa1d617 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>
2018-10-12 21:37:30 -07:00
Yao.Liu
d6be12ff88 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>
2018-10-12 21:36:12 -07:00
Tellen Yu
48c84bb4f2 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>
2018-10-12 17:20:31 +08:00
Hanjie Lin
54d0a70c81 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>
2018-10-12 01:28:51 -07:00
shuanglong.wang
048afccfd2 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>
2018-10-11 22:37:20 -07:00
Lianlian Zhu
3413ce1850 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>
2018-10-11 22:32:21 -07:00
jiamin ma
873f0de57e 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>
2018-10-11 19:23:05 -07:00
Evoke Zhang
783b7b4e7d 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>
2018-10-11 19:03:33 -07:00