All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harish Chegondi <harish.chegondi@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: ashutosh.dixit@intel.com, james.ausmus@intel.com,
	felix.j.degrood@intel.com, jose.souza@intel.com,
	matias.a.cabral@intel.com, joshua.santosh.ranjan@intel.com,
	Harish Chegondi <harish.chegondi@intel.com>
Subject: [PATCH v3 0/1] Add support for EU stall sampling
Date: Mon,  9 Sep 2024 00:36:39 -0700	[thread overview]
Message-ID: <cover.1725866097.git.harish.chegondi@intel.com> (raw)

The following patch adds support for EU stall sampling, a new hardware
feature first added in PVC and is being supported in XE2 and later
architecture GPUs. This feature would enable capturing of EU stall
data which include the IP address of the instruction stalled and
various stall reason counts. More details are explained in the patch
commit message.

Support for this feature is being added into Mesa.
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30142

A new test in the IGT repo: 
https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
is also under development to test this feature in the driver. This
patch has undergone basic testing with the new IGT test that is under
development.

Thank You.

v3: a. Removed data header and changed read() to return -EIO when data is dropped by the HW.
    b. Added a new DRM_XE_OBSERVATION_IOCTL_INFO to query EU stall data record info
    c. Added struct drm_xe_eu_stall_data_pvc and struct drm_xe_eu_stall_data_xe2
       to xe_drm.h. These declarations would help user space to parse the
       EU stall data
    d. Addressed other review comments from v2
v2: Rename xe perf layer as xe observation layer (Ashutosh)

Harish Chegondi (1):
  drm/xe/eustall: Add support for EU stall sampling

 drivers/gpu/drm/xe/Makefile                |    1 +
 drivers/gpu/drm/xe/regs/xe_eu_stall_regs.h |   33 +
 drivers/gpu/drm/xe/xe_eustall_cntr.c       | 1000 ++++++++++++++++++++
 drivers/gpu/drm/xe/xe_eustall_cntr.h       |   60 ++
 drivers/gpu/drm/xe/xe_gt.c                 |    6 +
 drivers/gpu/drm/xe/xe_gt_topology.c        |    9 +
 drivers/gpu/drm/xe/xe_gt_topology.h        |    3 +
 drivers/gpu/drm/xe/xe_gt_types.h           |    3 +
 drivers/gpu/drm/xe/xe_observation.c        |   14 +
 drivers/gpu/drm/xe/xe_trace.h              |   35 +
 include/uapi/drm/xe_drm.h                  |  134 +++
 11 files changed, 1298 insertions(+)
 create mode 100644 drivers/gpu/drm/xe/regs/xe_eu_stall_regs.h
 create mode 100644 drivers/gpu/drm/xe/xe_eustall_cntr.c
 create mode 100644 drivers/gpu/drm/xe/xe_eustall_cntr.h

-- 
2.45.1


             reply	other threads:[~2024-09-09  7:36 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-09  7:36 Harish Chegondi [this message]
2024-09-09  7:36 ` [PATCH v3 1/1] drm/xe/eustall: Add support for EU stall sampling Harish Chegondi
2024-09-09 19:27   ` Dixit, Ashutosh
2024-09-10  0:09   ` Matt Roper
2024-09-11 23:21     ` Dixit, Ashutosh
2024-09-13  1:53       ` Harish Chegondi
2024-09-13  7:35         ` Ranjan, Joshua Santhosh
2024-09-20 18:07           ` Harish Chegondi
2024-10-02 17:14             ` Cabral, Matias A
2024-09-19 14:44         ` Cabral, Matias A
2024-09-12 18:43     ` Harish Chegondi
2024-09-09  7:42 ` [PATCH v3 0/1] " Ranjan, Joshua Santhosh
2024-09-10  6:33 ` ✓ CI.Patch_applied: success for " Patchwork
2024-09-10  6:33 ` ✗ CI.checkpatch: warning " Patchwork
2024-09-10  6:34 ` ✓ CI.KUnit: success " Patchwork
2024-09-10  6:52 ` ✓ CI.Build: " Patchwork
2024-09-10  7:02 ` ✗ CI.Hooks: failure " Patchwork
2024-09-10  7:05 ` ✓ CI.checksparse: success " Patchwork
2024-09-10  7:26 ` ✓ CI.BAT: " Patchwork
2024-09-10  8:53 ` ✗ CI.FULL: failure " 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=cover.1725866097.git.harish.chegondi@intel.com \
    --to=harish.chegondi@intel.com \
    --cc=ashutosh.dixit@intel.com \
    --cc=felix.j.degrood@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=james.ausmus@intel.com \
    --cc=jose.souza@intel.com \
    --cc=joshua.santosh.ranjan@intel.com \
    --cc=matias.a.cabral@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 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.