All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Subject: Re: [PATCH] drm/i915: Unify GT* and GT3 definitions
Date: Tue, 06 Jun 2017 10:47:31 +0300	[thread overview]
Message-ID: <87d1ahh818.fsf@intel.com> (raw)
In-Reply-To: <1496684873-24130-1-git-send-email-rodrigo.vivi@intel.com>

On Mon, 05 Jun 2017, Rodrigo Vivi <rodrigo.vivi@intel.com> wrote:
> This patch clean up a bit the platform definition block in
> a way to avoid duplications and to let clear that GT3 for
> the current platform only have the extra Media engine.
>
> Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
>  drivers/gpu/drm/i915/i915_pci.c | 66 ++++++++++++++++++++---------------------
>  1 file changed, 33 insertions(+), 33 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c
> index cf43dc1..e5a730f 100644
> --- a/drivers/gpu/drm/i915/i915_pci.c
> +++ b/drivers/gpu/drm/i915/i915_pci.c
> @@ -312,17 +312,21 @@
>  	.has_full_48bit_ppgtt = 1, \
>  	.has_64bit_reloc = 1
>  
> +#define BDW_PLATFORM \
> +	BDW_FEATURES, \
> +	.gen = 8, \
> +	.platform = INTEL_BROADWELL
> +
> +#define EXTRA_MEDIA_ENGINE \
> +	.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING | BSD2_RING
> +
>  static const struct intel_device_info intel_broadwell_info = {
> -	BDW_FEATURES,
> -	.gen = 8,
> -	.platform = INTEL_BROADWELL,
> +	BDW_PLATFORM,
>  };
>  
>  static const struct intel_device_info intel_broadwell_gt3_info = {
> -	BDW_FEATURES,
> -	.gen = 8,
> -	.platform = INTEL_BROADWELL,
> -	.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING | BSD2_RING,
> +	BDW_PLATFORM,
> +	EXTRA_MEDIA_ENGINE,
>  };
>  
>  static const struct intel_device_info intel_cherryview_info = {
> @@ -347,23 +351,21 @@
>  	CHV_COLORS,
>  };
>  
> +#define SKL_PLATFORM \
> +	BDW_FEATURES, \
> +	.gen = 9, \
> +	.platform = INTEL_SKYLAKE, \
> +	.has_csr = 1, \
> +	.has_guc = 1, \
> +	.ddb_size = 896
> +
>  static const struct intel_device_info intel_skylake_info = {
> -	BDW_FEATURES,
> -	.platform = INTEL_SKYLAKE,
> -	.gen = 9,
> -	.has_csr = 1,
> -	.has_guc = 1,
> -	.ddb_size = 896,
> +	SKL_PLATFORM,
>  };
>  
>  static const struct intel_device_info intel_skylake_gt3_info = {
> -	BDW_FEATURES,
> -	.platform = INTEL_SKYLAKE,
> -	.gen = 9,
> -	.has_csr = 1,
> -	.has_guc = 1,
> -	.ddb_size = 896,
> -	.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING | BSD2_RING,
> +	SKL_PLATFORM,
> +	EXTRA_MEDIA_ENGINE,
>  };
>  
>  #define GEN9_LP_FEATURES \
> @@ -406,23 +408,21 @@
>  	.color = { .degamma_lut_size = 0, .gamma_lut_size = 1024 }
>  };
>  
> +#define KBL_PLATFORM \
> +	BDW_FEATURES, \
> +	.gen = 9, \
> +	.platform = INTEL_SKYLAKE, \

Copy-paste fail that caught my eye. Didn't look at the patch closer.

BR,
Jani.

> +	.has_csr = 1, \
> +	.has_guc = 1, \
> +	.ddb_size = 896
> +
>  static const struct intel_device_info intel_kabylake_info = {
> -	BDW_FEATURES,
> -	.platform = INTEL_KABYLAKE,
> -	.gen = 9,
> -	.has_csr = 1,
> -	.has_guc = 1,
> -	.ddb_size = 896,
> +	KBL_PLATFORM,
>  };
>  
>  static const struct intel_device_info intel_kabylake_gt3_info = {
> -	BDW_FEATURES,
> -	.platform = INTEL_KABYLAKE,
> -	.gen = 9,
> -	.has_csr = 1,
> -	.has_guc = 1,
> -	.ddb_size = 896,
> -	.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING | BSD2_RING,
> +	KBL_PLATFORM,
> +	EXTRA_MEDIA_ENGINE,
>  };
>  
>  /*

-- 
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2017-06-06  7:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-05 17:47 [PATCH] drm/i915: Unify GT* and GT3 definitions Rodrigo Vivi
2017-06-05 18:05 ` ✗ Fi.CI.BAT: warning for " Patchwork
2017-06-06  7:47 ` Jani Nikula [this message]
2017-06-06 15:16   ` [PATCH] " Vivi, Rodrigo
     [not found] <83F5C7385F545743AD4FB2A62F75B0732C3CC5AC@ORSMSX107.amr.corp.intel.com>
2017-06-05 20:21 ` Rodrigo Vivi
2017-06-05 21:07   ` Chris Wilson
2017-06-05 22:03     ` Vivi, Rodrigo
2017-06-06 16:06       ` Rodrigo Vivi
2017-06-06 21:58         ` Srivatsa, Anusha
2017-06-07 14:54           ` Rodrigo Vivi

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=87d1ahh818.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --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 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.