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

Commit 8782ab8e authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 1712878e 45e6a28c
Loading
Loading
Loading
Loading
+3 −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 */
@@ -469,6 +469,7 @@ static int a6xx_hfi_send_test(struct adreno_device *adreno_dev)
	struct hfi_test_cmd cmd;

	CMD_MSG_HDR(cmd, H2F_MSG_TEST);
	cmd.data = 0;

	return a6xx_hfi_send_generic_req(adreno_dev, &cmd);
}