From c63da3365d0f4f7504f64b460e6f65d0283ffec7 Mon Sep 17 00:00:00 2001 From: Zan Dobersek Date: Tue, 14 Apr 2026 15:09:18 +0200 Subject: [PATCH] tu: only support userspace-managed perfcounters on a7xx and earlier Future kernel API for perfcounter management will likely be required for a8xx and onwards. For a7xx and earlier, cmdstream-based selector and counter register management is still supported. Cc: mesa-stable Signed-off-by: Zan Dobersek (cherry picked from commit c2708afbc7e91da54183c72d5e8c89a452356073) Part-of: --- .pick_status.json | 2 +- src/freedreno/vulkan/tu_device.cc | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 336abf89f69..252fa163962 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2144,7 +2144,7 @@ "description": "tu: only support userspace-managed perfcounters on a7xx and earlier", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null diff --git a/src/freedreno/vulkan/tu_device.cc b/src/freedreno/vulkan/tu_device.cc index 7ac080b6dca..018fb291860 100644 --- a/src/freedreno/vulkan/tu_device.cc +++ b/src/freedreno/vulkan/tu_device.cc @@ -1778,6 +1778,9 @@ tu_physical_device_init(struct tu_physical_device *device, device->vk.pipeline_cache_import_ops = cache_import_ops; + /* gen8 and onwards must use kernel UAPI for perfcntr management */ + device->is_perf_cntr_selectable &= (device->info->chip <= 7); + return VK_SUCCESS; fail_free_name: