[V2][PATCH 2/2] drm: xlnx: consolidate the functions which programming AUDIO_VIDEO_SELECT register

2021-05-18 Thread quanyang . wang
From: Quanyang Wang For now, the functions zynqmp_disp_avbuf_enable/disable_audio and zynqmp_disp_avbuf_enable/disable_video are all programming the register AV_BUF_OUTPUT_AUDIO_VIDEO_SELECT to select the output for audio or video. And in the future, many drm properties (like video_tpg

[V2][PATCH 1/2] drm: xlnx: add is_layer_vid() to simplify the code

2021-05-18 Thread quanyang . wang
From: Quanyang Wang Add a new function is_layer_vid() to simplify the code that judges if a layer is the video layer. Acked-by: Paul Cercueil Signed-off-by: Quanyang Wang --- drivers/gpu/drm/xlnx/zynqmp_disp.c | 39 +- 1 file changed, 22 insertions(+), 17

[V2][PATCH 0/2] drm: xlnx: add some functions

2021-05-18 Thread quanyang . wang
From: Quanyang Wang Hi all, The patch "drm: xlnx: add is_layer_vid() to simplify the code" is to simplify the code which judge the layer type. The patch "drm: xlnx: consolidate the functions which programming AUDIO_VIDEO_SELECT register" is to consolidate the code that c

[PATCH 2/2] drm: xlnx: consolidate the functions which programming AUDIO_VIDEO_SELECT register

2021-05-13 Thread quanyang . wang
From: Quanyang Wang For now, the functions zynqmp_disp_avbuf_enable/disable_audio and zynqmp_disp_avbuf_enable/disable_video are all programming the register AV_BUF_OUTPUT_AUDIO_VIDEO_SELECT to select the output for audio or video. And in the future, many drm properties (like video_tpg

[PATCH 1/2] drm: xlnx: add is_layer_vid() to simplify the code

2021-05-13 Thread quanyang . wang
From: Quanyang Wang Add a new function is_layer_vid() to simplify the code that judges if a layer is the video layer. Signed-off-by: Quanyang Wang --- drivers/gpu/drm/xlnx/zynqmp_disp.c | 39 +- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a

[PATCH 0/2] drm: xlnx: add some functions

2021-05-13 Thread quanyang . wang
From: Quanyang Wang The patch "drm: xlnx: add is_layer_vid() to simplify the code" is to simplify the code which judge the layer type. The patch "drm: xlnx: consolidate the functions which programming AUDIO_VIDEO_SELECT register" is to consolidate the code that can config

[V2][PATCH] drm: xlnx: zynqmp: release reset to DP controller before accessing DP registers

2021-03-22 Thread quanyang . wang
From: Quanyang Wang When insmod zynqmp-dpsub.ko after rmmod it, system will hang with the error log as below: root@xilinx-zynqmp:~# insmod zynqmp-dpsub.ko [ 88.391289] [drm] Initialized zynqmp-dpsub 1.0.0 20130509 for fd4a.display on minor 0 [ 88.529906] Console: switching to colour

[PATCH] drm: xlnx: zynqmp: release reset to DP controller before accessing DP registers

2021-03-20 Thread quanyang . wang
From: Quanyang Wang When insmod zynqmp-dpsub.ko after rmmod it, system will hang with the error log as below: root@xilinx-zynqmp:~# insmod zynqmp-dpsub.ko [ 88.391289] [drm] Initialized zynqmp-dpsub 1.0.0 20130509 for fd4a.display on minor 0 [ 88.529906] Console: switching to colour

[PATCH] drm: xlnx: call pm_runtime_get_sync before setting pixel clock

2021-03-09 Thread quanyang . wang
From: Quanyang Wang The Runtime PM subsystem will force the device "fd4a.zynqmp-display" to enter suspend state while booting if the following conditions are met: - the usage counter is zero (pm_runtime_get_sync hasn't been called yet) - no 'active' children (no zy

[RESEND][PATCH] drm/tilcdc: send vblank event when disabling crtc

2021-02-09 Thread quanyang . wang
From: Quanyang Wang When run xrandr to change resolution on Beaglebone Black board, it will print the error information: root@beaglebone:~# xrandr -display :0 --output HDMI-1 --mode 720x400 [drm:drm_crtc_commit_wait] *ERROR* flip_done timed out [drm:drm_atomic_helper_wait_for_dependencies

[PATCH] drm/xlnx: fix kmemleak by sending vblank_event in atomic_disable

2021-02-02 Thread quanyang . wang
From: Quanyang Wang When running xrandr to change resolution of DP, the kmemleak as below can be observed: unreferenced object 0x00080a351000 (size 256): comm "Xorg", pid 248, jiffies 4294899614 (age 19.960s) hex dump (first 32 bytes): 98 a0 bc 01 08 00 ff ff 01 00 00 00 0

[PATCH] drm/tilcdc: send vblank event when disabling crtc

2021-01-29 Thread quanyang . wang
From: Quanyang Wang When run xrandr to change resolution on Beaglebone Black board, it will print the error information: root@beaglebone:~# xrandr -display :0 --output HDMI-1 --mode 720x400 [drm:drm_crtc_commit_wait] *ERROR* flip_done timed out [drm:drm_atomic_helper_wait_for_dependencies