From: Sagar Arun Kamble <sagar.a.kamble@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH v10 9/9] drm/i915/guc: Fix GuC cleanup in unload path
Date: Thu, 28 Sep 2017 18:45:53 +0530 [thread overview]
Message-ID: <8f93ea94-d24a-1773-95a6-628bffd02fa0@intel.com> (raw)
In-Reply-To: <150659973952.18872.17439796720341465230@mail.alporthouse.com>
On 9/28/2017 5:25 PM, Chris Wilson wrote:
> Quoting Sagar Arun Kamble (2017-09-27 10:30:39)
>> -void intel_uc_fini_hw(struct drm_i915_private *dev_priv)
>> +void intel_uc_cleanup(struct drm_i915_private *dev_priv)
>> {
>> guc_free_load_err_log(&dev_priv->guc);
>>
>> if (!i915_modparams.enable_guc_loading)
>> return;
>>
>> - guc_disable_communication(&dev_priv->guc);
>> -
>> - if (i915_modparams.enable_guc_submission) {
>> - gen9_disable_guc_interrupts(dev_priv);
>> - i915_guc_submission_fini(dev_priv);
>> - }
>> -
>> - i915_ggtt_disable_guc(dev_priv);
>> + if (i915_modparams.enable_guc_submission)
>> + i915_guc_submission_cleanup(dev_priv);
> My preference would be for if (!guc->stage_desc_pool) return; inside
> i915_guc_submission_cleanup().
> -Chris
Yes. I have taken similar input in the latest patch -
https://patchwork.freedesktop.org/patch/179405/
In i915_guc_submission_cleanup we can cover destroy of stage_ids and
stage_desc_pool based on check you have suggested.
guc_ads_destroy is always required data so should we link with
stage_desc_pool check?
intel_guc_log is optional so destroy need to be made dependent on
guc->log.vma
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2017-09-28 13:15 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-27 9:30 [PATCH v10 0/9] GEM/GuC Suspend/Resume/Reset fixes and restructuring Sagar Arun Kamble
2017-09-27 9:30 ` [PATCH v10 1/9] drm/i915: Create GEM runtime resume helper and handle GEM suspend/resume errors Sagar Arun Kamble
2017-09-27 15:41 ` Michal Wajdeczko
2017-09-27 17:02 ` Sagar Arun Kamble
2017-09-28 11:37 ` Chris Wilson
2017-09-28 13:27 ` Sagar Arun Kamble
2017-09-27 9:30 ` [PATCH v10 2/9] drm/i915: Update GEM suspend/resume flows considering GuC and GEM fences Sagar Arun Kamble
2017-09-27 15:47 ` Michal Wajdeczko
2017-09-27 17:03 ` Sagar Arun Kamble
2017-09-28 11:40 ` Chris Wilson
2017-09-28 13:20 ` Sagar Arun Kamble
2017-09-27 9:30 ` [PATCH v10 3/9] drm/i915: Create uC runtime and system suspend/resume helpers Sagar Arun Kamble
2017-09-27 15:56 ` Michal Wajdeczko
2017-09-27 17:07 ` Sagar Arun Kamble
2017-09-28 11:45 ` Chris Wilson
2017-09-28 11:56 ` Sagar Arun Kamble
2017-09-27 9:30 ` [PATCH v10 4/9] drm/i915/guc: Update GuC load status as NONE on GPU reset Sagar Arun Kamble
2017-09-27 16:34 ` Michal Wajdeczko
2017-09-27 9:30 ` [PATCH v10 5/9] drm/i915/guc: Update GuC ggtt.invalidate/interrupts/communication across RPM suspend/resume Sagar Arun Kamble
2017-09-27 16:39 ` Michal Wajdeczko
2017-09-27 9:30 ` [PATCH v10 6/9] drm/i915/guc: Check execbuf client to disable submission and don't depend on enable_guc_submission Sagar Arun Kamble
2017-09-28 11:47 ` Chris Wilson
2017-09-28 13:19 ` Sagar Arun Kamble
2017-09-27 9:30 ` [PATCH v10 7/9] drm/i915/guc: Update GuC suspend functionality in intel_uc_suspend Sagar Arun Kamble
2017-09-27 9:30 ` [PATCH v10 8/9] drm/i915/guc: Disable GuC submission and suspend it prior to i915 reset Sagar Arun Kamble
2017-09-27 9:30 ` [PATCH v10 9/9] drm/i915/guc: Fix GuC cleanup in unload path Sagar Arun Kamble
2017-09-27 17:11 ` Michal Wajdeczko
2017-09-27 17:24 ` Sagar Arun Kamble
2017-09-28 11:55 ` Chris Wilson
2017-09-28 13:15 ` Sagar Arun Kamble [this message]
2017-09-28 16:01 ` Sagar Arun Kamble
2017-09-27 9:56 ` ✓ Fi.CI.BAT: success for GEM/GuC Suspend/Resume/Reset fixes and restructuring (rev3) Patchwork
2017-09-27 12:22 ` ✗ Fi.CI.IGT: warning " 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=8f93ea94-d24a-1773-95a6-628bffd02fa0@intel.com \
--to=sagar.a.kamble@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.