Commit Graph

649350 Commits

Author SHA1 Message Date
Yong Qin
3814b0ecbc cec: cec a bus busy cause system hold [1/1]
PD#SWPL-23547

Problem:
when spin lock, recursive call will cause system hold.

Solution:
void recussive calling.

Verify:
P21AS-S905X

Signed-off-by: Yong Qin <yong.qin@amlogic.com>
Change-Id: I84260b159211995e30c0ac14205895b851fdff1f
2020-12-17 17:17:51 +09:00
junliang zhou
e0ac309ca6 Video: add pts rollback detect [1/1]
PD#SWPL-23306

Problem:
For the OTT-9111, when application start playing
before dvb stream rollback, the video pts is
bigger than audio because audio has been dropped
the tail of the stream. Video can`t toggle frame
in A-master mode.

Solution:
Force video toggle the video frame if meet the
tail frame of the stream.I made a parameter to
set the threshold between the audio and video pts.
This solution Will influence the stream which has
pts error, need QA to verify that stream on DVB
environment.

Verify:
S905X2

Change-Id: Idc8f050cdb9f5d8c878f3570e2213a5e1f309ca1
Signed-off-by: junliang zhou <junliang.zhou@amlogic.com>
2020-12-17 17:17:51 +09:00
Cao Jian
f92db12964 osd: add afbc flag for getting capbility [1/1]
PD#SWPL-22030

Problem:
add afbc flag for getting capbility

Solution:
add this flag support

Verify:
on g12b w400

Change-Id: I4f6efec85e3a62c484388821c24bbdd7eee06251
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2020-12-17 17:17:51 +09:00
Luan Yuan
884f308afd hdr_policy: init hdr_policy state by bootargs. [2/2]
PD#SWPL-22912

Problem:
when set hdr_policy to 1, but this value is 0 in boot init.

Solution:
init hdr_policy state by hdr_policy value in bootargs.

Verify:
verify by newton.

Change-Id: I8abb3969d6cdf28ea028317348ae060cda216f7f
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2020-12-17 17:17:50 +09:00
Zhizhong Zhang
3d33b75412 avsync: video_stop don't clear the tsync_pcr_inited_flag [1/2]
PD#SWPL-14955

Problem:
Pcm playback is mute after replaying multiple times

Solution:
Don't clear the tsync_pcr_inited_flag when video stop

Verify:
Verified ok on patch-build

Change-Id: I1cf76d2dd8a56ce85c62b0c3b8b7782223b1d282
Signed-off-by: Zhizhong Zhang <zhizhong.zhang@amlogic.com>
2020-12-17 17:17:50 +09:00
Zhengrong.Zhu
b8f9c3739e hdmitx: Dolby Vision support using EMP transfer metadata and vsif [1/1]
PD#SWPL-19839

Problem:
Dolby Vision support using EMP transfer metadata and vsif

Solution:
Add code used to EMP transfer metadata and vsif

Verify:
verify on the board of U212

Change-Id: I8720327781a913a83ccbe0511ccf3e5db46ce0e7
Signed-off-by: Zhengrong Zhu <zhengrong.zhu@amlogic.com>
Signed-off-by: robin.zhu <robin.zhu@amlogic.com>
2020-12-17 17:17:50 +09:00
Evoke Zhang
272d40b6ea lcd: support resume_type to avoid dual display interfere each other [1/1]
PD#SWPL-19365

Problem:
panel can't display when first resume by dual display mode,
without kernel printk log print.
lcd workqueue resume will effect each other for dual display.

Solution:
change lcd driver to directly resume for dual display

Verify:
ac200

Change-Id: I4638a9b526625693ed97070a0967b37328617ae6
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2020-12-17 17:17:50 +09:00
Brian Zhu
e24d27e49f vpp: add sar_width/sar_height check when toggle frame [2/2]
PD#SWPL-22711

Problem:
When toggle frame, vpp did not check sar_width/sar_height
change. It caused that vpp setting did not update when only
sar_width/sar_height information changed.

Solution:
Add sar_width/sar_height check

Verify:
Verified on u212

Change-Id: I68c0c1d0e51ec0c537296b3ef5d26dcc4ca0c6d8
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2020-12-17 17:17:50 +09:00
Jihong Sui
ba9742df1f deinterlace: add change condition [1/1]
PD#SWPL-21344

Problem:
DI timeout when play a spical video

Solution:
add change condition

Verify:
u212

Change-Id: I1e674ae0349546021ea9514a34cf3619d3ce3259
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2020-12-17 17:17:50 +09:00
Yong Qin
0a07e36deb cec: decrease cec read blocking time when no cec msg [1/1]
PD#SWPL-22371

Problem:
cec read blocking 4s when no msg in. sometime will cause
watchdog reset.

Solution:
de-crease the time.

Verify:
g12a

Signed-off-by: Yong Qin <yong.qin@amlogic.com>
Change-Id: I18c83b8fd7c4cacc07c4d0ee1ca2ecdf179492e9
2020-12-17 17:17:50 +09:00
qiang.liu
f5b01375bf cvbsout: add NTSC performance support [2/2]
PD#SWPL-17248

Problem:
don't support NTSC performance

Solution:
1.add NTSC performance support
2.fix cvbsout set mode mistake for viu_mux

Verify:
u212

Change-Id: Ib2315d6403bb526785d3398fc8d7b6bf60dd5a7b
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2020-12-17 17:17:40 +09:00
Brian Zhu
ffb2a5cb24 deinterlace: fix display abnormal with progressive video [1/1]
PD#SWPL-22415

Problem:
Config DI mif wrong when processing progressive frame

Solution:
Using right vf->type as condition.

Verify:
Verified on u212

Change-Id: I1f24385967bc00039702d2d873b37b6e12241b13
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2020-12-17 17:14:59 +09:00
Brian Zhu
c015909998 deinterlace: support VIU_FIELD interlace map from decode [1/1]
PD#SWPL-22140

Problem:
DI don't support VIU_FIELD interlace map from decode

Solution:
Support it

Verify:
Verified on u212

Change-Id: Ibd34475881a36eb0891fd11fff091d4bbb233b50
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2020-12-17 17:14:59 +09:00
Gongwei Chen
7028c46727 Revert "deinterlace: support VIU_FIELD interlace map from decode [1/1]"
This reverts commit ef725b8fade10bb45e07954e8ea1f74af3d2efad.
2020-12-17 17:14:59 +09:00
Zongdong Jiao
98cc814c54 hdmitx: keep authenticated status during suspend [2/2]
PD#SWPL-16910

Problem:
Need keeping authenticated status during suspend

Solution:
Add a workround to keep status
Disable the NULL packet

Verify:
G12/SM1/TM2

Change-Id: I2f08c086a4289de9f988425bc5ad9deb740c4db4
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2020-12-17 17:14:59 +09:00
Zongdong Jiao
1b0db55235 hdcptx14: add non short read [2/2]
PD#SWPL-19969

Problem:
current the Ri is short reading

Solution:
add non short read method

Verify:
G12

Change-Id: I0815910062ca8422acddc574fa293c9b3a280bbe
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2020-12-17 17:14:59 +09:00
Brian Zhu
35fd796cb5 deinterlace: support VIU_FIELD interlace map from decode [1/1]
PD#SWPL-22140

Problem:
DI don't support VIU_FIELD interlace map from decode

Solution:
Support it

Verify:
Verified on u212

Change-Id: Ibd34475881a36eb0891fd11fff091d4bbb233b50
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2020-12-17 17:14:58 +09:00
Tao Zeng
2213e5d17f cpuhotplug: offline workqueue before close cpu [1/1]
PD#TV-7079

Problem:
Deadlock happened when burning cpu at high temperature.
 1486                        1916
schedule                    schedule
schedule_preempt_disabled   schedule_timeout
__mutex_lock_slowpath       wait_for_common
mutex_lock                  wait_for_completion

cpu_hotplug_set_max --wait hpg.mutex

                            cpuhp_kick_ap_work   --wait flush work
cpufreq_set_max_cpu_num     _cpu_down            --hold hpg.mutex
cpucore_set_cur_state       do_cpu_down
thermal_cdev_update         cpu_down
power_actor_set_power       cpu_subsys_offline
power_allocator_throttle    device_offline
handle_thermal_trip         cpu_hotplug_thread
thermal_zone_device_update  kthread
thermal_zone_device_check   ret_from_fork
process_one_work
worker_thread    --It's a work
kthread
ret_from_fork

Solution:
Close work queue before hold lock

Verify:
T972

Change-Id: I557281a1674bd67472b0655e4f1ba409ffead42f
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-12-17 17:14:58 +09:00
binqi zhang
f34d9f958e ion: fix deadlock in ion driver [1/2]
PD#SWPL-17365

Problem:
There exits deadlock between ion_client_destroy
and ion_debug_heap_show.
ion_client_destroy will take debugfs_mutex and then
call debugfs_remove_recursive, which will wait for
the finish of debugfs_srcu's GP.
sys_read will enter debugfs_srcu'critical section,
then ion_debug_heap_show will try to get debugfs_mutex.
At last, deadlock occurs.

Solution:
change mutex_unlock place in ion_client_destroy,
don't let the mutex lock synchronize_srcu.

Verify:
autoreboot test on tl1

Change-Id: I7008a6bf21421ab08d84754ae52d0840e53900c9
Signed-off-by: binqi zhang <binqi.zhang@amlogic.com>
2020-12-17 17:14:41 +09:00
binqi zhang
c543f0fd47 ion: fix race condition in ion driver [1/1]
PD#SWPL-17365

Problem:
There are race condition between ion_client_destroy
and ion_debug_heap_show after adding memtrack function

Solution:
move debugfs_mutex to protect the ion_debug_heap_show

Verify:
autoreboot test on tl1

Change-Id: Ife30539426a003946db464bb7349746d991c6f36
Signed-off-by: binqi zhang <binqi.zhang@amlogic.com>
2020-12-17 17:13:41 +09:00
Zhizhong Zhang
5221e9d5db avsync: Use the video start pts to init pcr [3/3]
PD#SWPL-21670

Problem:
Play from beginning,it will get stuck for a while

Solution:
Use the video start pts to init pcr if audio invalid

Verify:
Verified ok on patch-build

Change-Id: I0673d811889cb6b9ae3301355f09b268725d472d
Signed-off-by: Zhizhong Zhang <zhizhong.zhang@amlogic.com>
2020-12-17 17:11:55 +09:00
jintao xu
0959087c0c ppmgr: fix omx freeze when reset [1/1]
PD#SWPL-20851

Problem:
omx can not set omx pts after reset

Solution:
set omx pts after reset

Verify:
U212

Change-Id: I582e5696f14b50bb774e18ef8295af5b4f121501
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2020-12-17 17:10:41 +09:00
Zhizhong Zhang
95532d1b78 avsync: Use first_vpts to init pcr when audio in invalid [1/2]
PD#SWPL-21670

Problem:
Play from beginning will stuck

Solution:
Use first_vpts to init pcr instead of the invalid audio pts
Merge the SWPL-18995,SWPL-20085,SWPL-21122,SWPL-21117 patch

Verify:
Verified ok on patch-build

Signed-off-by: Zhizhong Zhang <zhizhong.zhang@amlogic.com>
Change-Id: I1bbd3a94b0c17f104eeb67c8f8ba528f2a37fdf4
2020-12-17 16:55:55 +09:00
jintao xu
860f4fc806 ppmgr: free_q len is 0 when dec reset [1/1]
PD#SWPL-20253

Problem:
free_q len is 0 when dec reset

Solution:
reset free_q after reg

Verify:
U212

Change-Id: Icfb5e36cb13198bece0710aeafae6f02d3d26f7d
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2020-12-17 16:54:48 +09:00
Zhengrong.Zhu
8267954ee9 hdmitx: null pointer in hdmitx_set_vsif_pkt when driver early suspend [1/1]
PD#SWPL-19636

Problem:
null pointer in hdmitx_set_vsif_pkt when driver early suspend

Solution:
Check the pointer, if the pointer is null then use the default val.

Verify:
verify on the board of U212

Change-Id: I106ba2b72843cf1aa4ae15bcd7b1bbbda4fa6a71
Signed-off-by: Zhengrong Zhu <zhengrong.zhu@amlogic.com>
2020-12-17 16:53:35 +09:00
Zhengrong.Zhu
3af975a114 hdmitx: Please add the debug info of hdmitx : hdmitx [1/1]
PD#SWPL-19062

Problem:
Please add the debug info of hdmitx

Solution:
add the debug info of hdmitx

Verify:
verify on the board of U212

Change-Id: Ib6ce0ec6f9388e102b7d31b645a2d6d105058178
Signed-off-by: Zhengrong Zhu <zhengrong.zhu@amlogic.com>
2020-12-17 16:52:55 +09:00
zhenxin.pu
fcb745109a Thermal: SM1: thermal driver print error [1/2]
PD#SWPL-18939

Problem:
1.read gpupp failed
2.binding cdev gpufreq failed

Solution:
1.add gpupp parameter and change the min state of gpufreq
2.put part of sm1 thermal dts parameter in dtsi

Verify:
S905X3_AC214

Change-Id: I364fabf05d606ee82bbe8cb30b40dae5063a0b00
Signed-off-by: zhenxin.pu <zhenxin.pu@amlogic.com>
2020-12-17 16:51:41 +09:00
Luke go
d897226bb1 Merge changes Id1932552,I2ceb31b9,Ie9d2325e,Id0262986,Idd344270, ... into odroidg12-4.9.y-android
* changes:
  ODROID-COMMON: arm64/dts: move can0 node to each overlay directory
  ODROID-COMMON: arm64/dts: Extract spidev node from main dts to spi0 dtbo
  ODROID-COMMON: arm64/dts: Rename uart DTBOs to use numerical order
  ODROID-COMMON: arm64/dts: move onewire node to each overlay directory
  ODROID-C4/N2: fix to remove compile warning of 'Warning (reg_format): "reg" property in ...'
  ODROID-COMMON: arm64/dts: Move peripheral nodes from dts to each dtbos.
  ODROID-COMMON: arm64/dts: Support device tree overlay.
2020-06-11 18:04:21 +09:00
Chris
b64cf4e711 Merge "Revert "Revert "dts: add video11 and video12 for screencontrol [2/6]""" into odroidg12-4.9.y-android 2020-06-11 17:54:28 +09:00
Chris
11713f2000 Merge "dv: fix first frame garbage with dual dv [1/1]" into odroidg12-4.9.y-android 2020-06-11 17:54:19 +09:00
Chris
e32b7e748f Merge "dv: do not use internal chip_id function by other modules [1/1]" into odroidg12-4.9.y-android 2020-06-11 17:54:13 +09:00
Chris
92ca8a5281 Merge "hdmitx: The logo is displayed twice during the restart process [1/1]" into odroidg12-4.9.y-android 2020-06-11 17:54:07 +09:00
Chris
f4e237a563 Merge "ion: fix deadlock in ion driver [1/2]" into odroidg12-4.9.y-android 2020-06-11 17:54:00 +09:00
Chris
bc92884ee6 Merge "ion: fix race condition in ion driver [1/1]" into odroidg12-4.9.y-android 2020-06-11 17:53:54 +09:00
Chris
8994529afc Merge "tsync_pcr: need to set firstvpts when video start. [1/1]" into odroidg12-4.9.y-android 2020-06-11 17:53:48 +09:00
Chris
5883f8287d Merge "avsync: Use the video start pts to init pcr [3/3]" into odroidg12-4.9.y-android 2020-06-11 17:53:41 +09:00
Chris
91304b265a Merge "usb: usb C port bad recognition rate more than 3%. [1/1]" into odroidg12-4.9.y-android 2020-06-11 17:45:02 +09:00
Chris
58e7ec04c3 Merge "display: add force output mode feature [1/1]" into odroidg12-4.9.y-android 2020-06-11 17:44:49 +09:00
Chris
d71e2d11b4 Merge "ppmgr: fix omx freeze when reset [1/1]" into odroidg12-4.9.y-android 2020-06-11 17:44:43 +09:00
Chris
d5699b2ed4 Merge "hdmitx: fix mismatch between dv_cap and dv_cap2 [1/1]" into odroidg12-4.9.y-android 2020-06-11 17:44:36 +09:00
Chris
3748f8b42f Merge "hdmitx: add the real sysfs 'dv_cap2' for hdr_priority [1/1]" into odroidg12-4.9.y-android 2020-06-11 17:44:27 +09:00
Chris
025d8ea1f3 Merge "avsync: Use first_vpts to init pcr when audio in invalid [1/2]" into odroidg12-4.9.y-android 2020-06-11 17:44:20 +09:00
Chris
92a91dc39c Merge "hdmitx: don't ignore hotplug out event [1/1]" into odroidg12-4.9.y-android 2020-06-11 17:44:13 +09:00
Chris
9640674c0c Merge "osd: osd rdma recovery table init err [1/1]" into odroidg12-4.9.y-android 2020-06-11 17:44:06 +09:00
Chris
50681c0161 Merge "hdr: fix non-standard hdr video type identify [1/1]" into odroidg12-4.9.y-android 2020-06-11 17:43:58 +09:00
Chris
9068f84ab4 Merge "memtrack: add EGL cached mem counting on AndroidP [3/3]" into odroidg12-4.9.y-android 2020-06-11 17:43:51 +09:00
Chris
35136bd113 Merge "dts: unable to wake up lcd after sleep, lcd io is used by other mode [1/1]" into odroidg12-4.9.y-android 2020-06-11 17:43:44 +09:00
Chris
5d5533e0e3 Merge "demod: optimize the loading of demod and tuner [1/3]" into odroidg12-4.9.y-android 2020-06-11 17:43:37 +09:00
Chris
0e664bce6a Merge "ppmgr: free_q len is 0 when dec reset [1/1]" into odroidg12-4.9.y-android 2020-06-11 17:43:29 +09:00
Chris
813bb8a2b3 Merge "audio: don't reset spdifout in prepare [1/1]" into odroidg12-4.9.y-android 2020-06-11 17:43:23 +09:00