* [PATCH] ath11k: Fix invalid dma address access in hal rx
@ 2019-05-27 13:35 Karthikeyan Periyasamy
2019-05-29 15:13 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Karthikeyan Periyasamy @ 2019-05-27 13:35 UTC (permalink / raw)
To: ath11k; +Cc: Karthikeyan Periyasamy
ath11k_hal_rx_buf_addr_info_get() populating the MSB of the
dma address from the info0 member, which is invalid. It has
to populate the MSB from info1 member.
Signed-off-by: Karthikeyan Periyasamy <periyasa@codeaurora.org>
---
drivers/net/wireless/ath/ath11k/hal_rx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath11k/hal_rx.c b/drivers/net/wireless/ath/ath11k/hal_rx.c
index 6eb47d9..c37340f 100644
--- a/drivers/net/wireless/ath/ath11k/hal_rx.c
+++ b/drivers/net/wireless/ath/ath11k/hal_rx.c
@@ -286,7 +286,7 @@ void ath11k_hal_rx_buf_addr_info_get(void *desc, dma_addr_t *paddr,
struct buffer_addr *binfo = (struct buffer_addr *)desc;
*paddr =
- (((u64)FIELD_GET(BUFFER_ADDR_INFO1_ADDR, binfo->info0)) << 32) |
+ (((u64)FIELD_GET(BUFFER_ADDR_INFO1_ADDR, binfo->info1)) << 32) |
FIELD_GET(BUFFER_ADDR_INFO0_ADDR, binfo->info0);
*cookie = FIELD_GET(BUFFER_ADDR_INFO1_SW_COOKIE, binfo->info1);
*rbm = FIELD_GET(BUFFER_ADDR_INFO1_RET_BUF_MGR, binfo->info1);
--
1.9.1
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ath11k: Fix invalid dma address access in hal rx
2019-05-27 13:35 [PATCH] ath11k: Fix invalid dma address access in hal rx Karthikeyan Periyasamy
@ 2019-05-29 15:13 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2019-05-29 15:13 UTC (permalink / raw)
To: Karthikeyan Periyasamy; +Cc: ath11k
Karthikeyan Periyasamy <periyasa@codeaurora.org> wrote:
> ath11k_hal_rx_buf_addr_info_get() populating the MSB of the
> dma address from the info0 member, which is invalid. It has
> to populate the MSB from info1 member.
>
> Signed-off-by: Karthikeyan Periyasamy <periyasa@codeaurora.org>
Patch applied to ath.git, thanks.
911365b0f0a8 ath11k: Fix invalid dma address access in hal rx
--
https://patchwork.kernel.org/patch/10963087/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-29 15:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-27 13:35 [PATCH] ath11k: Fix invalid dma address access in hal rx Karthikeyan Periyasamy
2019-05-29 15:13 ` Kalle Valo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.