All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Michal Wajdeczko <michal.wajdeczko@intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH v3 3/8] drm/i915/guc: Introduce USES_GUC_xxx helper macros
Date: Wed, 06 Dec 2017 13:41:26 +0000	[thread overview]
Message-ID: <151256768623.3497.14273414840705279525@mail.alporthouse.com> (raw)
In-Reply-To: <151255992120.3497.18444318905306674180@mail.alporthouse.com>

Quoting Chris Wilson (2017-12-06 11:32:01)
> Quoting Michal Wajdeczko (2017-12-06 11:24:33)
> > On Tue, 05 Dec 2017 23:43:19 +0100, Chris Wilson  
> > <chris@chris-wilson.co.uk> wrote:
> > 
> > > Quoting Michal Wajdeczko (2017-12-05 16:38:39)
> > >> In the upcoming patch we will change the way how to recognize
> > >> when GuC is in use. Using helper macros will minimize scope
> > >> of that changes. While here, update dev_info message.
> > >>
> > >> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> > >> Cc: Chris Wilson <chris@chris-wilson.co.uk>
> > >> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> > >> Cc: Sagar Arun Kamble <sagar.a.kamble@intel.com>
> > >> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
> > >
> > > ... but can we please stop it with dev_priv :) We don't use it now or
> > > later, we are just making it more complicated for no imminent benefit,
> > > right?
> > 
> > Note that there are few benefits for keeping dev_priv:
> > 
> > a) it nicely matches all other existing HAS_|USES_ macros
> >     (even if dev_priv is not used/required: see USES_PPGTT or HAS_AUX_IRQ)
> >     (yes I know that you want to kill former and later is not widely used ;)
> > b) as "uses" suggests that it reflects state of the driver, I hope one day
> >     we will stop relying on modparam and read actual state of driver from
> >     dev_priv (or struct guc or struct uc or something else that can be
> >     reached out from this dev_priv)
> 
> But we don't and we are adding it to places where we didn't need, if I
> remember the patches correctly. My concern is that we are creating work
> and not saving it, as we^W I don't have a design for the future derived
> state checks.

To be clear, I'm happy if you see value in keeping dev_priv. Just
whinging, because first its dev_priv! and I could see no reason why we
need it. (So whether it is a "stitch in time" is debatable, it may
equally just cause more work later.)
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-12-06 13:41 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-05 16:38 [PATCH v3 1/8] drm/i915/huc: Move firmware selection to init_early Michal Wajdeczko
2017-12-05 16:38 ` [PATCH v3 2/8] drm/i915/guc: " Michal Wajdeczko
2017-12-05 16:38 ` [PATCH v3 3/8] drm/i915/guc: Introduce USES_GUC_xxx helper macros Michal Wajdeczko
2017-12-05 22:43   ` Chris Wilson
2017-12-06 11:24     ` Michal Wajdeczko
2017-12-06 11:32       ` Chris Wilson
2017-12-06 13:41         ` Chris Wilson [this message]
2017-12-05 16:38 ` [PATCH v3 4/8] drm/i915/uc: Don't fetch GuC firmware if no plan to use GuC Michal Wajdeczko
2017-12-05 22:40   ` Chris Wilson
2017-12-05 16:38 ` [PATCH v3 5/8] drm/i915/uc: Don't use -EIO to report missing firmware Michal Wajdeczko
2017-12-06 12:29   ` Chris Wilson
2017-12-05 16:38 ` [PATCH v3 6/8] drm/i915/guc: Combine enable_guc_loading|submission modparams Michal Wajdeczko
2017-12-05 22:47   ` Chris Wilson
2017-12-06 12:10     ` Michal Wajdeczko
2017-12-06 12:19       ` Chris Wilson
2017-12-05 16:38 ` [PATCH v3 7/8] drm/i915/huc: Load HuC only if requested Michal Wajdeczko
2017-12-06  9:12   ` Sagar Arun Kamble
2017-12-05 16:38 ` [PATCH v3 8/8] HAX enable GuC/HuC load Michal Wajdeczko
2017-12-05 22:14   ` Rodrigo Vivi
2017-12-05 17:17 ` ✗ Fi.CI.BAT: warning for series starting with [v3,1/8] drm/i915/huc: Move firmware selection to init_early 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=151256768623.3497.14273414840705279525@mail.alporthouse.com \
    --to=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=michal.wajdeczko@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.