{
u32 flush = 0;
+ lockdep_assert_held(&gpu->lock);
+
/*
* This assumes that if we're switching to 2D, we're switching
* away from 3D, and vice versa. Hence, if we're switching to
{
struct etnaviv_cmdbuf *buffer = gpu->buffer;
+ lockdep_assert_held(&gpu->lock);
+
/* initialize buffer */
buffer->user_size = 0;
{
struct etnaviv_cmdbuf *buffer = gpu->buffer;
+ lockdep_assert_held(&gpu->lock);
+
buffer->user_size = 0;
if (gpu->identity.features & chipFeatures_PIPE_3D) {
unsigned int waitlink_offset = buffer->user_size - 16;
u32 link_target, flush = 0;
+ lockdep_assert_held(&gpu->lock);
+
if (gpu->exec_state == ETNA_PIPE_2D)
flush = VIVS_GL_FLUSH_CACHE_PE2D;
else if (gpu->exec_state == ETNA_PIPE_3D)
unsigned int waitlink_offset = buffer->user_size - 16;
u32 dwords, target;
+ lockdep_assert_held(&gpu->lock);
+
/*
* We need at most 3 dwords in the return target:
* 1 event + 1 end + 1 wait + 1 link.
u32 link_target, link_dwords;
bool switch_context = gpu->exec_state != cmdbuf->exec_state;
+ lockdep_assert_held(&gpu->lock);
+
if (drm_debug & DRM_UT_DRIVER)
etnaviv_buffer_dump(gpu, buffer, 0, 0x50);