@@ -16,7 +16,6 @@ hwctx_umq(const device& device, const xrt::xclbin& xclbin, const qos_type& qos)
16
16
m_col_cnt = xp.get_column_cnt ();
17
17
18
18
init_tcp_server (device);
19
- init_log_buf ();
20
19
}
21
20
22
21
hwctx_umq::
@@ -27,8 +26,6 @@ hwctx_umq(const device& device, uint32_t partition_size)
27
26
m_col_cnt = partition_size;
28
27
29
28
init_tcp_server (device);
30
- init_log_buf ();
31
- // TODO: configure log BO on the hwctx
32
29
shim_debug (" Created UMQ HW context (%d)" , get_slotidx ());
33
30
}
34
31
@@ -37,51 +34,6 @@ hwctx_umq::
37
34
{
38
35
shim_debug (" Destroying UMQ HW context (%d)..." , get_slotidx ());
39
36
fini_tcp_server ();
40
- // TODO: unconfigure log BO on the hwctx
41
- fini_log_buf ();
42
- }
43
-
44
- void
45
- hwctx_umq::
46
- init_log_buf ()
47
- {
48
- size_t column_size = 4096 ;
49
- auto log_buf_size = m_col_cnt * column_size;
50
- m_log_bo = std::make_unique<uc_dbg_buffer>
51
- (m_pdev, log_buf_size, AMDXDNA_BO_CMD);
52
- auto log_buf = m_log_bo->vaddr ();
53
- std::memset (log_buf, 0 , log_buf_size);
54
-
55
- auto f = xcl_bo_flags{0 };
56
- f.use = XRT_BO_USE_LOG;
57
- f.flags = XRT_BO_FLAGS_CACHEABLE;
58
- f.access = XRT_BO_ACCESS_LOCAL;
59
- f.dir = XRT_BO_ACCESS_READ_WRITE;
60
-
61
- m_log_bo->set_flags (f.all );
62
-
63
- std::map<uint32_t ,size_t > buf_sizes;
64
- set_metadata (buf_sizes, m_col_cnt, column_size);
65
-
66
- // TODO: configure log BO on the hwctx once driver and fw support it
67
- // we may use xrt.ini to control the config
68
- m_log_bo->config (this , buf_sizes);
69
- }
70
-
71
- void
72
- hwctx_umq::
73
- fini_log_buf (void )
74
- {
75
- // Nothing to do.
76
- }
77
-
78
- void
79
- hwctx_umq::
80
- set_metadata (std::map<uint32_t , size_t >& buf_sizes, int num_ucs, size_t size)
81
- {
82
- for (int i = 0 ; i < num_ucs; i++) {
83
- buf_sizes[i] = size;
84
- }
85
37
}
86
38
87
39
void
0 commit comments