<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Daniele:<br>
Thanks for the reply! Joonas and I did some researches in irc
after the email. We found B-spec did say the context image for
render engine consist 20 pages in context layout section. It looks
like a mistake in b-spec. Another interesting we found is the
context image size for KBL halo is weird, not the same with other
KBL SKUs.<br>
<br>
Thanks,<br>
Zhi.<br>
<br>
<span style="color: rgb(0, 0, 0); font-family: 'Segoe UI', 'Arial
Unicode MS', 'Lucida Grande', Helvetica, 'Ubuntu Light', 'DejaVu
Sans', FreeSans, sans-serif; font-size: 15px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none;"></span>
<div class="moz-cite-prefix">于 04/27/17 00:20, Daniele Ceraolo
Spurio 写道:<br>
</div>
<blockquote
cite="mid:4e27a0bc-c09b-0b8e-73c3-00c6ba9802c6@intel.com"
type="cite">
<br>
<br>
On 26/04/17 02:57, Zhi Wang wrote:
<br>
<blockquote type="cite">Uh...sorry for not mentioning that
before:), and stolen memory is not my
<br>
business. :(
<br>
<br>
Actually we root-caused it.
<br>
<br>
This is how we found this case:
<br>
<br>
The story is W driver directly allocated the ring buffer after
the
<br>
context image, and the context image size in W driver is 19
pages. GVT-g
<br>
will do shadow context during submission, we copy 20 pages from
guest
<br>
context image, so you can see, an extra page is copied here as
the
<br>
context image size is actual 19 pages. The extra page belows to
ring
<br>
buffer. When guest updates that page with new commands during
GVT-g
<br>
executing the workload, the extra page ( which is ring buffer
page) will
<br>
be over-written with old content, since GVT-g will copy the
shadow
<br>
context (20 pages) back to guest at this time.
<br>
<br>
That's the full story. I send another email to Harsh. He should
know if
<br>
the context image size of CHV is also 19 pages.
<br>
<br>
Thanks,
<br>
Zhi.
<br>
<br>
</blockquote>
<br>
I did a quick check and according to the specs both the BDW and
the CHV lrcs are formed by 18096 dwords plus the per-context HWSP,
which converts to 19 pages for both platforms.
<br>
<br>
Regards,
<br>
Daniele
<br>
<br>
<blockquote type="cite">于 04/26/17 17:52, Joonas Lahtinen 写道:
<br>
<blockquote type="cite">On ke, 2017-04-26 at 17:10 +0800, Zhi
Wang wrote:
<br>
<blockquote type="cite">Hi Joonas:
<br>
Can you change GEN8_LR_CONTEXT_RENDER_SIZE = (19 *
PAGE_SIZE)?
<br>
Then we don't need the hack in GVT-g. :P Actually it's 19
pages not
<br>
20 pages on BDW.
<br>
</blockquote>
The exception is only made for BDW, not Gen8 overall. Has the
change
<br>
been verified for CHV too?
<br>
<br>
Why hasn't a patch to fix above been sent for i915 in the
past? Just
<br>
like in the stolen memory disabling case, bugs should be root
caused
<br>
and then fixed, not just worked around quickly.
<br>
<br>
Regards, Joonas
<br>
</blockquote>
<br>
</blockquote>
_______________________________________________
<br>
intel-gvt-dev mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:intel-gvt-dev@lists.freedesktop.org">intel-gvt-dev@lists.freedesktop.org</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/intel-gvt-dev">https://lists.freedesktop.org/mailman/listinfo/intel-gvt-dev</a>
<br>
</blockquote>
<br>
</body>
</html>