<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - [IGT] [APL] gem_workarounds@basic-read Test assertion failure"
href="https://bugs.freedesktop.org/show_bug.cgi?id=101176#c15">Comment # 15</a>
on <a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - [IGT] [APL] gem_workarounds@basic-read Test assertion failure"
href="https://bugs.freedesktop.org/show_bug.cgi?id=101176">bug 101176</a>
from <span class="vcard"><a class="email" href="mailto:humberto.i.perez.rodriguez@intel.com" title="Humberto Israel Perez Rodriguez <humberto.i.perez.rodriguez@intel.com>"> <span class="fn">Humberto Israel Perez Rodriguez</span></a>
</span></b>
<pre>(In reply to Mika Kuoppala from <a href="show_bug.cgi?id=101176#c13">comment #13</a>)
<span class="quote">> Can you try with:
>
> diff --git a/tests/gem_workarounds.c b/tests/gem_workarounds.c
> index c7286d86..c09512cb 100644
> --- a/tests/gem_workarounds.c
> +++ b/tests/gem_workarounds.c
> @@ -45,11 +45,11 @@ struct intel_wa_reg {
> static struct intel_wa_reg *wa_regs;
> static int num_wa_regs;
>
> -static void wait_gpu(void)
> +static int open_and_wake_gpu(void)
> {
> int fd = drm_open_driver(DRIVER_INTEL);
> gem_quiescent_gpu(fd);
> - close(fd);
> + return fd;
> }
>
> static void test_hang_gpu(void)
> @@ -67,13 +67,13 @@ static void test_suspend_resume(void)
>
> static int workaround_fail_count(void)
> {
> - int i, fail_count = 0;
> + int i, fd, fail_count = 0;
>
> /* There is a small delay after coming ot of rc6 to the correct
> render context values will get loaded by hardware (bdw,chv).
> This here ensures that we have the correct context loaded before
> we start to read values */
> - wait_gpu();
> + fd = open_and_wake_gpu();
>
> igt_debug("Address\tval\t\tmask\t\tread\t\tresult\n");
>
> @@ -95,6 +95,8 @@ static int workaround_fail_count(void)
> }
> }
>
> + close(fd);
> +
> return fail_count;
> }</span >
i cant apply the path, git show me the following error
fatal: corrupt patch at line 43
the command that i am using is the following
git apply --stat --verbose file.patch</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>