search for: r535_gsp_msg

Displaying 5 results from an estimated 5 matches for "r535_gsp_msg".

2024 Dec 11
1
[PATCH v3 01/15] nvkm: add a kernel doc to introduce the GSP RPC
...unication between software and GSP. The software submits the GSP > + * RPC via the GSP command queue, GSP writes the status of the submitted > + * RPC in the status queue. > + * > + * A GSP message queue element consists of three parts: > + * > + * - message element header (struct r535_gsp_msg), which mostly maintains > + * the metadata for queuing the element. > + * > + * - RPC message header (struct nvfw_gsp_rpc), which maintains the info > + * of the RPC. E.g., the RPC function number. > + * > + * - The payload, where the RPC message stays. E.g. the params of a >...
2024 Oct 31
16
[PATCH v3 00/15] NVKM GSP RPC kernel docs, cleanups and fixes
...he GSP message and denote the memory layout. - Add a decoder section in the kernel doc to explain the terms in the code. - Refine the many confusing variable names to align with the terms in the kernel doc. - Introduce the continaution records in the kernel doc. - Re-factor the complicated function r535_gsp_msgq_wait(). - Other minor cleanups. v2: - Remove the Fixes: tags as the vanilla nouveau aren't going to hit these bugs. (Danilo) - Test the patchset on VK-GL-CTS. (Danilo) - Remove the ambiguous empty line in PATCH 2. (Danilo) - Rename the r535_gsp_msgq_wait to gsp_msgq_recv. (Danilo) - Introduc...
2024 Dec 11
1
[PATCH v3 02/15] nvkm: rename "repc" to "gsp_rpc_len" on the GSP message recv path
.../nouveau/nvkm/subdev/gsp/r535.c > @@ -104,6 +104,9 @@ > * | params | > * +------------------------+ > * > + * decoders: Maybe nomenclature or terminology instead? > + * > + * - gsp_rpc_len: size of (GSP RPC header + payload) > */ > > struct r535_gsp_msg { > @@ -133,7 +136,8 @@ r535_rpc_status_to_errno(uint32_t rpc_status) > } > > static void * > -r535_gsp_msgq_wait(struct nvkm_gsp *gsp, u32 repc, u32 *prepc, int *ptime) > +r535_gsp_msgq_wait(struct nvkm_gsp *gsp, u32 gsp_rpc_len, u32 *prepc, > + int *ptime) > { &gt...
2023 Dec 22
1
[PATCH 07/11] nouveau/gsp: convert gsp errors to generic errors
...), 5 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c b/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c index 774ca47b019f..54c1fbccc013 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c @@ -70,6 +70,20 @@ struct r535_gsp_msg { #define GSP_MSG_HDR_SIZE offsetof(struct r535_gsp_msg, data) +static int +r535_rpc_status_to_errno(uint32_t rpc_status) +{ + switch (rpc_status) { + case 0x55: /* NV_ERR_NOT_READY */ + case 0x66: /* NV_ERR_TIMEOUT_RETRY */ + return -EAGAIN; + case 0x51: /...
2023 Dec 22
11
nouveau GSP fixes
This is a collection of nouveau debug prints, memory leak, a very annoying race condition causing system hangs with prime scenarios, and a fix from Lyude to get the panel on my laptop working. I'd like to get these into 6.7, Dave.