Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Govindapillai, Vinod" <vinod.govindapillai@intel.com>
To: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
	"Hogander, Jouni" <jouni.hogander@intel.com>
Subject: Re: [Intel-xe] [PATCH 6/6] fixup! drm/xe: Add frontbuffer setter/getter for xe_bo
Date: Mon, 18 Sep 2023 20:57:42 +0000	[thread overview]
Message-ID: <c5d0ca764c6fb331488fe4d3b56f44c019d22f20.camel@intel.com> (raw)
In-Reply-To: <20230915105724.1025509-7-jouni.hogander@intel.com>

On Fri, 2023-09-15 at 13:57 +0300, Jouni Högander wrote:
> i915 frontbuffer setter and getter are moved into separate header file. We
> need to do same for Xe frontbuffer setter and getter.
> 
> Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
> ---
>  .../gem/i915_gem_object_frontbuffer.h                | 12 ++++++++++++
>  drivers/gpu/drm/xe/xe_bo.h                           |  3 ---
>  2 files changed, 12 insertions(+), 3 deletions(-)
>  create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object_frontbuffer.h

Looks good to me,

Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>

> 
> diff --git a/drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object_frontbuffer.h
> b/drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object_frontbuffer.h
> new file mode 100644
> index 000000000000..227965e5f784
> --- /dev/null
> +++ b/drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object_frontbuffer.h
> @@ -0,0 +1,12 @@
> +/* SPDX-License-Identifier: MIT */
> +/*
> + * Copyright © 2022 Intel Corporation
> + */
> +
> +#ifndef _I915_GEM_OBJECT_H_
> +#define _I915_GEM_OBJECT_H_
> +
> +#define i915_gem_object_get_frontbuffer(obj)           NULL
> +#define i915_gem_object_set_frontbuffer(obj, front)    (front)
> +
> +#endif
> diff --git a/drivers/gpu/drm/xe/xe_bo.h b/drivers/gpu/drm/xe/xe_bo.h
> index 4a68d869b3b5..9097bcc13209 100644
> --- a/drivers/gpu/drm/xe/xe_bo.h
> +++ b/drivers/gpu/drm/xe/xe_bo.h
> @@ -305,9 +305,6 @@ static inline unsigned int xe_sg_segment_size(struct device *dev)
>         return round_down(max / 2, PAGE_SIZE);
>  }
>  
> -#define i915_gem_object_get_frontbuffer(obj)           NULL
> -#define i915_gem_object_set_frontbuffer(obj, front)    (front)
> -
>  #if IS_ENABLED(CONFIG_DRM_XE_KUNIT_TEST)
>  /**
>   * xe_bo_is_mem_type - Whether the bo currently resides in the given


  reply	other threads:[~2023-09-18 20:57 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-15 10:57 [Intel-xe] [PATCH 0/6] Backport patches reorganizing intel_frontbuffer.h/i915_gem_object.h Jouni Högander
2023-09-15 10:57 ` [Intel-xe] [PATCH 1/6] Revert "FIXME: drm/i915: include intel_frontbuffer.h from skl_universal_plane.c" Jouni Högander
2023-09-18 20:54   ` Govindapillai, Vinod
2023-09-19  5:39     ` Hogander, Jouni
2023-09-19  6:42       ` Govindapillai, Vinod
2023-09-19 11:09         ` Hogander, Jouni
2023-09-15 10:57 ` [Intel-xe] [PATCH 2/6] Revert "FIXME: drm/i915/psr: include intel_frontbuffer.h from intel_psr.c" Jouni Högander
2023-09-18 20:54   ` Govindapillai, Vinod
2023-09-15 10:57 ` [Intel-xe] [PATCH 3/6] Revert "FIXME: drm/i915/drrs: include intel_frontbuffer.h from intel_drrs.c" Jouni Högander
2023-09-18 20:55   ` Govindapillai, Vinod
2023-09-15 10:57 ` [Intel-xe] [PATCH 4/6] drm/i915: add minimal i915_gem_object_frontbuffer.h Jouni Högander
2023-09-18 20:56   ` Govindapillai, Vinod
2023-09-15 10:57 ` [Intel-xe] [PATCH 5/6] fixup! drm/i915/display: Move releasing gem object away from fb tracking Jouni Högander
2023-09-18 20:57   ` Govindapillai, Vinod
2023-09-15 10:57 ` [Intel-xe] [PATCH 6/6] fixup! drm/xe: Add frontbuffer setter/getter for xe_bo Jouni Högander
2023-09-18 20:57   ` Govindapillai, Vinod [this message]
2023-09-15 11:00 ` [Intel-xe] ✓ CI.Patch_applied: success for Backport patches reorganizing intel_frontbuffer.h/i915_gem_object.h Patchwork
2023-09-15 11:00 ` [Intel-xe] ✗ CI.checkpatch: warning " Patchwork
2023-09-15 11:01 ` [Intel-xe] ✓ CI.KUnit: success " Patchwork
2023-09-15 11:08 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-09-15 11:09 ` [Intel-xe] ✗ CI.Hooks: failure " Patchwork
2023-09-15 11:10 ` [Intel-xe] ✗ CI.checksparse: warning " Patchwork
2023-09-15 11:42 ` [Intel-xe] ✓ CI.BAT: success " 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=c5d0ca764c6fb331488fe4d3b56f44c019d22f20.camel@intel.com \
    --to=vinod.govindapillai@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jouni.hogander@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