Skip to content

Commit 18db77b

Browse files
airliedgregkh
authored andcommitted
nouveau/gsp: use correct size for registry rpc.
commit 61712c9 upstream. Timur pointed this out before, and it just slipped my mind, but this might help some things work better, around pcie power management. Cc: <[email protected]> # v6.7 Fixes: 8d55b0a ("nouveau/gsp: add some basic registry entries.") Signed-off-by: Dave Airlie <[email protected]> Signed-off-by: Danilo Krummrich <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7958c1b commit 18db77b

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
@@ -1111,7 +1111,6 @@ r535_gsp_rpc_set_registry(struct nvkm_gsp *gsp)
11111111
if (IS_ERR(rpc))
11121112
return PTR_ERR(rpc);
11131113

1114-
rpc->size = sizeof(*rpc);
11151114
rpc->numEntries = NV_GSP_REG_NUM_ENTRIES;
11161115

11171116
str_offset = offsetof(typeof(*rpc), entries[NV_GSP_REG_NUM_ENTRIES]);
@@ -1127,6 +1126,7 @@ r535_gsp_rpc_set_registry(struct nvkm_gsp *gsp)
11271126
strings += name_len;
11281127
str_offset += name_len;
11291128
}
1129+
rpc->size = str_offset;
11301130

11311131
return nvkm_gsp_rpc_wr(gsp, rpc, false);
11321132
}

0 commit comments

Comments
 (0)