dc_trace.h (1850B)
1/* 2 * Copyright 2020 Advanced Micro Devices, Inc. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the 9 * Software is furnished to do so, subject to the following conditions: 10 * 11 * The above copyright notice and this permission notice shall be included in 12 * all copies or substantial portions of the Software. 13 * 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 * OTHER DEALINGS IN THE SOFTWARE. 21 * 22 */ 23 24#include "amdgpu_dm_trace.h" 25 26#define TRACE_DC_PIPE_STATE(pipe_ctx, index, max_pipes) \ 27 for (index = 0; index < max_pipes; ++index) { \ 28 struct pipe_ctx *pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[index]; \ 29 if (pipe_ctx->plane_state) \ 30 trace_amdgpu_dm_dc_pipe_state(pipe_ctx->pipe_idx, pipe_ctx->plane_state, \ 31 pipe_ctx->stream, &pipe_ctx->plane_res, \ 32 pipe_ctx->update_flags.raw); \ 33 } 34 35#define TRACE_DCE_CLOCK_STATE(dce_clocks) \ 36 trace_amdgpu_dm_dce_clocks_state(dce_clocks) 37 38#define TRACE_DCN_CLOCK_STATE(dcn_clocks) \ 39 trace_amdgpu_dm_dc_clocks_state(dcn_clocks) 40 41#define TRACE_DCN_FPU(begin, function, line, ref_count) \ 42 trace_dcn_fpu(begin, function, line, ref_count)