* [PATCH] drm/i915: fix the dequeue logic for single_port_submission context
@ 2016-11-16 6:11 Min He
2016-11-16 6:46 ` ✓ Fi.CI.BAT: success for " Patchwork
2016-11-16 6:52 ` [PATCH] " Chris Wilson
0 siblings, 2 replies; 6+ messages in thread
From: Min He @ 2016-11-16 6:11 UTC (permalink / raw)
To: intel-gfx
For a singl_port_submission context, it can only be submitted to port 0,
and there shouldn't be any other context in port 1 at the same time.
This patch is to implement the correct logic in execlists_dequeue.
Signed-off-by: Min He <min.he@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
---
drivers/gpu/drm/i915/intel_lrc.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
index f50feaa..be83e8c 100644
--- a/drivers/gpu/drm/i915/intel_lrc.c
+++ b/drivers/gpu/drm/i915/intel_lrc.c
@@ -424,9 +424,6 @@ static bool can_merge_ctx(const struct i915_gem_context *prev,
if (prev != next)
return false;
- if (ctx_single_port_submission(prev))
- return false;
-
return true;
}
@@ -477,6 +474,13 @@ static void execlists_dequeue(struct intel_engine_cs *engine)
struct drm_i915_gem_request *cursor =
rb_entry(rb, typeof(*cursor), priotree.node);
+ /* If last ctx is single_submission, it means we can only
+ * submit this context in port 0, and cannot submit another
+ * context in port 1 at the same time. So we will break here
+ * in this situation.
+ */
+ if (last && ctx_single_port_submission(last->ctx))
+ break;
/* Can we combine this request with the current port? It has to
* be the same context/ringbuffer and not have any exceptions
* (e.g. GVT saying never to combine contexts).
--
1.9.1
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 6+ messages in thread
* ✓ Fi.CI.BAT: success for drm/i915: fix the dequeue logic for single_port_submission context
2016-11-16 6:11 [PATCH] drm/i915: fix the dequeue logic for single_port_submission context Min He
@ 2016-11-16 6:46 ` Patchwork
2016-11-16 6:52 ` [PATCH] " Chris Wilson
1 sibling, 0 replies; 6+ messages in thread
From: Patchwork @ 2016-11-16 6:46 UTC (permalink / raw)
To: Min He; +Cc: intel-gfx
== Series Details ==
Series: drm/i915: fix the dequeue logic for single_port_submission context
URL : https://patchwork.freedesktop.org/series/15391/
State : success
== Summary ==
Series 15391v1 drm/i915: fix the dequeue logic for single_port_submission context
https://patchwork.freedesktop.org/api/1.0/series/15391/revisions/1/mbox/
fi-bdw-5557u total:244 pass:229 dwarn:0 dfail:0 fail:0 skip:15
fi-bsw-n3050 total:244 pass:204 dwarn:0 dfail:0 fail:0 skip:40
fi-bxt-t5700 total:244 pass:216 dwarn:0 dfail:0 fail:0 skip:28
fi-byt-j1900 total:244 pass:216 dwarn:0 dfail:0 fail:0 skip:28
fi-byt-n2820 total:244 pass:212 dwarn:0 dfail:0 fail:0 skip:32
fi-hsw-4770 total:244 pass:224 dwarn:0 dfail:0 fail:0 skip:20
fi-hsw-4770r total:244 pass:224 dwarn:0 dfail:0 fail:0 skip:20
fi-ilk-650 total:244 pass:191 dwarn:0 dfail:0 fail:0 skip:53
fi-ivb-3520m total:244 pass:222 dwarn:0 dfail:0 fail:0 skip:22
fi-ivb-3770 total:244 pass:222 dwarn:0 dfail:0 fail:0 skip:22
fi-kbl-7200u total:244 pass:222 dwarn:0 dfail:0 fail:0 skip:22
fi-skl-6260u total:244 pass:230 dwarn:0 dfail:0 fail:0 skip:14
fi-skl-6700hq total:244 pass:223 dwarn:0 dfail:0 fail:0 skip:21
fi-skl-6700k total:244 pass:222 dwarn:1 dfail:0 fail:0 skip:21
fi-snb-2520m total:244 pass:212 dwarn:0 dfail:0 fail:0 skip:32
fi-snb-2600 total:244 pass:211 dwarn:0 dfail:0 fail:0 skip:33
a68195b8144bca52c6fe1aa1e541a2ff14bf984e drm-intel-nightly: 2016y-11m-16d-05h-46m-49s UTC integration manifest
a1846f4 drm/i915: fix the dequeue logic for single_port_submission context
== Logs ==
For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_3010/
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] drm/i915: fix the dequeue logic for single_port_submission context
2016-11-16 6:11 [PATCH] drm/i915: fix the dequeue logic for single_port_submission context Min He
2016-11-16 6:46 ` ✓ Fi.CI.BAT: success for " Patchwork
@ 2016-11-16 6:52 ` Chris Wilson
2016-11-16 7:03 ` He, Min
1 sibling, 1 reply; 6+ messages in thread
From: Chris Wilson @ 2016-11-16 6:52 UTC (permalink / raw)
To: Min He; +Cc: intel-gfx
On Wed, Nov 16, 2016 at 02:11:16PM +0800, Min He wrote:
> For a singl_port_submission context, it can only be submitted to port 0,
> and there shouldn't be any other context in port 1 at the same time.
> This patch is to implement the correct logic in execlists_dequeue.
There's a simpler fix. (Other than fixing the root cause of the bug in
gvt.)
-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] 6+ messages in thread
* Re: [PATCH] drm/i915: fix the dequeue logic for single_port_submission context
2016-11-16 6:52 ` [PATCH] " Chris Wilson
@ 2016-11-16 7:03 ` He, Min
2016-11-16 7:07 ` Chris Wilson
0 siblings, 1 reply; 6+ messages in thread
From: He, Min @ 2016-11-16 7:03 UTC (permalink / raw)
To: Chris Wilson; +Cc: intel-gfx@lists.freedesktop.org
> -----Original Message-----
> From: Chris Wilson [mailto:chris@chris-wilson.co.uk]
> Sent: Wednesday, November 16, 2016 2:52 PM
> To: He, Min <min.he@intel.com>
> Cc: intel-gfx@lists.freedesktop.org
> Subject: Re: [Intel-gfx] [PATCH] drm/i915: fix the dequeue logic for
> single_port_submission context
>
> On Wed, Nov 16, 2016 at 02:11:16PM +0800, Min He wrote:
> > For a singl_port_submission context, it can only be submitted to port 0,
> > and there shouldn't be any other context in port 1 at the same time.
> > This patch is to implement the correct logic in execlists_dequeue.
>
> There's a simpler fix. (Other than fixing the root cause of the bug in
> gvt.)
Can you describe this simpler fix? 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] 6+ messages in thread
* Re: [PATCH] drm/i915: fix the dequeue logic for single_port_submission context
2016-11-16 7:03 ` He, Min
@ 2016-11-16 7:07 ` Chris Wilson
2016-11-16 7:40 ` He, Min
0 siblings, 1 reply; 6+ messages in thread
From: Chris Wilson @ 2016-11-16 7:07 UTC (permalink / raw)
To: He, Min; +Cc: intel-gfx@lists.freedesktop.org
On Wed, Nov 16, 2016 at 07:03:42AM +0000, He, Min wrote:
>
> > -----Original Message-----
> > From: Chris Wilson [mailto:chris@chris-wilson.co.uk]
> > Sent: Wednesday, November 16, 2016 2:52 PM
> > To: He, Min <min.he@intel.com>
> > Cc: intel-gfx@lists.freedesktop.org
> > Subject: Re: [Intel-gfx] [PATCH] drm/i915: fix the dequeue logic for
> > single_port_submission context
> >
> > On Wed, Nov 16, 2016 at 02:11:16PM +0800, Min He wrote:
> > > For a singl_port_submission context, it can only be submitted to port 0,
> > > and there shouldn't be any other context in port 1 at the same time.
> > > This patch is to implement the correct logic in execlists_dequeue.
> >
> > There's a simpler fix. (Other than fixing the root cause of the bug in
> > gvt.)
> Can you describe this simpler fix? Thanks.
Instead of changing the flow of the logic, add the break inside the
cannot merge loop. Then you don't have multiple "cannot merge"
questions.
Also, my preferred solution would be to remove the gvt hacks that are
impacting other users.
-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] 6+ messages in thread
* Re: [PATCH] drm/i915: fix the dequeue logic for single_port_submission context
2016-11-16 7:07 ` Chris Wilson
@ 2016-11-16 7:40 ` He, Min
0 siblings, 0 replies; 6+ messages in thread
From: He, Min @ 2016-11-16 7:40 UTC (permalink / raw)
To: Chris Wilson; +Cc: intel-gfx@lists.freedesktop.org
> -----Original Message-----
> From: Chris Wilson [mailto:chris@chris-wilson.co.uk]
> Sent: Wednesday, November 16, 2016 3:07 PM
> To: He, Min <min.he@intel.com>
> Cc: intel-gfx@lists.freedesktop.org
> Subject: Re: [Intel-gfx] [PATCH] drm/i915: fix the dequeue logic for
> single_port_submission context
>
> On Wed, Nov 16, 2016 at 07:03:42AM +0000, He, Min wrote:
> >
> > > -----Original Message-----
> > > From: Chris Wilson [mailto:chris@chris-wilson.co.uk]
> > > Sent: Wednesday, November 16, 2016 2:52 PM
> > > To: He, Min <min.he@intel.com>
> > > Cc: intel-gfx@lists.freedesktop.org
> > > Subject: Re: [Intel-gfx] [PATCH] drm/i915: fix the dequeue logic for
> > > single_port_submission context
> > >
> > > On Wed, Nov 16, 2016 at 02:11:16PM +0800, Min He wrote:
> > > > For a singl_port_submission context, it can only be submitted to port 0,
> > > > and there shouldn't be any other context in port 1 at the same time.
> > > > This patch is to implement the correct logic in execlists_dequeue.
> > >
> > > There's a simpler fix. (Other than fixing the root cause of the bug in
> > > gvt.)
> > Can you describe this simpler fix? Thanks.
>
> Instead of changing the flow of the logic, add the break inside the
> cannot merge loop. Then you don't have multiple "cannot merge"
> questions.
Thanks, will send out a v2 patch.
>
> Also, my preferred solution would be to remove the gvt hacks that are
> impacting other users.
> -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] 6+ messages in thread
end of thread, other threads:[~2016-11-16 7:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-16 6:11 [PATCH] drm/i915: fix the dequeue logic for single_port_submission context Min He
2016-11-16 6:46 ` ✓ Fi.CI.BAT: success for " Patchwork
2016-11-16 6:52 ` [PATCH] " Chris Wilson
2016-11-16 7:03 ` He, Min
2016-11-16 7:07 ` Chris Wilson
2016-11-16 7:40 ` He, Min
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox