GitHub/LineageOS/G12/android_kernel_amlogic_linux-4.9.git
23 months agoAdd two optee kos into private module list
Hongguang [Mon, 23 May 2022 23:54:20 +0000 (16:54 -0700)]
Add two optee kos into private module list

Bug: 220644706
Test: make and find the private modules in dist.
Change-Id: I20ce519c5bdea4db191aa20cf742efaebf326542

23 months agoAdd private modules list.
Hongguang [Mon, 23 May 2022 21:58:53 +0000 (14:58 -0700)]
Add private modules list.

Bug: 220644706
Test: make and find the private modules in dist.
Change-Id: Ic563fe6d2bc85a0255c6bc1ab363ce83cdc51793

23 months agoAdd a script to install deadpool artifacts from go/ab
Hongguang [Fri, 13 May 2022 21:43:25 +0000 (14:43 -0700)]
Add a script to install deadpool artifacts from go/ab

Bug: 220644706
Change-Id: I6eb8f7d50016def7275a35b3ca2d358f617a4181

23 months agoADT3: kernel build config file
Max Zhang [Wed, 11 May 2022 05:50:34 +0000 (05:50 +0000)]
ADT3: kernel build config file

Provide the kernel build config file for build server.

Bug: 220644706
Change-Id: Ib52f329fc7082de053fd37e20596d69c4dc7bfc0

23 months agoADT-3: Enable bandwidth limiting options
Max Zhang [Tue, 10 May 2022 18:30:19 +0000 (18:30 +0000)]
ADT-3: Enable bandwidth limiting options

Enable the following options to support go/bandwidth-limiting:
- CONFIG_NET_SCH_TBF
- CONFIG_NET_CLS_MATCHALL
- CONFIG_NET_ACT_POLICE
- CONFIG_NET_ACT_BPF

bug: 157552970
     181855645
Change-Id: I6c7609ca642858d1282c7ddd0e9b1583ff4f4165

23 months agoMerge "tee: add vp9 prob interfaces [1/2]" into android-tv-deadpool-4.9-android12
Hongguang Chen [Tue, 3 May 2022 16:49:58 +0000 (16:49 +0000)]
Merge "tee: add vp9 prob interfaces [1/2]" into android-tv-deadpool-4.9-android12

Change-Id: Id15fffe760ac3c2ffde260159a8ee50e73891e97

23 months agotee: add vp9 prob interfaces [1/2]
Xiaohang Cui [Sun, 1 May 2022 13:13:50 +0000 (21:13 +0800)]
tee: add vp9 prob interfaces [1/2]

PD#SWPL-80006
b/229652967

Problem:
move vp9 prob process to Tee

Solution:
add interfaces for vp9 prob process

refer to:
https://scgit.amlogic.com/#/c/166331/

Verify:
android t + S905Y2-U221

Change-Id: I24002c71e537bef189f2cbfda86c9b855f43a23f
Signed-off-by: Xiaohang Cui <xiaohang.cui@amlogic.com>
23 months agov4lvideo: support max 128 fd [1/1]
jintao xu [Mon, 13 Sep 2021 10:32:59 +0000 (18:32 +0800)]
v4lvideo: support max 128 fd [1/1]

PD#SWPL-57099
b/228938762

Problem:
TvtsJankHostTestCases need keep too many fd

Solution:
support max 128 fd

Verify:
T3

Change-Id: I082d6252250614344130233f92baf3845c1048ba
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
23 months agoMerge "vts: vts_ltp_test_arm fail [1/1]" into android-tv-deadpool-4.9-android12
Hongguang Chen [Tue, 26 Apr 2022 20:08:11 +0000 (20:08 +0000)]
Merge "vts: vts_ltp_test_arm fail [1/1]" into android-tv-deadpool-4.9-android12

Change-Id: I95896fbeebf3cf440a131baa2672b812ccd4b216

23 months agovts: vts_ltp_test_arm fail [1/1]
weifang.liu [Sat, 2 Apr 2022 04:47:41 +0000 (12:47 +0800)]
vts: vts_ltp_test_arm fail [1/1]

PD#SWPL-75722

Problem:
need skip this test to rm CONFIG_CHECKPOINT_RESTORE

Solution:
rm CONFIG_CHECKPOINT_RESTORE to test

Verify:
Verify local

Change-Id: Ia53d0c5b55ee17e7223c418ddc8d23dfb97dcf56
Signed-off-by: weifang.liu <weifang.liu@amlogic.com>
23 months agodts: ramoops: enable ramoops [1/1]
pengzhao.liu [Wed, 30 Mar 2022 09:29:29 +0000 (17:29 +0800)]
dts: ramoops: enable ramoops [1/1]

PD#SWPL-76989
Bug: 227141269

Problem:
enable ramoops ramoops

Solution:
enable ramoops ramoops

Verify:
adt3

Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
Change-Id: I76b01359c048f9945ccfbde676c14d218510b17a

23 months agovts: 2 Testcases failed in the module "vts_fs_test" [1/2]
hao.qi [Tue, 29 Mar 2022 09:35:43 +0000 (17:35 +0800)]
vts: 2 Testcases failed in the module "vts_fs_test" [1/2]

PD#SWPL-75717
b/225279764

Problem:
2 Testcases failed in the module "vts_fs_test"

Solution:
change data partition to userdata
move partition mount from dts to fstab

Verify:
S905Y2-U221

Change-Id: I4a530337ef8c4220b68b3b1a49860c89044b89f9
Signed-off-by: hao.qi <hao.qi@amlogic.com>
23 months agoANDROID: selinux: modify RTM_GETNEIGH [1/1]
pengzhao.liu [Tue, 22 Mar 2022 06:03:33 +0000 (14:03 +0800)]
ANDROID: selinux: modify RTM_GETNEIGH [1/1]

PD#SWPL-71742
Bug: 171572148

Problem:
Map the permission gating RTM_GETNEIGH/RTM_GETNEIGHTBL messages to a
new permission so that it can be distinguished from the other netlink
route permissions in selinux policy. The new permission is triggered by
a flag set in system images T and up.

Solution:
This change is intended to be backported to all kernels that a T system
image can run on top of.

Verify:
on adt3-t kernel

Test: ateddst NetworkInterfaceTest
Test: atest CtsSelinuxTargetSdkCurrentTestCases
Test: atest bionic-unit-tests-static
Test: On Cuttlefish, run combinations of:
    - Policy bit set or omitted (see https://r.android.com/1701847)
    - This patch applied or omitted
    - App having nlmsg_readneigh permission or not
  Verify that only the combination of this patch + the policy bit being
  set + the app not having the nlmsg_readneigh permission prevents the
  app from sending RTM_GETNEIGH messages.

Change-Id: I4bcfce4decb34ea9388eeedfc4be67403de8a980
Signed-off-by: Bram Bonné <brambonne@google.com>
Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
Change-Id: Ic9d51cebab8c195537d54a28a23a7e93f09ba0b3

23 months agovts: netd_integration_test fail [1/1]
weifang.liu [Fri, 18 Mar 2022 07:13:06 +0000 (15:13 +0800)]
vts: netd_integration_test fail [1/1]

PD#SWPL-75333
BUG=225139017

Problem:
KernelTest#TestRateLimitingSupport fail

Solution:
add related kernel config

Verify:
local

Change-Id: Id1ec210fbe5d927061a70675652523079934b522
Signed-off-by: weifang.liu <weifang.liu@amlogic.com>
23 months agoMerge changes Ifc5bd922,I57affad1,I92d3d3ce into android-tv-deadpool-4.9-android12
TreeHugger Robot [Tue, 4 Jan 2022 20:28:48 +0000 (20:28 +0000)]
Merge changes Ifc5bd922,I57affad1,I92d3d3ce into android-tv-deadpool-4.9-android12

* changes:
  VPP: VPP code style modify [1/1]
  vpp: coding style modify [1/1]
  vpp: coding style modify [2/6]

23 months agoMerge "Revert "Enable CONFIG_DM_BOW for checkpointing"" into android-tv-deadpool...
Robin Lee [Thu, 4 Nov 2021 07:28:19 +0000 (07:28 +0000)]
Merge "Revert "Enable CONFIG_DM_BOW for checkpointing"" into android-tv-deadpool-4.9-android12

Change-Id: I0e760cc35b91b65021bfeda1914eeb9e7839559b

23 months agoRevert "Enable CONFIG_DM_BOW for checkpointing"
Robin Lee [Thu, 4 Nov 2021 07:26:45 +0000 (07:26 +0000)]
Revert "Enable CONFIG_DM_BOW for checkpointing"

This reverts commit 830f673c981ba4da2663a91cc8590eed9fc2032e.

Reason for revert: Merged wrong CL

Change-Id: I16d4614c52a41f48fb657db48caff92aa5bff419

23 months agoMerge "Enable CONFIG_DM_BOW for checkpointing" into android-tv-deadpool-4.9-android12
Robin Lee [Thu, 4 Nov 2021 07:26:28 +0000 (07:26 +0000)]
Merge "Enable CONFIG_DM_BOW for checkpointing" into android-tv-deadpool-4.9-android12

2 years agovts: vts_kernel_checkpoint_test [1/2]
lele.liu [Thu, 4 Nov 2021 01:46:43 +0000 (01:46 +0000)]
vts: vts_kernel_checkpoint_test [1/2]

PD#SWPL-63211

Problem:
short of dm_bow config

Solution:
enable dm_bow config

Verify:
local

Change-Id: I503d20b44651b91ab13449d51814c2b1b668d9d7
Signed-off-by: lele.liu <lele.liu@amlogic.com>
2 years agoRevert "fstab: checkpoint configuration [1/1]"
liang ji [Thu, 4 Nov 2021 02:57:34 +0000 (02:57 +0000)]
Revert "fstab: checkpoint configuration [1/1]"

This reverts commit 8e0c306593c39066dca21a87151dcfba4a1c3957.

Reason for revert:
Reason for revert: a better formatted patch will be submitted later

Change-Id: Ieb7dfa4f0bcbec9a4e26904618575baf840741e7

2 years agofstab: checkpoint configuration [1/1]
Pengfei Zhao [Wed, 3 Nov 2021 14:47:34 +0000 (22:47 +0800)]
fstab: checkpoint configuration [1/1]

PD#NONE

Problem:
vts_kernel_checkpoint_test fail

Solution:
add config checkpoint and DB_BOW

Verify:
adt3

Signed-off-by: Pengfei Zhao <pengfei.zhao@amlogic.com>
Change-Id: I62102ab3d2c37afbb40c7c7a3e4ca212d83fe7e3

2 years agoadt3: Release 52 MB of unused memory allocated in "ion-dev" [1/1]
Liang Ji [Tue, 19 Oct 2021 02:12:12 +0000 (10:12 +0800)]
adt3: Release 52 MB of unused memory allocated in "ion-dev" [1/1]

PD#SWPL-61729
BUG=203412562

Problem:
Release 52 MB of unused memory allocated in "ion-dev"

Solution:
Release 52 MB of unused memory allocated in "ion-dev"

Verify:
adt3-S

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

2 years agoBACKPORT: gup: document and work around "COW can break either way" issue
yao zhang1 [Fri, 15 Oct 2021 06:45:28 +0000 (06:45 +0000)]
BACKPORT: gup: document and work around "COW can break either way" issue

PD#SWPL-61507
BUG=202208062

commit 17839856fd588f4ab6b789f482ed3ffd7c403e1f upstream.

Doing a "get_user_pages()" on a copy-on-write page for reading can be
ambiguous: the page can be COW'ed at any time afterwards, and the
direction of a COW event isn't defined.

Yes, whoever writes to it will generally do the COW, but if the thread
that did the get_user_pages() unmapped the page before the write (and
that could happen due to memory pressure in addition to any outright
action), the writer could also just take over the old page instead.

End result: the get_user_pages() call might result in a page pointer
that is no longer associated with the original VM, and is associated
with - and controlled by - another VM having taken it over instead.

So when doing a get_user_pages() on a COW mapping, the only really safe
thing to do would be to break the COW when getting the page, even when
only getting it for reading.

At the same time, some users simply don't even care.

For example, the perf code wants to look up the page not because it
cares about the page, but because the code simply wants to look up the
physical address of the access for informational purposes, and doesn't
really care about races when a page might be unmapped and remapped
elsewhere.

This adds logic to force a COW event by setting FOLL_WRITE on any
copy-on-write mapping when FOLL_GET (or FOLL_PIN) is used to get a page
pointer as a result.

The current semantics end up being:

 - __get_user_pages_fast(): no change. If you don't ask for a write,
   you won't break COW. You'd better know what you're doing.

 - get_user_pages_fast(): the fast-case "look it up in the page tables
   without anything getting mmap_sem" now refuses to follow a read-only
   page, since it might need COW breaking.  Which happens in the slow
   path - the fast path doesn't know if the memory might be COW or not.

 - get_user_pages() (including the slow-path fallback for gup_fast()):
   for a COW mapping, turn on FOLL_WRITE for FOLL_GET/FOLL_PIN, with
   very similar semantics to FOLL_FORCE.

If it turns out that we want finer granularity (ie "only break COW when
it might actually matter" - things like the zero page are special and
don't need to be broken) we might need to push these semantics deeper
into the lookup fault path.  So if people care enough, it's possible
that we might end up adding a new internal FOLL_BREAK_COW flag to go
with the internal FOLL_COW flag we already have for tracking "I had a
COW".

Alternatively, if it turns out that different callers might want to
explicitly control the forced COW break behavior, we might even want to
make such a flag visible to the users of get_user_pages() instead of
using the above default semantics.

But for now, this is mostly commentary on the issue (this commit message
being a lot bigger than the patch, and that patch in turn is almost all
comments), with that minimal "enable COW breaking early" logic using the
existing FOLL_WRITE behavior.

[ It might be worth noting that we've always had this ambiguity, and it
  could arguably be seen as a user-space issue.

  You only get private COW mappings that could break either way in
  situations where user space is doing cooperative things (ie fork()
  before an execve() etc), but it _is_ surprising and very subtle, and
  fork() is supposed to give you independent address spaces.

  So let's treat this as a kernel issue and make the semantics of
  get_user_pages() easier to understand. Note that obviously a true
  shared mapping will still get a page that can change under us, so this
  does _not_ mean that get_user_pages() somehow returns any "stable"
  page ]

[surenb: backport notes
Replaced (gup_flags | FOLL_WRITE) with write=1 in gup_pgd_range.
Removed FOLL_PIN usage in should_force_cow_break since it's missing in
the earlier kernels.
        Since gup_pgd_range does not exist, made appropriate changes on
        the the gup_huge_pgd, gup_huge_pd and gup_pud_range calls]

Reported-by: Jann Horn <jannh@google.com>
Tested-by: Christoph Hellwig <hch@lst.de>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Kirill Shutemov <kirill@shutemov.name>
Acked-by: Jan Kara <jack@suse.cz>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[surenb: backport to 4.9 kernel]
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
Change-Id: I877999f7b789aee6078ccade2ae54b827d88368f

2 years agov4lvideo: workaround for ctsMediaTest
binqi zhang [Thu, 30 Sep 2021 12:08:35 +0000 (20:08 +0800)]
v4lvideo: workaround for ctsMediaTest

PD#SWPL-54808
BUG=197895076

Problem:
CtsMediaTestCases 44 DecodeAccuracyTest cases failed

Solution:
add extend column and row for special resolution cts
add dump yuv data interface
add debug flag for cts workaround

Verify:
adt3

Change-Id: Ie461422fddab008d4d905930f5f40a612bb1a98b
Signed-off-by: binqi zhang <binqi.zhang@amlogic.com>
Signed-off-by: Pengfei Zhao <pengfei.zhao@amlogic.com>
2 years agomemory: use new stratedy for all R+ device [2/2]
Shuide Chen [Wed, 22 Sep 2021 10:33:29 +0000 (18:33 +0800)]
memory: use new stratedy for all R+ device [2/2]

SWPL-59636

Problem:
cma shrinker is not standard implement, which may cause
app being unexpected killed

Solution:
use lmkd to kill app.
disable cma shrinker

Signed-off-by: Shuide Chen <shuide.chen@amlogic.com>
Change-Id: I9e510f837047fdb2c8617efb3ba403c69d8f1b9c

2 years agoionvideo: support no drop i for cts [1/1]
jintao xu [Tue, 20 Jul 2021 12:47:54 +0000 (20:47 +0800)]
ionvideo: support no drop i for cts [1/1]

PD#SWPL-54823

Problem:
ionvideo drop i cause cts fail

Solution:
ionvideo not drop i

Verify:
U221

Change-Id: Icbfcb56b69a657a43aaee26428568a5140836167
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2 years agov4lvideo: set field V4L2_FIELD_INTERLACED when video is interlace [1/2]
jintao xu [Fri, 21 Aug 2020 09:04:16 +0000 (17:04 +0800)]
v4lvideo: set field V4L2_FIELD_INTERLACED when video is interlace [1/2]

PD#SWPL-32080

Problem:
omx need know interlace or not

Solution:
v4lvideo sent interlace info to omx

Verify:
AH212

Change-Id: I4ce4c5e8aeafe5ed920855cc5e1f3f2245eec9ce
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2 years agoDisable debugfs in ADT3 kernel
Max Zhang [Mon, 13 Sep 2021 23:18:17 +0000 (23:18 +0000)]
Disable debugfs in ADT3 kernel

debug_fs should be disable in release build and pass XTS

Change-Id: Ica01a743a9ad64dab3c79ff00edea5d92202fd8e

2 years agohdmitx: add extra uevents to supplement extcon [4/4]
hang cheng [Wed, 1 Sep 2021 12:50:35 +0000 (20:50 +0800)]
hdmitx: add extra uevents to supplement extcon [4/4]

PD#SWPL-57172

Problem:
hal can't receive suspend/resume uevent
on android S + 4.9-q

Solution:
add extra uevents to supplement extcon;
on android S, it will only listen to uevent
on android Q, it will only listen to extcon

Verify:
u221

Change-Id: I52fbe9756a824d6876753ae3ff36c7bb7b9b6f97
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2 years agohdmitx: correct hdmipwr uevent init state [3/4]
hang cheng [Fri, 7 May 2021 09:09:13 +0000 (17:09 +0800)]
hdmitx: correct hdmipwr uevent init state [3/4]

PD#SWPL-49008

Problem:
hdmi early suspend uevent is not received by sysctl

Solution:
correct hdmipwr uevent init state

Verify:
AC214

Change-Id: I91f4e1643a58d54a8d0ca0f8cf50bd9ab6e1bd13
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2 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>
2 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>
2 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>
2 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>
2 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)

2 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>
2 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>
2 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>
2 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

2 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>
2 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>
2 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>
2 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

2 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>
2 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

2 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>
2 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>
2 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

2 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

2 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>
2 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>
2 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>
2 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>
2 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

2 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>
2 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

2 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>
2 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>
2 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

3 years agokernel: source code upgrade for adt3-R [1/1]
Liang Ji [Fri, 19 Mar 2021 02:37:59 +0000 (10:37 +0800)]
kernel: source code upgrade for adt3-R [1/1]

in amlogic side
the tot CL:
    commit a02cbbb86f9a570b88f6a52d1fed52c8481f61f2
    Author: binqi zhang <binqi.zhang@amlogic.com>
    Date:   Mon Mar 15 17:27:12 2021 +0800

    uvm: fix kernel panic after exit playback [2/2]

    PD#SWPL-45047

    Problem:
    fixed realloc buffer size is not reasonable

    Solution:
    realloc buffer size need real buffer size

    Verify:
    adt3

    Change-Id: I307b37d4b12daf23eb4b8612e71af0452932a75a
Signed-off-by: binqi zhang <binqi.zhang@amlogic.com>
Signed-off-by: Liang Ji <liang.ji@amlogic.com>
Change-Id: Iead8da7ba7c8eef9767ce87cf22ac515d78feb91

4 years agocec: pw down save phy addr [1/1]
Yong Qin [Tue, 21 Jan 2020 12:53:16 +0000 (20:53 +0800)]
cec: pw down save phy addr [1/1]

PD#SWPL-19940

Problem:
sometime uboot got wrong phy addr

Solution:
power down save phy addr again

Verify:
g12a

Change-Id: I0a4c468e1c1752c4dcdc4d33a32e14db60dd67b5
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
4 years agoosd: fix osd bootanimation shift [2/2]
Pengcheng Chen [Mon, 2 Mar 2020 07:40:20 +0000 (15:40 +0800)]
osd: fix osd bootanimation shift [2/2]

PD#SWPL-19862

Problem:
osd regs init are different with meson-hwc setting

Solution:
osd regs init are different with meson-hwc setting

Verify:
franklin

Change-Id: Ic9f19a82859e1e18e57084935873b10057436e3b
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
4 years agohdr: hdr10+ color abnormal for androidQ [1/1]
Cheng Wang [Fri, 27 Dec 2019 06:13:47 +0000 (14:13 +0800)]
hdr: hdr10+ color abnormal for androidQ [1/1]

PD#SWPL-18339

Problem:
play source of hdr10+ color abnormal on hdr_policy always
caused by PROC_MATCH value.

Solution:
Modify PROC_MATCH value.

Verify:
on newton

Change-Id: I3f86f67040b2e408dd92bcaaeceaa6dcb8b638cc
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
4 years agodts: add new unifykey [2/2]
Liang Ji [Wed, 11 Dec 2019 08:05:14 +0000 (16:05 +0800)]
dts: add new unifykey [2/2]

PD#SWPL-17914

Problem:
need a new unifykey for google smoking test

Solution:
add a new unifykey named oemkey

Verify:
x301, franklin, ampere

Change-Id: I64fbee1f2e2ae9d9c71fa02b0be033d7cd6c8a9d
Signed-off-by: Liang Ji <liang.ji@amlogic.com>
4 years agodeadpool-y3: add oemkey [1/1]
Liang Ji [Wed, 5 Feb 2020 08:58:36 +0000 (16:58 +0800)]
deadpool-y3: add oemkey [1/1]

BUG=148900449

Problem:
deadpool y2 has the unifykey named oemkey
but deadpool y3 does not

Solution:
add the unifykey

Verify:
deadpool-y3

Change-Id: Ia4609709f277a90eca104bde7b21708ec2e4cd91
Signed-off-by: Liang Ji <liang.ji@amlogic.com>
4 years agosuspend: fix freeze abort hangup which caused by insmod [1/1]
Qiufang Dai [Thu, 26 Dec 2019 04:05:22 +0000 (12:05 +0800)]
suspend: fix freeze abort hangup which caused by insmod [1/1]

PD#GH-134

Problem:
When freeze abort happen, it will lose device_unblock_probing(),
so device probe is blocked.

Solution:
When freeze abort happen, release device_block_probing

Verify:
SM1_S905D3_AC200

Change-Id: I3e591fe9ed392b6a4d30285817a91fbfec25336f
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
4 years agodeadpool: enable new mailbox routine for G12A [1/1]
Xindong Xu [Mon, 6 Jan 2020 10:07:42 +0000 (18:07 +0800)]
deadpool: enable new mailbox routine for G12A [1/1]

PD#SWPL-19014

Problem:
BL30 enable new mailbox routine for SM1
So G12A also need use the same mailbox routine

Solution:
Enable new mailbox routine in dts

Verify:
deadpool

Change-Id: I17ff88facb1763b22735d46e83bac493bbaec368
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
4 years agouvm: add meson uvm driver [1/1]
Tellen Yu [Fri, 20 Dec 2019 10:44:10 +0000 (18:44 +0800)]
uvm: add meson uvm driver [1/1]

PD#SWPL-18288

Problem:
For video display pipe, we need a way to avoid passing non-afbc data.

Solution:
add a new dma-buf allocation driver to do delay allocation.
trunk cl:http://scgit.amlogic.com:8080/#/c/94164/

Verify:
u212

Change-Id: I77ba7afc97ec7607700f3fdeb8baa147fa1483ad
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
Signed-off-by: Tellen Yu <tellen.yu@amlogic.com>
4 years agoMerge remote-tracking branch 'remotes/trunk/bringup/amlogic-4.9/sync20190611_forQ...
Xindong Xu [Fri, 3 Jan 2020 05:06:11 +0000 (13:06 +0800)]
Merge remote-tracking branch 'remotes/trunk/bringup/amlogic-4.9/sync20190611_forQ' into ref_head

4 years agodv: fix first frame garbage with dual dv [1/1]
Brian Zhu [Mon, 30 Dec 2019 16:09:21 +0000 (00:09 +0800)]
dv: fix first frame garbage with dual dv [1/1]

PD#SWPL-19310

Problem:
When playing dual layer dv streaming, first frame
may display green. BL layer is out of sync with EL
layer.

Solution:
Fix the case which will toggle one more EL vframe incorrecly.

Verify:
Verified by AC214

Change-Id: I13b4a05716e800b8d25564a82d1d34d7198bf467
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
4 years agoG12A: enable new mailbox routine for G12A [3/3]
Qiufang Dai [Mon, 30 Dec 2019 08:58:09 +0000 (16:58 +0800)]
G12A: enable new mailbox routine for G12A [3/3]

PD#SWPL-19014

Problem:
BL30 enable new mailbox routine for SM1
So G12A also need use the same mailbox routine

Solution:
Enable new mailbox routine in dts

Verify:
S905D2_U200

Change-Id: I3582c9351c362d255996fed593ebed8581f82ae6
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
4 years agoMailbox: fix mailbox rx_size issue.[2/3]
Qiufang Dai [Mon, 30 Dec 2019 08:53:33 +0000 (16:53 +0800)]
Mailbox: fix mailbox rx_size issue.[2/3]

PD#SWPL-19014

Problem:
m3 channel (low mailbox) use wrong rx_size in mbox_handler

Solution:
m4 channel use read back rx_size, m3 use rx_size from package

Verify:
S905X3-AC214

Change-Id: I44a5a038b14f3d6860ffb01e733d56795696024f
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
4 years agovpp: add vframe src_fmt struct and function [1/1]
Brian Zhu [Fri, 27 Dec 2019 18:24:22 +0000 (02:24 +0800)]
vpp: add vframe src_fmt struct and function [1/1]

PD#SWPL-17729

Problem:
In new video pipeline, vfm map is changed. So vpp
can not get aux data from decode directly. It cause
the format of dv or hdr10+ content is incorrect.

Solution:
Add src_fmt struct in vframe, and whole src_fmt interface.
Let front-end updates src_fmt directly. Then vpp, dv or
hdr10+ module can get the sei data from it.

Verify:
Verifed on AC214

Change-Id: I96b7f84fa72c51ceec9e3ec28288ea0e7a726139
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
4 years agouvm: copy the vframe to dma_buf one time [1/1]
Ao Xu [Wed, 25 Dec 2019 04:13:24 +0000 (12:13 +0800)]
uvm: copy the vframe to dma_buf one time [1/1]

PD#SWPL-19184

Problem:
1. When playing 4K video and pressing the power button,
it will stuck for more than 2s.
2. For some memory pressue condition, ion_alloc will
alloc fail for CMA memory.

Solution:
1. only do the data copy from vframe once.
2. change heap type to system heap for afbc video case.

Verify:
u212

Change-Id: I778541577004fa77e0917ca612a48745d92f2fb7
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
4 years agocodec_mm: fix fastplay can not alloc twice [2/3]
Jian Wang [Tue, 24 Dec 2019 09:39:01 +0000 (17:39 +0800)]
codec_mm: fix fastplay can not alloc twice [2/3]

PD#SWPL-18391

Problem:
codec_mm_extpool_pool_release use
mgt->tvp_pool.total_size, not it
parm tvp_pool, when extpool is
cma_pool not tvp pool will duo to
total_size set error.

Solution:
use codec_mm_extpool_pool_release
parm tvp_pool total_size to set

Verify:
verify on u212

Change-Id: I83a5d988d7701cf6291250bd739c1c5b43143764
Signed-off-by: Jian Wang <jian.wang@amlogic.com>
4 years agodi: copy vframe pts_us64 to start_pts64 [1/1]
rongrong zhou [Wed, 25 Dec 2019 09:51:02 +0000 (17:51 +0800)]
di: copy vframe pts_us64 to start_pts64 [1/1]

PD#SWPL-18928

Problem:
DI first frame pts_us64 cause video discontinue

Solution:
copy pts_us64

Verify:
local

Change-Id: I86adf0e6221083a4205a07f7920a6d443b447c15
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
4 years agovideo_composer: window position is abnormal. [1/1]
renjiang.han [Tue, 24 Dec 2019 14:17:44 +0000 (22:17 +0800)]
video_composer: window position is abnormal. [1/1]

PD#SWPL-18923

Problem:
window position is abnormal.

Solution:
axis and crop need to be done at the same time.

Verify:
on U212

Change-Id: I9c3e2d16588b83734fa2d7d1dcf7acee21d0af02
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
4 years agovpp: check the vframe type for recycle buffer [1/1]
Brian Zhu [Thu, 26 Dec 2019 04:16:57 +0000 (12:16 +0800)]
vpp: check the vframe type for recycle buffer [1/1]

PD#SWPL-19012

Problem:
If the vframe is not from DI post wr, it may crash
in recycle flow.

Solution:
Double check the vframe type if it is DI post wr.
Filter the invaild buffer.

Verify:
Verified on AC214

Change-Id: I8d469ea578bd308bfe930a97b4182b6218c079ce
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
4 years agocodec_mm: add protect secure memory in codec_mm [1/1]
shipeng.sun [Mon, 23 Dec 2019 08:59:53 +0000 (16:59 +0800)]
codec_mm: add protect secure memory in codec_mm [1/1]

PD#SWPL-17811

Problem:
add protect secure memory in codec_mm

Solution:
add protect secure memory protect in codec_mm and
add flags to change old mode to debug

Verify:
Android Q + franklin

Test:
1. If tvp_mode set to 0 can be compatibility with
old mode.
2. In tvp_mode 1, if no protect tvp, the play will
full screen mosaic

Change-Id: Ie3b04c0a06377610f9a5a18fdec2feba70ba2f8d
Signed-off-by: shipeng.sun <shipeng.sun@amlogic.com>
4 years agotee: add api tee_protect_tvp_mem [1/1]
Pengguang Zhu [Tue, 3 Dec 2019 07:15:10 +0000 (15:15 +0800)]
tee: add api tee_protect_tvp_mem [1/1]

PD#SWPL-17811

Problem:
need API to protect mem for tvp

Solution:
add api tee_protect_tvp_mem

Verify:
Android Q + franklin

Test: manual

Change-Id: I46daec70a843524789aa63b32ef5e43111b65c66
Signed-off-by: Pengguang Zhu <pengguang.zhu@amlogic.com>
4 years agov4lvideo: add support for multiple input formats. [1/1]
renjiang.han [Tue, 24 Dec 2019 12:47:06 +0000 (20:47 +0800)]
v4lvideo: add support for multiple input formats. [1/1]

PD#SWPL-18704

Problem:
v4lvideo only supports NV21 input format.

Solution:
add support for multiple input formats.

Verify:
on U212

Change-Id: I1dc4a4cc863fe4e8e2c540e22642d828f8aef7df
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
4 years agovpp: add recycle buffer q after unreg [2/2]
Brian Zhu [Mon, 23 Dec 2019 06:27:26 +0000 (14:27 +0800)]
vpp: add recycle buffer q after unreg [2/2]

PD#SWPL-18786

Problem:
Need recycle the kept buffer from DI module. Otherwise
buffers will be leaked.

Solution:
Record pointers of the kept buffer vframe and call release
function of DI.

Verify:
Verified on newton

Change-Id: Id62adea0bdde5e3b14a2ca00f45bf9e61be40d02
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
4 years agodeintlace: add recycle buffer q after unreg [1/2]
qianqian.cai [Mon, 23 Dec 2019 01:51:11 +0000 (09:51 +0800)]
deintlace: add recycle buffer q after unreg [1/2]

PD#SWPL-18786

Problem:
keep the buffer from DI need release

Solution:
modify the recycle flow

Verify:
newton

Change-Id: I2f7647468964236ac087704f60ef975c43549776
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
4 years agomailbox: sm1: pass irdeto ifcp testing [1/2]
Wayling Chen [Thu, 31 Oct 2019 11:05:08 +0000 (19:05 +0800)]
mailbox: sm1: pass irdeto ifcp testing [1/2]

PD#SWPL-15621

Problem:
1.irdeto ifcp can't work on amlogic mailbox.

Solution:
fix completion usage and mailbox payload offset
fix mailbox send buffer size to fit bl40_msg_buf struct

Verify:
    test pass on sm1 skt

Change-Id: Iea33427125b1f221241331730e2869d3b2b369f2
Signed-off-by: Wayling Chen <wayling.chen@amlogic.com>
4 years agodts: sm1: add dts parameters [1/1]
Shunzhou Jiang [Tue, 22 Oct 2019 07:08:54 +0000 (15:08 +0800)]
dts: sm1: add dts parameters [1/1]

PD#SWPL-15621

Problem:
add new feature

Solution:
add devnode and support duplex

Verify:
test pass on sm1 skt

Change-Id: I379800eda0090055a8af8e401f6413708e1a2466
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
4 years agotsync: fix video not smooth in vmaster mode [1/1]
Chao Liu [Thu, 21 Nov 2019 02:44:27 +0000 (10:44 +0800)]
tsync: fix video not smooth in vmaster mode [1/1]

PD#SWPL-15541

Problem:
video not smooth during playing dvb demo source.
When tsync in vmaster mode, the pcrscr increase video in every vsync,
no matter whether video buffer is enough or not.

Solution:
When underflow occurs, if tsync in vmaster mode, decrease pcrscr pts.
This will increase the buffer time and make playback smooth

Verify:
AC214

Change-Id: Ief0fc8aa1c79a48cfc6f2d6bb6964a8b193b7bf9
Signed-off-by: Chao Liu <chao.liu@amlogic.com>
4 years agovpp: init the blackout_policy as 0 [1/2]
Brian Zhu [Thu, 19 Dec 2019 13:17:02 +0000 (21:17 +0800)]
vpp: init the blackout_policy as 0 [1/2]

PD#SWPL-18346

Problem:
The default value of blackout_policy is incorrect. It
caused the black screen when decode reset

Solution:
init the blackout_policy as 0

Verify:
Verified on AC214

Change-Id: I24d8120b2268e176231995db1048ade688bbe19f
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
4 years agombox: sm1: add devnode and supoort duplex [1/1]
Shunzhou Jiang [Tue, 22 Oct 2019 07:54:40 +0000 (15:54 +0800)]
mbox: sm1: add devnode and supoort duplex [1/1]

PD#SWPL-15621

Problem:
add new feature

Solution:
add devnode and support duplex

Verify:
test pass on sm1 skt

Change-Id: I0990a08d611d039eb33e5f2a4ac4e8b86453c367
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
4 years agodvfs: update cpufreq tables for ac214 [1/1]
Hong Guo [Mon, 25 Nov 2019 01:52:07 +0000 (09:52 +0800)]
dvfs: update cpufreq tables for ac214 [1/1]

PD#SWPL-16915

Problem:
update cpufreq tables for ac214

Solution:
update cpufreq tables for ac214

Verify:
test pass on ac_214

Change-Id: I62941d8fe25d4e326fba06d1ba15a46ace3eff7c
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
4 years agodts: add video_composer for tm2_t962e2_ab311. [1/1]
renjiang.han [Thu, 19 Dec 2019 12:59:39 +0000 (20:59 +0800)]
dts: add video_composer for tm2_t962e2_ab311. [1/1]

PD#SWPL-18651

Problem:
dts of tm2_t962e2_ab311 has no video_composer.

Solution:
add video_composer for tm2_t962e2_ab311.

Verify:
on T962E2-AB311

Change-Id: Ib2c845179cb9954e2f3c658958af21341b402b9f
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
4 years agocec: no port out define in g12a, g12b dts [1/1]
Yong Qin [Thu, 12 Dec 2019 06:23:43 +0000 (14:23 +0800)]
cec: no port out define in g12a, g12b dts [1/1]

PD#SWPL-17700

Problem:
g12a, g12b android P,Q can't got port in/out info
at power on sequence.

Solution:
add output port define, modify dts, and port out
define

Verify:
g12a U212

Change-Id: I83120e56edb60c54d9868e0635f1b4bf517eb4d4
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
(cherry picked from commit 0c0dd13f356d8349513d0a72e98538b84d946027)

4 years agovideo_composer: fix black when hdmi hou-plug [1/1]
jintao xu [Wed, 18 Dec 2019 03:13:46 +0000 (11:13 +0800)]
video_composer: fix black when hdmi hou-plug [1/1]

PD#SWPL-17376

Problem:
black when hdmi hou-plug

Solution:
init last_vf when enable video_composer

Verify:
U212

Change-Id: I3ca03d0bf737ce142e1d25de8dd83986645a9870
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
4 years agoRevert "ftrace: enable preempt and irqsoff tracer default [1/1]"
Hanjie Lin [Thu, 5 Dec 2019 06:05:29 +0000 (23:05 -0700)]
Revert "ftrace: enable preempt and irqsoff tracer default [1/1]"

PD#SWPL-17514

This reverts commit feae23f568845360069cae8dfff155209c827276.

Change-Id: Id683e0b558b6255f53f4cfde0854cd53a01f2fab
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
4 years agouvm: add meson uvm driver [1/1]
Ao Xu [Tue, 10 Dec 2019 14:41:47 +0000 (22:41 +0800)]
uvm: add meson uvm driver [1/1]

PD#SWPL-18288

Problem:
For video display pipe, we need a way to avoid passing non-afbc data.

Solution:
add a new dma-buf allocation driver to do delay allocation.

Verify:
u212

Change-Id: I77ba7afc97ec7607700f3fdeb8baa147fa1483ad
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
4 years agohdmitx: Fix parsing of HDR10plus and Dovi VSVDBs [1/1]
Zongdong Jiao [Tue, 3 Dec 2019 07:53:48 +0000 (15:53 +0800)]
hdmitx: Fix parsing of HDR10plus and Dovi VSVDBs [1/1]

PD#SWPL-17786

Problem:
No dolby vision on latest Vizio TVs providing an EDID containing
both dolby vision and HDR10plus VSVDBs in the EDID.

Solution:
If an EDID contains both HDR10plus and Dovi VSVDBs, we are
incorrectly resetting both dovi and hdr10plus parsed info structs.
As a result, we are only left with the parsed info of the later
VSVDB in the EDID. So, if we have a hdr10plus VSVDB after dovi
VSVDB, dovi info will be reset while parsing for hdr10plus, and
we will not report any dovi capabilities to the frameworks. This
is what is happening on these TVs in question.

Parse HDR10plus and Dovi VSVDBs independently of one another. Do
not reset parsed info of one while parsing for the other.

Since Dovi->HDR10+->Dovi transitions are not defined, send zero
drm/vsif packets while exiting HDR10+ playback if going to dovi
mode next.

Verify:
HDR10plus and Dovi capabilities can be simultaneously and correctly
reported to the frameworks.

Change-Id: I7a344638e5a923c88ef23f0b3a03480c5a564548
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
4 years agodv: Coverity defect cleanup [1/1]
yao liu [Thu, 14 Nov 2019 12:15:21 +0000 (20:15 +0800)]
dv: Coverity defect cleanup [1/1]

PD#SWPL-16534

Problem:
1.Null-checking vinfo
2.dead_error_condition
3.Err data type

Solution:
1.Add Null-checking
2.fix dead_error_condition in dump_setting
3.correct first_reseted data type

Verify:
U212

Change-Id: I1fd7d4059a231160f38684f92bd36866b6a569ba
Signed-off-by: yao liu <yao.liu@amlogic.com>
(cherry picked from commit a0e07f94dbe72dddd6839f418baa554a4d62b4ec)

4 years agovideo_composer: fix 3 channel crop error [1/1]
jintao xu [Thu, 12 Dec 2019 09:12:52 +0000 (17:12 +0800)]
video_composer: fix 3 channel crop error [1/1]

PD#SWPL-18034

Problem:
crop error when hdmi is 4k

Solution:
fix crop error

Verify:
Verify on u212

Change-Id: Id7f7599a64ab376e8b84ba891889e0ed38952266
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
4 years agoMerge "power: Disable unused modules [1/1]" into bringup/amlogic-4.9/sync20190611_forQ
Tellen Yu [Mon, 16 Dec 2019 10:47:55 +0000 (18:47 +0800)]
Merge "power: Disable unused modules [1/1]" into bringup/amlogic-4.9/sync20190611_forQ

4 years agopower: Disable unused modules [1/1]
henry.tsou [Mon, 16 Dec 2019 09:51:56 +0000 (17:51 +0800)]
power: Disable unused modules [1/1]

PD#GH-152
BUG=145966476

Problem:
Sabrina need to lower down more power

Solution:
Disable dvb/tuner/cvbsout module

Verify:
Sabrina-P2

Change-Id: I82655d038d61b4a9d017fb2d84a1c122a0a9f662
Signed-off-by: henry.tsou <henry.tsou@amlogic.com>
4 years agocodec_mm: enlarge reserved_block_mm_M [1/1]
rongrong zhou [Fri, 29 Nov 2019 12:17:34 +0000 (20:17 +0800)]
codec_mm: enlarge reserved_block_mm_M [1/1]

PD#SWPL-17471

Problem:
No mem ret=-10003, clear scatter cache!!

Solution:
enlarge reserved_block_mm_M

Verify:
U212

Change-Id: I567f6437cbfb5a5157c8903ce70fb5e2fc000e34
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>