projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drm/amdgpu: show both cmd id and name when psp cmd failed
[linux-2.6-microblaze.git]
/
drivers
/
gpu
/
host1x
/
syncpt.h
diff --git
a/drivers/gpu/host1x/syncpt.h
b/drivers/gpu/host1x/syncpt.h
index
a6766f8
..
95cd29b
100644
(file)
--- a/
drivers/gpu/host1x/syncpt.h
+++ b/
drivers/gpu/host1x/syncpt.h
@@
-40,6
+40,13
@@
struct host1x_syncpt {
/* interrupt data */
struct host1x_syncpt_intr intr;
/* interrupt data */
struct host1x_syncpt_intr intr;
+
+ /*
+ * If a submission incrementing this syncpoint fails, lock it so that
+ * further submission cannot be made until application has handled the
+ * failure.
+ */
+ bool locked;
};
/* Initialize sync point array */
};
/* Initialize sync point array */
@@
-115,4
+122,9
@@
static inline int host1x_syncpt_is_valid(struct host1x_syncpt *sp)
return sp->id < host1x_syncpt_nb_pts(sp->host);
}
return sp->id < host1x_syncpt_nb_pts(sp->host);
}
+static inline void host1x_syncpt_set_locked(struct host1x_syncpt *sp)
+{
+ sp->locked = true;
+}
+
#endif
#endif