All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/gvt: set ring buffer size to default for guc submission
@ 2017-02-16  6:36 Chuanxiao Dong
  2017-02-16  7:35 ` Chris Wilson
  0 siblings, 1 reply; 3+ messages in thread
From: Chuanxiao Dong @ 2017-02-16  6:36 UTC (permalink / raw)
  To: intel-gfx, intel-gvt-dev

When not using GuC submission, the ring buffer size for GVT context is
512KB which is the max size. When switching to GuC submission, the ring
buffer size is required to be less than 16KB. So use the GVT context
default ring buffer size if GuC submission is enabled.

Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
---
 drivers/gpu/drm/i915/i915_gem_context.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c
index c73bf02..26f0b65 100644
--- a/drivers/gpu/drm/i915/i915_gem_context.c
+++ b/drivers/gpu/drm/i915/i915_gem_context.c
@@ -431,7 +431,8 @@ i915_gem_context_create_gvt(struct drm_device *dev)
 	i915_gem_context_set_closed(ctx); /* not user accessible */
 	i915_gem_context_clear_bannable(ctx);
 	i915_gem_context_set_force_single_submission(ctx);
-	ctx->ring_size = 512 * PAGE_SIZE; /* Max ring buffer size */
+	if (!i915.enable_guc_submission)
+		ctx->ring_size = 512 * PAGE_SIZE; /* Max ring buffer size */
 
 	GEM_BUG_ON(i915_gem_context_is_kernel(ctx));
 out:
-- 
2.7.4

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/i915/gvt: set ring buffer size to default for guc submission
  2017-02-16  6:36 [PATCH] drm/i915/gvt: set ring buffer size to default for guc submission Chuanxiao Dong
@ 2017-02-16  7:35 ` Chris Wilson
  2017-02-22 10:18   ` Chris Wilson
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Wilson @ 2017-02-16  7:35 UTC (permalink / raw)
  To: Chuanxiao Dong; +Cc: intel-gfx, intel-gvt-dev

On Thu, Feb 16, 2017 at 02:36:40PM +0800, Chuanxiao Dong wrote:
> When not using GuC submission, the ring buffer size for GVT context is
> 512KB which is the max size. When switching to GuC submission, the ring
> buffer size is required to be less than 16KB. So use the GVT context
> default ring buffer size if GuC submission is enabled.
> 
> Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>

Other than grimacing over seeing another i915.enable_guc_submission
outside of the guc setup code,

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/i915/gvt: set ring buffer size to default for guc submission
  2017-02-16  7:35 ` Chris Wilson
@ 2017-02-22 10:18   ` Chris Wilson
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Wilson @ 2017-02-22 10:18 UTC (permalink / raw)
  To: Chuanxiao Dong, intel-gfx, intel-gvt-dev

On Thu, Feb 16, 2017 at 07:35:59AM +0000, Chris Wilson wrote:
> On Thu, Feb 16, 2017 at 02:36:40PM +0800, Chuanxiao Dong wrote:
> > When not using GuC submission, the ring buffer size for GVT context is
> > 512KB which is the max size. When switching to GuC submission, the ring
> > buffer size is required to be less than 16KB. So use the GVT context
> > default ring buffer size if GuC submission is enabled.
> > 
> > Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
> 
> Other than grimacing over seeing another i915.enable_guc_submission
> outside of the guc setup code,
> 
> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>

Applied, thanks.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-02-22 10:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-16  6:36 [PATCH] drm/i915/gvt: set ring buffer size to default for guc submission Chuanxiao Dong
2017-02-16  7:35 ` Chris Wilson
2017-02-22 10:18   ` Chris Wilson

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.