mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
radeonsi: make sure profile_peak is used before using sqtt
Using sqtt without this profile can cause hangs. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15646>
This commit is contained in:
parent
c96ee36289
commit
77116d34ea
1 changed files with 6 additions and 1 deletions
|
|
@ -820,7 +820,12 @@ static struct pipe_context *si_pipe_create_context(struct pipe_screen *screen, v
|
|||
ctx = si_create_context(screen, flags);
|
||||
|
||||
if (ctx && sscreen->info.chip_class >= GFX9 && sscreen->debug_flags & DBG(SQTT)) {
|
||||
if (!si_init_thread_trace((struct si_context *)ctx)) {
|
||||
if (ac_check_profile_state(&sscreen->info)) {
|
||||
fprintf(stderr, "radeonsi: Canceling RGP trace request as a hang condition has been "
|
||||
"detected. Force the GPU into a profiling mode with e.g. "
|
||||
"\"echo profile_peak > "
|
||||
"/sys/class/drm/card0/device/power_dpm_force_performance_level\"\n");
|
||||
} else if (!si_init_thread_trace((struct si_context *)ctx)) {
|
||||
FREE(ctx);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue