public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@gmail.com>
To: Carlos Santa <carlos.santa@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH v4 04/22] drm/i915: Move HAS_RUNTIME_PM definition to platform
Date: Wed, 7 Sep 2016 15:55:08 -0700	[thread overview]
Message-ID: <20160907225508.GD22980@rdvivi-vienna> (raw)
In-Reply-To: <1471462257-24146-5-git-send-email-carlos.santa@intel.com>



Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

On Wed, Aug 17, 2016 at 12:30:39PM -0700, Carlos Santa wrote:
> Moving all GPU features to the platform struct definition allows for
> 	- standard place when adding new features from new platforms
> 	- possible to see supported features when dumping struct
> 	  definitions
> 
> Signed-off-by: Carlos Santa <carlos.santa@intel.com>
> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
>  drivers/gpu/drm/i915/i915_drv.h | 6 ++----
>  drivers/gpu/drm/i915/i915_pci.c | 7 ++++++-
>  2 files changed, 8 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
> index e4fbc3e..6f5762e 100644
> --- a/drivers/gpu/drm/i915/i915_drv.h
> +++ b/drivers/gpu/drm/i915/i915_drv.h
> @@ -647,6 +647,7 @@ struct intel_csr {
>  	func(is_preliminary) sep \
>  	func(has_fbc) sep \
>  	func(has_psr) sep \
> +	func(has_runtime_pm) sep \
>  	func(has_pipe_cxsr) sep \
>  	func(has_hotplug) sep \
>  	func(cursor_needs_physical) sep \
> @@ -2782,10 +2783,7 @@ struct drm_i915_cmd_table {
>  #define HAS_DDI(dev)		(INTEL_INFO(dev)->has_ddi)
>  #define HAS_FPGA_DBG_UNCLAIMED(dev)	(INTEL_INFO(dev)->has_fpga_dbg)
>  #define HAS_PSR(dev)		(INTEL_INFO(dev)->has_psr)
> -#define HAS_RUNTIME_PM(dev)	(IS_GEN6(dev) || IS_HASWELL(dev) || \
> -				 IS_BROADWELL(dev) || IS_VALLEYVIEW(dev) || \
> -				 IS_CHERRYVIEW(dev) || IS_SKYLAKE(dev) || \
> -				 IS_KABYLAKE(dev) || IS_BROXTON(dev))
> +#define HAS_RUNTIME_PM(dev)	(INTEL_INFO(dev)->has_runtime_pm)
>  #define HAS_RC6(dev)		(INTEL_INFO(dev)->gen >= 6)
>  #define HAS_RC6p(dev)		(IS_GEN6(dev) || IS_IVYBRIDGE(dev))
>  
> diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c
> index bdc2071..d1f5a9a 100644
> --- a/drivers/gpu/drm/i915/i915_pci.c
> +++ b/drivers/gpu/drm/i915/i915_pci.c
> @@ -199,6 +199,7 @@ static const struct intel_device_info intel_ironlake_m_info = {
>  	.gen = 6, .num_pipes = 2, \
>  	.need_gfx_hws = 1, .has_hotplug = 1, \
>  	.has_fbc = 1, \
> +	.has_runtime_pm = 1, \
>  	.ring_mask = RENDER_RING | BSD_RING | BLT_RING, \
>  	.has_llc = 1, \
>  	GEN_DEFAULT_PIPEOFFSETS, \
> @@ -242,6 +243,7 @@ static const struct intel_device_info intel_ivybridge_q_info = {
>  #define VLV_FEATURES  \
>  	.gen = 7, .num_pipes = 2, \
>  	.has_psr = 1, \
> +	.has_runtime_pm = 1, \
>  	.need_gfx_hws = 1, .has_hotplug = 1, \
>  	.ring_mask = RENDER_RING | BSD_RING | BLT_RING, \
>  	.display_mmio_offset = VLV_DISPLAY_BASE, \
> @@ -258,7 +260,8 @@ static const struct intel_device_info intel_valleyview_info = {
>  	.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \
>  	.has_ddi = 1, \
>  	.has_fpga_dbg = 1, \
> -	.has_psr = 1
> +	.has_psr = 1, \
> +	.has_runtime_pm = 1
>  
>  static const struct intel_device_info intel_haswell_info = {
>  	HSW_FEATURES,
> @@ -288,6 +291,7 @@ static const struct intel_device_info intel_cherryview_info = {
>  	.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING,
>  	.is_cherryview = 1,
>  	.has_psr = 1,
> +	.has_runtime_pm = 1,
>  	.display_mmio_offset = VLV_DISPLAY_BASE,
>  	GEN_CHV_PIPEOFFSETS,
>  	CURSOR_OFFSETS,
> @@ -316,6 +320,7 @@ static const struct intel_device_info intel_broxton_info = {
>  	.has_ddi = 1,
>  	.has_fpga_dbg = 1,
>  	.has_fbc = 1,
> +	.has_runtime_pm = 1,
>  	.has_pooled_eu = 0,
>  	GEN_DEFAULT_PIPEOFFSETS,
>  	IVB_CURSOR_OFFSETS,
> -- 
> 1.9.1
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2016-09-07 22:54 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-17 19:30 [PATCH v4 00/22] drm/i915: Organize most GPU features by platform Carlos Santa
2016-08-17 19:30 ` [PATCH v4 01/22] drm/i915: Move HAS_PSR definition to platform struct definition Carlos Santa
2016-08-17 19:30 ` [PATCH v4 02/22] drm/i915: Remove .is_mobile field from platform struct Carlos Santa
2016-08-17 19:30 ` [PATCH v4 03/22] drm/i915: Introduce GEN6_FEATURES for device info Carlos Santa
2016-08-17 19:30 ` [PATCH v4 04/22] drm/i915: Move HAS_RUNTIME_PM definition to platform Carlos Santa
2016-09-07 22:55   ` Rodrigo Vivi [this message]
2016-08-17 19:30 ` [PATCH v4 05/22] drm/i915: Remove runtime PM for SNB Carlos Santa
2016-09-07 22:54   ` Rodrigo Vivi
2016-08-17 19:30 ` [PATCH v4 06/22] drm/i915: Get rid of HAS_CORE_RING_FREQ Carlos Santa
2016-09-07 22:50   ` Rodrigo Vivi
2016-08-17 19:30 ` [PATCH v4 07/22] drm/i915 Move HAS_CSR definition to platform definition Carlos Santa
2016-08-17 19:30 ` [PATCH v4 08/22] drm/i915: Move HAS_RESOURCE_STREAMER " Carlos Santa
2016-08-17 19:30 ` [PATCH v4 09/22] drm/i915: Move HAS_RC6 " Carlos Santa
2016-08-17 19:30 ` [PATCH v4 10/22] drm/i915: Move HAS_RC6p " Carlos Santa
2016-09-07 22:52   ` Rodrigo Vivi
2016-08-17 19:30 ` [PATCH v4 11/22] drm/i915: Move HAS_DP_MST " Carlos Santa
2016-08-17 19:30 ` [PATCH v4 12/22] drm/i915: Introduce GEN5_FEATURES for device info Carlos Santa
2016-08-17 19:30 ` [PATCH v4 13/22] drm/i915: Move HAS_GMBUS_IRQ definition to platform definition Carlos Santa
2016-08-17 19:30 ` [PATCH v4 14/22] drm/i915: Introduce GEN4_FEATURES for device info Carlos Santa
2016-08-17 19:30 ` [PATCH v4 15/22] drm/i915: Introduce GEN3_FEATURES " Carlos Santa
2016-08-17 19:30 ` [PATCH v4 16/22] drm/i915: Introduce GEN2_FEATURES " Carlos Santa
2016-08-17 19:30 ` [PATCH v4 17/22] drm/i915: Move HAS_HW_CONTEXTS definition to platform Carlos Santa
2016-08-17 19:30 ` [PATCH v4 18/22] drm/i915: Move HAS_LOGICAL_RING_CONTEXTS " Carlos Santa
2016-08-17 19:30 ` [PATCH v4 19/22] drm/i915: Move HAS_L3_DPF definition to platform definition Carlos Santa
2016-08-17 19:30 ` [PATCH v4 20/22] drm/i915: Move HAS_GMCH_DISPLAY definition to platform Carlos Santa
2016-08-17 19:30 ` [PATCH v4 21/22] drm/i915: Make HWS_NEEDS_PHYSICAL the exception Carlos Santa
2016-08-17 19:30 ` [PATCH v4 22/22] drm/i915: Move HAS_GUC definition to platform definition Carlos Santa
2016-08-18  6:22 ` ✗ Ro.CI.BAT: failure for drm/i915: Organize most GPU features by platform (rev4) Patchwork
2016-09-13 16:06 ` [PATCH v4 00/22] drm/i915: Organize most GPU features by platform 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=20160907225508.GD22980@rdvivi-vienna \
    --to=rodrigo.vivi@gmail.com \
    --cc=carlos.santa@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /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