Commit Graph

648479 Commits

Author SHA1 Message Date
Brian Zhu
2c9dae4eb4 video: sr: add the missing bit mask for sr core1 [1/1]
PD#SWPL-2948

Problem:
Miss the sr core1 bit mask to cause display abnormal

Solution:
Add the bit mask for sr core1

Verify:
Test pass by x301

Change-Id: I742d86b610a9748adad7c143d7a85c6796d3c8f7
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-02-27 04:25:14 +09:00
Tao Zeng
b5771273c2 mm: subtract CMA isolated pages when allocate TVP [1/1]
PD#SWPL-2933

Problem:
When allocate CMA pages in buildroot enverioment, system will
hung in congestion_wait:
Call trace:
[<ffffff8009086a78>] __switch_to+0xa0/0xc8
[<ffffff8009de3eb8>] __schedule+0x268/0x7d8
[<ffffff8009de4464>] schedule+0x3c/0xa0
[<ffffff8009de7c9c>] schedule_timeout+0x1b4/0x448
[<ffffff8009de3be8>] io_schedule_timeout+0x98/0x100
[<ffffff80091e3fb8>] congestion_wait+0x90/0x190
[<ffffff80091ebcf4>] isolate_migratepages_block+0x7ec/0x890
[<ffffff80091ec794>] isolate_migratepages_range+0x8c/0x100
[<ffffff8009a8f34c>] aml_alloc_contig_migrate_range+0x104/0x158
[<ffffff8009a8f518>] cma_boost_work_func+0x178/0x270
[<ffffff80090cc228>] kthread+0xf8/0x110
[<ffffff80090836c0>] ret_from_fork+0x10/0x50

Solution:
subtract isolated CMA pages when allocation large CMA for TVP.

Verify:
local

Change-Id: I96153cf104abb009a8965c2230a5242e495dd031
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-02-27 04:25:14 +09:00
pengcheng chen
27bdd7a086 osd: fix afbc dd length error issue [1/1]
PD#SWPL-2674

Problem:
fix afbc dd length error issue

Solution:
add afbc_len to set screen_size

Verify:
verified on g12a-u200

Change-Id: I00df7945f0f928efe2b8be88c56f10f20bb1700f
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
2019-02-27 04:25:14 +09:00
Hongmin Hua
b24b397f2b cec: set the phy port the same as ui id [2/2]
PD#SWPL-2685

Problem:
the atom switch wrong channel when wakeup by device

Solution:
set the phy port the same as ui id

Verify:
atom

Change-Id: I4e43f83af5bb30a2388df7e7030f135c3f0830ad
Signed-off-by: Hongmin Hua <hongmin.hua@amlogic.com>
2019-02-27 04:25:14 +09:00
Jian Hu
7df613bddf clk: g12a: add gen clock [1/1]
PD#OTT-1025

Problem:
not support gen clock

Solution:
add gen clock

Verify:
test passed on g12a u200

Change-Id: I5199289d3cd1483fffbbd41f8d104369214ba302
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2019-02-27 04:25:14 +09:00
Xingyu Chen
6294b33846 pinctrl: meson: add gen_clk_ee/ao pin groups for G12A/B [1/1]
PD#OTT-1025

Problem:
don't support gen_clk_ee and gen_clk_ao pin groups

Solution:
add gen_clk_ee/ao pin groups according to the corepinmux document

Verify:
test pass on U200

Change-Id: Ia3e61079def285c482d8dc4957b5f9e7db35847d
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2019-02-27 04:25:14 +09:00
tao zeng
342306da28 mm: optimize thread stack usage on arm64 [1/1]
PD#SWPL-1219

Problem:
On arm64, thread stack is 16KB for each task. If running task number
is large, this type of memory may over 40MB. It's a large amount on
small memory platform. But most case thread only use less 4KB stack.
It's waste of memory and we need optimize it.

Solution:
1. Pre-allocate a vmalloc address space for task stack;
2. Only map 1st page for stack and handle page fault in EL1
   when stack growth triggered exception;
3. handle stack switch for exception.

Verify:
p212

Change-Id: I47f511ccfa2868d982bc10a820ed6435b6d52ba9
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
2019-02-27 04:25:14 +09:00
Jihong Sui
9296b7528e deinterlace: deinterlace: fix coverity error [1/1]
PD#SWPL-2863

Problem:
cdev_add without checking return value.

Solution:
add check

Verify:
p212

Change-Id: Ib1d96f6e5ee07dd28f67eb4ee77acb6580a1f877
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-02-27 04:25:14 +09:00
Jihong Sui
18a0d4f8ff deinterlace: deinterlace: set post_ctrl when no mirror [1/1]
PD#SWPL-1076

Problem:
Kplayer 4KDemo.mp4, show green screen.

Solution:
add DI_IF1_GEN_REG set when no mirror

Verify:
p212

Change-Id: I2cfb27068393832fb47498ebdb9b93349f1fe635
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-02-27 04:25:14 +09:00
Pengcheng Chen
456e46b3ff osd: add osd log module control [2/2]
PD#SWPL-2551

Problem:
add osd log module control

Solution:
add osd log module control

Verify:
verified on P212

Change-Id: Iadbf795cb7afe4ddcab0f9283b9c7f542eca0b29
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-02-27 04:25:14 +09:00
Jian Cao
f06b47ca96 osd: range of mouse is wrong under 4K mode [1/2]
PD#SWPL-2551

Problem:
range of mouse is wrong under 4K mode

Solution:
new cursor coordinate paras without using scale
add osd_cursor_hw_no_scale() to deal with it.

Verify:
verified on P212

Change-Id: I1748df569b96522eb58dc00af862983bca17815a
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-02-27 04:25:14 +09:00
Tao Guo
b22a775925 media: add get free handle cmd [4/9]
PD#SWPL-1081

Problem:
Need get freed handle for DRM frame mode

Solution:
Add ioctl cmd to get freed handle

Verify:
P212

Change-Id: Ic0ce64061e334fdea5580d9f92b3e0b58caa88eb
Signed-off-by: Tao Guo <tao.guo@amlogic.com>
2019-02-27 04:25:14 +09:00
Evoke Zhang
898c515822 lcd: mipi_dsi: update clk_post timing for dphy [1/1]
PD#SWPL-2436

Problem:
sometime the dphy clk_post is not match spec

Solution:
update clk_post config

Verify:
w400

Change-Id: Ib6b585f833bf923e72109991509915f4ad35d316
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-02-27 04:25:14 +09:00
Zongdong Jiao
69d0f1c38e hdmitx: parse colorattribute from uboot [2/2]
PD#SWPL-2181

Problem:
For some Rx, if the Tx cold boots up, the HPD can't be got in uboot.
That is to say, the output mode is CVBS in uboot, even HDMI cable is
connected. And during kernel boots up, it will reset to hdmi mode.
During the Android boots up, it will set to hdmi mode again. Twice
hdmi mode setting may cause TV flicks.

Solution:
Add parsing colorattribute from uboot and assign $attr to prevent
the second Android mode setting.

Verify:
S905X/P212

Change-Id: I665227bc3e8481acb40c34dde2f5cb3c633c64a2
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-02-27 04:25:14 +09:00
bichao.zheng
5c8f4bef40 arm: dts: fix wifi 32K Frequency offset [2/2]
PD#SWPL-2623

Problem:
wifi 32K Frequency offset too large

Solution:
Modification cycle

Verify:
x301

Change-Id: I04724b0eacdffc1760b67689be373cb8f671a125
Signed-off-by: bichao.zheng <bichao.zheng@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts
2019-02-27 04:25:14 +09:00
bichao.zheng
44b4195bfe arm64: dts: fix wifi 32K Frequency offset [2/1]
PD#SWPL-2623

Problem:
wifi 32K Frequency offset too large

Solution:
Modification cycle

Verify:
axg u211 p321 r311 p212

Change-Id: Ica04bec99ba2097918387a980b94dc007bb4eca4
Signed-off-by: bichao.zheng <bichao.zheng@amlogic.com>
2019-02-27 04:25:14 +09:00
Jihong Sui
c05e87404b deinterlace: reduce the screen flash when fast forward [1/1]
PD#SWPL-2188

Problem:
1.fast forward/rewind operation, the screen flashes

Solution:
1.add function to update MCDI_MCVECRD_CTRL[9]

Verify:
1.txl

Change-Id: I1bf8583901fa49c518cca74e7716632447adf32f
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-02-27 04:25:14 +09:00
Jian Hu
a3c9f703ce clk: gxl: correct saradc clock id when check sardadc clock [1/1]
PD#OTT-944

Problem:
saradc check the wrong clock id.

Solution:
correct saradc id.

Verify:
verified on P212 board

Change-Id: I7fdde80c21228e45ec165252549bf4ca5f21bd67
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2019-02-27 04:25:14 +09:00
Daogao Xu
de8db8bd8c video: add fast and slow playback support [1/1]
PD#SWPL-1690

Problem:
YouTube requires support playback rate 0.25, 0.50, 1.00, 1.25, 1.50,
2.00

Solution:
vsync_slow_factor can be used to slow playback, extend it's value to
support fast playback

Verify:
mesongxl_p212_32_kernel49

Change-Id: I94589a210b8531cc198414b3017c3caf82827565
Signed-off-by: Daogao Xu <daogao.xu@amlogic.com>
2019-02-27 04:25:14 +09:00
wenfeng.guo
0e93156209 vpp: fix vpp covertiy error [1/1]
PD#SWPL-2458

Problem:
vpp has covertiy error

Solution:
fix vpp covertiy error

Verify:
r311

Change-Id: Ic755420107b72fa0a56d73e288b708ab421f7609
Signed-off-by: Wenfeng Guo <wenfeng.guo@amlogic.com>
2019-02-27 04:25:14 +09:00
Jiacheng Mei
5aac68a693 dts: reduce isp memory usage [1/1]
PD#SWPL-2512

Problem:
isp reserved mem too large

Solution:
reduce isp mem to 256M

Verify:
A311D-W400

Change-Id: I33ee2872daf961da5f0ba4ba4810b0ac9690e45f
Signed-off-by: Jiacheng Mei <jiacheng.mei@amlogic.com>
2019-02-27 04:25:14 +09:00
Bencheng Jing
8bb52d4c6b amvecm: fix dnlp read scurv_mid2 debug interface error [1/1]
PD#SWPL-2448

Problem:
can not read dnlp scurv_mid2 value

Solution:
fix the error

Verify:
t962x_r311

Change-Id: I7a7df769dd117fd83164065f6df8e3ae82c2499f
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-02-27 04:25:14 +09:00
Guosong Zhou
0712e13162 picdec: add mmap interface for picdec [2/2]
PD#SWPL-2280

Problem:
play picture crash

Solution:
add mmap interface for picdec

Verify:
verify by p321

Change-Id: Ib278de80035b0404884315e29fe933cd8f4b6cfe
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
2019-02-27 04:25:12 +09:00
Kevin Kim
f59422e2f5 ODROID-COMMON:Add Mixer control for LINE-OUT Mute
Mute : tinymix -D 0 199 1
Unmute : tinymix -D 0 199 0
Boot on state : unmute

Change-Id: If899ea5607cbef8b62fb35b66c79089beb192d1a
s922_9.0.0_20190222
2019-02-22 12:06:03 +09:00
Dongjin Kim
f846045521 Merge "ODROID-N2: clk: add 2.004GHz cpu freq for A73 core and change the max" into odroidn2-4.9.y-android 2019-02-21 19:42:41 +09:00
Chris KIM
adc4fb5bc5 Revert "ODROID-N2: osd: support flexible fb size with free scale option"
This reverts commit e34d6ee040.

Change-Id: Icf9a0069fd26103fbb6185163dfbc9ea5ea78e96
2019-02-21 15:20:11 +09:00
Dongjin Kim
aedd70399d ODROID-N2: arm64/dts: add 'vdac_config' for CVBS output
Change-Id: Iad6c990888f804829b5e8ca3e5dfe9e1829ae9b2
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
(cherry picked from commit 3fa6871cff)
2019-02-20 17:27:21 +09:00
Chao Liu
579beb6892 dts: g12a/b: config hw rng with dts [1/1]
PD#OTT-2062

Problem:
Boot up time with power cable is longer than boot up with usb cable

Solution:
config hw rng with dts

Verify:
android p + u212

Change-Id: I61613e945dbc9be06f2cbb29aae5043c84fca1de
Signed-off-by: Chao Liu <chao.liu@amlogic.com>
(cherry picked from commit aabb72a65e)
2019-02-20 10:59:45 +09:00
Joy Cho
54eb2c5f7f ODROID-N2: clk: add 2.004GHz cpu freq for A73 core and change the max
Change-Id: I99274d1084fc20a277a26669024391132da010f8
2019-02-20 08:58:46 +09:00
Joy Cho
2ac237d84d ODROID-N2: thermal: fix power to freq table generation bug
Change-Id: Icb25b389c8f2f88c367eef0b296300aca878bd0f
s922_9.0.0_20190214
2019-02-13 12:11:24 +09:00
Joy Cho
e34d6ee040 ODROID-N2: osd: support flexible fb size with free scale option
Change-Id: I87a63eda62b96e3d54cb88f92e16364ba8250acf
2019-02-13 12:01:13 +09:00
Joy Cho
0432f8b81b Merge "ODROID-N2: vout: update current vout mode string" into odroidn2-4.9.y-android 2019-02-13 11:57:40 +09:00
Joy Cho
6503dc28bd Merge "ODROID-N2: vout: hdmitx: adjust hdmi timing and hpll over 2Gbps" into odroidn2-4.9.y-android 2019-02-13 11:57:18 +09:00
Joy Cho
4c752a48bb Merge "ODROID-N2: vout: fix default display init option" into odroidn2-4.9.y-android 2019-02-13 11:56:51 +09:00
Joy Cho
12dc36630f ODROID-N2: thermal: add an exeception logic to control max cpu level
Change-Id: I880b89d828034b029e306bda7c8be9004c3ec913
FIXME: find a better way not to modify thermal core drivers
2019-02-13 11:51:11 +09:00
Dongjin Kim
4f269734d7 Merge changes I3730ad2d,I2ee9c9ec into odroidn2-4.9.y-android
* changes:
  hdmitx: custombuilt: consider hdmi pll output under 1GHz
  ODROID-N2: hdmitx: add hdmi phy custombuilt mode
2019-02-13 11:49:42 +09:00
Kevin Kim
140d6f4266 ODROID-COMMON:PWM driver pinctrl for odroid.
Change-Id: Iced9657a28d6cf1715f5d130644079b0dc96c865
2019-02-13 10:41:02 +09:00
Joy Cho
606759b7e9 ODROID-N2: vout: fix default display init option
Change-Id: I33f3ea9374847117914b821193610d48f9e55106
2019-02-13 10:40:38 +09:00
Kevin Kim
f97ae0903f ODROID-COMMON:Add pwm-gpio driver for cooling fan control
Change-Id: I906fdd7d8b3da407f8ea7560562df7cc46b3d8fa
2019-02-13 10:39:04 +09:00
Joy Cho
d3ca17a12d ODROID-N2: vout: update current vout mode string
Change-Id: I19584a9dedfcf66a7ad2efbdcfddd9b5218add70
2019-02-13 10:11:54 +09:00
Joy Cho
35fb7dced2 ODROID-N2: vout: hdmitx: adjust hdmi timing and hpll over 2Gbps
2560x1440p60hz / 2560x1600p60hz

Change-Id: I10240001b7c655b95f4db5d3fea8cb147d7495ab
(cherry picked from commit d7df8c31c6)
2019-02-12 17:23:10 +09:00
Kevin Kim
3a4ee7be3a pwm: gpio: Add a generic gpio based PWM driver
From: Olliver Schinagl <oliver@schinagl.nl>

This patch adds a bit-banging gpio PWM driver. It makes use of hrtimers,
to allow nano-second resolution, though it obviously strongly depends on
the switching speed of the gpio pins, hrtimer and system load.

Each pwm node can have 1 or more "pwm-gpio" entries, which will be
treated as pwm's as part of a pwm chip.

Change-Id: Idd42bf6d79f8ce52275a15965b02af470f28da7c
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2019-02-08 18:31:02 +09:00
Chris KIM
7461978eb4 ODROID-N2: Fix build error.
https://git.linuxfactory.or.kr:8080/#/c/10770/

Change-Id: I3014c2b540b91eeafde3a151e3752b02bbd30ccc
2019-02-08 18:27:52 +09:00
Dongjin Kim
87003f2ce9 Merge "ODROID-N2: support true 4k framebuffer" into odroidn2-4.9.y-android 2019-02-08 18:19:00 +09:00
Joy Cho
fe07e8e9c3 arm64: dma-mapping: increase DMA coherent pool size to 2M
Change-Id: I55c33b5966a4468fe0c28659fcc24896c9f95262
(cherry picked from commit b75f191fea)
2019-02-08 18:16:11 +09:00
Joy Cho
19e6b2b3a0 hdmitx: custombuilt: consider hdmi pll output under 1GHz
Change-Id: I3730ad2d4c9e914c28f8d2e57da93561a72abe47
2019-02-08 18:13:09 +09:00
Joy Cho
57669d367a ODROID-N2: osd: support flexible length of fb size
Change-Id: Iebdb7edf12f206696394a571575dac6879c9a591
2019-02-08 18:13:09 +09:00
Joy Cho
88fbd20def ODROID-N2: hdmitx: add hdmi phy custombuilt mode
Change-Id: I2ee9c9eccda7d54e6a801ed6b90039deb3c3fc75
(cherry picked from commit 75a95d6280)
2019-02-08 18:13:09 +09:00
Joy Cho
a7ee2c4ce8 ODROID-N2: force to set default 1080p60hz with invalid vmode setting
Change-Id: I9702b0e778532bf0f6fb8dcf477ef7c6d222e93c
2019-02-08 18:13:09 +09:00
Joy Cho
a4b8fc6a84 ODROID-N2: vout: set default vout mode as HDMI always initialized
Change-Id: Id9adb4d3adbf95d61eb34ce9097a01738f54cb63
(cherry picked from commit 9c24c05ba1)
2019-02-08 18:13:09 +09:00