Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78b13f79 authored by Edward O'Callaghan's avatar Edward O'Callaghan Committed by Oded Gabbay
Browse files

drm/amdkfd: Add some missing memset zero'ing in queue init func

parent 585f0e6c
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -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",
	pr_debug("amdkfd: In func %s initializing queue type %d size %d\n",
			__func__, KFD_QUEUE_TYPE_HIQ, queue_size);
			__func__, KFD_QUEUE_TYPE_HIQ, queue_size);


	memset(&prop, 0, sizeof(prop));
	memset(&nop, 0, sizeof(nop));

	nop.opcode = IT_NOP;
	nop.opcode = IT_NOP;
	nop.type = PM4_TYPE_3;
	nop.type = PM4_TYPE_3;
	nop.u32all |= PM4_COUNT_ZERO;
	nop.u32all |= PM4_COUNT_ZERO;