From: Jani Nikula <jani.nikula@linux.intel.com>
To: ville.syrjala@linux.intel.com, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] Revert "drm/i915: Allocate context objects from stolen"
Date: Tue, 30 Jun 2015 11:31:54 +0300 [thread overview]
Message-ID: <87r3otwq9x.fsf@intel.com> (raw)
In-Reply-To: <1435598915-9347-1-git-send-email-ville.syrjala@linux.intel.com>
On Mon, 29 Jun 2015, ville.syrjala@linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Stolen gets trashed during hibernation, so storing contexts there
> is not a very good idea. On my IVB machines this leads to a totally
> dead GPU on resume. A reboot is required to resurrect it. So let's
> not store contexts where they will get trampled.
>
> This reverts commit 149c86e74fe44dcbac5e9f8d145c5fbc5dc21261.
Looks like a *partial* revert of
commit 149c86e74fe44dcbac5e9f8d145c5fbc5dc21261
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date: Tue Apr 7 16:21:11 2015 +0100
drm/i915: Allocate context objects from stolen
and the not reverted hunk has been touched since in
commit 3126a660f352b3fe48125a8a0b4fdbf85935d8bf
Author: Dan Carpenter <dan.carpenter@oracle.com>
Date: Thu Apr 30 17:30:50 2015 +0300
drm/i915: checking IS_ERR() instead of NULL
The commit message should say it's a partial revert and not claim
otherwise, and document why not everything was reverted.
The above commits are in Linus' tree.
BR,
Jani.
>
> Cc: Chris Wilson <chris@chris-wilson.co.uk>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> drivers/gpu/drm/i915/i915_gem_context.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c
> index a7e58a8..5c7ccf4 100644
> --- a/drivers/gpu/drm/i915/i915_gem_context.c
> +++ b/drivers/gpu/drm/i915/i915_gem_context.c
> @@ -157,9 +157,7 @@ i915_gem_alloc_context_obj(struct drm_device *dev, size_t size)
> struct drm_i915_gem_object *obj;
> int ret;
>
> - obj = i915_gem_object_create_stolen(dev, size);
> - if (obj == NULL)
> - obj = i915_gem_alloc_object(dev, size);
> + obj = i915_gem_alloc_object(dev, size);
> if (obj == NULL)
> return ERR_PTR(-ENOMEM);
>
> --
> 2.3.6
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-06-30 8:29 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-29 17:28 [PATCH] Revert "drm/i915: Allocate context objects from stolen" ville.syrjala
2015-06-29 19:53 ` Chris Wilson
2015-06-29 20:05 ` Chris Wilson
2015-06-30 6:37 ` Akash Goel
2015-06-30 8:31 ` Chris Wilson
2015-06-30 9:58 ` [PATCH] drm/i915: Migrate stolen objects before hibernation Chris Wilson
2015-06-30 10:11 ` Chris Wilson
2015-06-30 10:31 ` Chris Wilson
2015-06-30 10:54 ` Daniel Vetter
2015-06-30 11:03 ` Chris Wilson
2015-06-30 11:22 ` Daniel Vetter
2015-06-30 11:32 ` Chris Wilson
2015-06-30 11:54 ` Daniel Vetter
2015-06-30 12:37 ` Chris Wilson
2015-06-30 11:16 ` Chris Wilson
2015-06-30 12:00 ` Daniel Vetter
2015-06-30 11:20 ` Chris Wilson
2015-06-30 12:03 ` Daniel Vetter
2015-06-30 11:25 ` Chris Wilson
2015-06-30 12:07 ` Daniel Vetter
2015-06-30 12:47 ` Chris Wilson
2015-07-01 12:47 ` Daniel Vetter
2015-07-01 12:59 ` Chris Wilson
2015-07-01 13:49 ` Daniel Vetter
2015-06-30 8:31 ` Jani Nikula [this message]
2015-06-30 9:44 ` [PATCH] Revert "drm/i915: Allocate context objects from stolen" Chris Wilson
2015-06-30 10:07 ` Ville Syrjälä
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=87r3otwq9x.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=ville.syrjala@linux.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.