GitHub/LineageOS/G12/android_kernel_amlogic_linux-4.9.git
3 years agohdmitx: adjust the hdmi resume power uevent [2/4]
Zongdong Jiao [Tue, 10 Aug 2021 05:15:14 +0000 (13:15 +0800)]
hdmitx: adjust the hdmi resume power uevent [2/4]

PD#SWPL-56597

Problem:
Current the hdmi resume power uevent is early and before reading
edid, and this will make application can't get sink capability and
set the 480p as default

Solution:
Adjust the hdmi resume power uevent after reading edid

Verify:
g12/u212

Change-Id: I20acd118762d167ccfbf790c8fbace3171b0fda3
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
3 years agohdmitx: head the hdmi_pwr in resume [1/4]
Zongdong Jiao [Mon, 26 Jul 2021 14:21:29 +0000 (22:21 +0800)]
hdmitx: head the hdmi_pwr in resume [1/4]

PD#SWPL-55323

Problem:
the hdmi_pwr is too late in resume

Solution:
head the hdmi_pwr in resume

Verify:
G12/U212

Change-Id: I86bd4dfd0c6b51578cb09fd4fc8902b858de9eae
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
3 years agoosd: avoid color_info NULL [1/1]
jian.cao [Fri, 27 Aug 2021 06:21:43 +0000 (14:21 +0800)]
osd: avoid color_info NULL [1/1]

PD#SWPL-57980

Problem:
after the device is powered on
plug in the HDMI cable a few seconds
then OSD panic

Solution:
avoid color_info NULL

Verify:
g12a

Change-Id: I69202bc06d889e59a391b50b609237689eb29d31
Signed-off-by: jian.cao <jian.cao@amlogic.com>
3 years agodefconfig: open DEBUG_FS by defconfig [1/1]
song.han [Mon, 23 Aug 2021 08:32:52 +0000 (16:32 +0800)]
defconfig: open DEBUG_FS by defconfig [1/1]

PD#SWPL-57714

Problem:
can't open DEBUG_FS by Kconfig

Solution:
CONFIG_DEBUG_FS=y

Verify:
local

Change-Id: Idc201854cb819c23059f981eab6f7341273ba58e
Signed-off-by: song.han <song.han@amlogic.com>
3 years agomedia: osd: fix depend error in arm32 user version [2/4]
jian.cao [Tue, 3 Aug 2021 06:39:42 +0000 (14:39 +0800)]
media: osd: fix depend error in arm32 user version [2/4]

PD#SWPL-47101

Problem:
CONFIG_AMLOGIC_MEDIA_FB_OSD_SYNC_FENCE depends on CONFIG_DEBUG_FS
and is not enabled in arm32 user version

Solution:
fix depend error

Verify:
s4 ap222

Change-Id: I5ff794630ca933cb33c523b49b83f6185c18182d
Signed-off-by: jian.cao <jian.cao@amlogic.com>
(cherry picked from commit 8e8cabbd2b8a20ce4e06d7898682b2665187012c)

3 years agoKconfig: close DEBUG_FS select by TRACING [3/4]
song.han [Fri, 13 Aug 2021 08:18:23 +0000 (16:18 +0800)]
Kconfig: close DEBUG_FS select by TRACING [3/4]

PD#SWPL-57714

Problem:
can't close DEBUG_FS by config

Solution:
modify Kconfig about TRACING

Verify:
local

Change-Id: I6b926143fd94f952214e0f1fff2551fb891b1020
Signed-off-by: song.han <song.han@amlogic.com>
3 years agoclkmsr: adjust register debugfs [1/4]
Bichao Zheng [Mon, 16 Aug 2021 08:00:54 +0000 (16:00 +0800)]
clkmsr: adjust register debugfs [1/4]

PD#SWPL-57735

Problem:
close DEBUG_FS then clkmsr crash.

Solution:
adjust register debugfs

Verify:
g12a_u212

Change-Id: I7988c6d4a9508dad26a6f886289ec3509c0af1df
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
3 years agohdmitx: fix edid parse crash [1/1]
hang cheng [Tue, 29 Jun 2021 12:59:51 +0000 (20:59 +0800)]
hdmitx: fix edid parse crash [1/1]

PD#SWPL-56548

Problem:
may block during spinlock cause crash

Solution:
move block outside of spinlock

Verify:
AB311

Change-Id: If0086cf3dd53b3426c8c2132e4718e36d06cb866
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
3 years agoIncrease framebuffer memory pool so it can hold 6 framebuffers [1/1]
Liang Ji [Tue, 10 Aug 2021 06:47:05 +0000 (14:47 +0800)]
Increase framebuffer memory pool so it can hold 6 framebuffers [1/1]

PD#GH-1202
BUG=190485198

Problem:
Increase framebuffer memory pool so it can hold 6 framebuffers

Solution:
Increase framebuffer memory pool so it can hold 6 framebuffers

Verify:
adt3

Signed-off-by: Liang Ji <liang.ji@amlogic.com>
Change-Id: I2711107539efacdb810e8e10ca1f14f3e3d14533

3 years agohdmitx: correct the unit of physical size [1/1]
Zongdong Jiao [Tue, 27 Jul 2021 11:45:30 +0000 (19:45 +0800)]
hdmitx: correct the unit of physical size [1/1]

PD#SWPL-54362

Problem:
The physical size is cm, while the screen size is mm.
Need unify the unit.

Solution:
Correct the unit of physical size as mm.

Verify:
g12/u212

Change-Id: I0c1f3d71f2df4930d8a91f692b713ad537133a55
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
3 years agoAndroid S bt: kernel get BT-WAKE,do not send power key[1/1]
lele.liu [Wed, 28 Jul 2021 06:34:12 +0000 (14:34 +0800)]
Android S bt: kernel get BT-WAKE,do not send power key[1/1]

PD#SWPL-49147

Problem:
Bluetooth wakes up device unexpectedly

Solution:
kernel get BT-WAKE,do not send power key

Verify:
local

Signed-off-by: lele.liu <lele.liu@amlogic.com>
Change-Id: I8ccc0a719f8b54537b932c66f29a52c4a956d69b
Signed-off-by: lele.liu <lele.liu@amlogic.com>
3 years agoMerge "hdmitx: enhance robustness for export function [1/1]" into android-tv-deadpool...
Hongguang Chen [Tue, 6 Jul 2021 23:57:16 +0000 (23:57 +0000)]
Merge "hdmitx: enhance robustness for export function [1/1]" into android-tv-deadpool-4.9-android12

3 years agoMerge "hdmitx: fix 1.4 cts 7-19 [1/2]" into android-tv-deadpool-4.9-android12
Hongguang Chen [Tue, 6 Jul 2021 23:57:05 +0000 (23:57 +0000)]
Merge "hdmitx: fix 1.4 cts 7-19 [1/2]" into android-tv-deadpool-4.9-android12

3 years agoMerge "emmc: build fake bootloader0 & bootloader1 [1/1]" into android-tv-deadpool...
Hongguang Chen [Tue, 6 Jul 2021 23:56:53 +0000 (23:56 +0000)]
Merge "emmc: build fake bootloader0 & bootloader1 [1/1]" into android-tv-deadpool-4.9-android12

3 years agoMerge "demux: clean demux output buffer [1/1]" into android-tv-deadpool-4.9-android12
Hongguang Chen [Tue, 6 Jul 2021 23:56:38 +0000 (23:56 +0000)]
Merge "demux: clean demux output buffer [1/1]" into android-tv-deadpool-4.9-android12

3 years agoMerge "osd: fix osd dummy alpha set error issue [1/1]" into android-tv-deadpool-4...
Hongguang Chen [Tue, 6 Jul 2021 23:56:28 +0000 (23:56 +0000)]
Merge "osd: fix osd dummy alpha set error issue [1/1]" into android-tv-deadpool-4.9-android12

3 years agoMerge "ion: add fb heap for hw-fb [1/1]" into android-tv-deadpool-4.9-android12
Hongguang Chen [Tue, 6 Jul 2021 23:55:36 +0000 (23:55 +0000)]
Merge "ion: add fb heap for hw-fb [1/1]" into android-tv-deadpool-4.9-android12

3 years agoMerge "cts: fix CtsDownloadManagerApi28 1 fail [1/2]" into android-tv-deadpool-4...
Hongguang Chen [Tue, 6 Jul 2021 23:55:19 +0000 (23:55 +0000)]
Merge "cts: fix CtsDownloadManagerApi28 1 fail [1/2]" into android-tv-deadpool-4.9-android12

3 years agoMerge "picdec: skip putting vframe if current buffer is being in used [1/1]" into...
Hongguang Chen [Tue, 6 Jul 2021 23:55:09 +0000 (23:55 +0000)]
Merge "picdec: skip putting vframe if current buffer is being in used [1/1]" into android-tv-deadpool-4.9-android12

3 years agoMerge "cec: fix complie issue [1/1]" into android-tv-deadpool-4.9-android12
Hongguang Chen [Tue, 6 Jul 2021 23:54:48 +0000 (23:54 +0000)]
Merge "cec: fix complie issue [1/1]" into android-tv-deadpool-4.9-android12

3 years agoMerge "sc2: AUCPU secure fw loading [3/4]" into android-tv-deadpool-4.9-android12
Hongguang Chen [Tue, 6 Jul 2021 23:54:28 +0000 (23:54 +0000)]
Merge "sc2: AUCPU secure fw loading [3/4]" into android-tv-deadpool-4.9-android12

3 years agoMerge "STR: fix suspend abort cause system resume by powerkey event [1/1]" into andro...
Hongguang Chen [Tue, 6 Jul 2021 23:54:06 +0000 (23:54 +0000)]
Merge "STR: fix suspend abort cause system resume by powerkey event [1/1]" into android-tv-deadpool-4.9-android12

3 years agoMerge "demux: pts secure mem protect fail [1/1]" into android-tv-deadpool-4.9-android12
Hongguang Chen [Tue, 6 Jul 2021 23:53:55 +0000 (23:53 +0000)]
Merge "demux: pts secure mem protect fail [1/1]" into android-tv-deadpool-4.9-android12

3 years agocec: fix complie issue [1/1]
hang cheng [Mon, 7 Jun 2021 11:20:36 +0000 (19:20 +0800)]
cec: fix complie issue [1/1]

PD#SWPL-52256

Problem:
CONFIG_AMLOGIC_HDMITX macro is not defined on
TV platform, cause complie issue

Solution:
fix complie issue

Verify:
am301

Change-Id: Ib9bcfe3d613f8affe2469adcce4383b315eee3fc
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
3 years agovideo_composer: add in the uvm type to check whether has vframe. [1/1]
jintao xu [Mon, 21 Jun 2021 06:43:18 +0000 (14:43 +0800)]
video_composer: add in the uvm type to check whether has vframe. [1/1]

PD#SWPL-52333

Problem:
hdmitx audio setting function is called on TV
platform and cause crash

Solution:
if hdmitx driver is not enabled, export function
just return

Verify:
pb

Signed-off-by: jintao xu <jintao.xu@amlogic.com>
Change-Id: Ic87135d8621a2a37e74c2ac8ddc6d7096e3d75d1

3 years agoion: add fb heap for hw-fb [1/1]
Dezhi Kong [Fri, 19 Mar 2021 08:23:10 +0000 (16:23 +0800)]
ion: add fb heap for hw-fb [1/1]

PD#SWPL-45003

Problem:
hw-fb may alloc fail from cma heap,
which will result in display messed up

Solution:
add a separate ion fb heap only used for HW_FB

Verify:
sm1-newton-ac214
g12a-franklin-u212

Change-Id: I154fe5c61ad1c92cfc652234a093090284c4d2f3
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
3 years agoMerge "codec_mm: Modify a warning print for tvp free [1/1]" into android-tv-deadpool...
Hongguang Chen [Tue, 6 Jul 2021 23:20:37 +0000 (23:20 +0000)]
Merge "codec_mm: Modify a warning print for tvp free [1/1]" into android-tv-deadpool-4.9-android12

3 years agocts: fix CtsDownloadManagerApi28 1 fail [1/2]
Yonghui Yu [Fri, 18 Jun 2021 14:03:06 +0000 (22:03 +0800)]
cts: fix CtsDownloadManagerApi28 1 fail [1/2]

PD#SWPL-51104

Problem:
CtsDownloadManagerApi28 fail because of ioctrl
failure on EXT4_IOC_FSGETXATTR and EXT4_IOC_FSSETXATTR.

Solution:
Add those two IOC to the compat_ioctrl.

Verify:
adt3

Signed-off-by: Yonghui Yu <yonghui.yu@amlogic.com>
Change-Id: I2ed64202819b15d6b8aa75b6aefd255a3580cbd1

3 years agoMerge "nand: fix some parameter modification [1/1]" into android-tv-deadpool-4.9...
Hongguang Chen [Tue, 6 Jul 2021 23:20:02 +0000 (23:20 +0000)]
Merge "nand: fix some parameter modification [1/1]" into android-tv-deadpool-4.9-android12

3 years agopicdec: skip putting vframe if current buffer is being in used [1/1]
Cao Jian [Wed, 16 Jun 2021 05:51:44 +0000 (13:51 +0800)]
picdec: skip putting vframe if current buffer is being in used [1/1]

PD#SWPL-52807

Problem:
GIF pictures flicker after quickly switching pictures

Solution:
skip putting vframe if current buffer is being in used

Verify:
on t5

Change-Id: Id1366ead409967a6055d5de5413f16774407c778
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
3 years agoMerge "hdmirx: add hdmi plug & cec rx msg uevent [1/1]" into android-tv-deadpool...
Hongguang Chen [Tue, 6 Jul 2021 23:19:47 +0000 (23:19 +0000)]
Merge "hdmirx: add hdmi plug & cec rx msg uevent [1/1]" into android-tv-deadpool-4.9-android12

3 years agohdmitx: enhance robustness for export function [1/1]
hang cheng [Tue, 15 Jun 2021 06:37:48 +0000 (14:37 +0800)]
hdmitx: enhance robustness for export function [1/1]

PD#SWPL-52333

Problem:
hdmitx audio setting function is called on TV
platform and cause crash

Solution:
if hdmitx driver is not enabled, export function
just return

Verify:
am301

Change-Id: I5e369e6951dfbb5da1784a7245b9c08bc7684c6f
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
3 years agoemmc: build fake bootloader0 & bootloader1 [1/1]
Ruixuan Li [Tue, 8 Jun 2021 07:31:23 +0000 (15:31 +0800)]
emmc: build fake bootloader0 & bootloader1 [1/1]

PD#SWPL-52307

Problem:
need bootloader0 & bootloader1 offset from 1 sector

Solution:
add fake partition

Verify:
passed on t3_t982

Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
Change-Id: Iddac88632af72fb9251a19c4941efc9a29cd6b59

3 years agodemux: clean demux output buffer [1/1]
Pengfei Liu [Tue, 15 Jun 2021 09:07:46 +0000 (17:07 +0800)]
demux: clean demux output buffer [1/1]

PD#SWPL-52784

Problem:
 dmx have remaining data.

Solution:
 clean dmx output buffer

Verify:
 verified at vo svp.

Signed-off-by: Pengfei Liu <pengfei.liu@amlogic.com>
Change-Id: Ia392e83533a0ec8e3b6d9ed13a219a07a23eced3

3 years agohdmitx: fix 1.4 cts 7-19 [1/2]
hang cheng [Thu, 10 Jun 2021 04:41:43 +0000 (12:41 +0800)]
hdmitx: fix 1.4 cts 7-19 [1/2]

PD#SWPL-52240

Problem:
hdmi1.4 cts 7-19 fail, it will sent
non-zero CD in GCP under y422

Solution:
set CD of GCP to 0 when EDID not support
deep color

Verify:
ap222

Change-Id: I500a470188d6f045ff054ac4ac44fce09f64a6af
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
3 years agoosd: fix osd dummy alpha set error issue [1/1]
Pengcheng Chen [Wed, 2 Jun 2021 01:57:30 +0000 (09:57 +0800)]
osd: fix osd dummy alpha set error issue [1/1]

PD#SWPL-51971

Problem:
osd dummy alpha error in 1080i

Solution:
fix osd dummy alpha set in 1080i

Verify:
u212

Change-Id: Iaa7271fd3def8fde3098fb517010f0650fe3c096
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
3 years agosc2: AUCPU secure fw loading [3/4]
Lawrence Mok [Wed, 3 Mar 2021 01:17:17 +0000 (17:17 -0800)]
sc2: AUCPU secure fw loading [3/4]

PD#SWPL-49064

Problem:
Need to support signed and encrypted AUCPU firmware.

Solution:
Add bl31 smc command to load signed/encrypted fw

Verify:
Load signed/encrypted AUCPU fw:
  Sign/encrypt aucpu_fw.bin
  mkdir /lib/firmware
  cp -v aucpu_fw.bin.dblk /lib/firmware/aucpu_fw.bin
  insmod aml_aucpu.ko print_level=0

Change-Id: Ib63e4332e5a21f27787365a2df59c0a69ccd1537
Signed-off-by: Lawrence Mok <lawrence.mok@amlogic.com>
3 years agoSTR: fix suspend abort cause system resume by powerkey event [1/1]
Qiufang Dai [Mon, 7 Jun 2021 12:58:00 +0000 (20:58 +0800)]
STR: fix suspend abort cause system resume by powerkey event [1/1]

PD#SWPL-52156

Problem:
When suspend abort happens, device driver resume call back call
get_resume_method() which always feedback the last resume method.
It cause a wrong powerkey event report by driver resume call back.

Solution:
Clr resume method in suspend prepare notify.
Provide a stationary get_resume_reason() api.

Verify:
SC2_AH212

Change-Id: I4f6577201125af6ce93dfc36b24b4c80fd812e46
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
3 years agodemux: pts secure mem protect fail [1/1]
Chuangcheng Peng [Wed, 9 Jun 2021 08:06:43 +0000 (16:06 +0800)]
demux: pts secure mem protect fail [1/1]

PD#SWPL-52439

Problem:
 can't get video data

Solution:
 pts secure mem protect fail, it need 64K alignm.
 pointer don't use cache.

Verify:
 verified at AH219

Signed-off-by: Chuangcheng Peng <chuangcheng.peng@amlogic.com>
Change-Id: I52ddb975eb1d455ca38108fbcabb3895bb646b1c

3 years agocodec_mm: Modify a warning print for tvp free [1/1]
shipeng.sun [Mon, 7 Jun 2021 02:05:26 +0000 (10:05 +0800)]
codec_mm: Modify a warning print for tvp free [1/1]

PD#SWPL-52149

Problem:
Modify a warning print for tvp free

Solution:
1. Modify a warning print when tvp pool free later.

Verify:
local

Change-Id: I958ff7e8c4db5a0900e7d23eda337490567e044e
Signed-off-by: shipeng.sun <shipeng.sun@amlogic.com>
3 years agoDV: FEL display black in adaptive mode [1/1]
yao liu [Wed, 2 Jun 2021 10:30:15 +0000 (18:30 +0800)]
DV: FEL display black in adaptive mode [1/1]

PD#SWPL-51701

Problem:
FEL is treat as SDR video, but still send
dv vsif pkt

Solution:
not send hdmi visf pkt ahead for FEL

Verify:
sc2

Signed-off-by: yao liu <yao.liu@amlogic.com>
Change-Id: I708af63d0e818083a6f1e8365bd19c5e8a065b22

3 years agohdmirx: add hdmi plug & cec rx msg uevent [1/1]
hang cheng [Sat, 8 May 2021 10:16:59 +0000 (18:16 +0800)]
hdmirx: add hdmi plug & cec rx msg uevent [1/1]

PD#SWPL-47310

Problem:
1.need hdmi plug uevent to check connection status
2.need cec rx msg uevent instead of poll
3.hdmitx hdcp result for uevent is wrong

Solution:
1.add hdmitx/rx hotplug & cec rx msg uevent
2.correct hdcp result for drm uevent

Verify:
ab311

Change-Id: I60bc0e869770965df676ff22801ee1ff7981916b
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
3 years agonand: fix some parameter modification [1/1]
Liang Yang [Thu, 3 Jun 2021 09:36:02 +0000 (17:36 +0800)]
nand: fix some parameter modification [1/1]

PD#SWPL-50970

Problem:
nand base interface is changed after sync

Solution:
fix the interface which is changed.

Verify:
none

Change-Id: I97946d2e5b400ade809ffe1b935c469aad7c38f2
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
3 years agoadt3-S kernel/common source code [1/1]
Liang Ji [Tue, 15 Jun 2021 02:23:51 +0000 (10:23 +0800)]
adt3-S kernel/common source code [1/1]

internal tot CL:
BACKPORT: HID: playstation: Add device ids to hid_have_special_driver list.

SWPL-52212

On 4.9 and 4.14 kernel we need to put the hid device ids to
hid_have_special_driver list, to instruct kernel to use special driver
rather than hid-generic.
Fixed the incorrect kernel device type on 4.9 kernel and 4.14 kernel.

Bug: 185139160

Signed-off-by: Chris Ye <lzye@google.com>
Change-Id(Iced67cda47bc83f34a46c2de03b2906e788e56d2)

Signed-off-by: Liang Ji <liang.ji@amlogic.com>
Change-Id: I3aaeb4c6153ab8f7516ea1f290a9e27da80b3765

5 years agoInitial empty repository
Thomas Joseph Avila [Wed, 30 Jan 2019 15:49:33 +0000 (07:49 -0800)]
Initial empty repository