Skip to content

Commit c950c90

Browse files
zhiwang-nvidiajfvogel
authored andcommitted
drm/nouveau: fix the broken marco GSP_MSG_MAX_SIZE
[ Upstream commit bbae668 ] 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 <[email protected]> Signed-off-by: Danilo Krummrich <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Sasha Levin <[email protected]> (cherry picked from commit e1fffcd1d75db23797a842ccbd5ef9439e6a419d) Signed-off-by: Jack Vogel <[email protected]>
1 parent 121b04f commit c950c90

File tree

1 file changed

+1
-1
lines changed
  • drivers/gpu/drm/nouveau/nvkm/subdev/gsp

1 file changed

+1
-1
lines changed

drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
#include <linux/parser.h>
5959

6060
#define GSP_MSG_MIN_SIZE GSP_PAGE_SIZE
61-
#define GSP_MSG_MAX_SIZE GSP_PAGE_MIN_SIZE * 16
61+
#define GSP_MSG_MAX_SIZE (GSP_MSG_MIN_SIZE * 16)
6262

6363
struct r535_gsp_msg {
6464
u8 auth_tag_buffer[16];

0 commit comments

Comments
 (0)