public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Dave Gordon <david.s.gordon@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/guc: symbolic names for user load/submission preferences
Date: Tue, 12 Jul 2016 12:49:36 +0100	[thread overview]
Message-ID: <5784D950.9080100@intel.com> (raw)
In-Reply-To: <20160711195857.GK6157@nuc-i3427.alporthouse.com>

On 11/07/16 20:58, Chris Wilson wrote:
> On Mon, Jul 11, 2016 at 06:12:40PM +0100, Dave Gordon wrote:
>> The existing code that accesses the "enable_guc_loading" and
>> "enable_guc_submission" parameters uses explicit numerical
>> values for the various possibilities, including in some cases
>> relying on boolean 0/1 mapping to specific values (which could
>> be confusing for maintainers).
>>
>> So this patch just provides and uses names for the values
>> representing the DEFAULT, DISABLED, PREFERRED, and MANDATORY
>> options that the user can select (-1, 0, 1, 2 respectively).
>
> When is MANDATORY a good idea? If the hw doesn't support any other
> mechanism, then it will shut itself down gracefully if setup fails. If
> the user wants to force guc for testing, they only need to set the
> module parameter then check the guc is enabled afterwards and fail the
> test. At what point do we need such a warty user interface to the kernel?
> -Chris

Validation like it, so it's REALLY REALLY OBVIOUS if the system is 
misconfigured (e.g. wrong firmware version) as driver initialisation 
will fail rather than quietly continue by falling back to execlists.

Remember Daniel originally insisted on NO FALLBACK -- again, so that 
developers and testers didn't get confused by the system continuing to 
work despite the presence of a (hardware,firmware,driver) bug  -- so 
that's the option that provides it.

Of course it's not what end-users want, and so it's not what end-users 
get. You only get NO-FALLBACK mode if you specifically ask for it.

Note also, all this is already implemented, this patch just provides 
symbolic names for the code to use instead of literal numbers.

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

  reply	other threads:[~2016-07-12 11:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-11 17:12 [PATCH] drm/i915/guc: symbolic names for user load/submission preferences Dave Gordon
2016-07-11 19:58 ` Chris Wilson
2016-07-12 11:49   ` Dave Gordon [this message]
2016-07-12  5:28 ` ✗ Ro.CI.BAT: failure for " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2016-07-05 12:32 [PATCH] drm/i915/guc: Protect against HAS_GUC_* returning true values other than one Dave Gordon
2016-07-13 13:01 ` [PATCH] drm/i915/guc: symbolic names for user load/submission preferences Dave Gordon

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=5784D950.9080100@intel.com \
    --to=david.s.gordon@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox