Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: intel-xe@lists.freedesktop.org, rodrigo.vivi@intel.com
Subject: Re: [Intel-xe] [PATCH 21/41] fixup! drm/xe/display: Implement display support
Date: Wed, 12 Apr 2023 22:25:16 +0300	[thread overview]
Message-ID: <87bkjsdhsz.fsf@intel.com> (raw)
In-Reply-To: <20230412180911.i5xoctni5mr2r24n@ldmartin-desk2.lan>

On Wed, 12 Apr 2023, Lucas De Marchi <lucas.demarchi@intel.com> wrote:
> On Wed, Apr 12, 2023 at 05:19:46PM +0300, Jani Nikula wrote:
>>It's okay to include uapi/drm/i915_drm.h. It provides us with structs to
>>make stuff compile, even if we don't use them in xe.
>>
>>The placement is perhaps a bit random, though.
>>
>>Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>>---
>> drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h | 1 +
>> 1 file changed, 1 insertion(+)
>>
>>diff --git a/drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h b/drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h
>>index 133c60cb3a09..c40bb27ac72a 100644
>>--- a/drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h
>>+++ b/drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h
>>@@ -1,6 +1,7 @@
>> #ifndef I915_VMA_H
>> #define I915_VMA_H
>>
>>+#include <uapi/drm/i915_drm.h>
>
> my worry is that this creates an implicit dependency that ends up using
> where it shouldn't, particularly when included in a header. Where
> exactly this is needed? Can the include be moved to a .c?

struct drm_intel_sprite_colorkey ckey member in struct
intel_plane_state, in intel_display_types.h, and elsewhere. Can't be
moved to a .c file.

Without this, the member needs to be conditionally compiled, as well as
all the code referencing it all over the place. Though in most places
the code will just go away because it'll be unreferenced. But it needs
to compile before being optimized away.

BR,
Jani.



>
> Lucas De Marchi
>
>> #include <drm/drm_mm.h>
>>
>> struct xe_bo;
>>-- 
>>2.39.2
>>

-- 
Jani Nikula, Intel Open Source Graphics Center

  reply	other threads:[~2023-04-12 19:26 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-12 14:19 [Intel-xe] [PATCH 00/41] xe & i915 display integration ifdef cleanups, part 2 Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 01/41] drm/i915/display: add I915 conditional build to g4x_dp.h Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 02/41] fixup! drm/i915/display: Remaining changes to make xe compile Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 03/41] drm/i915/display: add I915 conditional build to intel_dpio_phy.h Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 04/41] fixup! drm/i915/display: Remaining changes to make xe compile Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 05/41] fixup! drm/xe/display: Implement display support Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 06/41] " Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 07/41] fixup! drm/i915/display: Remaining changes to make xe compile Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 08/41] fixup! drm/xe/display: Implement display support Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 09/41] fixup! drm/i915/display: Remaining changes to make xe compile Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 10/41] drm/i915/display: add I915 conditional build to intel_crt.h Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 11/41] fixup! drm/i915/display: Remaining changes to make xe compile Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 12/41] drm/i915/display: add I915 conditional build to vlv_dsi.h Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 13/41] fixup! drm/i915/display: Remaining changes to make xe compile Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 14/41] fixup! drm/xe/display: Implement display support Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 15/41] fixup! drm/i915/display: Remaining changes to make xe compile Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 16/41] " Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 17/41] " Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 18/41] " Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 19/41] fixup! drm/xe/display: Implement display support Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 20/41] fixup! drm/i915/display: Remaining changes to make xe compile Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 21/41] fixup! drm/xe/display: Implement display support Jani Nikula
2023-04-12 18:09   ` Lucas De Marchi
2023-04-12 19:25     ` Jani Nikula [this message]
2023-04-12 20:37       ` Lucas De Marchi
2023-04-12 14:19 ` [Intel-xe] [PATCH 22/41] fixup! drm/i915/display: Remaining changes to make xe compile Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 23/41] " Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 24/41] " Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 25/41] fixup! drm/xe/display: Implement display support Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 26/41] fixup! drm/i915/display: Remaining changes to make xe compile Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 27/41] " Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 28/41] " Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 29/41] " Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 30/41] " Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 31/41] fixup! drm/i915/display: Remove all uncore mmio accesses in favor of intel_de Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 32/41] drm/i915/display: remove unnecessary i915_debugfs.h includes Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 33/41] fixup! drm/i915/display: Remaining changes to make xe compile Jani Nikula
2023-04-12 14:19 ` [Intel-xe] [PATCH 34/41] " Jani Nikula
2023-04-12 14:20 ` [Intel-xe] [PATCH 35/41] " Jani Nikula
2023-04-12 14:20 ` [Intel-xe] [PATCH 36/41] " Jani Nikula
2023-04-12 14:20 ` [Intel-xe] [PATCH 37/41] fixup! drm/xe/display: Implement display support Jani Nikula
2023-04-12 14:20 ` [Intel-xe] [PATCH 38/41] fixup! drm/i915/display: Remaining changes to make xe compile Jani Nikula
2023-04-12 14:20 ` [Intel-xe] [PATCH 39/41] fixup! drm/xe/display: Implement display support Jani Nikula
2023-04-12 14:20 ` [Intel-xe] [PATCH 40/41] fixup! drm/i915/display: Remaining changes to make xe compile Jani Nikula
2023-04-12 14:20 ` [Intel-xe] [PATCH 41/41] " Jani Nikula
2023-04-12 18:16 ` [Intel-xe] [PATCH 00/41] xe & i915 display integration ifdef cleanups, part 2 Lucas De Marchi
2023-04-17 10:53   ` Jani Nikula
2023-04-13  8:51 ` [Intel-xe] ✓ CI.Patch_applied: success for " Patchwork
2023-04-13  8:52 ` [Intel-xe] ✓ CI.KUnit: " Patchwork
2023-04-13  8:56 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-04-13  9:17 ` [Intel-xe] ○ CI.BAT: info " 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=87bkjsdhsz.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=lucas.demarchi@intel.com \
    --cc=rodrigo.vivi@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox