projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af696a6
)
drm/nouveau/flcn: add printk macros
author
Ben Skeggs
<bskeggs@redhat.com>
Tue, 14 Jan 2020 20:34:22 +0000
(06:34 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Wed, 15 Jan 2020 00:50:28 +0000
(10:50 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/core/falcon.h
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/include/nvkm/core/falcon.h
b/drivers/gpu/drm/nouveau/include/nvkm/core/falcon.h
index
269814e
..
7bef0e6
100644
(file)
--- a/
drivers/gpu/drm/nouveau/include/nvkm/core/falcon.h
+++ b/
drivers/gpu/drm/nouveau/include/nvkm/core/falcon.h
@@
-20,4
+20,13
@@
void nvkm_falcon_v1_disable(struct nvkm_falcon *);
void gp102_sec2_flcn_bind_context(struct nvkm_falcon *, struct nvkm_memory *);
int gp102_sec2_flcn_enable(struct nvkm_falcon *);
+
+#define FLCN_PRINTK(t,f,fmt,a...) do { \
+ if (nvkm_subdev_name[(f)->owner->index] != (f)->name) \
+ nvkm_##t((f)->owner, "%s: "fmt"\n", (f)->name, ##a); \
+ else \
+ nvkm_##t((f)->owner, fmt"\n", ##a); \
+} while(0)
+#define FLCN_DBG(f,fmt,a...) FLCN_PRINTK(debug, (f), fmt, ##a)
+#define FLCN_ERR(f,fmt,a...) FLCN_PRINTK(error, (f), fmt, ##a)
#endif