Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1553147
| From | John Stultz <john.stultz@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] usb: dwc2: fix panic for coherent memory allocation |
| Date | 2017-01-06 22:40 +0100 |
| Message-ID | <sWKoV-7NO-5@gated-at.bofh.it> (permalink) |
| References | <sWt4K-3N8-31@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Jan 5, 2017 at 6:50 PM, Leo Yan <leo.yan@linaro.org> wrote:
> When use configfs to configure USB port as as ethernet gadget, the
> kernel has panic with below backtrace; it clearly indicates the
> coherent memory allocation is happened in the interrupt context,
> but the function __get_vm_area_node() is possible to be scheduling
> out so function __get_vm_area_node() triggers panic if it's called
> from interrupt context.
>
> To fix this issue, simply to change gfp_flag from GFP_KERNEL to
> GFP_NOWAIT so it can support to allocate coherent memory from
> interrupt context.
This looks like it duplicates the similar patch I'm told should be
queued for 4.10-rc3:
https://lkml.org/lkml/2016/12/1/120
thanks
-john
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] usb: dwc2: fix panic for coherent memory allocation Leo Yan <leo.yan@linaro.org> - 2017-01-06 04:10 +0100
Re: [PATCH] usb: dwc2: fix panic for coherent memory allocation John Stultz <john.stultz@linaro.org> - 2017-01-06 22:40 +0100
Re: [PATCH] usb: dwc2: fix panic for coherent memory allocation Leo Yan <leo.yan@linaro.org> - 2017-01-07 10:50 +0100
csiph-web