drm/amd/display: Move all linux includes into OS typesMove all linux includes into OS types.Acked-by: Alan Liu <HaoPing.Liu@amd.com>Signed-off-by: Harry Wentland <harry.wentland@amd.com>Tested-
drm/amd/display: Move all linux includes into OS typesMove all linux includes into OS types.Acked-by: Alan Liu <HaoPing.Liu@amd.com>Signed-off-by: Harry Wentland <harry.wentland@amd.com>Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
show more ...
drm/amd/display: cleanup of construct and destruct funcs[Why]Too many construct functions which makes searchingdifficult, especially on some debuggers.[How]Append all construct and destruct fu
drm/amd/display: cleanup of construct and destruct funcs[Why]Too many construct functions which makes searchingdifficult, especially on some debuggers.[How]Append all construct and destruct functions with dcnnumber and object type to make each construct functionname uniqueSigned-off-by: Anthony Koo <Anthony.Koo@amd.com>Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd: drop use of drmp.h in os_types.hDrop use of the deprecated drmP.h from display/dc/os_types.hFix all fallout after this change.Most of the fixes was adding a missing include of vmalloc.h
drm/amd: drop use of drmp.h in os_types.hDrop use of the deprecated drmP.h from display/dc/os_types.hFix all fallout after this change.Most of the fixes was adding a missing include of vmalloc.h.Signed-off-by: Sam Ravnborg <sam@ravnborg.org>Reviewed-by: Alex Deucher <alexander.deucher@amd.com>Cc: "Christian König" <christian.koenig@amd.com>Cc: "David (ChunMing) Zhou" <David1.Zhou@amd.com>Cc: David Airlie <airlied@linux.ie>Cc: Daniel Vetter <daniel@ffwll.ch>Link: https://patchwork.freedesktop.org/patch/msgid/20190609220757.10862-4-sam@ravnborg.org
drm/amd/display: In VRR mode, do DRM core vblank handling at end of vblank. (v2)In VRR mode, proper vblank/pageflip timestamps can only be computedafter the display scanout position has left front
drm/amd/display: In VRR mode, do DRM core vblank handling at end of vblank. (v2)In VRR mode, proper vblank/pageflip timestamps can only be computedafter the display scanout position has left front-porch. Thereforedelay calls to drm_crtc_handle_vblank(), and thereby calls todrm_update_vblank_count() and pageflip event delivery, to after theend of front-porch when in VRR mode.We add a new vupdate irq, which triggers at the end of the vupdateinterval, ie. at the end of vblank, and calls the core vblank handlerfunction. The new irq handler is not executed in standard non-VRRmode, so vblank handling for fixed refresh rate mode is identicalto the past implementation.v2: Implement feedback by Nicholas and Paul Menzel.Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>Acked-by: Harry Wentland <harry.wentland@amd.com>Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/dc: include new ip and ip_offset headersSigned-off-by: Hawking Zhang <Hawking.Zhang@amd.com>Acked-by: Alex Deucher <alexander.deucher@amd.com>Signed-off-by: Alex Deucher <alexander.deuche
drm/amd/dc: include new ip and ip_offset headersSigned-off-by: Hawking Zhang <Hawking.Zhang@amd.com>Acked-by: Alex Deucher <alexander.deucher@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/include:cleanup vega10 header files.Remove asic_reg/vega10 folder.Signed-off-by: Feifei Xu <Feifei.Xu@amd.com>Reviewed-by: Christian König <christian.koenig@amd.com>Signed-off-by: Alex
drm/amd/include:cleanup vega10 header files.Remove asic_reg/vega10 folder.Signed-off-by: Feifei Xu <Feifei.Xu@amd.com>Reviewed-by: Christian König <christian.koenig@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/include:cleanup vega10 dce header files.Cleanup asic_reg/vega10/DC folder.Remove dce_12_0_default.h.Signed-off-by: Feifei Xu <Feifei.Xu@amd.com>Reviewed-by: Christian König <christian.ko
drm/amd/include:cleanup vega10 dce header files.Cleanup asic_reg/vega10/DC folder.Remove dce_12_0_default.h.Signed-off-by: Feifei Xu <Feifei.Xu@amd.com>Reviewed-by: Christian König <christian.koenig@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
amdgpu/dc: fix construct return values on irq service.This just removes more unused return/errors paths.Signed-off-by: Dave Airlie <airlied@redhat.com>Reviewed-by: Harry Wentland <harry.wentland
amdgpu/dc: fix construct return values on irq service.This just removes more unused return/errors paths.Signed-off-by: Dave Airlie <airlied@redhat.com>Reviewed-by: Harry Wentland <harry.wentland@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: Use kernel alloc/freeAbstractions are frowned upon.cocci script:virtual contextvirtual patchvirtual orgvirtual report@@expression ptr;@@- dm_alloc(ptr)+ kzalloc(ptr, G
drm/amd/display: Use kernel alloc/freeAbstractions are frowned upon.cocci script:virtual contextvirtual patchvirtual orgvirtual report@@expression ptr;@@- dm_alloc(ptr)+ kzalloc(ptr, GFP_KERNEL)@@expression ptr, size;@@- dm_realloc(ptr, size)+ krealloc(ptr, size, GFP_KERNEL)@@expression ptr;@@- dm_free(ptr)+ kfree(ptr)v2: use GFP_KERNEL, not GFP_ATOMIC. add cocci scriptReviewed-by: Alex Deucher <alexander.deucher@amd.com>Signed-off-by: Harry Wentland <harry.wentland@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: use CRTC_VERTICAL_INTERRUPT0 as VBLANK trigger.VBLANK interrupt is driven bu line buffer vcounter which isahead of CRTC vcounter. Use an interrupt that fires at the actualCRTC vb
drm/amd/display: use CRTC_VERTICAL_INTERRUPT0 as VBLANK trigger.VBLANK interrupt is driven bu line buffer vcounter which isahead of CRTC vcounter. Use an interrupt that fires at the actualCRTC vblank start boundry.Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>Acked-by: Harry Wentland <Harry.Wentland@amd.com>Reviewed-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: Add DCE12 irq supportSigned-off-by: Harry Wentland <harry.wentland@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>