Jianxin Pan [Mon, 20 May 2019 02:15:14 +0000 (19:15 -0700)]
Merge "lcd: add lcd_ctrl bootargs for lcd driver control [2/2]" into amlogic-4.9-dev
Evoke Zhang [Fri, 17 May 2019 09:09:22 +0000 (17:09 +0800)]
tvafe: update parameters for AV NTSC [1/1]
PD#SWPL-7283
Problem:
display is not good
Solution:
modify cvd2 0xb0, 0xb1 reg value
Verify:
x301
Change-Id: Ib512258336d3a6bb14c4eda04488fbaf60e38af0
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
Yong Qin [Tue, 14 May 2019 01:43:55 +0000 (09:43 +0800)]
vdin: horizontal floral stripe [1/1]
PD#SWPL-7391
Problem:
when hdmi 4k, tv menu set game mode, some time have
floral stripe
Solution:
afbc write addr is same at read addr, will occur.
Verify:
tl1
Change-Id: Iac10768116dea0d3bc4175871b954d56b044f390
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
Tao Zeng [Thu, 16 May 2019 09:28:29 +0000 (17:28 +0800)]
kasan: change address layout [3/3]
PD#SWPL-8572
Problem:
In change http://scgit.amlogic.com:8080/#/c/73995/ we have changed
memory layout of vmalloc. Which caused kasan can't be used
Solution:
change kasan address layout
Verify:
x301
Change-Id: I28aee4b1d9b622dd884e6c2d6b621aa870cd8586
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Tao Zeng [Thu, 16 May 2019 09:27:30 +0000 (17:27 +0800)]
vmalloc: restore 240mb memory space [2/3]
PD#SWPL-8572
Problem:
To avoid vmalloc address space not enough caused by binder, in
following change we have increased 128mb vmalloc address space:
http://scgit.amlogic.com:8080/#/c/72977/
Solution:
Since we have back porting binder optimize from kernel 4.19 in
change:
http://scgit.amlogic.com:8080/#/c/73975/
So we can restore 240mb memory space for vmalloc
Verify:
x301
Change-Id: If16e83eadb9ab40bb7e0e2ca168dc604420cdac7
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Tao Zeng [Tue, 14 May 2019 08:35:57 +0000 (16:35 +0800)]
binder: back port changes from kernel 4.19 [1/3]
PD#SWPL-8572
Problems:
based on android platfrom, each process may allocate 1MB vmalloc
memory space for IPC. But most process don't use full memory
range of vmalloc space. It's a waste of memory space and may
cause driver can't work normal based on 32bit kernel
Soluton:
On kernel 4.19, google have fixed it, so we need back porting
following changes:
Squashed commit of the following:
commit
b12a56e5342e15e99b0fb07c67dfce0891ba2f6b
Author: Todd Kjos <tkjos@google.com>
Date: Tue Mar 19 09:53:01 2019 -0700
FROMGIT: binder: fix BUG_ON found by selinux-testsuite
The selinux-testsuite found an issue resulting in a BUG_ON()
where a conditional relied on a size_t going negative when
checking the validity of a buffer offset.
(cherry picked from commit
5997da82145bb7c9a56d834894cb81f81f219344
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
char-misc-linus)
Bug:
67668716
Change-Id: Ib3b408717141deadddcb6b95ad98c0b97d9d98ea
Fixes:
7a67a39320df ("binder: add function to copy binder object from buffer")
Reported-by: Paul Moore <paul@paul-moore.com>
Tested-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Todd Kjos <tkjos@google.com>
commit
5b28e504d93a5f1efc074dd7cdcadc07293bb783
Author: Todd Kjos <tkjos@android.com>
Date: Thu Feb 14 15:22:57 2019 -0800
UPSTREAM: binder: fix handling of misaligned binder object
Fixes crash found by syzbot:
kernel BUG at drivers/android/binder_alloc.c:LINE! (2)
(cherry pick from commit
26528be6720bb40bc8844e97ee73a37e530e9c5e)
Bug:
67668716
Reported-and-tested-by: syzbot+55de1eb4975dec156d8f@syzkaller.appspotmail.com
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: Ib8597dd05a158f78503d4affe6c5f46ded16a811
commit
e110c3b44e437bad09f76c2b42f23dcad898f57d
Author: Todd Kjos <tkjos@android.com>
Date: Wed Feb 13 11:48:53 2019 -0800
UPSTREAM: binder: fix sparse issue in binder_alloc_selftest.c
Fixes sparse issues reported by the kbuild test robot running
on https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
char-misc-testing:
bde4a19fc04f5 ("binder: use userspace pointer as base
of buffer space")
Error output (drivers/android/binder_alloc_selftest.c):
sparse: warning: incorrect type in assignment (different address spaces)
sparse: expected void *page_addr
sparse: got void [noderef] <asn:1> *user_data
sparse: error: subtraction of different types can't work
Fixed by adding necessary "__user" tags.
(cherry pick from commit
36f30937922ce75390c73f99e650e4f2eb56b0e6)
Bug:
67668716
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: Ia0a16d163251381d4bc04f46a44dddbc18b10a85
commit
9f6fd7733286f1af04d153c9d3a050ca2615b3cc
Author: Todd Kjos <tkjos@android.com>
Date: Fri Feb 8 10:35:20 2019 -0800
BACKPORT: binder: use userspace pointer as base of buffer space
Now that alloc->buffer points to the userspace vm_area
rename buffer->data to buffer->user_data and rename
local pointers that hold user addresses. Also use the
"__user" tag to annotate all user pointers so sparse
can flag cases where user pointer vaues are copied to
kernel pointers. Refactor code to use offsets instead
of user pointers.
(cherry pick from commit
bde4a19fc04f5f46298c86b1acb7a4af1d5f138d)
Bug:
67668716
Change-Id: I9d04b844c5994d1f6214da795799e6b373bc9816
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit
194d8606b011657ce30bf0c240a5adcad0691201
Author: Todd Kjos <tkjos@android.com>
Date: Wed Dec 5 15:19:25 2018 -0800
UPSTREAM: binder: fix kerneldoc header for struct binder_buffer
Fix the incomplete kerneldoc header for struct binder_buffer.
(cherry pick from commit
7a2670a5bc917e4e7c9be5274efc004f9bd1216a)
Bug:
67668716
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I6bb942e6a9466b02653349943524462f205af839
commit
55cb58623a60d48678d8eb74e1cabe7744ed62c2
Author: Todd Kjos <tkjos@android.com>
Date: Fri Feb 8 10:35:19 2019 -0800
BACKPORT: binder: remove user_buffer_offset
Remove user_buffer_offset since there is no kernel
buffer pointer anymore.
(cherry pick from commit
c41358a5f5217abd7c051e8d42397e5b80f3b3ed)
Bug:
67668716
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I399219867704dc5013453a7738193c742fc970ad
commit
3301f77efa9d99e742e5642243b891e014becf17
Author: Todd Kjos <tkjos@android.com>
Date: Fri Feb 8 10:35:18 2019 -0800
UPSTREAM: binder: remove kernel vm_area for buffer space
Remove the kernel's vm_area and the code that maps
buffer pages into it.
(cherry pick from commit
880211667b203dd32724f3be224c44c0400aa0a6)
Bug:
67668716
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I2595bb8416c2bbfcf97ad3d7380ae94e29c209fb
commit
628c27a60665f15984364f6c0a1bda03473b3a78
Author: Todd Kjos <tkjos@android.com>
Date: Fri Feb 8 10:35:17 2019 -0800
UPSTREAM: binder: avoid kernel vm_area for buffer fixups
Refactor the functions to validate and fixup struct
binder_buffer pointer objects to avoid using vm_area
pointers. Instead copy to/from kernel space using
binder_alloc_copy_to_buffer() and
binder_alloc_copy_from_buffer(). The following
functions were refactored:
refactor binder_validate_ptr()
binder_validate_fixup()
binder_fixup_parent()
(cherry pick from commit
db6b0b810bf945d1991917ffce0e93383101f2fa)
Bug:
67668716
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: Ic222af9b6c56bf48fd0b65debe981d19a7809e77
commit
ed39057090cc4a95c318bafcd97f418da56e3867
Author: Todd Kjos <tkjos@android.com>
Date: Fri Feb 8 10:35:16 2019 -0800
BACKPORT: binder: add function to copy binder object from buffer
When creating or tearing down a transaction, the binder driver
examines objects in the buffer and takes appropriate action.
To do this without needing to dereference pointers into the
buffer, the local copies of the objects are needed. This patch
introduces a function to validate and copy binder objects
from the buffer to a local structure.
(cherry pick from commit
7a67a39320dfba4b36d3be5dae4581194e650316)
Bug:
67668716
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I42dfe238a2d20bdeff479068ca87a80e4577e64a
commit
01f8f48c56b53faf1c795112f451a032a0d00b75
Author: Todd Kjos <tkjos@android.com>
Date: Fri Feb 8 10:35:15 2019 -0800
BACKPORT: binder: add functions to copy to/from binder buffers
Avoid vm_area when copying to or from binder buffers.
Instead, new copy functions are added that copy from
kernel space to binder buffer space. These use
kmap_atomic() and kunmap_atomic() to create temporary
mappings and then memcpy() is used to copy within
that page.
Also, kmap_atomic() / kunmap_atomic() use the appropriate
cache flushing to support VIVT cache architectures.
Allow binder to build if CPU_CACHE_VIVT is defined.
Several uses of the new functions are added here. More
to follow in subsequent patches.
(cherry picked from commit
8ced0c6231ead26eca8cb416dcb7cc1c2cdd41d8)
Bug:
67668716
Change-Id: I6a93d2396d0a80c352a1d563fc7fb523a753e38c
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit
bfc28d4c046d2a1aea5db66508e7fbb65a31a4a9
Author: Todd Kjos <tkjos@android.com>
Date: Fri Feb 8 10:35:14 2019 -0800
UPSTREAM: binder: create userspace-to-binder-buffer copy function
The binder driver uses a vm_area to map the per-process
binder buffer space. For 32-bit android devices, this is
now taking too much vmalloc space. This patch removes
the use of vm_area when copying the transaction data
from the sender to the buffer space. Instead of using
copy_from_user() for multi-page copies, it now uses
binder_alloc_copy_user_to_buffer() which uses kmap()
and kunmap() to map each page, and uses copy_from_user()
for copying to that page.
(cherry picked from
1a7c3d9bb7a926e88d5f57643e75ad1abfc55013)
Bug:
67668716
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I59ff83455984fce4626476e30601ed8b99858a92
commit
89a1a65d35200d8ca94c865f061f11af41a8ced7
Author: Todd Kjos <tkjos@android.com>
Date: Mon Jan 14 09:10:21 2019 -0800
FROMGIT: binder: create node flag to request sender's security context
To allow servers to verify client identity, allow a node
flag to be set that causes the sender's security context
to be delivered with the transaction. The BR_TRANSACTION
command is extended in BR_TRANSACTION_SEC_CTX to
contain a pointer to the security context string.
Signed-off-by: Todd Kjos <tkjos@google.com>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit
ec74136ded792deed80780a2f8baf3521eeb72f9
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
master)
Change-Id: I44496546e2d0dc0022f818a45cd52feb1c1a92cb
Signed-off-by: Todd Kjos <tkjos@google.com>
commit
4afd6d2498ecd54e4211c6e47d8956a686a52ee3
Author: Todd Kjos <tkjos@android.com>
Date: Wed Dec 5 15:19:26 2018 -0800
UPSTREAM: binder: filter out nodes when showing binder procs
When dumping out binder transactions via a debug node,
the output is too verbose if a process has many nodes.
Change the output for transaction dumps to only display
nodes with pending async transactions.
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit
ecd589d8f5661dd3a9545079a29b678cd9e3ecf3)
Bug:
112037142
Change-Id: Iaa76ebdc844037ce1ee3bf2e590676790a959cef
commit
72e3c1d60a499bfa547d962a150082f47bfb16af
Author: Todd Kjos <tkjos@android.com>
Date: Tue Nov 6 15:55:32 2018 -0800
binder: fix race that allows malicious free of live buffer
commit
7bada55ab50697861eee6bb7d60b41e68a961a9c upstream.
Malicious code can attempt to free buffers using the BC_FREE_BUFFER
ioctl to binder. There are protections against a user freeing a buffer
while in use by the kernel, however there was a window where
BC_FREE_BUFFER could be used to free a recently allocated buffer that
was not completely initialized. This resulted in a use-after-free
detected by KASAN with a malicious test program.
This window is closed by setting the buffer's allow_user_free attribute
to 0 when the buffer is allocated or when the user has previously freed
it instead of waiting for the caller to set it. The problem was that
when the struct buffer was recycled, allow_user_free was stale and set
to 1 allowing a free to go through.
Signed-off-by: Todd Kjos <tkjos@google.com>
Acked-by: Arve Hjønnevåg <arve@android.com>
Cc: stable <stable@vger.kernel.org> # 4.14
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit
c7940ee7e55f4caec80ab646b7f9d495ee2677c6
Author: Martijn Coenen <maco@android.com>
Date: Sat Aug 25 13:50:56 2018 -0700
UPSTREAM: binder: Add BINDER_GET_NODE_INFO_FOR_REF ioctl.
This allows the context manager to retrieve information about nodes
that it holds a reference to, such as the current number of
references to those nodes.
Such information can for example be used to determine whether the
servicemanager is the only process holding a reference to a node.
This information can then be passed on to the process holding the
node, which can in turn decide whether it wants to shut down to
reduce resource usage.
Bug:
79983843
Change-Id: I21e52ed1ca2137f7bfdc0300365fb1285b7e3d70
Signed-off-by: Martijn Coenen <maco@android.com>
commit
afd02b5ead68a94eb6bf1bf5234271687d7eb461
Author: Minchan Kim <minchan@kernel.org>
Date: Thu Aug 23 14:29:56 2018 +0900
android: binder: fix the race mmap and alloc_new_buf_locked
There is RaceFuzzer report like below because we have no lock to close
below the race between binder_mmap and binder_alloc_new_buf_locked.
To close the race, let's use memory barrier so that if someone see
alloc->vma is not NULL, alloc->vma_vm_mm should be never NULL.
(I didn't add stable mark intentionallybecause standard android
userspace libraries that interact with binder (libbinder & libhwbinder)
prevent the mmap/ioctl race. - from Todd)
"
Thread interleaving:
CPU0 (binder_alloc_mmap_handler) CPU1 (binder_alloc_new_buf_locked)
===== =====
// drivers/android/binder_alloc.c
// #L718 (v4.18-rc3)
alloc->vma = vma;
// drivers/android/binder_alloc.c
// #L346 (v4.18-rc3)
if (alloc->vma == NULL) {
...
// alloc->vma is not NULL at this point
return ERR_PTR(-ESRCH);
}
...
// #L438
binder_update_page_range(alloc, 0,
(void *)PAGE_ALIGN((uintptr_t)buffer->data),
end_page_addr);
// In binder_update_page_range() #L218
// But still alloc->vma_vm_mm is NULL here
if (need_mm && mmget_not_zero(alloc->vma_vm_mm))
alloc->vma_vm_mm = vma->vm_mm;
Crash Log:
==================================================================
BUG: KASAN: null-ptr-deref in __atomic_add_unless include/asm-generic/atomic-instrumented.h:89 [inline]
BUG: KASAN: null-ptr-deref in atomic_add_unless include/linux/atomic.h:533 [inline]
BUG: KASAN: null-ptr-deref in mmget_not_zero include/linux/sched/mm.h:75 [inline]
BUG: KASAN: null-ptr-deref in binder_update_page_range+0xece/0x18e0 drivers/android/binder_alloc.c:218
Write of size 4 at addr
0000000000000058 by task syz-executor0/11184
CPU: 1 PID: 11184 Comm: syz-executor0 Not tainted 4.18.0-rc3 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.8.2-0-g33fbe13 by qemu-project.org 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x16e/0x22c lib/dump_stack.c:113
kasan_report_error mm/kasan/report.c:352 [inline]
kasan_report+0x163/0x380 mm/kasan/report.c:412
check_memory_region_inline mm/kasan/kasan.c:260 [inline]
check_memory_region+0x140/0x1a0 mm/kasan/kasan.c:267
kasan_check_write+0x14/0x20 mm/kasan/kasan.c:278
__atomic_add_unless include/asm-generic/atomic-instrumented.h:89 [inline]
atomic_add_unless include/linux/atomic.h:533 [inline]
mmget_not_zero include/linux/sched/mm.h:75 [inline]
binder_update_page_range+0xece/0x18e0 drivers/android/binder_alloc.c:218
binder_alloc_new_buf_locked drivers/android/binder_alloc.c:443 [inline]
binder_alloc_new_buf+0x467/0xc30 drivers/android/binder_alloc.c:513
binder_transaction+0x125b/0x4fb0 drivers/android/binder.c:2957
binder_thread_write+0xc08/0x2770 drivers/android/binder.c:3528
binder_ioctl_write_read.isra.39+0x24f/0x8e0 drivers/android/binder.c:4456
binder_ioctl+0xa86/0xf34 drivers/android/binder.c:4596
vfs_ioctl fs/ioctl.c:46 [inline]
do_vfs_ioctl+0x154/0xd40 fs/ioctl.c:686
ksys_ioctl+0x94/0xb0 fs/ioctl.c:701
__do_sys_ioctl fs/ioctl.c:708 [inline]
__se_sys_ioctl fs/ioctl.c:706 [inline]
__x64_sys_ioctl+0x43/0x50 fs/ioctl.c:706
do_syscall_64+0x167/0x4b0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
"
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Minchan Kim <minchan@kernel.org>
Reviewed-by: Martijn Coenen <maco@android.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit
3ed5fd0f095e9d6fe5f33f909165a8cd596e8b46
Author: Sherry Yang <sherryy@android.com>
Date: Tue Aug 7 12:57:13 2018 -0700
android: binder: Rate-limit debug and userspace triggered err msgs
Use rate-limited debug messages where userspace can trigger
excessive log spams.
Acked-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Sherry Yang <sherryy@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit
8129fb3ee7af23a888383aa23647c9d576ecdfef
Author: Sherry Yang <sherryy@android.com>
Date: Thu Jul 26 17:17:17 2018 -0700
android: binder: Show extra_buffers_size in trace
Add extra_buffers_size to the binder_transaction_alloc_buf tracepoint.
Acked-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Sherry Yang <sherryy@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit
3b0bbcb65457ddec6fbee72bb26002e2bba16089
Author: Guenter Roeck <linux@roeck-us.net>
Date: Mon Jul 23 14:41:38 2018 -0700
android: binder: Include asm/cacheflush.h after linux/ include files
If asm/cacheflush.h is included first, the following build warnings are
seen with sparc32 builds.
In file included from arch/sparc/include/asm/cacheflush.h:11:0,
from drivers/android/binder.c:54:
arch/sparc/include/asm/cacheflush_32.h:40:37: warning:
'struct page' declared inside parameter list will not be visible
outside of this definition or declaration
Moving the asm/ include after linux/ includes solves the problem.
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit
e8a4948f49629c6ab122339f46908884d55ca7e9
Author: Guenter Roeck <linux@roeck-us.net>
Date: Mon Jul 23 14:47:23 2018 -0700
android: binder_alloc: Include asm/cacheflush.h after linux/ include files
If asm/cacheflush.h is included first, the following build warnings are
seen with sparc32 builds.
In file included from ./arch/sparc/include/asm/cacheflush.h:11:0,
from drivers/android/binder_alloc.c:20:
./arch/sparc/include/asm/cacheflush_32.h:40:37: warning:
'struct page' declared inside parameter list
Moving the asm/ include after linux/ includes fixes the problem.
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit
8cae6730ef318700ab3a0db3ef43ee6a5e5856c8
Author: Geert Uytterhoeven <geert@linux-m68k.org>
Date: Wed Jun 6 14:40:56 2018 +0200
android: binder: Drop dependency on !M68K
As of commit
7124330dabe5b3cb ("m68k/uaccess: Revive 64-bit
get_user()"), the 64-bit Android binder interface builds fine on m68k.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
verify:
p212
Change-Id: I1bac2c5345bcac64a3890f1688c1ecc4a3654a79
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Liang Yang [Wed, 15 May 2019 09:01:48 +0000 (17:01 +0800)]
nand: adjust nand info page for ddr parameter function [1/1]
PD#SWPL-7804
Problem:
OTA upgrade would fail because nand info page no consisent
Solution:
Keep nand info page consisent between bl2/bl33/kernel
Verify:
s420
Change-Id: Icef5f720ba80e5f639b4ee7d1f1201833d5a5656
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
sky zhou [Sat, 6 Apr 2019 11:35:34 +0000 (19:35 +0800)]
osd: fix release dma buf error when vout1&2 run at same time.
PD #SWPL-6027
Problem:
dmabuf panic when vout1,vout2 run at same time.
Solution:
When do pandisplay, only release the dma buf displayed
on current vout pipeline.
Verify:
Verify on macroni.
Change-Id: I8951d55f9f56cbfa509bcbe2906a108c5f50dbfe
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
Yue Wang [Sun, 5 May 2019 05:34:00 +0000 (13:34 +0800)]
usb: add USB + PCIE feature [1/1]
PD#SWPL-8058
Problem:
usb + pcie.
Solution:
add usb + pcie feature.
Verify:
TM2
Change-Id: Ib5838cb0093753d346e46ce0fa6007c0edf511c2
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
renjiang.han [Thu, 16 May 2019 08:34:31 +0000 (16:34 +0800)]
ppmgr: Add IS_ERR_OR_NULL to determine if the thread exists [1/1]
PD#SWPL-8658
Problem:
handle is NULL cause kernel panic.
Solution:
Add IS_ERR_OR_NULL to prevent hanle from being NULL
to cause kernel panic.
Verify:
on T962X2
Change-Id: I3086a497d99646e6475a93b5a53b3c9aca2d2ada
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
zhiwei.yuan [Tue, 14 May 2019 10:39:10 +0000 (18:39 +0800)]
vdin: cvbs video is not smooth after playing a period of time [1/1]
PD#SWPL-8565
Problem:
unknown buf be taken by vpp sometimes
Solution:
fix skip mechanism, reduce numeber of unknown buf
Verify:
verified by t962x2_x301
Change-Id: I296d9f2f5c25a37ec32b458ecb23d64ca8c321a7
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
Shuai Li [Wed, 8 May 2019 09:37:37 +0000 (17:37 +0800)]
audio: config 2+2 loopback [1/1]
PD#SWPL-7741
Problem:
Default is 6+2.
But aec needs 2+2 setting.
Solution:
Change the dts setting.
Verify:
SM1 AC213.
Change-Id: I5b3585c017146bde5b265f315f8167e8232566fb
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
Shuai Li [Fri, 10 May 2019 05:51:43 +0000 (13:51 +0800)]
audio: support 48k out & 16k loopback [1/1]
PD#SWPL-7741
Problem:
Enable the loopback function.
Fix 48k output & 16k loopback abnormal.
Solution:
Fix the resample source.
DO not touch output clk at loopback driver.
Verify:
Sm1, AC213
Change-Id: I210083813e9e6ec834941da333f8ce076e9afbcf
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
Zhe Wang [Thu, 16 May 2019 12:53:46 +0000 (20:53 +0800)]
audio: fixed audio clk source sel error [1/1]
PD#SWPL-8663
Problem:
there is no audio clk on SM1
Solution:
fixed clk source setting error
Verify:
AC200
Change-Id: Ief01d680c435cfc2f50f9b7da0a6e4d68db846d5
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
Blance Tang [Wed, 15 May 2019 03:11:44 +0000 (11:11 +0800)]
buildroot: Add SM1 AC200/AC213 buildroot dts files [1/1]
PD#SWPL-6202
Problem:
Missing SM1 AC200/AC213 buildroot dts files
Solution:
Add SM1 AC200/AC213 buildroot dts files
Verify:
Local
Change-Id: I99c2e7543432e18496f77b5dcbed428823934691
Signed-off-by: Blance Tang <guofeng.tang@amlogic.com>
Jian Hu [Thu, 16 May 2019 11:11:19 +0000 (19:11 +0800)]
clk: tl1: fix stack overflow when set rate for dsu clock [1/1]
PD#SWPL-8546
Problem:
stack overflow
Solution:
remove clk_set_rate in dsu clock notifier
Verify:
tl1 X301
Change-Id: Ie4b2fe929446ade505c714d11c1474146d188ac2
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
Shuyu Li [Wed, 27 Mar 2019 12:55:05 +0000 (20:55 +0800)]
audio: hifi4dsp: Add tm2 hifi 4 dsp ctl driver support [1/1]
PD#SWPL-7574
Problem:
Add hifi 4 dsp ctl driver support on tm2
Solution:
Add hifi 4 dsp ctl driver support on tm2
Verify:
Verified on T962E2_ab311 board
Change-Id: Ifd07ec8b8e1c3aeaa1a446a2a0eb9c00618e4ba5
Signed-off-by: Shuyu Li <shuyu.li@amlogic.com>
Zongdong Jiao [Mon, 29 Apr 2019 07:16:21 +0000 (15:16 +0800)]
hdmirp: enable CEC physical address passing for non-repeater mode [1/4]
PD#SWPL-6988
Problem:
Lack CEC physical address passing
Solution:
Pass CEC address from Tx to Rx in kernel
Verify:
T962X3
Change-Id: I67952d040478c0068e3f0ed777ecf40410a7767d
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
keke.li [Tue, 19 Mar 2019 05:46:35 +0000 (13:46 +0800)]
dts: add arm isp device node [1/1]
PD#SWPL-70
Problem:
arm isp driver need to use dts
Solution:
add arm isp device node
Verify:
w400
Test: camera preview and capture OK
Change-Id: Idc603890f07afe25beba5deab3ab391825aee584
Signed-off-by: Keke Li <keke.li@amlogic.com>
yicheng shen [Thu, 9 May 2019 13:10:33 +0000 (21:10 +0800)]
hdmirx: add hdcp2.2 test key detection [1/3]
PD#SWPL-8312
Problem:
hdmi can not detect the hdcp2.2 aml_test_key;
Solution:
Add aml_test_key detection function;
Verify:
TL1: kernel 4.9 TXLX: kernel 3.14
Change-Id: I126e6f94f8b9f8479619b3cfddf22306e8c8ac15
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
jintao xu [Fri, 10 May 2019 11:47:36 +0000 (19:47 +0800)]
pipvideo: add frame drop mechanism [1/1]
PD#OTT-3616
Problem:
when HDMI output is 30HZ, video is 60fps, pipvideo only can display 30fps,
need drop 30fps.
Solution:
drop frames when there is no time to display
Verify:
U212
Change-Id: I3c946aa49ccc40b8e69e6e7c5031df0b5af34454
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
jintao xu [Sun, 5 May 2019 11:37:14 +0000 (19:37 +0800)]
amlvideo: fix panic when unreg [1/1]
PD#OTT-3420
Problem:
panic when vfm unreg.
Solution:
Add mutex in dequeue and unreg
Verify:
U212
Change-Id: I902085aed670fefb519d07ffcc3e896ec0c404dd
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
Rui Wang [Tue, 14 May 2019 05:22:58 +0000 (13:22 +0800)]
video: enable pts calculation when hold video state changes [1/1]
PD#TV-3999
Problem:
dtmb individual channel switching speed is slow,
it takes about 16s
Solution:
enable pts calculation when hold video
state changes.
Verify:
X301
Change-Id: I4c8eda3af3df894d8116461abf63c3dda45c8ce3
Signed-off-by: Rui Wang <rui.wang@amlogic.com>
zhiwei.yuan [Wed, 3 Apr 2019 09:18:25 +0000 (17:18 +0800)]
vdin: add new interface for passing dma-buf to vdin [1/1]
PD#TV-3863
Problem:
gpu cann't get vdin buf directly
Solution:
vdin write data to the addr passed by upper layer
Verify:
verified by t962x2_x301
Change-Id: I495b78c419e10a6dacb9b9f29c0f8e87339ac195
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
Zhe Wang [Tue, 14 May 2019 06:14:11 +0000 (14:14 +0800)]
audio: add clk tuning_enable/start_enable control in dts [1/1]
PD#SWPL-8306
Problem:
speaker without audio on S400. sideeffect of SWPL-7680
Solution:
add control interface in dts to enable clk tuning
and start clk before codec init
Verify:
verify on S400
Change-Id: Ic9f4e7b13b7d4ced18852346cdc7cf5f48e510dc
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
Jianxin Pan [Tue, 14 May 2019 06:00:03 +0000 (14:00 +0800)]
debug: do not print old_size when ftrace_size is 0 [1/1]
PD#SWPL-6028
Problem:
do not print old_size when ftrace_size is 0
Solution:
do not print old_size when ftrace_size is 0
Verify:
TL1 x301
Change-Id: I00a71c83fede14a2606c5e7eea5d8c4fdaeb5553
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
Jiamin Ma [Mon, 13 May 2019 11:55:20 +0000 (19:55 +0800)]
Scripts: add auto weekly change generator [1/1]
PD#SWPL-8487
Problem:
Manully generating weekly change is time wasting, we
need some helpers
Solution:
Add auto weekly change generator
Verify:
Locally pass
Change-Id: Ifafcd7d82eebcceaf45676056de4217260f18a5c
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
Cheng Tong [Mon, 13 May 2019 02:28:24 +0000 (10:28 +0800)]
dts: flanklin update dvb dts to adapte attach mode [1/3]
PD#SWPL-8315
Problem:
flanklin dvb dts used 3.14 mode
Solution:
flanklin update dvb dts to adapte attach mode
Verify:
verify it on franklin.
Change-Id: I53a9ed2c6f28e75cbb327c2d1c122622b2e4b23e
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
Blance Tang [Wed, 8 May 2019 02:54:54 +0000 (10:54 +0800)]
buildroot: Enable USB3 phy for W400 [1/1]
PD#SWPL-8189
Problem:
USB3 disk can't be detected
USB3 phy is disabled on dts file, but HW connection is OK in W400
platform
Solution:
Enable USB3 phy in W400 dts file
Verify:
Local
Change-Id: I3bf1cf2619946d82aedc1c18840ebed34bbc2fdd
Signed-off-by: Blance Tang <guofeng.tang@amlogic.com>
Jian Cao [Wed, 8 May 2019 13:41:58 +0000 (21:41 +0800)]
ge2d: correct YUV limit/full range config when RGB->YUV [1/1]
PD#OTT-3500
Problem:
Grey-scale graph image on video layer performance worse.
Solution:
correct YUV limit/full range config to set ge2d,
when converting RGB to YUV.
Verify:
G12B_W400 board.
Change-Id: I304298a0a6942482196fe5d56a0f356fb30cbe61
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Pengcheng Chen [Sun, 5 May 2019 08:54:58 +0000 (16:54 +0800)]
osd: calc osd parameters used num/den replace left/right shift [1/1]
PD#OTT-3615
Problem:
a line on the right displayed
Solution:
calc osd parameters used num/den replace left/right shift
Verify:
Verfied on u212
Change-Id: If59d9de0bb3c525d2b67d05ec449d458fbbcdfe2
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Yong Qin [Fri, 10 May 2019 03:15:58 +0000 (11:15 +0800)]
cec: enable two IP, share cec pin mux on TM2 [1/1]
PD#SWPL-5638
Problem:
tm2 ab311 only have one pin for every ip,
when enable two cec IPs, need share pin mux to
another IP
Solution:
when enable two IPs, enable pinmux share.
Verify:
ab311
Change-Id: I4845418b8d6c9bd6b9512a8479311489a42740d1
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
Yong Qin [Fri, 1 Mar 2019 06:30:34 +0000 (14:30 +0800)]
cec: cec version is not 1.4 when do cts [1/1]
PD#SWPL-5045
Problem:
cts cec version is not right
Solution:
cec version 1.4
Verify:
android p
Change-Id: Iffb9712ce2f7724e9dd0abd9119588a9914159a4
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
Gongwei Chen [Fri, 10 May 2019 10:57:22 +0000 (18:57 +0800)]
common: support tp CST226 for yeke [3/3]
PD#SWPL-8013
Problem:
support touchpanel CST226 for yeke.
Solution:
support touchpanel CST226 for yeke.
Verify:
verify by u202.
Change-Id: I4a994ed97f56a4486f3ab39c3e2cd0e5fbed667e
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
Gongwei Chen [Tue, 7 May 2019 10:59:02 +0000 (18:59 +0800)]
dts: add touch screen dts config for CST226 [1/1]
PD#SWPL-8013
Problem:
separate dts config from driver
Solution:
separate dts config from driver
Verify:
verify by u202
Change-Id: I4de45ec213b86d12cdd9296f80de62f4f2dc6713
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
nengwen.chen [Mon, 6 May 2019 08:02:55 +0000 (16:02 +0800)]
atv_demod: add atbm2040 tuner support [1/3]
PD#TV-5499
Problem:
add atbm2040 tuner support.
Solution:
add atbm2040 tuner support.
Verify:
Verified by x301.
Change-Id: I89f82727c7c11f5fc6377584d519a17fe3449c4a
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
Luan Yuan [Tue, 30 Apr 2019 11:05:19 +0000 (19:05 +0800)]
common: support tp CST226 for yeke [1/1]
PD#SWPL-8013
Problem:
support touchpanel CST226 for yeke.
Solution:
support touchpanel CST226 for yeke.
Verify:
verify by u202.
Change-Id: Id74df3e25761118db4c10706128df29eb6eb2894
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Ruixuan Li [Thu, 18 Apr 2019 07:48:44 +0000 (15:48 +0800)]
emmc: report response crc error on tl1 when hs400 200M busmode [1/1]
PD#SWPL-7740
Problem:
tl1 report response crc error on tl1 when hs400 200M busmode
Solution:
find a eyetest hole between 14-20 or 48-54, otherwise
tuning tx_delay and find again
Verify:
passed on tl1_skt
Change-Id: I46e2c3c4d7ef24bcac7b44fee73112894540fc33
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
Yong Qin [Thu, 9 May 2019 11:55:51 +0000 (19:55 +0800)]
cec: cec a support multi-logical addr for tm2 [1/1]
PD#SWPL-5637
Problem:
1.verify cec a function on tm2
2.cec a support multi-address
Solution:
verify the cec a multi-addr function
Verify:
ab311
Change-Id: I641621212fa3096b3906a87d443c7bd40cb6d7e9
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
qingwei.xu [Thu, 9 May 2019 13:23:47 +0000 (21:23 +0800)]
dts: Add g12a_s905y2_u223_lp.dts for S905Y2 U223 [1/1]
PD#SWPL-8127
Problem:
Add g12a_s905y2_u223_lp.dts for S905Y2 U223
Solution:
Add g12a_s905y2_u223_lp.dts for S905Y2 U223
Verify:
u223
Change-Id: If1d5472817d2abc3b350900944f1d726d72b853f
Signed-off-by: qingwei.xu <qingwei.xu@amlogic.com>
qingwei.xu [Thu, 9 May 2019 08:01:04 +0000 (16:01 +0800)]
hdmitx: Disable dongle_mode case for S905Y2 U223 low power [1/1]
PD#SWPL-8127
Problem:
Disable dongle_mode case for S905Y2 U223 low power
Solution:
Disable dongle_mode case for S905Y2 U223 low power
Verify:
u223
Change-Id: Ie734fe02bb920a22efcb8c64d814a5158cec2c1d
Signed-off-by: qingwei.xu <qingwei.xu@amlogic.com>
Bencheng Jing [Mon, 6 May 2019 08:28:07 +0000 (16:28 +0800)]
amvecm: fix dnlp_en enable/disable not work [1/1]
PD#SWPL-7782
Problem:
dnlp_en enable/disable not work
Solution:
add tm2 support for dnlp enalbe/disable
Verify:
tm2
Change-Id: Ia0cf32a8f155b1e364b2aaf096f70f4f0a1ed50a
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
qingwei.xu [Thu, 9 May 2019 06:58:59 +0000 (14:58 +0800)]
power: Set the maximum CPU freq to 1.8GHz and GPU freq to 850MHz [1/1]
PD#SWPL-8127
Problem:
Set the maximum CPU freq to 1.8GHz and GPU freq to 850MHz
Solution:
Set the maximum CPU freq to 1.8GHz and GPU freq to 850MHz
Verify:
u223
Change-Id: I184da235469eca1f60842e3bf68ee897b1ea5307
Signed-off-by: qingwei.xu <qingwei.xu@amlogic.com>
Tao Zeng [Tue, 7 May 2019 02:51:42 +0000 (10:51 +0800)]
kasan: rebuild address layout after vmalloc increased [1/1]
PD#SWPL-8132
Problem:
In Jira TV-5143, final fix change have increased 128MB address space
for vmalloc. Because binder wasted too many vmalloc space but it's
hard to fix it in kernel side.
Due to incease of vmalloc address space, old design of address space
layout for KASAN32 is not suitable after this change. So we need to
change memory layout to fix this problem and let KASAN can running OK
again.
Solution:
1, rebuild address space layout for kasan
2, make kasan compatible with vmap stack config
Verify:
p212
Change-Id: I2ce8a840df0ce1fcda61ebeb14a64b1d609719ca
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Shuai Li [Mon, 6 May 2019 11:13:08 +0000 (19:13 +0800)]
audio: add lock for resampler [1/1]
PD#SWPL-8134
Problem:
kernel NULL pointer for aml_resample_enable
Solution:
add lock for resampler
Verify:
Need stress test for x301
Change-Id: I1bbf5d7aeab681399c93f0cba9cc59195d3be0d6
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
MingLiang Dong [Wed, 8 May 2019 12:32:31 +0000 (20:32 +0800)]
hdr: fix sm1 hdr color abnormal [1/1]
PD#SWPL-7932
Problem:
sm1 play hdr video, color abnormal
Solution:
cgain coef1 set according to bitdepth
Verify:
verify on sm1
Change-Id: Ibef6e127dde57d47f9b9ec7a4233ee10fe8539d5
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
cancan.chang [Fri, 26 Apr 2019 11:59:59 +0000 (19:59 +0800)]
npu: check chip whether contain npu module [1/2]
PD#SWPL-7761
Problem:
S922X revb boot up fail
Solution:
add check function
Verify:
test pass at g12b revb
Change-Id: I17de7f9f82e09c68e27668288cb001e975785f5b
Signed-off-by: cancan chang <cancan.chang@amlogic.com>
Guosong Zhou [Fri, 26 Apr 2019 09:26:10 +0000 (05:26 -0400)]
isp: check chip whether contain isp module [2/2]
PD#SWPL-7761
Problem:
S922X revb boot up fail
Solution:
add check function
Verify:
test pass at g12b revb
Change-Id: I6a6842a3578f2a9bd4d6879a0f9632a28c099afb
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
Luan Yuan [Wed, 8 May 2019 08:07:14 +0000 (16:07 +0800)]
common: lcd: support yeke panel [1/1]
PD#SWPL-8219
Problem:
not support lcd panel in ac202
Solution:
support lcd panel.
Verify:
verify by ac202.
Change-Id: Ib462a3536c21f0a55c0e0ff947f01c8f52ef3f13
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Luan Yuan [Wed, 8 May 2019 06:12:24 +0000 (14:12 +0800)]
dts: add ac202 for s905d3 panel [1/3]
PD#SWPL-8219
Problem:
not support S905D3 panel
Solution:
add ac202 for S905D3 panel
Verify:
verify by ac202
Change-Id: I32188a8bbf7c25c490bf4735c55e63a3a92ef149
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Luan Yuan [Tue, 30 Apr 2019 13:05:18 +0000 (21:05 +0800)]
common: lcd: support yeke panel [2/5]
PD#SWPL-8001
Problem:
support lcd panel.
Solution:
support lcd panel.
Verify:
verify by u202.
Change-Id: If0f665944c9a91a39c6fbd101e24878705284732
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Yingyuan Zhu [Wed, 24 Apr 2019 09:50:29 +0000 (17:50 +0800)]
tm2: add SWD interface [3/3]
PD#SWPL-5647
Problem:
tm2 does not support SWD mode.
Solution:
add code to support SWD mode.
Verify:
test pass on ab311
Change-Id: If85a050b5033242200dd7163a8391e71960621f0
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
Zhe Wang [Mon, 6 May 2019 13:14:14 +0000 (21:14 +0800)]
audio: set hdmi format-check threshold by input samplerate [2/2]
PD#SWPL-6340
Problem:
ddp audio input from hdmiin is not smooth
Solution:
set hdmiin format-check threshold by input sr
Verify:
Verified by x301.
Change-Id: Idb8ffa616c3880b1c34d61ca4e8c2917343a9ffc
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
Evoke Zhang [Tue, 7 May 2019 01:49:00 +0000 (21:49 -0400)]
dts: update vdin0 cma_size for 4k YUV444 10bit support [1/1]
PD#SWPL-7952
Problem:
vdin0 cma_size is not enough for some board
Solution:
1.change hdmirx skip_vf_num to 1.
2.increase vdin0 cma_size to 200M for 4k YUV444 10bit support,
other resolution usage will be lower,
such as 4k YUV422 10bit 160M.
Verify:
ab301
Change-Id: I353e2f9e5e6a25c8c3a34e10813039e9bba7e4a6
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
yicheng shen [Mon, 6 May 2019 09:45:00 +0000 (17:45 +0800)]
hdmirx: update phy pll init logic [1/1]
PD#SWPL-7084
Problem:
hdmirx signal detection time is long
Solution:
Optimize the phy pll init logic
Verify:
TL1
Change-Id: Ibdfdb3a54d2a5cbdf4f6292b85616fdba36c37a9
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
Kuibao Zhang [Wed, 8 May 2019 08:26:26 +0000 (16:26 +0800)]
BT: support rtl8761atv [1/1]
PD#OTT-2730
Problem:
1.BT open fail;
2.the problem is caused by Flow Control;
Solution:
1.set host cts pull-down as default on the dts.
Verify:
Galilei.
Change-Id: I42aa3bfa263d4330219268622bce94bfc24ced8a
Signed-off-by: Kuibao Zhang <kuibao.zhang@amlogic.com>
Brian Zhu [Thu, 18 Apr 2019 21:27:20 +0000 (05:27 +0800)]
vpp: add histgram test interface for vpp slt test [1/1]
PD#GH-31
Problem:
Need pattern to filter the error vpp modules in SLT test
Solution:
Using clipping and histgram function to create the test pattern
and get the histgram data.
Verify:
verified on w400
Change-Id: I52680c96f568980f71ac8c27c4b66352fea96651
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Kuibao Zhang [Wed, 1 May 2019 15:06:47 +0000 (23:06 +0800)]
BT: add a gpio interrupt for bt [1/1]
PD#TV-5021
Problem:
1.bt rcu cann't wakeup host when the system is in freeze mode;
2.There is no wake source in the bluetooth kernel.
3.current irqchip driver will complain "Unbalanced IRQ xx wake
disable" when gpio irq use as wakeup source, and can not wake device.
Solution:
1.add a gpio interrupt for bt in the bt kernel;
2.Wake up the interrupt;
3.Add a flag to skip undefined .irq_set_wake function in irqchip
driver.
Verify:
marconi.
Change-Id: Ic8d5525621e015a13fd765779f944cd1010144aa
Signed-off-by: Kuibao Zhang <kuibao.zhang@amlogic.com>
Pengcheng Chen [Tue, 7 May 2019 10:44:17 +0000 (18:44 +0800)]
osd: set hdr size according osd blend0 out size [1/1]
PD#IPTV-2395
Problem:
osd last line have abnormal data
Solution:
set hdr size according osd blend0 out size
Verify:
Verfied on u212
Change-Id: Iad738b16fce066270c78213f1b696a802e1b8da6
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Tao Guo [Fri, 29 Mar 2019 12:27:19 +0000 (20:27 +0800)]
debug: add trace tag and more trace print [1/2]
PD#SWPL-8124
Problem:
There are too many trace info when enabled
Lack some important trace info
Solution:
Add tag to enable/disable trace info for different modules
Add more trace info
Verify:
P212
Change-Id: I9916b97071dc6b3a5e133bb0ea55eb9a9532cec8
Signed-off-by: Tao Guo <tao.guo@amlogic.com>
jintao xu [Wed, 8 May 2019 05:56:17 +0000 (13:56 +0800)]
amlvideo: pip channel not set omx_secret_mode [1/1]
PD#OTT-2783
Problem:
when the second channel exit, the first channel will freeze
Solution:
pip not need set omx_secret_mode
Verify:
U212
Change-Id: I1f5f2624699ad29df06f67b288d16a15ab4edcf9
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
Yong Qin [Mon, 22 Apr 2019 02:20:47 +0000 (10:20 +0800)]
cec: interrupt irq src number is not right for tm2 [5/5]
PD#SWPL-7469
Problem:
Sometime will lose msg. because of the isr src
number connected to timer.
Solution:
modify cecb irq src number to 203
Verify:
tm2-AB311
Change-Id: Ib14f230d2b228685a0f149a2b072f6ad1155615b
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
Shuai Li [Wed, 3 Apr 2019 12:30:47 +0000 (20:30 +0800)]
audio: fix TDMOUT channel map error [1/1]
PD#SWPL-6427
Problem:
ALSA tdmout buffer frequently underrun.
This will cause the tdmout channel map error.
And the other channels data go into the spk.
Solution:
1)Adjust the sequence of starting and stopping.
2)reserved frddrA for EQ/DRC module
Verify:
Test more that 1 hour and pass.
Need more stress test.
Change-Id: Ib9b6897f0b6c32652c611a8c2c367aa76b9f1e3f
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
zhiwei.yuan [Mon, 6 May 2019 11:26:10 +0000 (19:26 +0800)]
vdin: QD980 HDMI 4k 30Hz,change bit depth has green screen [1/1]
PD#SWPL-8184
Problem:
don't updated afbce output color format
Solution:
update afbce config according afbce support or not,
instead of afbce need or not.
Verify:
verified by t962x2_x301
Change-Id: I7885357c1e5b04b58b059401a5f66d2ee83c76ef
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
Evoke Zhang [Tue, 30 Apr 2019 10:53:06 +0000 (06:53 -0400)]
vdin: add afbce reg access protection [1/1]
PD#SWPL-7983
Problem:
txlx will crash when access afbce reg without afbce hw
Solution:
add afbce reg access protection
Verify:
r311
Change-Id: Iaabf8da9cb2a58e9c26626b9ac718bdf9c6a2ac3
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
Xing Wang [Sat, 19 Jan 2019 08:05:46 +0000 (16:05 +0800)]
audio: auge: add lower power mode for PDM & vad [1/1]
PD#SWPL-3825
Problem:
VAD & PDM works in 24m clks for lowpower mode when in deep suspend
Solution:
support VAD & PDM in 24m sysclk, 768k dclk
Verify:
x301
Change-Id: Ic363337ee9b0eba0f890ae62b9e0cb6bb54dcd6a
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Bencheng Jing [Mon, 29 Apr 2019 07:14:09 +0000 (15:14 +0800)]
amvecm: fix lc cause bootvideo abnormal [1/1]
PD#SWPL-7901
Problem:
the osd_detect params not reset when scene change
Solution:
reset the osd_detect params when scene change
Verify:
TL1-x301
Change-Id: Id39211f2864c399e3ec9afcb58f8a9bd95ec516c
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
MingLiang Dong [Sun, 28 Apr 2019 13:39:48 +0000 (09:39 -0400)]
amvecm: optimize amvecm update in vsync [1/1]
PD#SWPL-6475
Problem:
hdmi input signal, video flicker
Solution:
optimize amvecm update in vsync
Verify:
verify on TL1
Change-Id: I3379333053fc52b8a33747ca83b1d6d68ea874ab
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
Xiaoming Sui [Fri, 26 Apr 2019 10:42:46 +0000 (18:42 +0800)]
avsync: fix the avsync issue when pcrmaster [1/1]
PD#SWPL-7775
Problem:
dtv video freeze when the stream is replayed
Solution:
when replay at pcrmaster, check the vpts and systime,
if the vpts > systime and the diff > margin,
then adjust the sysclk to make playback smooth.
Verify:
X301
Change-Id: Id1474db030e06fff6ce425a54562cfa4e02ceaa9
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
Guosong Zhou [Sun, 5 May 2019 06:32:35 +0000 (02:32 -0400)]
amlvideo2: fix video only parameters [1/1]
PD#TV-4664
Problem:
capture video only picture abnormal
Solution:
fix video only parameters
Verify:
T962X2-X301
Change-Id: I3b9d4fcdf1566f22e409264ba8bd82a85559c5cf
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
yao liu [Sun, 5 May 2019 13:57:37 +0000 (21:57 +0800)]
dv: fix black screen when play mel video [1/1]
PD#SWPL-8155
Problem:
support el is disabled for default on 2.4.2 ko
Solution:
For mel video, set el flag to ko, to make support el
enable
Verify:
T962E2, Ves_L2DM_23976_3840x2160_10000kbps_hevc
_dvhe_dtr___dt.mp4 display normal
Change-Id: I6e92c012fedb460c373e6e4c0312542564b6ced3
Signed-off-by: yao liu <yao.liu@amlogic.com>
live.li [Sun, 5 May 2019 07:41:24 +0000 (15:41 +0800)]
avsync: tsync: change the start condition [2/2]
PD#TV-5393
Problem:
when pcr and vpts distance is far,
use the vpts as system time for
cache video to avoid video underrun
solution:
use vpts as system time for some
special ts stream
Verify:
x301
Change-Id: I2f151c526bb0113d4f0cf8bbd1a4772312857606
Signed-off-by: live.li <live.li@amlogic.com>
nengwen.chen [Mon, 15 Apr 2019 03:29:26 +0000 (11:29 +0800)]
atv_demod: add atv demod tune interface [1/2]
PD#TV-4499
Problem:
add atv demod tune interface.
Solution:
add atv demod tune interface.
Verify:
Verified by x301.
Change-Id: I4b62ee8b87d218bf639c02a34ba7e1c116a22249
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
Lei Yang [Wed, 1 May 2019 08:40:36 +0000 (16:40 +0800)]
hdmirx: increase waiting time of tmds valid [1/1]
PD#SWPL-8032
Problem:
Switching to HDMI source is slower than T962
Solution:
ensure pll lock is table before do DWC reset
Verify:
T962X2
Change-Id: I1133d6b1fb532ab8460c1906a021fe133ea9fb83
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
Qianggui Song [Tue, 30 Apr 2019 11:25:04 +0000 (19:25 +0800)]
ir: support rca ir protocol [1/1]
PD#SWPL-8050
Problem:
current driver does not support rca ir protocol
Solution:
add register setting and code for rca use REMOTE_RYPE_RCA to configure.
Verify:
G12b_W400 & tl1 x301
Change-Id: I76d860d66a43071803fb60debeafcbf18f42b283
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
Tao Zeng [Tue, 30 Apr 2019 07:29:17 +0000 (15:29 +0800)]
binder: revert dynamic vmalloc for binder [1/1]
PD#TV-5143
Problem:
Kernel use dynamic vmalloc for binder. It have data sync problems
and will cause bad object when binder transaction.
Solution:
1. Revert dynamic vmalloc for binder.
2. Increase 128MB size for vmalloc
Verify:
P212
Change-Id: I20198b18d171fde0314868af394a6881979b3605
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Bencheng Jing [Thu, 2 May 2019 08:27:37 +0000 (16:27 +0800)]
di: fix moving character tow line [1/1]
PD#TV-4346
Problem:
di post buffer switch,motion read mif not switch
Solution:
fix the motion read mif
Verify:
verified by t962x2_x301
Change-Id: I6728e91bfff4241da1f5067398cc412545c7d96f
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
Xing Wang [Thu, 8 Nov 2018 09:37:32 +0000 (17:37 +0800)]
audio: auge: add loopback driver [1/1]
PD#SWPL-7240
Problem:
limit of current loopback
add loopback b for tl1
add tdmin_lb
Solution:
optimize loopback driver
Verify:
s400, u200, x301, ac200, ab301
Change-Id: I9dd4c7ad041231bb2c49513e354cfb4fb92131c4
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Hong Guo [Sun, 5 May 2019 01:56:22 +0000 (09:56 +0800)]
suspend: enable autosuspend function for tm2 [1/1]
PD#SWPL-7837
Problem:
enable autosuspend function for tm2
Solution:
enable autosuspend function for tm2
Verify:
enable autosuspend function for tm2
Change-Id: I7e4c5015979bfc34de61bbbe551a3ebd7bfd11a4
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
Pengcheng Chen [Mon, 8 Apr 2019 02:01:25 +0000 (10:01 +0800)]
ge2d: add ge2d multi plane fd support [2/2]
PD#SWPL-7421
Problem:
ge2d not support multi plane fd
Solution:
add ge2d multi plane fd support
Verify:
Verfied on G12B-W400
Change-Id: Ia8a529833d5c53a70eaa2094f8110635e4f184c1
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Pengcheng Chen [Tue, 2 Apr 2019 09:08:28 +0000 (17:08 +0800)]
gdc: add gdc multi plane fd support [1/2]
PD#SWPL-7421
Problem:
gdc output not support multi plane fd
Solution:
add gdc multi plane fd support
Verify:
Verfied on G12B-W400
Change-Id: I898c027f068f92af5101fe65487baf1dfbec7c35
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Pengcheng Chen [Sun, 28 Apr 2019 10:40:25 +0000 (18:40 +0800)]
osd: afbc decode error when loop viu1 to vdin [1/1]
PD#TV-5024
Problem:
afbc decode error when loop viu1 to vdin.
Solution:
set osd hold line to max if vinfo is dummy_panel
Verify:
Tl1 X301
Change-Id: I0ebb312d381accb1890233164f071a095310d2f1
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Jian Hu [Sun, 28 Apr 2019 10:54:39 +0000 (18:54 +0800)]
clk: tm2: add CLK_IGNORE_UNUSED flag for pcie gates [1/1]
PD#SWPL-7855
Problem:
pcie A does not work when enable alone
---hcsl_r_exen[bit29]---pcie A gate [bit3]
|
---pcie B gate [bit28]
bit29/bit28: HHI_PCIE0_PLL_CNTL1
bit3: HHI_PCIE0_PLL_CNTL5
clk core will disable unused clock, So
CLK_IGNORE_UNUSED flag is necessary for
the three gates to avoid closing.
Solution:
add CLK_IGNORE_UNUSED flag for pcie gates
Verify:
test passed on tm2 ab31
Change-Id: I1121c75ab8fb847ec2ba1f7a0975619b36b0938e
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
qingwei.xu [Sun, 5 May 2019 02:19:55 +0000 (10:19 +0800)]
ddr: enable bandwidth for tm2 64bit [1/1]
PD#SWPL-8057
Problem:
bandwidth measure on tm2 64bit is not enabled
Solution:
enable bandwidth for tm2 64bit
Verify:
AB311
Change-Id: Ia05c8c539d69d31c354f0883c1085ee48b5c903c
Signed-off-by: qingwei.xu <qingwei.xu@amlogic.com>
Luan Yuan [Tue, 30 Apr 2019 14:01:00 +0000 (22:01 +0800)]
u202: add dts-id for multi-dts in 32bit. [1/1]
PD#SWPL-7973
Problem:
upgrade failed, because can not found dts.
Solution:
change dts-id
Verify:
verify by u202
Change-Id: I9cfd85ebfda1bff60abc78bd09355f977f25f4bf
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
yicheng shen [Mon, 29 Apr 2019 09:15:01 +0000 (05:15 -0400)]
hdmirx: enable hdcp2.2 for tm2 [1/2]
PD#SWPL-7865
Problem:
TM2 hdcp2.2 can not work,esm bootup fail
Solution:
Enable Enable axi_clk.
Verify:
TM2
Change-Id: I44af6f2b5bfbe72cfdb93e1b42c47cda9c56d3a2
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
Luan Yuan [Tue, 30 Apr 2019 05:31:53 +0000 (13:31 +0800)]
fermitform: add u202 dts config for s905d2 panel. [3/3]
PD#SWPL-7973
Problem:
s905d2 panel need new projects config.
Solution:
copy dts config from u200
Verify:
no need verify
Change-Id: I37a884ae951b8c6ede7adb065239ce59dca25c3a
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Tao Zeng [Tue, 30 Apr 2019 02:56:18 +0000 (10:56 +0800)]
bandwidth: add min bandwidth read in usage_stat [1/1]
PD#SWPL-7960
Problem:
There is no min ddr bandwidth data
Solution:
Add this value in sysfs
Verify:
p212
Change-Id: I9d90476d30c0ca7789046d8d205f0802de2b4acf
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Brian Zhu [Fri, 26 Apr 2019 20:48:09 +0000 (04:48 +0800)]
vpp: sr: enable sr core0 directly for txlx [1/1]
PD#TV-3260
Problem:
Since the Super scaler on txlx has the latch function
and can not disable it. So need adjust the super scaler
on/off operation flow.
Solution:
write the enable bit of sr core0 directly, not rdma write.
Verify:
r311, verify pass
Change-Id: If1b27205cbb1c49dd6a3ad65a08e2ca1e3f04b62
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Brian Zhu [Fri, 26 Apr 2019 18:37:27 +0000 (02:37 +0800)]
vpp: increase the afbc burst len as 4 for txlx [1/1]
PD#TV-3132
Problem:
When playing 4K afbc and scaling down to small window,
the vskip is 1 and DDR freq is also lower, the display will
flicker caused by DDR bandwidth issue.
Solution:
Increase the afbc mif burst len from 2 to 4. And enable
the dmc adjustment in that case.
Verify:
r311, verify pass
Change-Id: Ia431a93f6083fd584b7e2eb14f777c5a5e7c20e7
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
nengwen.chen [Thu, 25 Apr 2019 01:59:40 +0000 (09:59 +0800)]
atv_demod: tm2: add audio gain and interrupt. [1/1]
PD#SWPL-5661, PD#SWPL-5659
Problem:
1.add gain register to control the L and R channel audio gain.
2.add atv interrupt for signal lock and unlock.
Solution:
1.add gain register to control the L and R channel audio gain.
2.add atv interrupt for signal lock and unlock.
Verify:
verified by ab301 and ab311.
Change-Id: I8a7cbe538939dd9418e27165d4c83a8f473f119b
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
Hui Zhang [Thu, 18 Apr 2019 11:18:22 +0000 (19:18 +0800)]
media: fix crash issue in codec_mm release [1/1]
PD#OTT-3314
Problem:
there is a invalid codec_mm pointer. which may cause crash
Solution:
add valid check before codec_mm release
Verify:
X301
Change-Id: Ie9b31f1a830e949a27cc58468cced8a9e4268808
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
Zhe Wang [Mon, 29 Apr 2019 10:52:30 +0000 (18:52 +0800)]
audio: add 10ms sleep before pdn enable [1/1]
PD#SWPL-7680
Problem:
mdelay will pend the system
Solution:
change mdelay to usleep_range
Verify:
HW verify
Change-Id: I8452dc7b1056378dbc6b743fc43316eccbf525a5
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
Bencheng Jing [Thu, 18 Apr 2019 13:16:56 +0000 (21:16 +0800)]
amvecm: set tm2 vpp gain offset to 13bit [1/1]
PD#SWPL-7778
Problem:
set tm2 vpp gain offset to 13bit
Solution:
set tm2 vpp gain offset to 13bit
Verify:
T962E2
Change-Id: I54ae9566050baeb73b7b1c94f87a3c43c76a2c62
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
Kees Cook [Thu, 10 Aug 2017 20:36:35 +0000 (13:36 -0700)]
Revert "pstore: Honor dmesg_restrict sysctl on dmesg dumps"
PD#SWPL-7092
This reverts commit
68c4a4f8abc60c9440ede9cd123d48b78325f7a3, with
various conflict clean-ups.
With the default root directory mode set to 0750 now, the capability
check was redundant.
Change-Id: If978c34cef8345b0ba67a038eed7d54d4f1423d6
Suggested-by: Nick Kralevich <nnk@google.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Zhe Wang [Sun, 28 Apr 2019 03:22:14 +0000 (11:22 +0800)]
audio: add 10ms delay before pdn enable [1/1]
PD#SWPL-7680
Problem:
the pwn signal is self excitable
Solution:
1)add 10ms delay before pdn enable
2)set default clk for extern codec
Verify:
HW verify
Change-Id: I031b20851ee1eeb65215075fc8abe783ceddf42b
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
Shuai Li [Sun, 28 Apr 2019 13:15:49 +0000 (21:15 +0800)]
audio: add param check for resample [1/1]
PD#SWPL-7798
Problem:
Crashed when audio resample setting params
are invalid.
Solution:
Add check method if the params is invalid.
Verify:
Tl1.
Change-Id: I1e0396be8d401c0a49ff0de9fd7f160f0c8133ca
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
Lei Yang [Fri, 19 Apr 2019 09:39:43 +0000 (17:39 +0800)]
hdmirx: fix dishNXT box blackscreen issue [1/1]
PD#SWPL-7452
Problem:
TV is no signal when turn off and turn on dishNXT box
Solution:
clear hdcp avmute status if hdcp is not start
Verify:
962X
Change-Id: I0448e46baea4f8666b2b665f6c867fecb41fb7d0
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
Yi Zhou [Wed, 17 Apr 2019 02:48:00 +0000 (10:48 +0800)]
dv: fix black screen when connecting dv TV [1/1]
PD#SWPL-7778
Problem:
black sreen when connecting dv TV
Solution:
close post matrix
open tm2 dv flag
Verify:
T962E2
Change-Id: I828b32d7bf2ef35c3f236ad9bf15964272d06dd2
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
yao liu [Fri, 26 Apr 2019 12:35:34 +0000 (08:35 -0400)]
dolby: fix Display looks abnormal problem [1/1]
PD#OTT-3006
Problem:
The width and height of DOLBY_CORE2A reg are reversed
Solution:
Setting right width and height for DOLBY_CORE2A
Verify:
raven
Change-Id: I89d1a99d00122179bb35b5853a869819e5d62ac9
Signed-off-by: yao liu <yao.liu@amlogic.com>