[Intel-gfx] [PATCH] drm/i915/perf: Refactor oa object to better manage resources

Chris Wilson chris at chris-wilson.co.uk
Wed Aug 7 19:39:25 UTC 2019


Quoting Umesh Nerlige Ramappa (2019-08-07 00:30:02)
> The oa object manages the oa buffer and must be allocated when the user
> intends to read performance counter snapshots. This can be achieved by
> making the oa object part of the stream object which is allocated when a
> stream is opened by the user.
> 
> Attributes in the oa object that are gen-specific are moved to the perf
> object so that they can be initialized on driver load.
> 
> The split provides a better separation of the objects used in perf
> implementation of i915 driver so that resources are allocated and
> initialized only when needed.
> 
> v2: Fix checkpatch warnings
> v3: Addressed Lionel's review comment
> v4: Rebase
> v5: Fix rebase/merge issue with ratelimit_state_init
> 
> Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at intel.com>
> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

Pushed. Thanks,
-Chris


More information about the Intel-gfx mailing list