PD#155696:
1. if no res & have cma_res, may crashed on
codec_mm alloc.
2. if cma res is not set the has_res, some module may alloc failed
on no res.
3. scatter memory fast wait used complete.
Change-Id: I2104ec948762ca587d0c90f221c811de6bc4d3c4
Signed-off-by: Zhi Zhou <zhi.zhou@amlogic.com>
This reverts commit fe912ab314899e3add2993c630c15d28638a3348.
This reverts part commit of ARM and reserved original commit in upstread.
Change-Id: I4e0f39bee86342cd89aa2fb8f10c81f92e4b1985
Signed-off-by: binqi.zhang <binqi.zhang@amlogic.com>
PD#154595: fixed multi ch pcm out to IEC raw out mute issue
Change-Id: I2a6643975bea0970e9fecbd59cc6282886eacdbb
Signed-off-by: LianLian Zhu <lianlian.zhu@amlogic.com>
PD#156236: mm: correct page stat API
Using mod_zone_page_state instead of __mod_zone_page_state to
avoid SMP warning of __this_cpu_preempt_check
Change-Id: I3f95768beabf5d330d13189d189b32aef39448cd
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
PD#154260: mm: show more informations when catch user fault
1. show pfn for all registers;
2. show memory around all registers;
3. show vma maps around pc/lr.
Change-Id: Ibc92f3aea2727c749c3e865495ca7a4920d4e7a0
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
PD#156236: mm: fix deadlock due to too_many_isolated
When CMA allocating, allocation task may be dead lock
in following backtrace. So add a count for CMA isolated
to avoid this case.
[<0000000000000000>] __switch_to+0x98/0xac
[<0000000000000000>] congestion_wait+0xa0/0x188
[<0000000000000000>] shrink_inactive_list+0x4a0/0x528
[<0000000000000000>] shrink_node_memcg.isra.71+0x684/0x714
[<0000000000000000>] shrink_node+0x74/0x1e0
[<0000000000000000>] try_to_free_pages+0x1bc/0x4c0
[<0000000000000000>] __alloc_pages_nodemask+0x57c/0xcf4
[<0000000000000000>] alloc_migrate_target+0x2c/0x34
[<0000000000000000>] migrate_pages+0xe0/0x890
[<0000000000000000>] __alloc_contig_migrate_range+0x94/0x1a4
[<0000000000000000>] cma_boost_work_func+0xd0/0x168
[<0000000000000000>] process_one_work+0x140/0x418
[<0000000000000000>] worker_thread+0x154/0x480
[<0000000000000000>] kthread+0x10c/0x120
[<0000000000000000>] ret_from_fork+0x10/0x50
Change-Id: Ib1c5d8f25ac966170292ed6b6f078e8b447e99a8
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
PD#152848: fix the system crash
When box authenticate with TV under hdcp 2.2, the hdcp 2.2 must
be reset in syspend function.
Change-Id: I0c85070893b7a2e17606b05c2df068a8ceb8f774
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
PD#153134:to solve dEQP-EGL.functional.get_frame_timestamps issues
sync_file_ioctl_fence_info has a race between filling the status
of the underlying fences and the overall status of the sync_file.
If fence transitions in the time frame between its sync_fill_fence_info
and the later dma_fence_is_signaled for the sync_file, the returned
information is inconsistent showing non-signaled underlying fences but
an overall signaled state.
This patch changes sync_file_ioctl_fence_info to track what has been
encoded and using that as the overall sync_file status.
Change-Id: I8d785bb04510be99e250dbd017eef883faca147b
Tested-by: Vamsidhar Reddy Gaddam <vamsidhar.gaddam@arm.com>
Signed-off-by: John Einar Reitan <john.reitan@arm.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Gustavo Padovan <gustavo@padovan.org>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171009134936.27219-1-john.reitan@arm.com
PD#155205: storage: fix the source of register base
The register base get from dts now,no longer from macro.
Change-Id: Ic763db5a9380396cfbfde0333d85ffb08c601713
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
PD#155588: hdmitx: fix a series of ddc issues
1. 149535 issue sw i2c transaction to take advantage of SDA recovery logic
2. 150784/152582 add I2C HW REACTIVE when RX serves as master
3. 151088 using only scdc.tmds.configuration
4. 152584 reduce ddc activities and add mutex to sequence ddc
Change-Id: I3f69a0fbd04ce54c4f794271fce38753f63f3b5f
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
PD#152306: dont display frames which are dropped by apk
PD#152104: video layer keep last frame
Change-Id: I271ee268b8d768fe42cd60b57d1f10b12fac7fa6
Signed-off-by: Yao.Liu <yao.liu@amlogic.com>
PD#153294: hdmitx: add the hdmi change mode op
add switch when changing display mode
if the display mode is NULL, the switch can't be opened.
Change-Id: I2a0bdbda6950c401ad3a7b29d810976436558c14
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
PD#154679: watchdog: meson-wdt: fix reboot notify to stop reset
In some cases, the watchdog reboot notify will not disable
watchdog. The watchdog reset workqueue will continue work
in the first cpu that invokes panic(oops). So the hardware
watchdog will not reboot.
Cancel the delayed workqueue to stop reset the watchdog in
reboot notify.
And move the print message to the right location.
Change-Id: I7d85d49f2f5d780f7c5f2612e64494e77957dfff
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
PD#153134: some dEQP cases should always use direct render
Change-Id: I3d65b7c34e948e5a1f6d5d745713c2caa3eb89d5
Signed-off-by: binqi.zhang <binqi.zhang@amlogic.com>
PD#154195: enable sdcardfs file system support
CONFIG_SDCARD_FS=y
Change-Id: I4ec6cac934eaabb3c7c5b0320ded63debc1a8f78
Signed-off-by: Baocheng Sun <baocheng.sun@amlogic.com>
PD#153602: fix the bad block awareness error of K9F4G08U0F
The slc-nand K9F4G08U0F has a factory bug, we need send a pre-command
before we send read command to get the block status.
Change-Id: I6468f05d8cf984d70f40abd997395d740c22d5e4
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
PD#154762: cvbs should be closed when cvbs module disabled
Change-Id: Id1dc4ae24e4eea7671ebffbc0f7767a6b4cc9100
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
This patch adds a new socket option, TCP_FASTOPEN_CONNECT, as an
alternative way to perform Fast Open on the active side (client). Prior
to this patch, a client needs to replace the connect() call with
sendto(MSG_FASTOPEN). This can be cumbersome for applications who want
to use Fast Open: these socket operations are often done in lower layer
libraries used by many other applications. Changing these libraries
and/or the socket call sequences are not trivial. A more convenient
approach is to perform Fast Open by simply enabling a socket option when
the socket is created w/o changing other socket calls sequence:
s = socket()
create a new socket
setsockopt(s, IPPROTO_TCP, TCP_FASTOPEN_CONNECT …);
newly introduced sockopt
If set, new functionality described below will be used.
Return ENOTSUPP if TFO is not supported or not enabled in the
kernel.
connect()
With cookie present, return 0 immediately.
With no cookie, initiate 3WHS with TFO cookie-request option and
return -1 with errno = EINPROGRESS.
write()/sendmsg()
With cookie present, send out SYN with data and return the number of
bytes buffered.
With no cookie, and 3WHS not yet completed, return -1 with errno =
EINPROGRESS.
No MSG_FASTOPEN flag is needed.
read()
Return -1 with errno = EWOULDBLOCK/EAGAIN if connect() is called but
write() is not called yet.
Return -1 with errno = EWOULDBLOCK/EAGAIN if connection is
established but no msg is received yet.
Return number of bytes read if socket is established and there is
msg received.
The new API simplifies life for applications that always perform a write()
immediately after a successful connect(). Such applications can now take
advantage of Fast Open by merely making one new setsockopt() call at the time
of creating the socket. Nothing else about the application's socket call
sequence needs to change.
Backport of upstream commit 19f6d3f3c8 ("net/tcp-fastopen: Add new API
support")
Bug: 63449462
Test: Tests in https://android-review.googlesource.com/535357/ pass
Change-Id: Icc181febd74e3117c2fc835d7ed935e107b5815e
Signed-off-by: Wei Wang <weiwan@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry-picked from commit 19f6d3f3c8)
Remove __sk_dst_reset() in the failure handling because __sk_dst_reset()
will eventually get called when sk is released. No need to handle it in
the protocol specific connect call.
This is also to make the code path consistent with ipv4.
Bug: 63449462
Test: Tests in https://android-review.googlesource.com/535357/ pass
Change-Id: I91d59909d1482b093904bd92703fc58af34d570f
Signed-off-by: Wei Wang <weiwan@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry-picked from commit 25776aa943)
PD#153120: mm: close debug print of cma alloc
These print message may print a lot when video playback
And cause it not smooth.
Change-Id: I77920e902189ab4aa1ec594d351749ee4aa3a3ee
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
Using WALT, the utilisation of a task is computed with a resolution
scaling factor that has been used inconsistently in the code with either
hardcoded values or macros (NICE_0_LOAD_SHIFT in this case). Changes in
these macros (as the 32 to 64 bits resolution shift of 2159197d66)
happened to break the utilisation calculation wherever they have been
used whilst results remained correct in other places. This commit fixes
this issue by using SCHED_CAPACITY_SCALE as resolution scaling factor
consistently.
Change-Id: Ic5418f8a5dfc455a22bafbebb4142b4665b61c6f
Signed-off-by: Quentin Perret <quentin.perret@arm.com>
PD#152816: osd: fix logo error when plugin hdmi after power on
by exchange osd and vout probe
Change-Id: Ieb89d12a975813dd238bbe4fa805bc2bcfdd682a
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>