nouveau/gsp: fix message signature.
authorDave Airlie <airlied@redhat.com>
Mon, 30 Oct 2023 03:49:36 +0000 (13:49 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 3 Nov 2023 02:57:19 +0000 (12:57 +1000)
This original one was backwards, compared to traces from nvidia driver.

Reviewed-by: Danilo Krummrich <dakr@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c

index 47138d7..b6f6b5e 100644 (file)
@@ -693,7 +693,7 @@ r535_gsp_rpc_get(struct nvkm_gsp *gsp, u32 fn, u32 argc)
                return NULL;
 
        rpc->header_version = 0x03000000;
-       rpc->signature = ('V' << 24) | ('R' << 16) | ('P' << 8) | 'C';
+       rpc->signature = ('C' << 24) | ('P' << 16) | ('R' << 8) | 'V';
        rpc->function = fn;
        rpc->rpc_result = 0xffffffff;
        rpc->rpc_result_private = 0xffffffff;