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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user