Mesa (main): anv: disable dev.i915.perf_stream_paranoid=0 warning

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jul 22 17:53:35 UTC 2022


Module: Mesa
Branch: main
Commit: aed433833fb9c475ad655eadbcd759f806c41ea0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=aed433833fb9c475ad655eadbcd759f806c41ea0

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Wed Jul 20 15:04:22 2022 -0400

anv: disable dev.i915.perf_stream_paranoid=0 warning

this is spammed constantly even if ANV isn't used

fixes #6731

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17661>

---

 src/intel/vulkan/anv_perf.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/src/intel/vulkan/anv_perf.c b/src/intel/vulkan/anv_perf.c
index b5c5c315a1e..306284e65e8 100644
--- a/src/intel/vulkan/anv_perf.c
+++ b/src/intel/vulkan/anv_perf.c
@@ -52,18 +52,8 @@ anv_physical_device_init_perf(struct anv_physical_device *device, int fd)
                            false /* pipeline statistics */,
                            true /* register snapshots */);
 
-   if (!perf->n_queries) {
-      if (perf->platform_supported) {
-         static bool warned_once = false;
-
-         if (!warned_once) {
-            mesa_logw("Performance support disabled, "
-                      "consider sysctl dev.i915.perf_stream_paranoid=0\n");
-            warned_once = true;
-         }
-      }
+   if (!perf->n_queries)
       goto err;
-   }
 
    /* We need DRM_I915_PERF_PROP_HOLD_PREEMPTION support, only available in
     * perf revision 2.



More information about the mesa-commit mailing list