Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: Remove unused pre_surface_trace

pre_surface_trace() has been unused since 2017's
commit 745cc746da42 ("drm/amd/display: remove
dc_pre_update_surfaces_to_stream from dc use")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Dr. David Alan Gilbert and committed by
Alex Deucher
f281a92a 7b111aaa

-125
-120
drivers/gpu/drm/amd/display/dc/core/dc_debug.c
··· 51 51 DC_LOG_BANDWIDTH_CALCS(__VA_ARGS__); \ 52 52 } while (0) 53 53 54 - void pre_surface_trace( 55 - struct dc *dc, 56 - const struct dc_plane_state *const *plane_states, 57 - int surface_count) 58 - { 59 - int i; 60 - DC_LOGGER_INIT(dc->ctx->logger); 61 - 62 - for (i = 0; i < surface_count; i++) { 63 - const struct dc_plane_state *plane_state = plane_states[i]; 64 - 65 - SURFACE_TRACE("Planes %d:\n", i); 66 - 67 - SURFACE_TRACE( 68 - "plane_state->visible = %d;\n" 69 - "plane_state->flip_immediate = %d;\n" 70 - "plane_state->address.type = %d;\n" 71 - "plane_state->address.grph.addr.quad_part = 0x%llX;\n" 72 - "plane_state->address.grph.meta_addr.quad_part = 0x%llX;\n" 73 - "plane_state->scaling_quality.h_taps = %d;\n" 74 - "plane_state->scaling_quality.v_taps = %d;\n" 75 - "plane_state->scaling_quality.h_taps_c = %d;\n" 76 - "plane_state->scaling_quality.v_taps_c = %d;\n", 77 - plane_state->visible, 78 - plane_state->flip_immediate, 79 - plane_state->address.type, 80 - plane_state->address.grph.addr.quad_part, 81 - plane_state->address.grph.meta_addr.quad_part, 82 - plane_state->scaling_quality.h_taps, 83 - plane_state->scaling_quality.v_taps, 84 - plane_state->scaling_quality.h_taps_c, 85 - plane_state->scaling_quality.v_taps_c); 86 - 87 - SURFACE_TRACE( 88 - "plane_state->src_rect.x = %d;\n" 89 - "plane_state->src_rect.y = %d;\n" 90 - "plane_state->src_rect.width = %d;\n" 91 - "plane_state->src_rect.height = %d;\n" 92 - "plane_state->dst_rect.x = %d;\n" 93 - "plane_state->dst_rect.y = %d;\n" 94 - "plane_state->dst_rect.width = %d;\n" 95 - "plane_state->dst_rect.height = %d;\n" 96 - "plane_state->clip_rect.x = %d;\n" 97 - "plane_state->clip_rect.y = %d;\n" 98 - "plane_state->clip_rect.width = %d;\n" 99 - "plane_state->clip_rect.height = %d;\n", 100 - plane_state->src_rect.x, 101 - plane_state->src_rect.y, 102 - plane_state->src_rect.width, 103 - plane_state->src_rect.height, 104 - plane_state->dst_rect.x, 105 - plane_state->dst_rect.y, 106 - plane_state->dst_rect.width, 107 - plane_state->dst_rect.height, 108 - plane_state->clip_rect.x, 109 - plane_state->clip_rect.y, 110 - plane_state->clip_rect.width, 111 - plane_state->clip_rect.height); 112 - 113 - SURFACE_TRACE( 114 - "plane_state->plane_size.surface_size.x = %d;\n" 115 - "plane_state->plane_size.surface_size.y = %d;\n" 116 - "plane_state->plane_size.surface_size.width = %d;\n" 117 - "plane_state->plane_size.surface_size.height = %d;\n" 118 - "plane_state->plane_size.surface_pitch = %d;\n", 119 - plane_state->plane_size.surface_size.x, 120 - plane_state->plane_size.surface_size.y, 121 - plane_state->plane_size.surface_size.width, 122 - plane_state->plane_size.surface_size.height, 123 - plane_state->plane_size.surface_pitch); 124 - 125 - 126 - SURFACE_TRACE( 127 - "plane_state->tiling_info.gfx8.num_banks = %d;\n" 128 - "plane_state->tiling_info.gfx8.bank_width = %d;\n" 129 - "plane_state->tiling_info.gfx8.bank_width_c = %d;\n" 130 - "plane_state->tiling_info.gfx8.bank_height = %d;\n" 131 - "plane_state->tiling_info.gfx8.bank_height_c = %d;\n" 132 - "plane_state->tiling_info.gfx8.tile_aspect = %d;\n" 133 - "plane_state->tiling_info.gfx8.tile_aspect_c = %d;\n" 134 - "plane_state->tiling_info.gfx8.tile_split = %d;\n" 135 - "plane_state->tiling_info.gfx8.tile_split_c = %d;\n" 136 - "plane_state->tiling_info.gfx8.tile_mode = %d;\n" 137 - "plane_state->tiling_info.gfx8.tile_mode_c = %d;\n", 138 - plane_state->tiling_info.gfx8.num_banks, 139 - plane_state->tiling_info.gfx8.bank_width, 140 - plane_state->tiling_info.gfx8.bank_width_c, 141 - plane_state->tiling_info.gfx8.bank_height, 142 - plane_state->tiling_info.gfx8.bank_height_c, 143 - plane_state->tiling_info.gfx8.tile_aspect, 144 - plane_state->tiling_info.gfx8.tile_aspect_c, 145 - plane_state->tiling_info.gfx8.tile_split, 146 - plane_state->tiling_info.gfx8.tile_split_c, 147 - plane_state->tiling_info.gfx8.tile_mode, 148 - plane_state->tiling_info.gfx8.tile_mode_c); 149 - 150 - SURFACE_TRACE( 151 - "plane_state->tiling_info.gfx8.pipe_config = %d;\n" 152 - "plane_state->tiling_info.gfx8.array_mode = %d;\n" 153 - "plane_state->color_space = %d;\n" 154 - "plane_state->dcc.enable = %d;\n" 155 - "plane_state->format = %d;\n" 156 - "plane_state->rotation = %d;\n" 157 - "plane_state->stereo_format = %d;\n", 158 - plane_state->tiling_info.gfx8.pipe_config, 159 - plane_state->tiling_info.gfx8.array_mode, 160 - plane_state->color_space, 161 - plane_state->dcc.enable, 162 - plane_state->format, 163 - plane_state->rotation, 164 - plane_state->stereo_format); 165 - 166 - SURFACE_TRACE("plane_state->tiling_info.gfx9.swizzle = %d;\n", 167 - plane_state->tiling_info.gfx9.swizzle); 168 - 169 - SURFACE_TRACE("\n"); 170 - } 171 - SURFACE_TRACE("\n"); 172 - } 173 - 174 54 void update_surface_trace( 175 55 struct dc *dc, 176 56 const struct dc_surface_update *updates,
-5
drivers/gpu/drm/amd/display/include/logger_interface.h
··· 40 40 * 41 41 */ 42 42 43 - void pre_surface_trace( 44 - struct dc *dc, 45 - const struct dc_plane_state *const *plane_states, 46 - int surface_count); 47 - 48 43 void update_surface_trace( 49 44 struct dc *dc, 50 45 const struct dc_surface_update *updates,