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

Commit 45e6a28c authored by Carter Cooper's avatar Carter Cooper Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Stay in bounds when setting up legacy HFI queues



Legacy targets don't use HFI dispatch queues so there is no need to "fix"
their dispatch queue ID.

Change-Id: I8444c41c18721198bee8501b8d0ef19ea2b0192e
Signed-off-by: default avatarCarter Cooper <ccooper@codeaurora.org>
parent b7f72310
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -176,12 +176,12 @@ static void init_queues(struct adreno_device *adreno_dev)
	/*
	 * Overwrite the queue IDs for A630, A615 and A616 as they use
	 * legacy firmware. Legacy firmware has different queue IDs for
	 * message, debug and dispatch queues.
	 * message, debug and dispatch queues (dispatch queues aren't used
	 * on these targets so the queue idx value update is not needed).
	 */
	if (adreno_is_a630(adreno_dev) || adreno_is_a615_family(adreno_dev)) {
		queue[HFI_MSG_ID].idx = HFI_MSG_IDX_LEGACY;
		queue[HFI_DBG_ID].idx = HFI_DBG_IDX_LEGACY;
		queue[HFI_DSP_ID_0].idx = HFI_DSP_IDX_0_LEGACY;
	}

	/* Fill Table Header */