gpu: nvgpu: gsp: msg: remove event handle support

Changes:
- Currently we are not using any event handling between NVGPU and GSP.
  So removing the event handler function and directly calling response
  handler.
- This change will fix the respective coverity issue.

CID 10138010

Change-Id: I12ddb0012ad9f54bf99f707ab2123598065561d8
Signed-off-by: rmylavarapu <rmylavarapu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2732628
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
rmylavarapu
2022-06-22 12:03:52 +00:00
committed by mobile promotions
parent f95cb5f4f8
commit bd5ade293d

View File

@@ -39,20 +39,6 @@ static int gsp_response_handle(struct nvgpu_gsp_sched *gsp_sched,
msg, msg->hdr.seq_id); msg, msg->hdr.seq_id);
} }
static int gsp_handle_event(struct nvgpu_gsp_sched *gsp_sched,
struct nv_flcn_msg_gsp *msg)
{
int err = 0;
switch (msg->hdr.unit_id) {
default:
break;
}
(void)gsp_sched;
return err;
}
static bool gsp_read_message(struct nvgpu_gsp_sched *gsp_sched, static bool gsp_read_message(struct nvgpu_gsp_sched *gsp_sched,
u32 queue_id, struct nv_flcn_msg_gsp *msg, int *status) u32 queue_id, struct nv_flcn_msg_gsp *msg, int *status)
{ {
@@ -194,12 +180,9 @@ int nvgpu_gsp_process_message(struct gk20a *g)
nvgpu_info(g, "ctrl_flags = 0x%08x, seq_id = 0x%08x", nvgpu_info(g, "ctrl_flags = 0x%08x, seq_id = 0x%08x",
msg.hdr.ctrl_flags, msg.hdr.seq_id); msg.hdr.ctrl_flags, msg.hdr.seq_id);
msg.hdr.ctrl_flags &= (u8)~GSP_CMD_FLAGS_MASK; status = gsp_response_handle(gsp_sched, &msg);
if (status != 0) {
if (msg.hdr.ctrl_flags == GSP_CMD_FLAGS_EVENT) { return status;
gsp_handle_event(gsp_sched, &msg);
} else {
gsp_response_handle(gsp_sched, &msg);
} }
if (!nvgpu_gsp_queue_is_empty(gsp_sched->queues, if (!nvgpu_gsp_queue_is_empty(gsp_sched->queues,