All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@collabora.com>
To: Steven Price <steven.price@arm.com>
Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>,
	Christopher Healy <healych@amazon.com>,
	dri-devel@lists.freedesktop.org, Rob Herring <robh+dt@kernel.org>,
	Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>,
	Robin Murphy <robin.murphy@arm.com>
Subject: Re: [PATCH RFC 0/4] drm/panfrost: Expose memory usage stats through fdinfo
Date: Mon, 16 Jan 2023 12:05:15 +0100	[thread overview]
Message-ID: <20230116120515.1cd3243d@collabora.com> (raw)
In-Reply-To: <5b4f73a1-60bf-7da6-e94d-fca9f6ec7c3a@arm.com>

Hi Steven,

On Mon, 16 Jan 2023 10:30:21 +0000
Steven Price <steven.price@arm.com> wrote:

> On 04/01/2023 13:03, Boris Brezillon wrote:
> > Hello,
> > 
> > Here's an attempt at exposing some memory usage stats through fdinfo,
> > which recently proved useful in debugging a memory leak. Not entirely
> > sure the name I chose are accurate, so feel free to propose
> > alternatives, and let me know if you see any other mem-related stuff
> > that would be interesting to expose.  
> 
> Sorry it's taken me a while to look at this - I'm still working through
> the holiday backlog.
> 
> The names look reasonable to me, and I gave this a quick spin and it
> seemed to work (the numbers reported looks reasonable). As Daniel
> suggested it would be good if some of the boiler plate fdinfo code could
> be moved to generic code (although to be fair there's not much here).
> 
> Of course what we're missing is the 'engine' usage information for
> gputop - it's been on my todo list of a while, but I'm more than happy
> for you to do it for me ;) It's somewhat more tricky because of the
> whole 'queuing' on slots mechanism that Mali has. But we obviously
> shouldn't block this memory implementation on that, it can be added
> afterwards.

Yeah, we've been discussing this drm-engine-xxx feature with Chris, and
I was telling him there's no easy way to get accurate numbers when
_NEXT queuing is involved. It all depends on whether we're able to
process the first job DONE interrupt before the second one kicks in, and
even then, we can't tell for sure for how long the second job has been
running when we get to process the first job interrupt. Inserting
WRITE_JOB(CYCLE_COUNT) before a job chain is doable, but inserting it
after isn't, and I'm not sure we want to add such tricks to the kernel
driver anyway. Don't know if you have any better ideas. If not, I guess
we can leave with this inaccuracy and still expose drm-engine-xxx...

Regards,

Boris

  reply	other threads:[~2023-01-16 11:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-04 13:03 [PATCH RFC 0/4] drm/panfrost: Expose memory usage stats through fdinfo Boris Brezillon
2023-01-04 13:03 ` [PATCH RFC 1/4] drm/panfrost: Provide a dummy show_fdinfo() implementation Boris Brezillon
2023-01-05 15:31   ` Daniel Vetter
2023-01-09  8:34     ` Boris Brezillon
2023-01-09 10:17       ` Daniel Vetter
2023-01-09 10:44         ` Boris Brezillon
2023-01-04 13:03 ` [PATCH RFC 2/4] drm/panfrost: Track BO resident size Boris Brezillon
2023-01-04 13:03 ` [PATCH RFC 3/4] drm/panfrost: Add a helper to retrieve MMU context stats Boris Brezillon
2023-01-04 13:03 ` [PATCH RFC 4/4] drm/panfrost: Expose some memory related stats through fdinfo Boris Brezillon
2023-01-23 11:18   ` Tvrtko Ursulin
2023-01-16 10:30 ` [PATCH RFC 0/4] drm/panfrost: Expose memory usage " Steven Price
2023-01-16 11:05   ` Boris Brezillon [this message]
2023-01-16 12:21     ` Steven Price

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=20230116120515.1cd3243d@collabora.com \
    --to=boris.brezillon@collabora.com \
    --cc=alyssa.rosenzweig@collabora.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=healych@amazon.com \
    --cc=robh+dt@kernel.org \
    --cc=robin.murphy@arm.com \
    --cc=steven.price@arm.com \
    --cc=tomeu.vizoso@collabora.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.