[linux-yocto] [PATCH 1/1] dma: xilinx: dpdma: alloc xilinx_dpdma_tx_desc using GFP_ATOMIC

2019-10-22 Thread quanyang.wang
From: Quanyang Wang The function xilinx_dpdma_chan_alloc_tx_desc can be called from atomic context, hence use GFP_ATOMIC instead of GFP_KERNEL, or else it will cause the calltrace as below: BUG: sleeping function called from invalid context at mm/slab.h:418 in_atomic(): 1, irqs_disabled(): 128,

Re: [linux-yocto] [PATCH 1/1] dma: xilinx: dpdma: alloc xilinx_dpdma_tx_desc using GFP_ATOMIC

2019-10-22 Thread Quanyang Wang
On 10/18/19 10:42 PM, Radhey Shyam Pandey wrote: -Original Message- From: Hyun Kwon Sent: Thursday, October 17, 2019 11:01 PM To: Quanyang Wang Cc: Hyun Kwon ; Michal Simek ; Bruce ; linux-yocto@yoctoproject.org; Radhey Shyam Pandey Subject: Re: [linux-yocto][PATCH 1/1] dma: xilinx

Re: [linux-yocto] [PATCH 1/1] dma: xilinx: dpdma: alloc xilinx_dpdma_tx_desc using GFP_ATOMIC

2019-10-16 Thread Quanyang Wang
On 10/17/19 1:01 AM, Hyun Kwon wrote: Hi Quanyang, Thanks for the patch. On Tue, 2019-10-15 at 22:49:41 -0700, Michal Simek wrote: +Hyun, On 15. 10. 19 16:56, quanyang.w...@windriver.com wrote: From: Quanyang Wang The function xilinx_dpdma_chan_alloc_tx_desc can be called from atomic

[linux-yocto] [PATCH 1/1] dma: xilinx: dpdma: alloc xilinx_dpdma_tx_desc using GFP_ATOMIC

2019-10-15 Thread quanyang.wang
From: Quanyang Wang The function xilinx_dpdma_chan_alloc_tx_desc can be called from atomic context, hence use GFP_ATOMIC instead of GFP_KERNEL, or else it will cause the calltrace as below: BUG: sleeping function called from invalid context at mm/slab.h:418 in_atomic(): 1, irqs_disabled(): 128,