linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
@ 2015-10-26  2:36 Yin, Fengwei
  2015-10-26 18:24 ` Bjorn Andersson
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Yin, Fengwei @ 2015-10-26  2:36 UTC (permalink / raw)
  To: linux-wireless, wcn36xx, me, k.eugene.e, bjorn.andersson; +Cc: fengwei.yin

arm64 has requirement that all the dma operations have actual device.
Otherwise, following warnning message shown and dma allocation fails:

WARNING: CPU: 0 PID: 954 at arch/arm64/mm/dma-mapping.c:106 __dma_alloc+0x24c/0x258()
Use an actual device structure for DMA allocation
Modules linked in: wcn36xx wcn36xx_platform
CPU: 0 PID: 954 Comm: ifconfig Not tainted 4.0.0+ #14
Hardware name: Qualcomm Technologies, Inc. MSM 8916 MTP (DT)
Call trace:
[<ffffffc000089904>] dump_backtrace+0x0/0x124
[<ffffffc000089a38>] show_stack+0x10/0x1c
[<ffffffc000627114>] dump_stack+0x80/0xc4
[<ffffffc0000b2e64>] warn_slowpath_common+0x98/0xd0
[<ffffffc0000b2ee8>] warn_slowpath_fmt+0x4c/0x58
[<ffffffc00009487c>] __dma_alloc+0x248/0x258
[<ffffffbffc009270>] wcn36xx_dxe_allocate_mem_pools+0xc4/0x108 [wcn36xx]
[<ffffffbffc0079c4>] wcn36xx_start+0x38/0x240 [wcn36xx]
[<ffffffc0005f161c>] ieee80211_do_open+0x1b0/0x9a4
[<ffffffc0005f1e68>] ieee80211_open+0x58/0x68
[<ffffffc00051693c>] __dev_open+0xb0/0x120
[<ffffffc000516c10>] __dev_change_flags+0x88/0x150
[<ffffffc000516cf4>] dev_change_flags+0x1c/0x5c
[<ffffffc000570950>] devinet_ioctl+0x644/0x6f0

Signed-off-by: Yin, Fengwei <fengwei.yin@linaro.org>
---
 drivers/net/wireless/ath/wcn36xx/dxe.c | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/drivers/net/wireless/ath/wcn36xx/dxe.c b/drivers/net/wireless/ath/wcn36xx/dxe.c
index 086549b..9bff361 100644
--- a/drivers/net/wireless/ath/wcn36xx/dxe.c
+++ b/drivers/net/wireless/ath/wcn36xx/dxe.c
@@ -169,7 +169,7 @@ void wcn36xx_dxe_free_ctl_blks(struct wcn36xx *wcn)
 	wcn36xx_dxe_free_ctl_block(&wcn->dxe_rx_h_ch);
 }
 
-static int wcn36xx_dxe_init_descs(struct wcn36xx_dxe_ch *wcn_ch)
+static int wcn36xx_dxe_init_descs(struct device *dev, struct wcn36xx_dxe_ch *wcn_ch)
 {
 	struct wcn36xx_dxe_desc *cur_dxe = NULL;
 	struct wcn36xx_dxe_desc *prev_dxe = NULL;
@@ -178,7 +178,7 @@ static int wcn36xx_dxe_init_descs(struct wcn36xx_dxe_ch *wcn_ch)
 	int i;
 
 	size = wcn_ch->desc_num * sizeof(struct wcn36xx_dxe_desc);
-	wcn_ch->cpu_addr = dma_alloc_coherent(NULL, size, &wcn_ch->dma_addr,
+	wcn_ch->cpu_addr = dma_alloc_coherent(dev, size, &wcn_ch->dma_addr,
 					      GFP_KERNEL);
 	if (!wcn_ch->cpu_addr)
 		return -ENOMEM;
@@ -270,7 +270,7 @@ static int wcn36xx_dxe_enable_ch_int(struct wcn36xx *wcn, u16 wcn_ch)
 	return 0;
 }
 
-static int wcn36xx_dxe_fill_skb(struct wcn36xx_dxe_ctl *ctl)
+static int wcn36xx_dxe_fill_skb(struct device *dev, struct wcn36xx_dxe_ctl *ctl)
 {
 	struct wcn36xx_dxe_desc *dxe = ctl->desc;
 	struct sk_buff *skb;
@@ -279,7 +279,7 @@ static int wcn36xx_dxe_fill_skb(struct wcn36xx_dxe_ctl *ctl)
 	if (skb == NULL)
 		return -ENOMEM;
 
-	dxe->dst_addr_l = dma_map_single(NULL,
+	dxe->dst_addr_l = dma_map_single(dev,
 					 skb_tail_pointer(skb),
 					 WCN36XX_PKT_SIZE,
 					 DMA_FROM_DEVICE);
@@ -297,7 +297,7 @@ static int wcn36xx_dxe_ch_alloc_skb(struct wcn36xx *wcn,
 	cur_ctl = wcn_ch->head_blk_ctl;
 
 	for (i = 0; i < wcn_ch->desc_num; i++) {
-		wcn36xx_dxe_fill_skb(cur_ctl);
+		wcn36xx_dxe_fill_skb(wcn->dev, cur_ctl);
 		cur_ctl = cur_ctl->next;
 	}
 
@@ -358,7 +358,7 @@ static void reap_tx_dxes(struct wcn36xx *wcn, struct wcn36xx_dxe_ch *ch)
 		if (ctl->desc->ctrl & WCN36XX_DXE_CTRL_VALID_MASK)
 			break;
 		if (ctl->skb) {
-			dma_unmap_single(NULL, ctl->desc->src_addr_l,
+			dma_unmap_single(wcn->dev, ctl->desc->src_addr_l,
 					 ctl->skb->len, DMA_TO_DEVICE);
 			info = IEEE80211_SKB_CB(ctl->skb);
 			if (!(info->flags & IEEE80211_TX_CTL_REQ_TX_STATUS)) {
@@ -474,7 +474,7 @@ static int wcn36xx_rx_handle_packets(struct wcn36xx *wcn,
 	while (!(dxe->ctrl & WCN36XX_DXE_CTRL_VALID_MASK)) {
 		skb = ctl->skb;
 		dma_addr = dxe->dst_addr_l;
-		wcn36xx_dxe_fill_skb(ctl);
+		wcn36xx_dxe_fill_skb(wcn->dev, ctl);
 
 		switch (ch->ch_type) {
 		case WCN36XX_DXE_CH_RX_L:
@@ -491,7 +491,7 @@ static int wcn36xx_rx_handle_packets(struct wcn36xx *wcn,
 			wcn36xx_warn("Unknown channel\n");
 		}
 
-		dma_unmap_single(NULL, dma_addr, WCN36XX_PKT_SIZE,
+		dma_unmap_single(wcn->dev, dma_addr, WCN36XX_PKT_SIZE,
 				 DMA_FROM_DEVICE);
 		wcn36xx_rx_skb(wcn, skb);
 		ctl = ctl->next;
@@ -540,7 +540,7 @@ int wcn36xx_dxe_allocate_mem_pools(struct wcn36xx *wcn)
 		16 - (WCN36XX_BD_CHUNK_SIZE % 8);
 
 	s = wcn->mgmt_mem_pool.chunk_size * WCN36XX_DXE_CH_DESC_NUMB_TX_H;
-	cpu_addr = dma_alloc_coherent(NULL, s, &wcn->mgmt_mem_pool.phy_addr,
+	cpu_addr = dma_alloc_coherent(wcn->dev, s, &wcn->mgmt_mem_pool.phy_addr,
 				      GFP_KERNEL);
 	if (!cpu_addr)
 		goto out_err;
@@ -555,7 +555,7 @@ int wcn36xx_dxe_allocate_mem_pools(struct wcn36xx *wcn)
 		16 - (WCN36XX_BD_CHUNK_SIZE % 8);
 
 	s = wcn->data_mem_pool.chunk_size * WCN36XX_DXE_CH_DESC_NUMB_TX_L;
-	cpu_addr = dma_alloc_coherent(NULL, s, &wcn->data_mem_pool.phy_addr,
+	cpu_addr = dma_alloc_coherent(wcn->dev, s, &wcn->data_mem_pool.phy_addr,
 				      GFP_KERNEL);
 	if (!cpu_addr)
 		goto out_err;
@@ -574,13 +574,13 @@ out_err:
 void wcn36xx_dxe_free_mem_pools(struct wcn36xx *wcn)
 {
 	if (wcn->mgmt_mem_pool.virt_addr)
-		dma_free_coherent(NULL, wcn->mgmt_mem_pool.chunk_size *
+		dma_free_coherent(wcn->dev, wcn->mgmt_mem_pool.chunk_size *
 				  WCN36XX_DXE_CH_DESC_NUMB_TX_H,
 				  wcn->mgmt_mem_pool.virt_addr,
 				  wcn->mgmt_mem_pool.phy_addr);
 
 	if (wcn->data_mem_pool.virt_addr) {
-		dma_free_coherent(NULL, wcn->data_mem_pool.chunk_size *
+		dma_free_coherent(wcn->dev, wcn->data_mem_pool.chunk_size *
 				  WCN36XX_DXE_CH_DESC_NUMB_TX_L,
 				  wcn->data_mem_pool.virt_addr,
 				  wcn->data_mem_pool.phy_addr);
@@ -643,7 +643,7 @@ int wcn36xx_dxe_tx_frame(struct wcn36xx *wcn,
 		return -EINVAL;
 	}
 
-	desc->src_addr_l = dma_map_single(NULL,
+	desc->src_addr_l = dma_map_single(wcn->dev,
 					  ctl->skb->data,
 					  ctl->skb->len,
 					  DMA_TO_DEVICE);
@@ -696,7 +696,7 @@ int wcn36xx_dxe_init(struct wcn36xx *wcn)
 	/***************************************/
 	/* Init descriptors for TX LOW channel */
 	/***************************************/
-	wcn36xx_dxe_init_descs(&wcn->dxe_tx_l_ch);
+	wcn36xx_dxe_init_descs(wcn->dev, &wcn->dxe_tx_l_ch);
 	wcn36xx_dxe_init_tx_bd(&wcn->dxe_tx_l_ch, &wcn->data_mem_pool);
 
 	/* Write channel head to a NEXT register */
@@ -714,7 +714,7 @@ int wcn36xx_dxe_init(struct wcn36xx *wcn)
 	/***************************************/
 	/* Init descriptors for TX HIGH channel */
 	/***************************************/
-	wcn36xx_dxe_init_descs(&wcn->dxe_tx_h_ch);
+	wcn36xx_dxe_init_descs(wcn->dev, &wcn->dxe_tx_h_ch);
 	wcn36xx_dxe_init_tx_bd(&wcn->dxe_tx_h_ch, &wcn->mgmt_mem_pool);
 
 	/* Write channel head to a NEXT register */
@@ -734,7 +734,7 @@ int wcn36xx_dxe_init(struct wcn36xx *wcn)
 	/***************************************/
 	/* Init descriptors for RX LOW channel */
 	/***************************************/
-	wcn36xx_dxe_init_descs(&wcn->dxe_rx_l_ch);
+	wcn36xx_dxe_init_descs(wcn->dev, &wcn->dxe_rx_l_ch);
 
 	/* For RX we need to preallocated buffers */
 	wcn36xx_dxe_ch_alloc_skb(wcn, &wcn->dxe_rx_l_ch);
@@ -764,7 +764,7 @@ int wcn36xx_dxe_init(struct wcn36xx *wcn)
 	/***************************************/
 	/* Init descriptors for RX HIGH channel */
 	/***************************************/
-	wcn36xx_dxe_init_descs(&wcn->dxe_rx_h_ch);
+	wcn36xx_dxe_init_descs(wcn->dev, &wcn->dxe_rx_h_ch);
 
 	/* For RX we need to prealocat buffers */
 	wcn36xx_dxe_ch_alloc_skb(wcn, &wcn->dxe_rx_h_ch);
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* Re: [PATCH] wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
  2015-10-26  2:36 [PATCH] wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc Yin, Fengwei
@ 2015-10-26 18:24 ` Bjorn Andersson
  2015-10-27  0:06   ` yfw
  2015-10-28 18:59 ` Kalle Valo
  2015-10-29 20:01 ` [PATCH] " Kalle Valo
  2 siblings, 1 reply; 14+ messages in thread
From: Bjorn Andersson @ 2015-10-26 18:24 UTC (permalink / raw)
  To: Yin, Fengwei
  Cc: linux-wireless, wcn36xx, me, Eugene Krasnikov, Bjorn Andersson

On Sun, Oct 25, 2015 at 7:36 PM, Yin, Fengwei <fengwei.yin@linaro.org> wrote:
> arm64 has requirement that all the dma operations have actual device.
> Otherwise, following warnning message shown and dma allocation fails:
>
> WARNING: CPU: 0 PID: 954 at arch/arm64/mm/dma-mapping.c:106 __dma_alloc+0x24c/0x258()
> Use an actual device structure for DMA allocation
> Modules linked in: wcn36xx wcn36xx_platform
> CPU: 0 PID: 954 Comm: ifconfig Not tainted 4.0.0+ #14
> Hardware name: Qualcomm Technologies, Inc. MSM 8916 MTP (DT)
> Call trace:
> [<ffffffc000089904>] dump_backtrace+0x0/0x124
> [<ffffffc000089a38>] show_stack+0x10/0x1c
> [<ffffffc000627114>] dump_stack+0x80/0xc4
> [<ffffffc0000b2e64>] warn_slowpath_common+0x98/0xd0
> [<ffffffc0000b2ee8>] warn_slowpath_fmt+0x4c/0x58
> [<ffffffc00009487c>] __dma_alloc+0x248/0x258
> [<ffffffbffc009270>] wcn36xx_dxe_allocate_mem_pools+0xc4/0x108 [wcn36xx]
> [<ffffffbffc0079c4>] wcn36xx_start+0x38/0x240 [wcn36xx]
> [<ffffffc0005f161c>] ieee80211_do_open+0x1b0/0x9a4
> [<ffffffc0005f1e68>] ieee80211_open+0x58/0x68
> [<ffffffc00051693c>] __dev_open+0xb0/0x120
> [<ffffffc000516c10>] __dev_change_flags+0x88/0x150
> [<ffffffc000516cf4>] dev_change_flags+0x1c/0x5c
> [<ffffffc000570950>] devinet_ioctl+0x644/0x6f0
>
> Signed-off-by: Yin, Fengwei <fengwei.yin@linaro.org>

Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>

Regards,
Bjorn

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH] wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
  2015-10-26 18:24 ` Bjorn Andersson
@ 2015-10-27  0:06   ` yfw
  2015-10-28  8:21     ` Eugene Krasnikov
  0 siblings, 1 reply; 14+ messages in thread
From: yfw @ 2015-10-27  0:06 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: linux-wireless, wcn36xx, me, Eugene Krasnikov, Bjorn Andersson



On 2015/10/27 2:24, Bjorn Andersson wrote:
> On Sun, Oct 25, 2015 at 7:36 PM, Yin, Fengwei <fengwei.yin@linaro.org> wrote:
>> arm64 has requirement that all the dma operations have actual device.
>> Otherwise, following warnning message shown and dma allocation fails:
>>
>> WARNING: CPU: 0 PID: 954 at arch/arm64/mm/dma-mapping.c:106 __dma_alloc+0x24c/0x258()
>> Use an actual device structure for DMA allocation
>> Modules linked in: wcn36xx wcn36xx_platform
>> CPU: 0 PID: 954 Comm: ifconfig Not tainted 4.0.0+ #14
>> Hardware name: Qualcomm Technologies, Inc. MSM 8916 MTP (DT)
>> Call trace:
>> [<ffffffc000089904>] dump_backtrace+0x0/0x124
>> [<ffffffc000089a38>] show_stack+0x10/0x1c
>> [<ffffffc000627114>] dump_stack+0x80/0xc4
>> [<ffffffc0000b2e64>] warn_slowpath_common+0x98/0xd0
>> [<ffffffc0000b2ee8>] warn_slowpath_fmt+0x4c/0x58
>> [<ffffffc00009487c>] __dma_alloc+0x248/0x258
>> [<ffffffbffc009270>] wcn36xx_dxe_allocate_mem_pools+0xc4/0x108 [wcn36xx]
>> [<ffffffbffc0079c4>] wcn36xx_start+0x38/0x240 [wcn36xx]
>> [<ffffffc0005f161c>] ieee80211_do_open+0x1b0/0x9a4
>> [<ffffffc0005f1e68>] ieee80211_open+0x58/0x68
>> [<ffffffc00051693c>] __dev_open+0xb0/0x120
>> [<ffffffc000516c10>] __dev_change_flags+0x88/0x150
>> [<ffffffc000516cf4>] dev_change_flags+0x1c/0x5c
>> [<ffffffc000570950>] devinet_ioctl+0x644/0x6f0
>>
>> Signed-off-by: Yin, Fengwei <fengwei.yin@linaro.org>
>
> Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Thanks for the Acked-by.

Regards
Yin, Fengwei

>
> Regards,
> Bjorn
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH] wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
  2015-10-27  0:06   ` yfw
@ 2015-10-28  8:21     ` Eugene Krasnikov
  0 siblings, 0 replies; 14+ messages in thread
From: Eugene Krasnikov @ 2015-10-28  8:21 UTC (permalink / raw)
  To: yfw; +Cc: Bjorn Andersson, linux-wireless, wcn36xx, Bob Copeland,
	Bjorn Andersson

Looks good to me.

2015-10-27 0:06 GMT+00:00 yfw <fengwei.yin@linaro.org>:
>
>
> On 2015/10/27 2:24, Bjorn Andersson wrote:
>>
>> On Sun, Oct 25, 2015 at 7:36 PM, Yin, Fengwei <fengwei.yin@linaro.org>
>> wrote:
>>>
>>> arm64 has requirement that all the dma operations have actual device.
>>> Otherwise, following warnning message shown and dma allocation fails:
>>>
>>> WARNING: CPU: 0 PID: 954 at arch/arm64/mm/dma-mapping.c:106
>>> __dma_alloc+0x24c/0x258()
>>> Use an actual device structure for DMA allocation
>>> Modules linked in: wcn36xx wcn36xx_platform
>>> CPU: 0 PID: 954 Comm: ifconfig Not tainted 4.0.0+ #14
>>> Hardware name: Qualcomm Technologies, Inc. MSM 8916 MTP (DT)
>>> Call trace:
>>> [<ffffffc000089904>] dump_backtrace+0x0/0x124
>>> [<ffffffc000089a38>] show_stack+0x10/0x1c
>>> [<ffffffc000627114>] dump_stack+0x80/0xc4
>>> [<ffffffc0000b2e64>] warn_slowpath_common+0x98/0xd0
>>> [<ffffffc0000b2ee8>] warn_slowpath_fmt+0x4c/0x58
>>> [<ffffffc00009487c>] __dma_alloc+0x248/0x258
>>> [<ffffffbffc009270>] wcn36xx_dxe_allocate_mem_pools+0xc4/0x108 [wcn36xx]
>>> [<ffffffbffc0079c4>] wcn36xx_start+0x38/0x240 [wcn36xx]
>>> [<ffffffc0005f161c>] ieee80211_do_open+0x1b0/0x9a4
>>> [<ffffffc0005f1e68>] ieee80211_open+0x58/0x68
>>> [<ffffffc00051693c>] __dev_open+0xb0/0x120
>>> [<ffffffc000516c10>] __dev_change_flags+0x88/0x150
>>> [<ffffffc000516cf4>] dev_change_flags+0x1c/0x5c
>>> [<ffffffc000570950>] devinet_ioctl+0x644/0x6f0
>>>
>>> Signed-off-by: Yin, Fengwei <fengwei.yin@linaro.org>
>>
>>
>> Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
>
> Thanks for the Acked-by.
>
> Regards
> Yin, Fengwei
>
>>
>> Regards,
>> Bjorn
>>
>



-- 
Best regards,
Eugene

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
  2015-10-26  2:36 [PATCH] wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc Yin, Fengwei
  2015-10-26 18:24 ` Bjorn Andersson
@ 2015-10-28 18:59 ` Kalle Valo
  2015-10-29 20:01 ` [PATCH] " Kalle Valo
  2 siblings, 0 replies; 14+ messages in thread
From: Kalle Valo @ 2015-10-28 18:59 UTC (permalink / raw)
  To: yfw; +Cc: linux-wireless, wcn36xx, me, k.eugene.e, bjorn.andersson,
	fengwei.yin


> arm64 has requirement that all the dma operations have actual device.
> Otherwise, following warnning message shown and dma allocation fails:
> 
> WARNING: CPU: 0 PID: 954 at arch/arm64/mm/dma-mapping.c:106 __dma_alloc+0x24c/0x258()
> Use an actual device structure for DMA allocation
> Modules linked in: wcn36xx wcn36xx_platform
> CPU: 0 PID: 954 Comm: ifconfig Not tainted 4.0.0+ #14
> Hardware name: Qualcomm Technologies, Inc. MSM 8916 MTP (DT)
> Call trace:
> [<ffffffc000089904>] dump_backtrace+0x0/0x124
> [<ffffffc000089a38>] show_stack+0x10/0x1c
> [<ffffffc000627114>] dump_stack+0x80/0xc4
> [<ffffffc0000b2e64>] warn_slowpath_common+0x98/0xd0
> [<ffffffc0000b2ee8>] warn_slowpath_fmt+0x4c/0x58
> [<ffffffc00009487c>] __dma_alloc+0x248/0x258
> [<ffffffbffc009270>] wcn36xx_dxe_allocate_mem_pools+0xc4/0x108 [wcn36xx]
> [<ffffffbffc0079c4>] wcn36xx_start+0x38/0x240 [wcn36xx]
> [<ffffffc0005f161c>] ieee80211_do_open+0x1b0/0x9a4
> [<ffffffc0005f1e68>] ieee80211_open+0x58/0x68
> [<ffffffc00051693c>] __dev_open+0xb0/0x120
> [<ffffffc000516c10>] __dev_change_flags+0x88/0x150
> [<ffffffc000516cf4>] dev_change_flags+0x1c/0x5c
> [<ffffffc000570950>] devinet_ioctl+0x644/0x6f0
> 
> Signed-off-by: Yin, Fengwei <fengwei.yin@linaro.org>
> Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>

Thanks, applied to wireless-drivers-next.git.

Kalle Valo

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH] wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
  2015-10-26  2:36 [PATCH] wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc Yin, Fengwei
  2015-10-26 18:24 ` Bjorn Andersson
  2015-10-28 18:59 ` Kalle Valo
@ 2015-10-29 20:01 ` Kalle Valo
  2015-10-29 23:32   ` fengwei.yin
  2 siblings, 1 reply; 14+ messages in thread
From: Kalle Valo @ 2015-10-29 20:01 UTC (permalink / raw)
  To: Yin, Fengwei; +Cc: linux-wireless, wcn36xx, me, k.eugene.e, bjorn.andersson

"Yin, Fengwei" <fengwei.yin@linaro.org> writes:

> arm64 has requirement that all the dma operations have actual device.
> Otherwise, following warnning message shown and dma allocation fails:
>
> WARNING: CPU: 0 PID: 954 at arch/arm64/mm/dma-mapping.c:106 __dma_alloc+0x24c/0x258()
> Use an actual device structure for DMA allocation
> Modules linked in: wcn36xx wcn36xx_platform
> CPU: 0 PID: 954 Comm: ifconfig Not tainted 4.0.0+ #14
> Hardware name: Qualcomm Technologies, Inc. MSM 8916 MTP (DT)
> Call trace:
> [<ffffffc000089904>] dump_backtrace+0x0/0x124
> [<ffffffc000089a38>] show_stack+0x10/0x1c
> [<ffffffc000627114>] dump_stack+0x80/0xc4
> [<ffffffc0000b2e64>] warn_slowpath_common+0x98/0xd0
> [<ffffffc0000b2ee8>] warn_slowpath_fmt+0x4c/0x58
> [<ffffffc00009487c>] __dma_alloc+0x248/0x258
> [<ffffffbffc009270>] wcn36xx_dxe_allocate_mem_pools+0xc4/0x108 [wcn36xx]
> [<ffffffbffc0079c4>] wcn36xx_start+0x38/0x240 [wcn36xx]
> [<ffffffc0005f161c>] ieee80211_do_open+0x1b0/0x9a4
> [<ffffffc0005f1e68>] ieee80211_open+0x58/0x68
> [<ffffffc00051693c>] __dev_open+0xb0/0x120
> [<ffffffc000516c10>] __dev_change_flags+0x88/0x150
> [<ffffffc000516cf4>] dev_change_flags+0x1c/0x5c
> [<ffffffc000570950>] devinet_ioctl+0x644/0x6f0
>
> Signed-off-by: Yin, Fengwei <fengwei.yin@linaro.org>

Please fix your name. I don't know why but your name in git statistics
is now "yfw":

yfw (1):
      wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.

The right format for both From header and Signed-off-by line is:

First Lastname <username@example.com>

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH] wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
  2015-10-29 20:01 ` [PATCH] " Kalle Valo
@ 2015-10-29 23:32   ` fengwei.yin
  2015-10-29 23:34     ` fengwei.yin
  0 siblings, 1 reply; 14+ messages in thread
From: fengwei.yin @ 2015-10-29 23:32 UTC (permalink / raw)
  To: Kalle Valo; +Cc: linux-wireless, wcn36xx, me, k.eugene.e, bjorn.andersson


On 2015/10/30 4:01, Kalle Valo wrote:
> "Yin, Fengwei" <fengwei.yin@linaro.org> writes:
>
>> arm64 has requirement that all the dma operations have actual device.
>> Otherwise, following warnning message shown and dma allocation fails:
>>
>> WARNING: CPU: 0 PID: 954 at arch/arm64/mm/dma-mapping.c:106 __dma_alloc+0x24c/0x258()
>> Use an actual device structure for DMA allocation
>> Modules linked in: wcn36xx wcn36xx_platform
>> CPU: 0 PID: 954 Comm: ifconfig Not tainted 4.0.0+ #14
>> Hardware name: Qualcomm Technologies, Inc. MSM 8916 MTP (DT)
>> Call trace:
>> [<ffffffc000089904>] dump_backtrace+0x0/0x124
>> [<ffffffc000089a38>] show_stack+0x10/0x1c
>> [<ffffffc000627114>] dump_stack+0x80/0xc4
>> [<ffffffc0000b2e64>] warn_slowpath_common+0x98/0xd0
>> [<ffffffc0000b2ee8>] warn_slowpath_fmt+0x4c/0x58
>> [<ffffffc00009487c>] __dma_alloc+0x248/0x258
>> [<ffffffbffc009270>] wcn36xx_dxe_allocate_mem_pools+0xc4/0x108 [wcn36xx]
>> [<ffffffbffc0079c4>] wcn36xx_start+0x38/0x240 [wcn36xx]
>> [<ffffffc0005f161c>] ieee80211_do_open+0x1b0/0x9a4
>> [<ffffffc0005f1e68>] ieee80211_open+0x58/0x68
>> [<ffffffc00051693c>] __dev_open+0xb0/0x120
>> [<ffffffc000516c10>] __dev_change_flags+0x88/0x150
>> [<ffffffc000516cf4>] dev_change_flags+0x1c/0x5c
>> [<ffffffc000570950>] devinet_ioctl+0x644/0x6f0
>>
>> Signed-off-by: Yin, Fengwei <fengwei.yin@linaro.org>
>
> Please fix your name. I don't know why but your name in git statistics
> is now "yfw":
>
> yfw (1):
>        wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
>
> The right format for both From header and Signed-off-by line is:
>
> First Lastname <username@example.com>
>

It looks like everything is fine in my side. Could you please check your
.mailmap whether the email was mapped to "yfw"?

It's possible my name was added to your .mailmap because I sent patch to
mail list with my email client other than git-send-email. "yfw" was used
in my email client. Thanks.

Regards
Yin, Fengwei

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH] wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
  2015-10-29 23:32   ` fengwei.yin
@ 2015-10-29 23:34     ` fengwei.yin
  2015-10-29 23:41       ` Nicolas Dechesne
  0 siblings, 1 reply; 14+ messages in thread
From: fengwei.yin @ 2015-10-29 23:34 UTC (permalink / raw)
  To: Kalle Valo; +Cc: linux-wireless, wcn36xx, me, k.eugene.e, bjorn.andersson



On 2015/10/30 7:32, fengwei.yin wrote:
>
> On 2015/10/30 4:01, Kalle Valo wrote:
>> "Yin, Fengwei" <fengwei.yin@linaro.org> writes:
>>
>>> arm64 has requirement that all the dma operations have actual device.
>>> Otherwise, following warnning message shown and dma allocation fails:
>>>
>>> WARNING: CPU: 0 PID: 954 at arch/arm64/mm/dma-mapping.c:106
>>> __dma_alloc+0x24c/0x258()
>>> Use an actual device structure for DMA allocation
>>> Modules linked in: wcn36xx wcn36xx_platform
>>> CPU: 0 PID: 954 Comm: ifconfig Not tainted 4.0.0+ #14
>>> Hardware name: Qualcomm Technologies, Inc. MSM 8916 MTP (DT)
>>> Call trace:
>>> [<ffffffc000089904>] dump_backtrace+0x0/0x124
>>> [<ffffffc000089a38>] show_stack+0x10/0x1c
>>> [<ffffffc000627114>] dump_stack+0x80/0xc4
>>> [<ffffffc0000b2e64>] warn_slowpath_common+0x98/0xd0
>>> [<ffffffc0000b2ee8>] warn_slowpath_fmt+0x4c/0x58
>>> [<ffffffc00009487c>] __dma_alloc+0x248/0x258
>>> [<ffffffbffc009270>] wcn36xx_dxe_allocate_mem_pools+0xc4/0x108 [wcn36xx]
>>> [<ffffffbffc0079c4>] wcn36xx_start+0x38/0x240 [wcn36xx]
>>> [<ffffffc0005f161c>] ieee80211_do_open+0x1b0/0x9a4
>>> [<ffffffc0005f1e68>] ieee80211_open+0x58/0x68
>>> [<ffffffc00051693c>] __dev_open+0xb0/0x120
>>> [<ffffffc000516c10>] __dev_change_flags+0x88/0x150
>>> [<ffffffc000516cf4>] dev_change_flags+0x1c/0x5c
>>> [<ffffffc000570950>] devinet_ioctl+0x644/0x6f0
>>>
>>> Signed-off-by: Yin, Fengwei <fengwei.yin@linaro.org>
>>
>> Please fix your name. I don't know why but your name in git statistics
>> is now "yfw":
>>
>> yfw (1):
>>        wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
>>
>> The right format for both From header and Signed-off-by line is:
>>
>> First Lastname <username@example.com>
>>
>
> It looks like everything is fine in my side. Could you please check your
> .mailmap whether the email was mapped to "yfw"?
                    ~~~~~~~~~~ typo fix: "my email address"
>
> It's possible my name was added to your .mailmap because I sent patch to
> mail list with my email client other than git-send-email. "yfw" was used
> in my email client. Thanks.
>
> Regards
> Yin, Fengwei

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH] wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
  2015-10-29 23:34     ` fengwei.yin
@ 2015-10-29 23:41       ` Nicolas Dechesne
  2015-10-30  4:59         ` Kalle Valo
  0 siblings, 1 reply; 14+ messages in thread
From: Nicolas Dechesne @ 2015-10-29 23:41 UTC (permalink / raw)
  To: fengwei.yin
  Cc: Kalle Valo, wcn36xx, Bob Copeland, linux-wireless,
	Bjorn Andersson, k.eugene.e

On Fri, Oct 30, 2015 at 12:34 AM, fengwei.yin <fengwei.yin@linaro.org> wrote:
>>>
>>>
>>> Please fix your name. I don't know why but your name in git statistics
>>> is now "yfw":
>>>
>>> yfw (1):
>>>        wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
>>>
>>> The right format for both From header and Signed-off-by line is:
>>>
>>> First Lastname <username@example.com>
>>>
>>
>> It looks like everything is fine in my side. Could you please check your
>> .mailmap whether the email was mapped to "yfw"?
>
>                    ~~~~~~~~~~ typo fix: "my email address"

fwiw.. I applied the original patch from the list locally, and I don't
see this issue after git am <file>:

$ git shortlog -1
Yin, Fengwei (1):
      wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.




fwiw

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH] wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
  2015-10-29 23:41       ` Nicolas Dechesne
@ 2015-10-30  4:59         ` Kalle Valo
  2015-10-30  5:49           ` yfw
  0 siblings, 1 reply; 14+ messages in thread
From: Kalle Valo @ 2015-10-30  4:59 UTC (permalink / raw)
  To: Nicolas Dechesne
  Cc: fengwei.yin, wcn36xx, Bob Copeland, linux-wireless,
	Bjorn Andersson, k.eugene.e

Nicolas Dechesne <nicolas.dechesne@linaro.org> writes:

> On Fri, Oct 30, 2015 at 12:34 AM, fengwei.yin <fengwei.yin@linaro.org> wrote:
>>>>
>>>>
>>>> Please fix your name. I don't know why but your name in git statistics
>>>> is now "yfw":
>>>>
>>>> yfw (1):
>>>>        wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
>>>>
>>>> The right format for both From header and Signed-off-by line is:
>>>>
>>>> First Lastname <username@example.com>
>>>>
>>>
>>> It looks like everything is fine in my side. Could you please check your
>>> .mailmap whether the email was mapped to "yfw"?
>>
>>                    ~~~~~~~~~~ typo fix: "my email address"
>
> fwiw.. I applied the original patch from the list locally, and I don't
> see this issue after git am <file>:
>
> $ git shortlog -1
> Yin, Fengwei (1):
>       wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.

Ah, I think it's coming from patchwork:

"Submitter	yfw"

https://patchwork.kernel.org/patch/7484791/

Fengwei, please fix your name in patchwork. It should be easy to do.

Anyway, my original comment still stands. The correct format for name
is:

        Random J Developer <random@developer.example.org>

NOT:

        Developer, Random J <random@developer.example.org>

See SubmittingPatches.

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH] wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
  2015-10-30  4:59         ` Kalle Valo
@ 2015-10-30  5:49           ` yfw
  2015-10-30  6:02             ` Kalle Valo
  0 siblings, 1 reply; 14+ messages in thread
From: yfw @ 2015-10-30  5:49 UTC (permalink / raw)
  To: Kalle Valo
  Cc: Nicolas Dechesne, wcn36xx, Bob Copeland, linux-wireless,
	Bjorn Andersson, k.eugene.e

On Fri, Oct 30, 2015 at 06:59:46AM +0200, Kalle Valo wrote:
> Nicolas Dechesne <nicolas.dechesne@linaro.org> writes:
> 
> > On Fri, Oct 30, 2015 at 12:34 AM, fengwei.yin <fengwei.yin@linaro.org> wrote:
> >>>>
> >>>>
> >>>> Please fix your name. I don't know why but your name in git statistics
> >>>> is now "yfw":
> >>>>
> >>>> yfw (1):
> >>>>        wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
> >>>>
> >>>> The right format for both From header and Signed-off-by line is:
> >>>>
> >>>> First Lastname <username@example.com>
> >>>>
> >>>
> >>> It looks like everything is fine in my side. Could you please check your
> >>> .mailmap whether the email was mapped to "yfw"?
> >>
> >>                    ~~~~~~~~~~ typo fix: "my email address"
> >
> > fwiw.. I applied the original patch from the list locally, and I don't
> > see this issue after git am <file>:
> >
> > $ git shortlog -1
> > Yin, Fengwei (1):
> >       wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
> 
> Ah, I think it's coming from patchwork:
> 
> "Submitter	yfw"
> 
> https://patchwork.kernel.org/patch/7484791/
> 
> Fengwei, please fix your name in patchwork. It should be easy to do.
Kalle, any clue about how to change the name in patchwork? I can't find
how on the patchwork website.

> 
> Anyway, my original comment still stands. The correct format for name
> is:
> 
>         Random J Developer <random@developer.example.org>
> 
> NOT:
> 
>         Developer, Random J <random@developer.example.org>
> 
> See SubmittingPatches.
Will update the patch. Thanks.

Regards
Yin, Fengwei

> 
> -- 
> Kalle Valo

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH] wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
  2015-10-30  5:49           ` yfw
@ 2015-10-30  6:02             ` Kalle Valo
  2015-10-30  6:05               ` fengwei.yin
  2015-10-30  6:41               ` fengwei.yin
  0 siblings, 2 replies; 14+ messages in thread
From: Kalle Valo @ 2015-10-30  6:02 UTC (permalink / raw)
  To: yfw
  Cc: Nicolas Dechesne, wcn36xx, Bob Copeland, linux-wireless,
	Bjorn Andersson, k.eugene.e

yfw <fengwei.yin@linaro.org> writes:

> On Fri, Oct 30, 2015 at 06:59:46AM +0200, Kalle Valo wrote:
>> Nicolas Dechesne <nicolas.dechesne@linaro.org> writes:
>> 
>> > fwiw.. I applied the original patch from the list locally, and I don't
>> > see this issue after git am <file>:
>> >
>> > $ git shortlog -1
>> > Yin, Fengwei (1):
>> >       wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
>> 
>> Ah, I think it's coming from patchwork:
>> 
>> "Submitter	yfw"
>> 
>> https://patchwork.kernel.org/patch/7484791/
>> 
>> Fengwei, please fix your name in patchwork. It should be easy to do.
>
> Kalle, any clue about how to change the name in patchwork? I can't find
> how on the patchwork website.

Not sure. I think first need to register with the same email address:

https://patchwork.kernel.org/register/

>> Anyway, my original comment still stands. The correct format for name
>> is:
>> 
>>         Random J Developer <random@developer.example.org>
>> 
>> NOT:
>> 
>>         Developer, Random J <random@developer.example.org>
>> 
>> See SubmittingPatches.
>
> Will update the patch. Thanks.

It's too late for this patch as I already applied it.

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH] wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
  2015-10-30  6:02             ` Kalle Valo
@ 2015-10-30  6:05               ` fengwei.yin
  2015-10-30  6:41               ` fengwei.yin
  1 sibling, 0 replies; 14+ messages in thread
From: fengwei.yin @ 2015-10-30  6:05 UTC (permalink / raw)
  To: Kalle Valo
  Cc: Nicolas Dechesne, wcn36xx, Bob Copeland, linux-wireless,
	Bjorn Andersson, k.eugene.e



On 2015/10/30 14:02, Kalle Valo wrote:
> yfw <fengwei.yin@linaro.org> writes:
>
>> On Fri, Oct 30, 2015 at 06:59:46AM +0200, Kalle Valo wrote:
>>> Nicolas Dechesne <nicolas.dechesne@linaro.org> writes:
>>>
>>>> fwiw.. I applied the original patch from the list locally, and I don't
>>>> see this issue after git am <file>:
>>>>
>>>> $ git shortlog -1
>>>> Yin, Fengwei (1):
>>>>        wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
>>>
>>> Ah, I think it's coming from patchwork:
>>>
>>> "Submitter	yfw"
>>>
>>> https://patchwork.kernel.org/patch/7484791/
>>>
>>> Fengwei, please fix your name in patchwork. It should be easy to do.
>>
>> Kalle, any clue about how to change the name in patchwork? I can't find
>> how on the patchwork website.
>
> Not sure. I think first need to register with the same email address:
>
> https://patchwork.kernel.org/register/
Thanks. Yes. Register/Login and update the profile give me correct submitter.
I will resend the patch soon.

Regards
Yin, Fengwei
>
>>> Anyway, my original comment still stands. The correct format for name
>>> is:
>>>
>>>          Random J Developer <random@developer.example.org>
>>>
>>> NOT:
>>>
>>>          Developer, Random J <random@developer.example.org>
>>>
>>> See SubmittingPatches.
>>
>> Will update the patch. Thanks.
>
> It's too late for this patch as I already applied it.
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH] wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
  2015-10-30  6:02             ` Kalle Valo
  2015-10-30  6:05               ` fengwei.yin
@ 2015-10-30  6:41               ` fengwei.yin
  1 sibling, 0 replies; 14+ messages in thread
From: fengwei.yin @ 2015-10-30  6:41 UTC (permalink / raw)
  To: Kalle Valo
  Cc: Nicolas Dechesne, wcn36xx, Bob Copeland, linux-wireless,
	Bjorn Andersson, k.eugene.e



On 2015/10/30 14:02, Kalle Valo wrote:
> yfw <fengwei.yin@linaro.org> writes:
>
>> On Fri, Oct 30, 2015 at 06:59:46AM +0200, Kalle Valo wrote:
>>> Nicolas Dechesne <nicolas.dechesne@linaro.org> writes:
>>>
>>>> fwiw.. I applied the original patch from the list locally, and I don't
>>>> see this issue after git am <file>:
>>>>
>>>> $ git shortlog -1
>>>> Yin, Fengwei (1):
>>>>        wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc.
>>>
>>> Ah, I think it's coming from patchwork:
>>>
>>> "Submitter	yfw"
>>>
>>> https://patchwork.kernel.org/patch/7484791/
>>>
>>> Fengwei, please fix your name in patchwork. It should be easy to do.
>>
>> Kalle, any clue about how to change the name in patchwork? I can't find
>> how on the patchwork website.
>
> Not sure. I think first need to register with the same email address:
>
> https://patchwork.kernel.org/register/

v2 was updated here:
https://patchwork.kernel.org/patch/7524381/

Regards
Yin, Fengwei

>
>>> Anyway, my original comment still stands. The correct format for name
>>> is:
>>>
>>>          Random J Developer <random@developer.example.org>
>>>
>>> NOT:
>>>
>>>          Developer, Random J <random@developer.example.org>
>>>
>>> See SubmittingPatches.
>>
>> Will update the patch. Thanks.
>
> It's too late for this patch as I already applied it.
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-10-30  6:41 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-26  2:36 [PATCH] wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc Yin, Fengwei
2015-10-26 18:24 ` Bjorn Andersson
2015-10-27  0:06   ` yfw
2015-10-28  8:21     ` Eugene Krasnikov
2015-10-28 18:59 ` Kalle Valo
2015-10-29 20:01 ` [PATCH] " Kalle Valo
2015-10-29 23:32   ` fengwei.yin
2015-10-29 23:34     ` fengwei.yin
2015-10-29 23:41       ` Nicolas Dechesne
2015-10-30  4:59         ` Kalle Valo
2015-10-30  5:49           ` yfw
2015-10-30  6:02             ` Kalle Valo
2015-10-30  6:05               ` fengwei.yin
2015-10-30  6:41               ` fengwei.yin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).