From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941305AbdAGJm0 (ORCPT ); Sat, 7 Jan 2017 04:42:26 -0500 Received: from mail-pg0-f52.google.com ([74.125.83.52]:34027 "EHLO mail-pg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934680AbdAGJmW (ORCPT ); Sat, 7 Jan 2017 04:42:22 -0500 Date: Sat, 7 Jan 2017 17:42:07 +0800 From: Leo Yan To: John Stultz Cc: John Youn , Greg Kroah-Hartman , Linux USB List , lkml , Zhangfei Gao Subject: Re: [PATCH] usb: dwc2: fix panic for coherent memory allocation Message-ID: <20170107094207.GC29727@leoy-linaro> References: <1483671005-13394-1-git-send-email-leo.yan@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 06, 2017 at 01:36:11PM -0800, John Stultz wrote: > On Thu, Jan 5, 2017 at 6:50 PM, Leo Yan 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 Yeah, this patch is duplicate. Please ignore this one. Thanks, Leo Yan