projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bda6fe8
)
drm/nouveau: fix the broken marco GSP_MSG_MAX_SIZE
author
Zhi Wang
<zhiw@nvidia.com>
Fri, 24 Jan 2025 18:29:50 +0000
(10:29 -0800)
committer
Danilo Krummrich
<dakr@kernel.org>
Fri, 24 Jan 2025 23:55:10 +0000
(
00:55
+0100)
The macro GSP_MSG_MAX_SIZE refers to another macro that doesn't exist.
It represents the max GSP message element size.
Fix the broken marco so it can be used to replace some magic numbers in
the code.
Signed-off-by: Zhi Wang <zhiw@nvidia.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/20250124182958.2040494-8-zhiw@nvidia.com
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c
b/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c
index
0753fe0
..
4e11369
100644
(file)
--- a/
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c
+++ b/
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c
@@
-61,7
+61,7
@@
extern struct dentry *nouveau_debugfs_root;
#define GSP_MSG_MIN_SIZE GSP_PAGE_SIZE
-#define GSP_MSG_MAX_SIZE
GSP_PAGE_MIN_SIZE * 16
+#define GSP_MSG_MAX_SIZE
(GSP_MSG_MIN_SIZE * 16)
/**
* DOC: GSP message queue element