Commit 6b66208f authored by Yongqiang Sun's avatar Yongqiang Sun Committed by Alex Deucher

drm/amd/display: Move define from internal header to dmub_cmd.h

[Why & How]
Fix linux compile error
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarYongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: default avatarNicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: default avatarEryk Brol <eryk.brol@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b12f60ac
...@@ -172,6 +172,18 @@ union dmub_fw_meta { ...@@ -172,6 +172,18 @@ union dmub_fw_meta {
#pragma pack(pop) #pragma pack(pop)
//==============================================================================
//< DMUB Trace Buffer>================================================================
//==============================================================================
typedef uint32_t dmub_trace_code_t;
struct dmcub_trace_buf_entry {
dmub_trace_code_t trace_code;
uint32_t tick_count;
uint32_t param0;
uint32_t param1;
};
//============================================================================== //==============================================================================
//< DMUB_STATUS>================================================================ //< DMUB_STATUS>================================================================
//============================================================================== //==============================================================================
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include "dmub_dcn301.h" #include "dmub_dcn301.h"
#include "dmub_dcn302.h" #include "dmub_dcn302.h"
#include "os_types.h" #include "os_types.h"
#include "dmub_trace_buffer.h"
/* /*
* Note: the DMUB service is standalone. No additional headers should be * Note: the DMUB service is standalone. No additional headers should be
* added below or above this line unless they reside within the DMUB * added below or above this line unless they reside within the DMUB
...@@ -475,7 +474,7 @@ enum dmub_status dmub_srv_hw_init(struct dmub_srv *dmub, ...@@ -475,7 +474,7 @@ enum dmub_status dmub_srv_hw_init(struct dmub_srv *dmub,
cw5.region.top = cw5.region.base + tracebuff_fb->size; cw5.region.top = cw5.region.base + tracebuff_fb->size;
outbox0.base = DMUB_REGION5_BASE + TRACE_BUFFER_ENTRY_OFFSET; outbox0.base = DMUB_REGION5_BASE + TRACE_BUFFER_ENTRY_OFFSET;
outbox0.top = outbox0.base + sizeof(struct dmcub_trace_buf_entry) * PERF_TRACE_MAX_ENTRY; outbox0.top = outbox0.base + tracebuff_fb->size - TRACE_BUFFER_ENTRY_OFFSET;
cw6.offset.quad_part = fw_state_fb->gpu_addr; cw6.offset.quad_part = fw_state_fb->gpu_addr;
...@@ -518,7 +517,7 @@ enum dmub_status dmub_srv_hw_init(struct dmub_srv *dmub, ...@@ -518,7 +517,7 @@ enum dmub_status dmub_srv_hw_init(struct dmub_srv *dmub,
dmub_memset(&outbox0_rb_params, 0, sizeof(outbox0_rb_params)); dmub_memset(&outbox0_rb_params, 0, sizeof(outbox0_rb_params));
outbox0_rb_params.ctx = dmub; outbox0_rb_params.ctx = dmub;
outbox0_rb_params.base_address = (void *)((uint64_t)(tracebuff_fb->cpu_addr) + TRACE_BUFFER_ENTRY_OFFSET); outbox0_rb_params.base_address = (void *)((uint64_t)(tracebuff_fb->cpu_addr) + TRACE_BUFFER_ENTRY_OFFSET);
outbox0_rb_params.capacity = sizeof(struct dmcub_trace_buf_entry) * PERF_TRACE_MAX_ENTRY; outbox0_rb_params.capacity = tracebuff_fb->size - TRACE_BUFFER_ENTRY_OFFSET;
dmub_rb_init(&dmub->outbox0_rb, &outbox0_rb_params); dmub_rb_init(&dmub->outbox0_rb, &outbox0_rb_params);
if (dmub->hw_funcs.reset_release) if (dmub->hw_funcs.reset_release)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment