Skip to contentSkip to conversation

drm/amdgpu: Document amdgpu_crtc->otg_inst and ->event fields

PATCH In review [email protected] 2 participants 2 messages Nov 7, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +20 -0
index f91a9bd..dd4366c 100644
@@ -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

Acked-by
#2 lore raw
Quoted 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.

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
index f91a9bd..dd4366c 100644
@@ -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