Commit Graph

643516 Commits

Author SHA1 Message Date
kele bai
c19eed9164 di: fix dumy buffer dismatch with normal buffer
PD#161859: di: fix dummy buffer dismatch with normal buffer

1) fix dummy buffer dismatch with normal buffer
2) add debug print support

Change-Id: I304f93f4ef7883928fbd9fa237fb2dfd24ef557a
Signed-off-by: kele bai <kele.bai@amlogic.com>
2018-03-18 20:38:34 -08:00
Renjun Xu
72df0b23e1 sound: fix tas5756 volume invert
PD#161063: fix tas5756 volume invert

Change-Id: I354b063df203b89824dd36a99a93aae1b390b735
Signed-off-by: Renjun Xu <renjun.xu@amlogic.com>
2018-03-18 05:06:55 -08:00
Renjun Xu
a3fb5c97c0 sound: fix pcm186x driver playback/capture
PD#161075: fix pcm186x driver playback/capture

Change-Id: I04d66ca1987efcaaff2ed897593748cf101db921
Signed-off-by: Renjun Xu <renjun.xu@amlogic.com>
2018-03-18 03:54:25 -08:00
kele bai
69c355d25b di: disable recycle buffer when source switch
PD#160047: di: disable recycle buffer when source switch

1) atv&dtv will switch when channel switch,
   mirror function need enable
2) disable full pack feature for 8 bit mode

Change-Id: Ifde5afb637b259c0d4d789b94228c0cb488b48f7
Signed-off-by: kele bai <kele.bai@amlogic.com>
2018-03-18 03:53:28 -08:00
Yi Zeng
ca98982f28 mtd: add a macro to hide the env region in rsv zone
PD#160529: mtd: add a macro to hide the env region in rsv zone

when we save the env data in normal partition, the env region
in the rsv zone is no needed anymore, so hide it with a macro.

Change-Id: Id1b92079d1127ffabf4c1f208b486daad0af3934
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
2018-03-17 19:08:57 -08:00
Jianxin Pan
095cdb74c1 Merge "mtd: rebuild the code about add partition" into amlogic-4.9-dev 2018-03-17 20:06:44 -07:00
Xing Wang
5faf25a4fd audio: auge: add i2s to hdmix port
PD#161826: audio: auge: add i2s to hdmix port

Change-Id: I0aca7160342810385ea0e531ab8fe31c948a80b6
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2018-03-16 03:45:26 -08:00
Yue Wang
3af713f88a usb: gadget: ffs: Execute copy_to_user() with USER_DS set
PD#161764: usb: gadget: ffs: Execute copy_to_user() with USER_DS set

When using a AIO read() operation on the function FS gadget driver a URB is
submitted asynchronously and on URB completion the received data is copied
to the userspace buffer associated with the read operation.

This is done from a kernel worker thread invoking copy_to_user() (through
copy_to_iter()). And while the user space process memory is made available
to the kernel thread using use_mm(), some architecture require in addition
to this that the operation runs with USER_DS set. Otherwise the userspace
memory access will fail.

For example on ARM64 with Privileged Access Never (PAN) and User Access
Override (UAO) enabled the following crash occurs.

Address this by placing a set_fs(USER_DS) before of the copy operation
and revert it again once the copy operation has finished.

Change-Id: If523dac82905057607d3007de6a3974102d51e3f
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2018-03-16 01:44:35 -08:00
Brian Zhu
b75aec8be8 vpp: disable pps as default when scaler ratio is 1:1
PD#161937: vpp: disable pps as default when scaler ratio is 1:1

Change-Id: Iabec01db371218c954bfdae25dfea5292acae3e2
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2018-03-14 23:09:50 -08:00
Zongdong Jiao
fb83d82f34 hdmitx: update phy/clk parameters
PD#160984: hdmitx: update phy/clk parameters of g12a
1. use 5.94G instead of 2.97G to get high performance
2. add workaround of setting 4.5~6GHz
3. fine tune phy parameters

Change-Id: I99a7bb428e835316bd464aae421e074841156670
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2018-03-14 22:39:48 -08:00
Jian Hu
c5834d97d1 i2c: fix writing w_token reg error
PD#161535: i2c: fix writing w_token reg error

1.fix writing  w_token reg error
2.set default clock frequency 100khz
3.config i2c1 pinmux and change clock frequency to 300k

Change-Id: I9b3fe3ed404255e3897d7353c57770a6019e6f9b
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2018-03-14 20:22:21 -08:00
Yi Zhou
5241d08699 hdmitx: add hdmitx driver in drm
PD#156257: hdmitx: add hdmitx driver in drm
1.add irq
2.add edid reading
3.set hdmi mode
4.update drm_edid.c
5.modify vout api

Change-Id: I7a6666c4884655e168dd5125c9d1eb1f6ecb7587
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2018-03-14 20:21:31 -08:00
Evoke Zhang
7f50914afc drm: add drm driver lcd support
PD#160546: add drm driver lcd support

Change-Id: I3b5fa4c10b4ac542ccdfa8691e692e849f071145
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-03-14 19:11:56 -08:00
Zhuo Wang
e7f28d30cb ethernet: add suspend and resume function with DS=3
PD#162078: suspend and resume code

Change-Id: I57d0582b4df5f4129b60c7e885022778b1f4c98c
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2018-03-14 18:32:49 -08:00
zhilei.wu
e511ce688a dv: enable 4.9 dolby vision driver for ko crash
PD#157605: dv: enable 4.9 dolby vision driver for ko crash

Change-Id: I2559e02d161f8a0aea3a98e85f8d6cb1529203a8
Signed-off-by: zhilei.wu <zhilei.wu@amlogic.com>
2018-03-14 03:24:26 -08:00
pengcheng chen
a50ba8417c ion_dev: enlarge cam heap size .[1/1]
PD#153134: some dEQP cases should always use direct render

Change-Id: I9bcde1632d27674e065771a2871e6e1bb193cb07
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
2018-03-14 17:33:56 +08:00
Yi Zeng
2945f4d176 mtd: rebuild the code about add partition
PD#161968: rebuild the code about add partition

rebuild the code about add partition process, and
add a macro to constraint skip bad blocks when counting.

Change-Id: I893afec2f76d5d3c8fb4c7859b72828612c867d2
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
2018-03-14 14:41:54 +08:00
Evoke Zhang
b6bd5da274 vout: add vpu_clkc clktree management function for display2
PD#156734: vout: add vpu_clkc clktree management function for display2

Change-Id: I71f6d73cff9d7df2d7c8507f5f37b9d6d583286d
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-03-13 20:27:05 -08:00
zhilei.wu
8ab003704b dv: revised g12 VPP_DOLBY_CTRL[0] same as txlx
PD#161251: dv: revised g12 VPP_DOLBY_CTRL[0] same as txlx

Change-Id: I0b73f19e273e248a89a6cf3b2f45d6cfe1366da2
Signed-off-by: zhilei.wu <zhilei.wu@amlogic.com>
2018-03-13 20:25:51 -08:00
jie.yuan
0f1f791c9d dts: enable pstore to fix CtsLiblogTestCases [1/1]
PD#160700: enable pstore for gxl_p23 and txlx_t962e_r321

fix libc#__pstore_append

Change-Id: Ie4ddd90c4e42f4a4d778ba4d72cd51b672f1857d
Signed-off-by: jie.yuan <jie.yuan@amlogic.com>
2018-03-13 18:06:01 -08:00
Jiamin Ma
d97548f73e log_msg: too much logging messages for topology
PD#138714: lowering log level to debug for cpu_cluster_energy and
cpu_core_energy and disabling their logging by default

Change-Id: Ie515d892aa4ff0c77a5393c1b9f67b4f0c463b3e
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2018-03-13 00:56:50 -08:00
wenfeng.guo
06f41df2dd amvecm: fix DNLP node doesn't work when play local 4k viedo
PD#161992: amvecm: fix DNLP node doesn't work when play local 4k viedo

Change-Id: I38228ebf18127335529e2bca1679f5bb98d22863
Signed-off-by: wenfeng.guo <wenfeng.guo@amlogic.com>
2018-03-13 00:23:36 -08:00
Weiming Liu
d5ab425596 lcd: fix lcd_resume without panel display mode mistake
PD#156734: lcd: fix lcd_resume without panel display mode mistake

Change-Id: I2f41dba8fd777cf6748a3b3fe7f2b7922a12591d
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
2018-03-13 00:14:59 -08:00
Yi Zhou
31f4dfb578 hdmitx: add colorimetry feature to vpp
PD#161350: hdmitx: add colorimetry feature to vpp

Some special TVs just define HDR static Metadata,but don't
define colorimetry block. Therefore, hdmitx should use
another feature to accurately indicate HDR function

Change-Id: I8d9a9243c2e0fbcf8c938625aa8d2a20b1441a1b
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2018-03-12 23:25:00 -08:00
Yi Zhou
f36c4e21f6 hdmitx: add EMP (any packets) function
PD#156734: add EMP (any packets) function for test

The function is only used to test now. The details need to
be discussed in the feature.

method:
echo emp > /sys/class/amhdmitx/amhdmitx0/config

Change-Id: I73cf93d90c9247336340fdc36ae8779743dc262d
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2018-03-12 21:30:09 -08:00
Nian Jing
045d6671ed cvbs: add clk path select
PD#156734: add clk path select
	0: vid_pll vid2_clk (default)
	1: gp0_pll vid2_clk
	2: vid_pll vid1_clk
	3: gp0_pll vid1_clk
use below command to change clk path:
echo set_clkpath 1 >/sys/class/cvbs/debug

Change-Id: Ib0e2e9dd284f1b103c945602050ba91737537037
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
2018-03-12 21:29:45 -08:00
Yicheng Shen
d2e3e132cc hdmirx: optimize errorcable handle in PHY EQ algorithm
PD#161977: optimize errorcable handle in PHY EQ algorithm

Change-Id: I4e0f2884f64ac7818198504f7592b558985b5512
Signed-off-by: Yicheng Shen <yicheng.shen@amlogic.com>
2018-03-12 18:06:55 -08:00
Yi Zhou
72000c76b2 hdmitx: remove 5v close/open operation
PD#156734: remove 5v close/open operation

Change-Id: I8c4b4b892f0093081ef8ee2f007146f8dbde3897
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2018-03-11 20:41:09 -08:00
Peipeng Zhao
c81b97049f sound: fixed microphone detect crash error
PD#161229: sound: fixed microphone detect crash error

Change-Id: If84c694275c68761a0844bcb3dcae797f2b9a4fd
Signed-off-by: Peipeng Zhao <peipeng.zhao@amlogic.com>
2018-03-11 20:39:44 -08:00
Evoke Zhang
f4b2f0c279 p241: dts: fix cvbsout & vdac config mistake
PD#161357: p241: dts: fix cvbsout & vdac config mistake

Change-Id: Iff6c1ec0aec505a0e93ba2302a3c9ee419b23de5
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-03-11 20:37:42 -08:00
Hong Guo
dc8a7e0627 PM/sleep: modify register's dts format for suspend.
PD#156734: PM/sleep: modify register's dts format for suspend.

Change-Id: I8dd1f8927e3d5b2d0f815e732dc0c436ffd2fde9
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2018-03-09 04:04:11 -08:00
Zongdong Jiao
3984ed2886 hdmitx: fix wrong kmalloc usage
PD#161652: fix wrong kmailloc(, GFP_KERNEL) usage
At timer function. System will throw
    [<ffffff800908a0d8>] dump_backtrace+0x0/0x1d0
    [<ffffff800908a2cc>] show_stack+0x24/0x30
    [<ffffff8009465c60>] dump_stack+0x90/0xb0
    [<ffffff80090cc2e4>] ___might_sleep+0x14c/0x1a0
    [<ffffff80090cc394>] __might_sleep+0x5c/0x98
    [<ffffff80091e4ecc>] kmem_cache_alloc_trace+0x1ec/0x238
    [<ffffff800979d18c>] hdcptx_events_handle+0x45c/0x640
    [<ffffff800911193c>] call_timer_fn+0x3c/0x1b0
    [<ffffff8009111bb8>] expire_timers+0xd8/0x178
    [<ffffff8009111cec>] run_timer_softirq+0x94/0x178
    [<ffffff800908183c>] __do_softirq+0x12c/0x344
    [<ffffff80090a5344>] irq_exit+0xa4/0xd0
    [<ffffff80090fc8d8>] __handle_domain_irq+0x90/0x100
    [<ffffff800908154c>] gic_handle_irq+0x5c/0xb0
Should use GFP_ATOMIC instead.

Change-Id: I70778a6e3d993d87f71be208503688286913bda1
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2018-03-09 03:20:56 -08:00
Ao Xu
b135b9ae6a workqueue: avoid process_one_work NULL reference
PD#158184: avoid process_one_work NULL reference

avoid process_one_work NULL reference

Change-Id: I96d9477b804e079e18663d8f80d714ed9fbbd642
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2018-03-09 02:58:27 -08:00
Yue Wang
08381c18b4 usb: enable usb3.0 for s905d2_u200
PD#156734: usb: enable usn3.0 for s905d2_u200

Change-Id: I284a09ef192a23a844287ebf514b266f0662ccd6
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2018-03-09 01:43:52 -08:00
Jiyu Yang
79844d7334 dts: fixed hiu bus addr [2/2]
PD#159303: this may cause the suspend to ram crash at mali modules

Change-Id: I57a9a83306a4f04619e5c0ebfd0bf5ab15dcb804
Signed-off-by: Jiyu Yang <Jiyu.Yang@amlogic.com>
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2018-03-09 01:04:29 -08:00
Brian zhu
118874d6fa Revert "vpp: disable pps as default when scaler ratio is 1:1"
This reverts commit 3f03850cd9.

Change-Id: I9a760c8b3819728c9cab71a4526acc91538c99e0
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2018-03-09 00:55:52 -08:00
qi duan
0c7732bf56 USB: PCD: fix setup packet count issue
PD#161573: USB: PCD: fix setup packet count issue.
           merge from dwc_otg version3.30a

Change-Id: I636129dfadc0b28e04d09df771aa062ee73670fa
Signed-off-by: qi duan <qi.duan@amlogic.com>
2018-03-09 00:38:20 -08:00
jianxin.pan
72bd4fb5d5 dts: g12a: add s905d2_u200 and s905y2_u221
PD#156734: add s905d2_u200 and s905y2_u221 for g12a
1. rename g12a_skt.dts to g12a_s905d2_u200.dts
2. cp g12a_dts.dts to g12a_s905d2_skt.dts, and change caps and
f_max for sd_emmc_a
3. cp g12a_skt_buidroot.dts to g12a_s905d2_skt_buildroot.dts, and
change caps and  f_max for sd_emmc_a
4. cp g12a_skt.dts to g12a_s905y2_u221.dts, disable ethmac
5.  cp g12a_skt.dts to g12a_s905y2_u211.dts
6. set f_max for sd_emmc_c to 50000000

Change-Id: Iffbeffc6dd730cff1c5ac371e237edcc8354b042
Signed-off-by: jianxin.pan <jianxin.pan@amlogic.com>
2018-03-08 23:35:01 -08:00
Hong Guo
34e8129ead SUSPEND: enable supspend function.
PD#156734: suspend: enable supspend function.

Change-Id: I20d62c97147298617cc3c11b3a0ff878bff5f034
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2018-03-08 22:34:42 -08:00
Evoke Zhang
f58db47dc3 vout: optimize display mode changing flow
PD#161389: vout: optimize display mode changing flow

Change-Id: I29fadc879d1915917ffe19e3a4fa08ae36f36fd8
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-03-08 21:27:30 -08:00
Yue Wang
1607c648a2 usb: fix adb aio buffer panic.
PD#161764: usb: fix adb aio buffer panic.

Change-Id: I32d2c45e28f09489f3f53d2935ab0cd1d7992ed0
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2018-03-08 17:57:00 -08:00
Kaifu Hu
86f6d80fef hdmitx: fix VSDB parsing error
PD#160588: hdmitx: fix VSDB parsing error

Fix EDID VSDB parsing error.

Change-Id: Idbc7e4c801f032583004ee7d4e3b9e0decf44074
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
2018-03-08 02:58:00 -08:00
Nian Jing
b77ecce99e avin: fix disable detect abnormal
PD#161181: fix abnormal when disable detect

Change-Id: I946f6485d047630109665239c5e156a7f261cd47
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
2018-03-08 02:55:43 -08:00
kele bai
433997e5d2 di: fix mirror buffer recycle error cause crash
PD#160504: di: fix keep buffer pointer error

1) fix keep buffer pointer error for seek case

Change-Id: I9ad34b86f6cc3c9a5cd5840571346bf180e45c39
Signed-off-by: kele bai <kele.bai@amlogic.com>
2018-03-08 02:54:08 -08:00
Nanxin Qin
669abda5ac media: fixes an issue where the CTS cause the kernel crash
PD#161202: recycles the vf data before must to be checked.

Change-Id: Ief413c5169d859be632f4799d6897ae1322e2fbb
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2018-03-08 00:32:00 -08:00
Nanxin Qin
1cb561792f register: improvers the regs ops to prevent crash duo to bus type err.
PD#161757: improvers the regs ops to prevent crash duo to bus type err

Change-Id: Id5f7648de84d55700d7c240b32e988363ffb9ef7
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2018-03-08 00:29:42 -08:00
jianxin.pan
c3781e3a70 dts: g12a: move common parts from dts to dtsi
PD#156734: move g12a common parts from dts to dtsi

Change-Id: I67476217b44774c1645da5482d8c7e43ac91ae7e
Signed-off-by: jianxin.pan <jianxin.pan@amlogic.com>
2018-03-07 22:45:48 -08:00
Jiamin Ma
4b3b3ab348 cpufreq: boost cpufreq when remote key input
PD#158772: cpufreq: boost cpufreq when remote key input

Change-Id: I0bc536737380d51f7f14b00d1fa34a52ccd528c0
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2018-03-07 22:02:09 -08:00
hongmin hua
f0ec553988 cec: add cec version define in dts & cts 9.3
PD#160943: cec: add cec version define in dts & cts 9.3

Change-Id: Ifd06bf388412d058efd90be3afe6119fc666dacb
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
2018-03-07 21:43:07 -08:00
Xing Wang
4f74d13178 audio: auge: add alsaPORT suffix name for android audio hal
PD#156734: audio: auge: add alsaPORT suffix name for android audio hal

Change-Id: Ie442dc27c594caf0181425e66fe555c1bd5355ba
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2018-03-07 19:02:07 -08:00