Path: blob/master/drivers/gpu/drm/amd/display/dc/dc_trace.h
26535 views
/*1* Copyright 2020 Advanced Micro Devices, Inc.2*3* Permission is hereby granted, free of charge, to any person obtaining a4* copy of this software and associated documentation files (the "Software"),5* to deal in the Software without restriction, including without limitation6* the rights to use, copy, modify, merge, publish, distribute, sublicense,7* and/or sell copies of the Software, and to permit persons to whom the8* Software is furnished to do so, subject to the following conditions:9*10* The above copyright notice and this permission notice shall be included in11* all copies or substantial portions of the Software.12*13* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL16* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR17* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,18* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR19* OTHER DEALINGS IN THE SOFTWARE.20*21*/2223#include "amdgpu_dm_trace.h"2425#define TRACE_DC_PIPE_STATE(pipe_ctx, index, max_pipes) \26for (index = 0; index < max_pipes; ++index) { \27struct pipe_ctx *pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[index]; \28if (pipe_ctx->plane_state) \29trace_amdgpu_dm_dc_pipe_state(pipe_ctx->pipe_idx, pipe_ctx->plane_state, \30pipe_ctx->stream, &pipe_ctx->plane_res, \31pipe_ctx->update_flags.raw); \32}3334#define TRACE_DCE_CLOCK_STATE(dce_clocks) \35trace_amdgpu_dm_dce_clocks_state(dce_clocks)3637#define TRACE_DCN_CLOCK_STATE(dcn_clocks) \38trace_amdgpu_dm_dc_clocks_state(dcn_clocks)3940#define TRACE_DCN_FPU(begin, function, line, ref_count) \41trace_dcn_fpu(begin, function, line, ref_count)42#define TRACE_OPTC_LOCK_UNLOCK_STATE(optc, inst, lock) \43trace_dcn_optc_lock_unlock_state(optc, inst, lock, __func__, __LINE__)444546