* [PATCH 1/4] drm: Remove stale comment
@ 2014-12-17 15:41 Thierry Reding
2014-12-17 15:41 ` [PATCH 2/4] drm: Move IRQ related fields to proper section Thierry Reding
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Thierry Reding @ 2014-12-17 15:41 UTC (permalink / raw)
To: dri-devel
From: Thierry Reding <treding@nvidia.com>
The struct drm_connector_funcs kerneldoc refers to a part of struct
drm_crtc_funcs that no longer exists.
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
include/drm/drm_crtc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 768321ef76e8..3f607e78d361 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -463,7 +463,7 @@ struct drm_connector_state {
/**
* struct drm_connector_funcs - control connectors on a given device
- * @dpms: set power state (see drm_crtc_funcs above)
+ * @dpms: set power state
* @save: save connector state
* @restore: restore connector state
* @reset: reset connector after state has been invalidated (e.g. resume)
--
2.1.3
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/4] drm: Move IRQ related fields to proper section
2014-12-17 15:41 [PATCH 1/4] drm: Remove stale comment Thierry Reding
@ 2014-12-17 15:41 ` Thierry Reding
2014-12-17 20:41 ` Alex Deucher
2014-12-17 15:41 ` [PATCH 3/4] drm: Make drm_crtc_helper.h standalone includible Thierry Reding
` (2 subsequent siblings)
3 siblings, 1 reply; 7+ messages in thread
From: Thierry Reding @ 2014-12-17 15:41 UTC (permalink / raw)
To: dri-devel
From: Thierry Reding <treding@nvidia.com>
The .irq and .irq_enabled fields are part of the VBLANK interrupt
handling infrastructure, so move them to the appropriate section within
the structure.
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
include/drm/drmP.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 227e67c52d5e..c05289d1d5f6 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -744,8 +744,6 @@ struct drm_device {
/** \name Context support */
/*@{ */
- bool irq_enabled; /**< True if irq handler is enabled */
- int irq;
__volatile__ long context_flag; /**< Context swapping flag */
int last_context; /**< Last current context */
@@ -753,6 +751,8 @@ struct drm_device {
/** \name VBLANK IRQ support */
/*@{ */
+ bool irq_enabled;
+ int irq;
/*
* At load time, disabling the vblank interrupt won't be allowed since
--
2.1.3
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/4] drm: Make drm_crtc_helper.h standalone includible
2014-12-17 15:41 [PATCH 1/4] drm: Remove stale comment Thierry Reding
2014-12-17 15:41 ` [PATCH 2/4] drm: Move IRQ related fields to proper section Thierry Reding
@ 2014-12-17 15:41 ` Thierry Reding
2014-12-17 15:41 ` [PATCH 4/4] drm: Include drm_crtc_helper.h in DocBook Thierry Reding
2014-12-17 17:32 ` [PATCH 1/4] drm: Remove stale comment Daniel Vetter
3 siblings, 0 replies; 7+ messages in thread
From: Thierry Reding @ 2014-12-17 15:41 UTC (permalink / raw)
To: dri-devel
From: Thierry Reding <treding@nvidia.com>
The file refers to a bunch of structure declared in drm_crtc.h, so
include it to make sure the drm_crtc_helper.h header can be included
standalone.
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
include/drm/drm_crtc_helper.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/drm/drm_crtc_helper.h b/include/drm/drm_crtc_helper.h
index 7adbb65ea8ae..8608897ace10 100644
--- a/include/drm/drm_crtc_helper.h
+++ b/include/drm/drm_crtc_helper.h
@@ -39,6 +39,8 @@
#include <linux/fb.h>
+#include <drm/drm_crtc.h>
+
enum mode_set_atomic {
LEAVE_ATOMIC_MODE_SET,
ENTER_ATOMIC_MODE_SET,
--
2.1.3
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 4/4] drm: Include drm_crtc_helper.h in DocBook
2014-12-17 15:41 [PATCH 1/4] drm: Remove stale comment Thierry Reding
2014-12-17 15:41 ` [PATCH 2/4] drm: Move IRQ related fields to proper section Thierry Reding
2014-12-17 15:41 ` [PATCH 3/4] drm: Make drm_crtc_helper.h standalone includible Thierry Reding
@ 2014-12-17 15:41 ` Thierry Reding
2014-12-17 20:41 ` Alex Deucher
2014-12-17 17:32 ` [PATCH 1/4] drm: Remove stale comment Daniel Vetter
3 siblings, 1 reply; 7+ messages in thread
From: Thierry Reding @ 2014-12-17 15:41 UTC (permalink / raw)
To: dri-devel
From: Thierry Reding <treding@nvidia.com>
There is already a section that describes the helpers implemented by
this module. Add the kerneldoc-generated structure descriptions to this
section.
While at it, add missing kerneldoc for the structures to avoid warnings
when generating the documentation.
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
Documentation/DocBook/drm.tmpl | 1 +
include/drm/drm_crtc_helper.h | 30 +++++++++++++++++++++++++-----
2 files changed, 26 insertions(+), 5 deletions(-)
diff --git a/Documentation/DocBook/drm.tmpl b/Documentation/DocBook/drm.tmpl
index 4b592ffbafee..8b6fe229dc9a 100644
--- a/Documentation/DocBook/drm.tmpl
+++ b/Documentation/DocBook/drm.tmpl
@@ -2362,6 +2362,7 @@ void intel_crt_init(struct drm_device *dev)
</sect2>
<sect2>
<title>Modeset Helper Functions Reference</title>
+!Iinclude/drm/drm_crtc_helper.h
!Edrivers/gpu/drm/drm_crtc_helper.c
!Pdrivers/gpu/drm/drm_crtc_helper.c overview
</sect2>
diff --git a/include/drm/drm_crtc_helper.h b/include/drm/drm_crtc_helper.h
index 8608897ace10..e76828d81a8b 100644
--- a/include/drm/drm_crtc_helper.h
+++ b/include/drm/drm_crtc_helper.h
@@ -47,9 +47,20 @@ enum mode_set_atomic {
};
/**
- * drm_crtc_helper_funcs - helper operations for CRTCs
- * @mode_fixup: try to fixup proposed mode for this connector
+ * struct drm_crtc_helper_funcs - helper operations for CRTCs
+ * @dpms: set power state
+ * @prepare: prepare the CRTC, called before @mode_set
+ * @commit: commit changes to CRTC, called after @mode_set
+ * @mode_fixup: try to fixup proposed mode for this CRTC
* @mode_set: set this mode
+ * @mode_set_nofb: set mode only (no scanout buffer attached)
+ * @mode_set_base: update the scanout buffer
+ * @mode_set_base_atomic: non-blocking mode set (used for kgdb support)
+ * @load_lut: load color palette
+ * @disable: disable CRTC when no longer in use
+ * @atomic_check: check for validity of an atomic state
+ * @atomic_begin: begin atomic update
+ * @atomic_flush: flush atomic update
*
* The helper operations are called by the mid-layer CRTC helper.
*/
@@ -93,9 +104,17 @@ struct drm_crtc_helper_funcs {
};
/**
- * drm_encoder_helper_funcs - helper operations for encoders
+ * struct drm_encoder_helper_funcs - helper operations for encoders
+ * @dpms: set power state
+ * @save: save connector state
+ * @restore: restore connector state
* @mode_fixup: try to fixup proposed mode for this connector
+ * @prepare: part of the disable sequence, called before the CRTC modeset
+ * @commit: called after the CRTC modeset
* @mode_set: set this mode
+ * @get_crtc: return CRTC that the encoder is currently attached to
+ * @detect: connection status detection
+ * @disable: disable encoder when not in use (overrides DPMS off)
*
* The helper operations are called by the mid-layer CRTC helper.
*/
@@ -121,9 +140,10 @@ struct drm_encoder_helper_funcs {
};
/**
- * drm_connector_helper_funcs - helper operations for connectors
+ * struct drm_connector_helper_funcs - helper operations for connectors
* @get_modes: get mode list for this connector
- * @mode_valid (optional): is this mode valid on the given connector?
+ * @mode_valid: is this mode valid on the given connector? (optional)
+ * @best_encoder: return the preferred encoder for this connector
*
* The helper operations are called by the mid-layer CRTC helper.
*/
--
2.1.3
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/4] drm: Remove stale comment
2014-12-17 15:41 [PATCH 1/4] drm: Remove stale comment Thierry Reding
` (2 preceding siblings ...)
2014-12-17 15:41 ` [PATCH 4/4] drm: Include drm_crtc_helper.h in DocBook Thierry Reding
@ 2014-12-17 17:32 ` Daniel Vetter
3 siblings, 0 replies; 7+ messages in thread
From: Daniel Vetter @ 2014-12-17 17:32 UTC (permalink / raw)
To: Thierry Reding; +Cc: dri-devel
On Wed, Dec 17, 2014 at 04:41:40PM +0100, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
>
> The struct drm_connector_funcs kerneldoc refers to a part of struct
> drm_crtc_funcs that no longer exists.
>
> Signed-off-by: Thierry Reding <treding@nvidia.com>
All four pulled into drm misc branch, thanks.
-Daniel
> ---
> include/drm/drm_crtc.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
> index 768321ef76e8..3f607e78d361 100644
> --- a/include/drm/drm_crtc.h
> +++ b/include/drm/drm_crtc.h
> @@ -463,7 +463,7 @@ struct drm_connector_state {
>
> /**
> * struct drm_connector_funcs - control connectors on a given device
> - * @dpms: set power state (see drm_crtc_funcs above)
> + * @dpms: set power state
> * @save: save connector state
> * @restore: restore connector state
> * @reset: reset connector after state has been invalidated (e.g. resume)
> --
> 2.1.3
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 4/4] drm: Include drm_crtc_helper.h in DocBook
2014-12-17 15:41 ` [PATCH 4/4] drm: Include drm_crtc_helper.h in DocBook Thierry Reding
@ 2014-12-17 20:41 ` Alex Deucher
0 siblings, 0 replies; 7+ messages in thread
From: Alex Deucher @ 2014-12-17 20:41 UTC (permalink / raw)
To: Thierry Reding; +Cc: Maling list - DRI developers
On Wed, Dec 17, 2014 at 10:41 AM, Thierry Reding
<thierry.reding@gmail.com> wrote:
> From: Thierry Reding <treding@nvidia.com>
>
> There is already a section that describes the helpers implemented by
> this module. Add the kerneldoc-generated structure descriptions to this
> section.
>
> While at it, add missing kerneldoc for the structures to avoid warnings
> when generating the documentation.
>
> Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
> ---
> Documentation/DocBook/drm.tmpl | 1 +
> include/drm/drm_crtc_helper.h | 30 +++++++++++++++++++++++++-----
> 2 files changed, 26 insertions(+), 5 deletions(-)
>
> diff --git a/Documentation/DocBook/drm.tmpl b/Documentation/DocBook/drm.tmpl
> index 4b592ffbafee..8b6fe229dc9a 100644
> --- a/Documentation/DocBook/drm.tmpl
> +++ b/Documentation/DocBook/drm.tmpl
> @@ -2362,6 +2362,7 @@ void intel_crt_init(struct drm_device *dev)
> </sect2>
> <sect2>
> <title>Modeset Helper Functions Reference</title>
> +!Iinclude/drm/drm_crtc_helper.h
> !Edrivers/gpu/drm/drm_crtc_helper.c
> !Pdrivers/gpu/drm/drm_crtc_helper.c overview
> </sect2>
> diff --git a/include/drm/drm_crtc_helper.h b/include/drm/drm_crtc_helper.h
> index 8608897ace10..e76828d81a8b 100644
> --- a/include/drm/drm_crtc_helper.h
> +++ b/include/drm/drm_crtc_helper.h
> @@ -47,9 +47,20 @@ enum mode_set_atomic {
> };
>
> /**
> - * drm_crtc_helper_funcs - helper operations for CRTCs
> - * @mode_fixup: try to fixup proposed mode for this connector
> + * struct drm_crtc_helper_funcs - helper operations for CRTCs
> + * @dpms: set power state
> + * @prepare: prepare the CRTC, called before @mode_set
> + * @commit: commit changes to CRTC, called after @mode_set
> + * @mode_fixup: try to fixup proposed mode for this CRTC
> * @mode_set: set this mode
> + * @mode_set_nofb: set mode only (no scanout buffer attached)
> + * @mode_set_base: update the scanout buffer
> + * @mode_set_base_atomic: non-blocking mode set (used for kgdb support)
> + * @load_lut: load color palette
> + * @disable: disable CRTC when no longer in use
> + * @atomic_check: check for validity of an atomic state
> + * @atomic_begin: begin atomic update
> + * @atomic_flush: flush atomic update
> *
> * The helper operations are called by the mid-layer CRTC helper.
> */
> @@ -93,9 +104,17 @@ struct drm_crtc_helper_funcs {
> };
>
> /**
> - * drm_encoder_helper_funcs - helper operations for encoders
> + * struct drm_encoder_helper_funcs - helper operations for encoders
> + * @dpms: set power state
> + * @save: save connector state
> + * @restore: restore connector state
> * @mode_fixup: try to fixup proposed mode for this connector
> + * @prepare: part of the disable sequence, called before the CRTC modeset
> + * @commit: called after the CRTC modeset
> * @mode_set: set this mode
> + * @get_crtc: return CRTC that the encoder is currently attached to
> + * @detect: connection status detection
> + * @disable: disable encoder when not in use (overrides DPMS off)
> *
> * The helper operations are called by the mid-layer CRTC helper.
> */
> @@ -121,9 +140,10 @@ struct drm_encoder_helper_funcs {
> };
>
> /**
> - * drm_connector_helper_funcs - helper operations for connectors
> + * struct drm_connector_helper_funcs - helper operations for connectors
> * @get_modes: get mode list for this connector
> - * @mode_valid (optional): is this mode valid on the given connector?
> + * @mode_valid: is this mode valid on the given connector? (optional)
> + * @best_encoder: return the preferred encoder for this connector
> *
> * The helper operations are called by the mid-layer CRTC helper.
> */
> --
> 2.1.3
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/4] drm: Move IRQ related fields to proper section
2014-12-17 15:41 ` [PATCH 2/4] drm: Move IRQ related fields to proper section Thierry Reding
@ 2014-12-17 20:41 ` Alex Deucher
0 siblings, 0 replies; 7+ messages in thread
From: Alex Deucher @ 2014-12-17 20:41 UTC (permalink / raw)
To: Thierry Reding; +Cc: Maling list - DRI developers
On Wed, Dec 17, 2014 at 10:41 AM, Thierry Reding
<thierry.reding@gmail.com> wrote:
> From: Thierry Reding <treding@nvidia.com>
>
> The .irq and .irq_enabled fields are part of the VBLANK interrupt
> handling infrastructure, so move them to the appropriate section within
> the structure.
>
> Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
> ---
> include/drm/drmP.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/drm/drmP.h b/include/drm/drmP.h
> index 227e67c52d5e..c05289d1d5f6 100644
> --- a/include/drm/drmP.h
> +++ b/include/drm/drmP.h
> @@ -744,8 +744,6 @@ struct drm_device {
>
> /** \name Context support */
> /*@{ */
> - bool irq_enabled; /**< True if irq handler is enabled */
> - int irq;
>
> __volatile__ long context_flag; /**< Context swapping flag */
> int last_context; /**< Last current context */
> @@ -753,6 +751,8 @@ struct drm_device {
>
> /** \name VBLANK IRQ support */
> /*@{ */
> + bool irq_enabled;
> + int irq;
>
> /*
> * At load time, disabling the vblank interrupt won't be allowed since
> --
> 2.1.3
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-12-17 20:41 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-17 15:41 [PATCH 1/4] drm: Remove stale comment Thierry Reding
2014-12-17 15:41 ` [PATCH 2/4] drm: Move IRQ related fields to proper section Thierry Reding
2014-12-17 20:41 ` Alex Deucher
2014-12-17 15:41 ` [PATCH 3/4] drm: Make drm_crtc_helper.h standalone includible Thierry Reding
2014-12-17 15:41 ` [PATCH 4/4] drm: Include drm_crtc_helper.h in DocBook Thierry Reding
2014-12-17 20:41 ` Alex Deucher
2014-12-17 17:32 ` [PATCH 1/4] drm: Remove stale comment Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox