From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 2/2] drm/i915/display: move enum i9xx_plane_id to intel_display_limits.h
Date: Fri, 13 Sep 2024 16:55:38 -0400 [thread overview]
Message-ID: <ZuSmylwGgvOPi1W7@intel.com> (raw)
In-Reply-To: <1e8f9768f2d638dfa1fc72f80f0d7391c4a48bbb.1726235647.git.jani.nikula@intel.com>
On Fri, Sep 13, 2024 at 04:54:39PM +0300, Jani Nikula wrote:
> Move enum i9xx_plane_id from intel_display.h to intel_display_limits.h
> to be able to reduce dependencies on intel_display.h.
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display.h | 10 ----------
> drivers/gpu/drm/i915/display/intel_display_limits.h | 10 ++++++++++
> drivers/gpu/drm/i915/gvt/cmd_parser.c | 1 -
> 3 files changed, 10 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display.h b/drivers/gpu/drm/i915/display/intel_display.h
> index d10608526eee..4bdb48084cab 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.h
> +++ b/drivers/gpu/drm/i915/display/intel_display.h
> @@ -95,16 +95,6 @@ static inline bool transcoder_is_dsi(enum transcoder transcoder)
> return transcoder == TRANSCODER_DSI_A || transcoder == TRANSCODER_DSI_C;
> }
>
> -/*
> - * Global legacy plane identifier. Valid only for primary/sprite
> - * planes on pre-g4x, and only for primary planes on g4x-bdw.
> - */
> -enum i9xx_plane_id {
> - PLANE_A,
> - PLANE_B,
> - PLANE_C,
> -};
> -
> #define plane_name(p) ((p) + 'A')
>
> #define for_each_plane_id_on_crtc(__crtc, __p) \
> diff --git a/drivers/gpu/drm/i915/display/intel_display_limits.h b/drivers/gpu/drm/i915/display/intel_display_limits.h
> index c4775c99dc83..f0fa27e365ab 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_limits.h
> +++ b/drivers/gpu/drm/i915/display/intel_display_limits.h
why here and not in somewhere like:
drivers/gpu/drm/i915/display/i9xx_plane.h
?
> @@ -49,6 +49,16 @@ enum transcoder {
> I915_MAX_TRANSCODERS
> };
>
> +/*
> + * Global legacy plane identifier. Valid only for primary/sprite
> + * planes on pre-g4x, and only for primary planes on g4x-bdw.
> + */
> +enum i9xx_plane_id {
> + PLANE_A,
> + PLANE_B,
> + PLANE_C,
> +};
> +
> /*
> * Per-pipe plane identifier.
> * I915_MAX_PLANES in the enum below is the maximum (across all platforms)
> diff --git a/drivers/gpu/drm/i915/gvt/cmd_parser.c b/drivers/gpu/drm/i915/gvt/cmd_parser.c
> index 2f4c9c66b40b..81d67a46cd9e 100644
> --- a/drivers/gpu/drm/i915/gvt/cmd_parser.c
> +++ b/drivers/gpu/drm/i915/gvt/cmd_parser.c
> @@ -50,7 +50,6 @@
> #include "trace.h"
>
> #include "display/i9xx_plane_regs.h"
> -#include "display/intel_display.h"
> #include "display/intel_sprite_regs.h"
> #include "gem/i915_gem_context.h"
> #include "gem/i915_gem_pm.h"
> --
> 2.39.2
>
next prev parent reply other threads:[~2024-09-13 20:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-13 13:54 [PATCH 0/2] drm/i915: clean up deps on intel_display.h a bit Jani Nikula
2024-09-13 13:54 ` [PATCH 1/2] drm/i915: move intel_get_pipe_from_crtc_id_ioctl to intel_crtc.c Jani Nikula
2024-09-13 20:53 ` Rodrigo Vivi
2024-09-13 13:54 ` [PATCH 2/2] drm/i915/display: move enum i9xx_plane_id to intel_display_limits.h Jani Nikula
2024-09-13 20:55 ` Rodrigo Vivi [this message]
2024-09-13 21:32 ` Jani Nikula
2024-09-16 16:22 ` Rodrigo Vivi
2024-09-17 9:07 ` Jani Nikula
2024-09-13 18:18 ` ✗ Fi.CI.SPARSE: warning for drm/i915: clean up deps on intel_display.h a bit Patchwork
2024-09-13 18:52 ` ✓ Fi.CI.BAT: success " Patchwork
2024-09-15 1:17 ` ✗ Fi.CI.IGT: failure " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZuSmylwGgvOPi1W7@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.