All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: "Jakub Bartmiński" <jakub.bartminski@intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH v7 3/6] drm/i915/guc: Move the pin bias value from GuC to GGTT
Date: Fri, 27 Jul 2018 13:18:57 +0100	[thread overview]
Message-ID: <153269393719.9050.14198383798536365700@skylake-alporthouse-com> (raw)
In-Reply-To: <20180727120856.20485-3-jakub.bartminski@intel.com>

Quoting Jakub Bartmiński (2018-07-27 13:08:53)
> Removing the pin bias from GuC allows us to not check for GuC every time
> we pin a context, which fixes the assertion error on unresolved GuC
> platform default in mock contexts selftest.
> 
> It also seems that we were using uninitialized WOPCM variables when
> setting the GuC pin bias. The pin bias has to be set after the WOPCM,
> but before the call to i915_gem_contexts_init where the first contexts
> are pinned.
> 
> v2:
> This also makes it so that there's no need to set GuC variables from
> within the WOPCM init function or to move the WOPCM init, while keeping
> the correct initialization order. Also for mock tests the pin bias is
> left at 0 and we make sure that the pin bias with GuC will not be
> smaller than without GuC.
> 
> v3:
> Avoid unused i915 in intel_guc_ggtt_offset if debug is disabled.
> 
> v4:
> Squash with WOPCM init reordering.
> Moved the i915_ggtt_pin_bias helper to this patch, and made some
> functions use it instead of directly dereferencing i915->ggtt.
> 
> v5:
> Since we now don't use wopcm.guc.base for the pin bias there's no need to
> validate it. It also has already been verified in WOPCM init.
> 
> v6:
> Moved and renamed the function which now returns the wopcm.guc.size to
> intel_guc.c:intel_guc_wopcm_region_size to avoid any possible confusion
> with the pin_bias in ggtt, which should be used for pinning.
> Deleted the now unnecessarily introduced includes from previous versions.
> Dropped naming changes from dev_priv to i915 for better patch readability.
> 
> v7:
> Moved the same function again to intel_wopcm.c and renamed it to
> intel_wopcm_reserved_gtt_size to better represent its use from the
> gem_init_ggtt perspective.
> Changed some comments to make more sense in the context they're in.
> 
> Fixes: f7dc0157e4b5 ("drm/i915/uc: Fetch GuC/HuC firmwares from guc/huc specific init")
> Testcase: igt/drv_selftest/mock_contexts #GuC
> Signed-off-by: Jakub Bartmiński <jakub.bartminski@intel.com>
> Cc: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Michał Winiarski <michal.winiarski@intel.com>
> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>

Michal may prefer to call it intel_guc_reserved_gtt_size (or something
along those lines) in which case just resend this patch with the change
(in reply to this patch). However, we do have intel_wopcm_init et al
which I think weakens the argument that this belongs only to the guc.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2018-07-27 12:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-27 12:08 [PATCH v7 1/6] drm/i915/guc: Avoid wasting memory on incorrect GuC pin bias Jakub Bartmiński
2018-07-27 12:08 ` [PATCH v7 2/6] drm/i915/guc: Do not partition WOPCM if GuC is not used Jakub Bartmiński
2018-07-27 12:08 ` [PATCH v7 3/6] drm/i915/guc: Move the pin bias value from GuC to GGTT Jakub Bartmiński
2018-07-27 12:18   ` Chris Wilson [this message]
2018-07-27 12:29     ` Michal Wajdeczko
2018-07-27 12:08 ` [PATCH v7 4/6] drm/i915: Remove unnecessary ggtt_offset_bias from i915_gem_context Jakub Bartmiński
2018-07-27 12:08 ` [PATCH v7 5/6] drm/i915: Add a fault injection point to WOPCM init Jakub Bartmiński
2018-07-27 12:15   ` Chris Wilson
2018-07-27 12:08 ` [PATCH v7 6/6] HAX enable GuC for CI Jakub Bartmiński
2018-07-27 12:34 ` ✗ Fi.CI.BAT: failure for series starting with [v7,1/6] drm/i915/guc: Avoid wasting memory on incorrect GuC pin bias 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=153269393719.9050.14198383798536365700@skylake-alporthouse-com \
    --to=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jakub.bartminski@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.