public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
To: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 3/5] drm/i915/guc: Simplify intel_guc_load()
Date: Fri, 16 Dec 2016 10:26:32 -0800	[thread overview]
Message-ID: <becfab82-9420-6e59-e814-63b44db164c9@intel.com> (raw)
In-Reply-To: <20161216111602.GB27156@ahiler-desk.igk.intel.com>

<snip>

>>> +
>>> +fail:
>>> +	/*
>>> +	 * We've failed to load the firmware :(
>>> +	 *
>>> +	 * Decide whether to disable GuC submission and fall back to
>>> +	 * execlist mode, and whether to hide the error by returning
>>> +	 * zero or to return -EIO, which the caller will treat as a
>>> +	 * nonfatal error (i.e. it doesn't prevent driver load, but
>>> +	 * marks the GPU as wedged until reset).
>>> +	 */
>>> +	if (i915.enable_guc_loading > 1 || i915.enable_guc_submission > 1)
>>> +		ret = -EIO;
>>> +	else
>>> +		ret = 0;
>>> +
>>> +	if (i915.enable_guc_submission) {
>>> +		i915.enable_guc_submission = 0;
>>> +		DRM_INFO("GuC submission without firmware not supported\n");
>>> +		DRM_NOTE("Falling back from GuC submission to execlist mode\n");
>>
>> If i915.enable_guc_submission > 1 we will mark the GPU as wedged so it might
>> be worth retaining an error level message here in that scenario.
>
> If we are wedging the GPU you do not really care about the fallback, so
> theres no real use in having that promoted + those are the original
> levels that were already here.
>
> Anyway, it seems like the `enable_guc_* > 1` are likely to be gone. I've
> discussed that on IRC yesterday and no one seems to really remember why
> we've got it in the first place.
>
> Anusha posted similar concern here with her HuC series as well.
>

Just to clarify (because as you said the case will probably go away), 
what I meant was an extra log for the > 1 case like we had in the 
original code, i.e:

	DRM_ERROR("GuC init failed: %d\n", ret);

as otherwise we would have declared the GPU wedged without printing any 
error-level message to explain why.

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

  reply	other threads:[~2016-12-16 18:26 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-15 15:47 [PATCH 0/5] GuC Scrub vol. 1 Arkadiusz Hiler
2016-12-15 15:47 ` [PATCH 1/5] drm/i915/guc: Rename _setup() to _load() Arkadiusz Hiler
2016-12-15 15:57   ` Chris Wilson
2016-12-16 11:47     ` Arkadiusz Hiler
2016-12-16 12:47       ` Chris Wilson
2016-12-15 16:22   ` Michal Wajdeczko
2016-12-16 11:43     ` Arkadiusz Hiler
2016-12-15 15:47 ` [PATCH 2/5] drm/i915/guc: Introduce intel_uc_init() Arkadiusz Hiler
2016-12-20 22:00   ` Srivatsa, Anusha
2016-12-27 16:24     ` Arkadiusz Hiler
2016-12-15 15:47 ` [PATCH 3/5] drm/i915/guc: Simplify intel_guc_load() Arkadiusz Hiler
2016-12-15 16:38   ` Michal Wajdeczko
2016-12-16 10:52     ` Arkadiusz Hiler
2016-12-15 22:26   ` Daniele Ceraolo Spurio
2016-12-16 11:16     ` Arkadiusz Hiler
2016-12-16 18:26       ` Daniele Ceraolo Spurio [this message]
2016-12-16 15:50   ` Tvrtko Ursulin
2016-12-15 15:47 ` [PATCH 4/5] drm/i915/guc: Extract param logic form guc_init Arkadiusz Hiler
2016-12-23 21:19   ` Daniele Ceraolo Spurio
2016-12-27 16:26     ` Arkadiusz Hiler
2016-12-15 15:47 ` [PATCH 5/5] drm/i915/guc: Simplify guc_fw_path Arkadiusz Hiler
2016-12-16 16:01   ` Tvrtko Ursulin
2016-12-15 17:51 ` ✗ Fi.CI.BAT: failure for GuC Scrub vol. 1 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=becfab82-9420-6e59-e814-63b44db164c9@intel.com \
    --to=daniele.ceraolospurio@intel.com \
    --cc=arkadiusz.hiler@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