Commit 94d82e95 authored by Umesh Nerlige Ramappa's avatar Umesh Nerlige Ramappa

drm/i915/perf: Pass i915 object to perf revision helper

In some cases, perf revision may rely on specific steppings of a
platform. To determine the platform, pass i915 object to the perf
revision helper.
Signed-off-by: default avatarUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: default avatarAshutosh Dixit <ashutosh.dixit@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230323225901.3743681-11-umesh.nerlige.ramappa@intel.com
parent 1cc064dc
...@@ -173,7 +173,7 @@ int i915_getparam_ioctl(struct drm_device *dev, void *data, ...@@ -173,7 +173,7 @@ int i915_getparam_ioctl(struct drm_device *dev, void *data,
value = INTEL_INFO(i915)->has_coherent_ggtt; value = INTEL_INFO(i915)->has_coherent_ggtt;
break; break;
case I915_PARAM_PERF_REVISION: case I915_PARAM_PERF_REVISION:
value = i915_perf_ioctl_version(); value = i915_perf_ioctl_version(i915);
break; break;
case I915_PARAM_OA_TIMESTAMP_FREQUENCY: case I915_PARAM_OA_TIMESTAMP_FREQUENCY:
value = i915_perf_oa_timestamp_frequency(i915); value = i915_perf_oa_timestamp_frequency(i915);
......
...@@ -5289,7 +5289,7 @@ void i915_perf_fini(struct drm_i915_private *i915) ...@@ -5289,7 +5289,7 @@ void i915_perf_fini(struct drm_i915_private *i915)
* *
* This version number is used by userspace to detect available features. * This version number is used by userspace to detect available features.
*/ */
int i915_perf_ioctl_version(void) int i915_perf_ioctl_version(struct drm_i915_private *i915)
{ {
/* /*
* 1: Initial version * 1: Initial version
......
...@@ -22,7 +22,7 @@ int i915_perf_init(struct drm_i915_private *i915); ...@@ -22,7 +22,7 @@ int i915_perf_init(struct drm_i915_private *i915);
void i915_perf_fini(struct drm_i915_private *i915); void i915_perf_fini(struct drm_i915_private *i915);
void i915_perf_register(struct drm_i915_private *i915); void i915_perf_register(struct drm_i915_private *i915);
void i915_perf_unregister(struct drm_i915_private *i915); void i915_perf_unregister(struct drm_i915_private *i915);
int i915_perf_ioctl_version(void); int i915_perf_ioctl_version(struct drm_i915_private *i915);
int i915_perf_sysctl_register(void); int i915_perf_sysctl_register(void);
void i915_perf_sysctl_unregister(void); void i915_perf_sysctl_unregister(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment