Skip to content

Commit 61712c9

Browse files
airlieddakr
authored andcommitted
nouveau/gsp: use correct size for registry rpc.
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]
1 parent 4856380 commit 61712c9

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
@@ -1078,7 +1078,6 @@ r535_gsp_rpc_set_registry(struct nvkm_gsp *gsp)
10781078
if (IS_ERR(rpc))
10791079
return PTR_ERR(rpc);
10801080

1081-
rpc->size = sizeof(*rpc);
10821081
rpc->numEntries = NV_GSP_REG_NUM_ENTRIES;
10831082

10841083
str_offset = offsetof(typeof(*rpc), entries[NV_GSP_REG_NUM_ENTRIES]);
@@ -1094,6 +1093,7 @@ r535_gsp_rpc_set_registry(struct nvkm_gsp *gsp)
10941093
strings += name_len;
10951094
str_offset += name_len;
10961095
}
1096+
rpc->size = str_offset;
10971097

10981098
return nvkm_gsp_rpc_wr(gsp, rpc, false);
10991099
}

0 commit comments

Comments
 (0)