Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright 2020 Advanced Micro Devices, Inc.
0003  *
0004  * Permission is hereby granted, free of charge, to any person obtaining a
0005  * copy of this software and associated documentation files (the "Software"),
0006  * to deal in the Software without restriction, including without limitation
0007  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
0008  * and/or sell copies of the Software, and to permit persons to whom the
0009  * Software is furnished to do so, subject to the following conditions:
0010  *
0011  * The above copyright notice and this permission notice shall be included in
0012  * all copies or substantial portions of the Software.
0013  *
0014  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
0017  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
0018  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
0019  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0020  * OTHER DEALINGS IN THE SOFTWARE.
0021  *
0022  */
0023 
0024 #include "amdgpu_dm_trace.h"
0025 
0026 #define TRACE_DC_PIPE_STATE(pipe_ctx, index, max_pipes) \
0027     for (index = 0; index < max_pipes; ++index) { \
0028         struct pipe_ctx *pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[index]; \
0029         if (pipe_ctx->plane_state) \
0030             trace_amdgpu_dm_dc_pipe_state(pipe_ctx->pipe_idx, pipe_ctx->plane_state, \
0031                               pipe_ctx->stream, &pipe_ctx->plane_res, \
0032                               pipe_ctx->update_flags.raw); \
0033     }
0034 
0035 #define TRACE_DCE_CLOCK_STATE(dce_clocks) \
0036     trace_amdgpu_dm_dce_clocks_state(dce_clocks)
0037 
0038 #define TRACE_DCN_CLOCK_STATE(dcn_clocks) \
0039     trace_amdgpu_dm_dc_clocks_state(dcn_clocks)
0040 
0041 #define TRACE_DCN_FPU(begin, function, line, ref_count) \
0042     trace_dcn_fpu(begin, function, line, ref_count)