All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/3] drm/i915: Remove defunct i915->vm_list
Date: Thu, 5 Jul 2018 10:44:14 +0100	[thread overview]
Message-ID: <c91eea89-eb6e-2db3-9e87-2bd9e188f823@linux.intel.com> (raw)
In-Reply-To: <20180705065653.20449-1-chris@chris-wilson.co.uk>


On 05/07/2018 07:56, Chris Wilson wrote:
> No longer used and can be removed. One less global that currently
> demands struct_mutex protection.
> 
> References: e9e7dc4144cd ("drm/i915/gtt: Make gen6 page directories evictable")
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> ---
>   drivers/gpu/drm/i915/i915_drv.h           | 1 -
>   drivers/gpu/drm/i915/i915_gem_gtt.c       | 5 -----
>   drivers/gpu/drm/i915/i915_gem_gtt.h       | 1 -
>   drivers/gpu/drm/i915/selftests/mock_gtt.c | 3 ---
>   4 files changed, 10 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
> index e5a0a65ec2e9..550e86dfbfe8 100644
> --- a/drivers/gpu/drm/i915/i915_drv.h
> +++ b/drivers/gpu/drm/i915/i915_drv.h
> @@ -1744,7 +1744,6 @@ struct drm_i915_private {
>   	struct drm_atomic_state *modeset_restore_state;
>   	struct drm_modeset_acquire_ctx reset_ctx;
>   
> -	struct list_head vm_list; /* Global list of all address spaces */
>   	struct i915_ggtt ggtt; /* VM representing the global address space */
>   
>   	struct i915_gem_mm mm;
> diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
> index 3326b4e29b5b..2f10f5580230 100644
> --- a/drivers/gpu/drm/i915/i915_gem_gtt.c
> +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
> @@ -540,8 +540,6 @@ static void i915_address_space_init(struct i915_address_space *vm,
>   	INIT_LIST_HEAD(&vm->active_list);
>   	INIT_LIST_HEAD(&vm->inactive_list);
>   	INIT_LIST_HEAD(&vm->unbound_list);
> -
> -	list_add_tail(&vm->global_link, &dev_priv->vm_list);
>   }
>   
>   static void i915_address_space_fini(struct i915_address_space *vm)
> @@ -553,7 +551,6 @@ static void i915_address_space_fini(struct i915_address_space *vm)
>   	spin_unlock(&vm->free_pages.lock);
>   
>   	drm_mm_takedown(&vm->mm);
> -	list_del(&vm->global_link);
>   }
>   
>   static int __setup_page_dma(struct i915_address_space *vm,
> @@ -3572,8 +3569,6 @@ int i915_ggtt_init_hw(struct drm_i915_private *dev_priv)
>   
>   	stash_init(&dev_priv->mm.wc_stash);
>   
> -	INIT_LIST_HEAD(&dev_priv->vm_list);
> -
>   	/* Note that we use page colouring to enforce a guard page at the
>   	 * end of the address space. This is required as the CS may prefetch
>   	 * beyond the end of the batch buffer, across the page boundary,
> diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.h b/drivers/gpu/drm/i915/i915_gem_gtt.h
> index f298e72b79ca..feda45dfd481 100644
> --- a/drivers/gpu/drm/i915/i915_gem_gtt.h
> +++ b/drivers/gpu/drm/i915/i915_gem_gtt.h
> @@ -288,7 +288,6 @@ struct i915_address_space {
>   	 * assign blame.
>   	 */
>   	struct drm_i915_file_private *file;
> -	struct list_head global_link;
>   	u64 total;		/* size addr space maps (ex. 2GB for ggtt) */
>   	u64 reserved;		/* size addr space reserved */
>   
> diff --git a/drivers/gpu/drm/i915/selftests/mock_gtt.c b/drivers/gpu/drm/i915/selftests/mock_gtt.c
> index 0da5b8c6d912..07df5c399ec1 100644
> --- a/drivers/gpu/drm/i915/selftests/mock_gtt.c
> +++ b/drivers/gpu/drm/i915/selftests/mock_gtt.c
> @@ -74,7 +74,6 @@ mock_ppgtt(struct drm_i915_private *i915,
>   	INIT_LIST_HEAD(&ppgtt->vm.inactive_list);
>   	INIT_LIST_HEAD(&ppgtt->vm.unbound_list);
>   
> -	INIT_LIST_HEAD(&ppgtt->vm.global_link);
>   	drm_mm_init(&ppgtt->vm.mm, 0, ppgtt->vm.total);
>   
>   	ppgtt->vm.clear_range = nop_clear_range;
> @@ -106,8 +105,6 @@ void mock_init_ggtt(struct drm_i915_private *i915)
>   {
>   	struct i915_ggtt *ggtt = &i915->ggtt;
>   
> -	INIT_LIST_HEAD(&i915->vm_list);
> -
>   	ggtt->vm.i915 = i915;
>   
>   	ggtt->gmadr = (struct resource) DEFINE_RES_MEM(0, 2048 * PAGE_SIZE);
> 

No list iterators removed so easy to establish it is indeed unused. (Or 
won't compile.) :)

Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

Regards,

Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2018-07-05  9:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-05  6:56 [PATCH 1/3] drm/i915: Remove defunct i915->vm_list Chris Wilson
2018-07-05  6:56 ` [PATCH 2/3] drm/i915/selftests: Use full release for local ppgtt allocation Chris Wilson
2018-07-05  9:50   ` Tvrtko Ursulin
2018-07-05  9:53     ` Chris Wilson
2018-07-05  9:55     ` Tvrtko Ursulin
2018-07-05 10:02       ` Chris Wilson
2018-07-05  6:56 ` [PATCH 3/3] drm/i915/selftests: Replace open-coded i915_address_space_init() Chris Wilson
2018-07-05  9:55   ` Tvrtko Ursulin
2018-07-05  7:28 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/3] drm/i915: Remove defunct i915->vm_list Patchwork
2018-07-05  7:30 ` ✗ Fi.CI.SPARSE: " Patchwork
2018-07-05  7:52 ` ✓ Fi.CI.BAT: success " Patchwork
2018-07-05  9:44 ` Patchwork
2018-07-05  9:44 ` Tvrtko Ursulin [this message]
2018-07-05 11:01 ` ✓ Fi.CI.IGT: " 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=c91eea89-eb6e-2db3-9e87-2bd9e188f823@linux.intel.com \
    --to=tvrtko.ursulin@linux.intel.com \
    --cc=chris@chris-wilson.co.uk \
    --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 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.