dri-devel Archive mirror
 help / color / mirror / Atom feed
From: Zack Rusin <zackr@vmware.com>
To: <dri-devel@lists.freedesktop.org>
Subject: [PATCH 0/9] Adding support for mks-stats and some cleanups/fixes
Date: Wed, 9 Jun 2021 13:22:58 -0400	[thread overview]
Message-ID: <20210609172307.131929-1-zackr@vmware.com> (raw)

Our GL driver added support for mks-stats (a count/time based profiling
that can combine guest/host stats into a singular profile) a while
back but it was only used on windows. This set adds support for
mks-stats to the kernel driver. The stats are reported in the host
side logs. With time we'll be expanding the list of kernel side stats,
currently only execbuf is being measured. The GL driver already
has all the relevant entrypoints measured.

There's also a bunch of cleanups and fixes.

Martin Krastev (2):
  drm/vmwgfx: Introduce VMware mks-guest-stats
  drm/vmwgfx: Refactor vmw_mksstat_remove_ioctl to expect pgid match
    with vmw_mksstat_add_ioctl to authorise removal.

Zack Rusin (7):
  drm/vmwgfx: Simplify devcaps code
  drm/vmwgfx: Fix subresource updates with new contexts
  drm/vmwgfx: Fix some static checker warnings
  drm/vmwgfx: remove code that was using physical page addresses
  drm/vmwgfx: inline access to the pages from the piter
  drm/vmwgfx: Remove vmw_chipset
  drm/vmwgfx: Fix implicit declaration error

 drivers/gpu/drm/vmwgfx/Kconfig                |   7 +
 drivers/gpu/drm/vmwgfx/Makefile               |   2 +-
 .../drm/vmwgfx/device_include/svga_types.h    |  92 ++-
 .../vmwgfx/device_include/vm_basic_types.h    |  22 -
 drivers/gpu/drm/vmwgfx/ttm_memory.c           |   2 +
 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c       |  20 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c           |   6 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c        |   2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c    |   4 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_devcaps.c       | 142 +++++
 drivers/gpu/drm/vmwgfx/vmwgfx_devcaps.h       |  50 ++
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c           |  58 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h           |  38 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c       |  15 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c         | 109 +---
 drivers/gpu/drm/vmwgfx/vmwgfx_mksstat.h       | 144 +++++
 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c           |   4 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c           | 579 +++++++++++++++++-
 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c      |   8 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_so.c            |   3 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c       |   5 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c    |  35 --
 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c    |   4 +-
 include/uapi/drm/vmwgfx_drm.h                 |  41 ++
 24 files changed, 1175 insertions(+), 217 deletions(-)
 delete mode 100644 drivers/gpu/drm/vmwgfx/device_include/vm_basic_types.h
 create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_devcaps.c
 create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_devcaps.h
 create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_mksstat.h

-- 
2.30.2


             reply	other threads:[~2021-06-09 17:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-09 17:22 Zack Rusin [this message]
2021-06-09 17:22 ` [PATCH 1/9] drm/vmwgfx: Simplify devcaps code Zack Rusin
2021-06-09 17:23 ` [PATCH 2/9] drm/vmwgfx: Introduce VMware mks-guest-stats Zack Rusin
2021-06-09 17:23 ` [PATCH 3/9] drm/vmwgfx: Fix subresource updates with new contexts Zack Rusin
2021-06-10  6:49   ` Thomas Hellström (Intel)
2021-06-10 16:59     ` Zack Rusin
2021-06-09 17:23 ` [PATCH 4/9] drm/vmwgfx: Fix some static checker warnings Zack Rusin
2021-06-09 17:23 ` [PATCH 5/9] drm/vmwgfx: remove code that was using physical page addresses Zack Rusin
2021-06-09 17:23 ` [PATCH 6/9] drm/vmwgfx: inline access to the pages from the piter Zack Rusin
2021-06-09 17:23 ` [PATCH 7/9] drm/vmwgfx: Refactor vmw_mksstat_remove_ioctl to expect pgid match with vmw_mksstat_add_ioctl to authorise removal Zack Rusin
2021-06-09 17:23 ` [PATCH 8/9] drm/vmwgfx: Remove vmw_chipset Zack Rusin
2021-06-09 17:23 ` [PATCH 9/9] drm/vmwgfx: Fix implicit declaration error Zack Rusin
2021-06-09 17:24   ` Christian König

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=20210609172307.131929-1-zackr@vmware.com \
    --to=zackr@vmware.com \
    --cc=dri-devel@lists.freedesktop.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).