drm/amdgpu: Document amdgpu_crtc->otg_inst and ->event fields
Subsystems (2)
PATCH 1/1 drm/amdgpu: Document amdgpu_crtc->otg_inst and ->event fields
From: Leo Li <[email protected]>
These two fields are used by DC, and their purposes are not immediately clear.
Signed-off-by Leo Li <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +20 -0
@@ -434,7 +434,27 @@ struct amdgpu_crtc {struct hrtimer vblank_timer;enum amdgpu_interrupt_state vsync_timer_enabled; +/** +* @otg_inst: +* +* DC output timing generator instance used by this CRTC. +* +* This is used to search for a corresponding amdgpu_crtc, given +* the OTG instance. An example is interrupt handlers, where the handler +* is provided the OTG instance. +*/ int otg_inst; + +/** +* @event: +* +* Vblank event, made to reference the new CRTC state's vblank event +* during plane commit. It's used by the DC page flip interrupt handler +* to call drm_crtc_send_vblank_event(). +* +* This is needed since the current CRTC state at the time of pflip +* interrupt may not be the same as the one used during plane commit. +*/ struct drm_pending_vblank_event *event; };
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1541609791-15657-1-git-send-email-sunpeng.li-5C7GfCeVMHo@public.gmane.org
Alex Deucher
Acked-byQuoted 7 lines · On Wed, Nov 7, 2018 at 11:56 AM <[email protected]> wrote:
From: Leo Li <[email protected]>
These two fields are used by DC, and their purposes are not immediately clear.
Signed-off-by Leo Li <[email protected]>
Acked-by Alex Deucher <[email protected]>
Quoted 39 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +20
-1@@ -434,7 +434,27 @@ struct amdgpu_crtc {struct hrtimer vblank_timer;enum amdgpu_interrupt_state vsync_timer_enabled; +/** +* @otg_inst: +* +* DC output timing generator instance used by this CRTC. +* +* This is used to search for a corresponding amdgpu_crtc, given +* the OTG instance. An example is interrupt handlers, where the handler +* is provided the OTG instance. +*/ int otg_inst; + +/** +* @event: +* +* Vblank event, made to reference the new CRTC state's vblank event +* during plane commit. It's used by the DC page flip interrupt handler +* to call drm_crtc_send_vblank_event(). +* +* This is needed since the current CRTC state at the time of pflip +* interrupt may not be the same as the one used during plane commit. +*/ struct drm_pending_vblank_event *event; }; --2.7.4
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx