public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Cc: Matthew Auld <matthew.auld@intel.com>
Subject: Re: [PATCH] RFC/RFT drm/i915/oa: Drop aging-tail
Date: Tue, 19 Feb 2019 12:08:03 +0000	[thread overview]
Message-ID: <e9c49812-62aa-a27e-ed6b-64e293ade1e8@intel.com> (raw)
In-Reply-To: <20190219102849.1623-1-chris@chris-wilson.co.uk>

On 19/02/2019 10:28, Chris Wilson wrote:
> Switch to using coherent reads that are serialised with the register
> read to avoid the memory latency problem in favour over an arbitrary
> delay. The only zeroes seen during testing on HSW+ have been from
> configuration changes that do not update (therefore were truly zero
> entries and should be skipped).
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
> Cc: Matthew Auld <matthew.auld@intel.com>
> ---
>   drivers/gpu/drm/i915/i915_drv.h  |  59 ---
>   drivers/gpu/drm/i915/i915_perf.c | 625 +++++--------------------------
>   2 files changed, 87 insertions(+), 597 deletions(-)


I took the I915_READ_FW() changes + the i915_vma_(un)pin_iomap and I'm 
still seeing reads of the HW tail register pointing 2 reports behind the 
last one that actually has its reason & timestamp fields != 0.

That is within a run where at the timestamp register went from 
0xa21d5813 to 0xa3b3441a for example.

But the DRM_NOTE("Skipping spurious, invalid OA report\n"); didn't fire 
once, meaning the reports had their data landing some time after the 
oa_buffer_check() call.


To me this seems to show there is clearly an issue with the HW and that 
we need the workaround.


-Lionel


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

  parent reply	other threads:[~2019-02-19 12:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-19 10:28 [PATCH] RFC/RFT drm/i915/oa: Drop aging-tail Chris Wilson
2019-02-19 10:52 ` Lionel Landwerlin
2019-02-19 11:16 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2019-02-19 11:17 ` ✗ Fi.CI.SPARSE: " Patchwork
2019-02-19 11:38 ` ✓ Fi.CI.BAT: success " Patchwork
2019-02-19 11:43 ` [PATCH] " Lionel Landwerlin
2019-02-19 12:08 ` Lionel Landwerlin [this message]
2019-02-19 15:07 ` ✓ Fi.CI.IGT: success for " 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=e9c49812-62aa-a27e-ed6b-64e293ade1e8@intel.com \
    --to=lionel.g.landwerlin@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=matthew.auld@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox