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

Commit b69722d9 authored by Carter Cooper's avatar Carter Cooper
Browse files

msm: kgsl: Remove guard band on HFI message queues



The 16 byte guard band was introduced to give warm fuzzies
to ensure that KMD doesn't corrupt neighboring HFI queues.
This is not needed so keep our math simple and remove the
guard band between queues.

Change-Id: Iea7b02fd48332c644e3368905bafbe3b098cae8d
Signed-off-by: default avatarCarter Cooper <ccooper@codeaurora.org>
parent 4414e63a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -27,10 +27,9 @@ enum hfi_queue_type {
	HFI_QUEUE_MAX
};

/* Add 16B guard band between HFI queues */
#define HFI_QUEUE_OFFSET(i)		\
		((sizeof(struct hfi_queue_table)) + \
		((i) * (HFI_QUEUE_SIZE + 16)))
		((i) * HFI_QUEUE_SIZE))

#define HOST_QUEUE_START_ADDR(hfi_mem, i) \
	((hfi_mem)->hostptr + HFI_QUEUE_OFFSET(i))