freedreno/drm/virtio: More tracepoints
Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20263>
This commit is contained in:
@@ -279,6 +279,7 @@ fd_fence_del_locked(struct fd_fence *f)
|
||||
void
|
||||
fd_fence_flush(struct fd_fence *f)
|
||||
{
|
||||
MESA_TRACE_FUNC();
|
||||
/*
|
||||
* TODO we could simplify this to remove the flush_sync part of
|
||||
* fd_pipe_sp_flush() and just rely on the util_queue_fence_wait()
|
||||
@@ -290,5 +291,6 @@ fd_fence_flush(struct fd_fence *f)
|
||||
int
|
||||
fd_fence_wait(struct fd_fence *f)
|
||||
{
|
||||
MESA_TRACE_FUNC();
|
||||
return fd_pipe_wait(f->pipe, f);
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
#include "util/hash_table.h"
|
||||
#include "util/list.h"
|
||||
#include "util/log.h"
|
||||
#include "util/perf/cpu_trace.h"
|
||||
#include "util/simple_mtx.h"
|
||||
#include "util/slab.h"
|
||||
#include "util/u_atomic.h"
|
||||
|
||||
@@ -91,6 +91,7 @@ virtio_bo_cpu_prep_guest(struct fd_bo *bo)
|
||||
static int
|
||||
virtio_bo_cpu_prep(struct fd_bo *bo, struct fd_pipe *pipe, uint32_t op)
|
||||
{
|
||||
MESA_TRACE_FUNC();
|
||||
int ret;
|
||||
|
||||
/*
|
||||
@@ -193,6 +194,7 @@ virtio_bo_set_name(struct fd_bo *bo, const char *fmt, va_list ap)
|
||||
static void
|
||||
bo_upload(struct fd_bo *bo, unsigned off, void *src, unsigned len)
|
||||
{
|
||||
MESA_TRACE_FUNC();
|
||||
unsigned req_len = sizeof(struct msm_ccmd_gem_upload_req) + align(len, 4);
|
||||
struct virtio_bo *virtio_bo = to_virtio_bo(bo);
|
||||
|
||||
|
||||
@@ -332,6 +332,7 @@ virtio_execbuf_flush(struct fd_device *dev)
|
||||
int
|
||||
virtio_execbuf(struct fd_device *dev, struct msm_ccmd_req *req, bool sync)
|
||||
{
|
||||
MESA_TRACE_FUNC();
|
||||
struct virtio_device *virtio_dev = to_virtio_device(dev);
|
||||
int fence_fd, ret = 0;
|
||||
|
||||
@@ -388,6 +389,7 @@ virtio_host_sync(struct fd_device *dev, const struct msm_ccmd_req *req)
|
||||
int
|
||||
virtio_simple_ioctl(struct fd_device *dev, unsigned cmd, void *_req)
|
||||
{
|
||||
MESA_TRACE_FUNC();
|
||||
unsigned req_len = sizeof(struct msm_ccmd_ioctl_simple_req);
|
||||
unsigned rsp_len = sizeof(struct msm_ccmd_ioctl_simple_rsp);
|
||||
|
||||
|
||||
@@ -48,6 +48,7 @@ query_param(struct fd_pipe *pipe, uint32_t param, uint64_t *value)
|
||||
static int
|
||||
query_queue_param(struct fd_pipe *pipe, uint32_t param, uint64_t *value)
|
||||
{
|
||||
MESA_TRACE_FUNC();
|
||||
struct msm_ccmd_submitqueue_query_req req = {
|
||||
.hdr = MSM_CCMD(SUBMITQUEUE_QUERY, sizeof(req)),
|
||||
.queue_id = to_virtio_pipe(pipe)->queue_id,
|
||||
@@ -118,6 +119,7 @@ virtio_pipe_get_param(struct fd_pipe *pipe, enum fd_param_id param,
|
||||
static int
|
||||
virtio_pipe_wait(struct fd_pipe *pipe, const struct fd_fence *fence, uint64_t timeout)
|
||||
{
|
||||
MESA_TRACE_FUNC();
|
||||
struct msm_ccmd_wait_fence_req req = {
|
||||
.hdr = MSM_CCMD(WAIT_FENCE, sizeof(req)),
|
||||
.queue_id = to_virtio_pipe(pipe)->queue_id,
|
||||
|
||||
Reference in New Issue
Block a user