[PATCH v4 0/4] drm/panfrost: Expose perf counters to userspace

Rob Herring robh+dt at kernel.org
Tue Jun 18 15:30:00 UTC 2019


On Tue, Jun 18, 2019 at 2:16 AM Boris Brezillon
<boris.brezillon at collabora.com> wrote:
>
> Hello,
>
> This a new version of the panfrost perfcnt series, this time exposing
> this functionality through 2 ioctls instead of the debugfs approach
> used in v2.
>
> I also went for Emil's suggestion to expose those ioctls only when
> the unstable_iocts unsafe param is set to true. This way, I hope we'll
> be able to deprecate those ioctls when the generic solution to expose
> global perf counters is out.
>
> Also addressed the problems reported by Rob and Steven.
>
> Regards,
>
> Boris
>
> Changes in v4:
> * Fix a warning reported by kbuild bots
> * Add R-b/A-b
> * Use drm_gem_shmem_v[un]map() instead of drm_gem_v[un]map()
>
> Changes in v3:
> * Expose things through ioctls instead of debugfs (needed for
>   per-FD address space that is being worked on by Rob)
>
> Changes in v2:
> * Complete rewrite to expose things through debugfs
>
> Boris Brezillon (4):
>   drm/panfrost: Move gpu_{write,read}() macros to panfrost_regs.h
>   drm/panfrost: Add a module parameter to expose unstable ioctls
>   drm/panfrost: Add an helper to check the GPU generation
>   drm/panfrost: Expose performance counters through unstable ioctls

Series applied.

Rob


More information about the dri-devel mailing list