]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/perf: check the value of PROP_SAMPLE_OA uapi parameter
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 26 Mar 2018 09:08:22 +0000 (10:08 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 29 Mar 2018 12:30:02 +0000 (13:30 +0100)
commit23dd8a4279b82ecd5066df5806e06eb235da95db
tree15ebeb510f4c63f6c87175862d6598a370e7c0c6
parent96014833862bf336a3bacfd47aad68b00f1c6dfe
drm/i915/perf: check the value of PROP_SAMPLE_OA uapi parameter

We've been a bit loose about this opening parameter. We should only
add the flag for writing OA reports when the value of this parameter
is != 0.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180326090831.22686-3-lionel.g.landwerlin@intel.com
drivers/gpu/drm/i915/i915_perf.c