drm/amdkfd: Add some missing memset zero'ing in queue init func
Signed-off-by: Edward O'Callaghan <funfunctor@folklore1984.net> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
This commit is contained in:
parent
585f0e6c53
commit
78b13f7964
|
@ -47,6 +47,9 @@ static bool initialize(struct kernel_queue *kq, struct kfd_dev *dev,
|
|||
pr_debug("amdkfd: In func %s initializing queue type %d size %d\n",
|
||||
__func__, KFD_QUEUE_TYPE_HIQ, queue_size);
|
||||
|
||||
memset(&prop, 0, sizeof(prop));
|
||||
memset(&nop, 0, sizeof(nop));
|
||||
|
||||
nop.opcode = IT_NOP;
|
||||
nop.type = PM4_TYPE_3;
|
||||
nop.u32all |= PM4_COUNT_ZERO;
|
||||
|
|
Loading…
Reference in New Issue