[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALAqxLV4GcgavXw9WFieHVy0n9Gd86ZOv=yLaGTyiUZae58a0A@mail.gmail.com>
Date: Fri, 6 Jan 2017 13:36:11 -0800
From: John Stultz <john.stultz@...aro.org>
To: Leo Yan <leo.yan@...aro.org>
Cc: John Youn <johnyoun@...opsys.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Linux USB List <linux-usb@...r.kernel.org>,
lkml <linux-kernel@...r.kernel.org>,
Zhangfei Gao <zhangfei.gao@...aro.org>
Subject: Re: [PATCH] usb: dwc2: fix panic for coherent memory allocation
On Thu, Jan 5, 2017 at 6:50 PM, Leo Yan <leo.yan@...aro.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
Powered by blists - more mailing lists