mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
amd: add has_gpuvm_fault_query
Whether the kernel allows to query the last GPUVM fault. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23238>
This commit is contained in:
parent
37462ce72d
commit
bdc62108be
2 changed files with 3 additions and 0 deletions
|
|
@ -1025,6 +1025,7 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info,
|
|||
info->has_sparse_vm_mappings = info->gfx_level >= GFX7;
|
||||
info->has_scheduled_fence_dependency = info->drm_minor >= 28;
|
||||
info->has_gang_submit = info->drm_minor >= 49;
|
||||
info->has_gpuvm_fault_query = info->drm_minor >= 55;
|
||||
/* WARNING: Register shadowing decreases performance by up to 50% on GFX11 with current FW. */
|
||||
info->register_shadowing_required = device_info.ids_flags & AMDGPU_IDS_FLAGS_PREEMPTION &&
|
||||
info->gfx_level < GFX11;
|
||||
|
|
@ -1814,6 +1815,7 @@ void ac_print_gpu_info(const struct radeon_info *info, FILE *f)
|
|||
fprintf(f, " has_stable_pstate = %u\n", info->has_stable_pstate);
|
||||
fprintf(f, " has_scheduled_fence_dependency = %u\n", info->has_scheduled_fence_dependency);
|
||||
fprintf(f, " has_gang_submit = %u\n", info->has_gang_submit);
|
||||
fprintf(f, " has_gpuvm_fault_query = %u\n", info->has_gpuvm_fault_query);
|
||||
fprintf(f, " register_shadowing_required = %u\n", info->register_shadowing_required);
|
||||
fprintf(f, " has_fw_based_shadowing = %u\n", info->has_fw_based_shadowing);
|
||||
if (info->has_fw_based_shadowing) {
|
||||
|
|
|
|||
|
|
@ -204,6 +204,7 @@ struct radeon_info {
|
|||
bool has_sparse_vm_mappings;
|
||||
bool has_scheduled_fence_dependency;
|
||||
bool has_gang_submit;
|
||||
bool has_gpuvm_fault_query;
|
||||
bool has_pcie_bandwidth_info;
|
||||
bool has_stable_pstate;
|
||||
/* Whether SR-IOV is enabled or amdgpu.mcbp=1 was set on the kernel command line. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue