Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1715158ybm; Thu, 23 May 2019 05:46:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgcjxS79VrO/P7mvD96SAWNmcVDgMK5Xt21gQ6BY5Un8E+MI9K0xplLAsi3mE58Xv6HB1Q X-Received: by 2002:a63:1c10:: with SMTP id c16mr71383474pgc.442.1558615596546; Thu, 23 May 2019 05:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558615596; cv=none; d=google.com; s=arc-20160816; b=BKKfp4mCmCE8XkwFDR4qv7H2hG59leHdszb5GFyayPOgzB6MXHWxLE2Unj+5JwI2GG mJs09FnFnzU+Kd7Rrex5gEO+H58RBpOi7aqlQELGcBb+SmOzCCsG8Q65aoLCfuea1iRm ngn4+rPVH6KaHrkj/ymXwYNvx/rwrt6YRtQXp1xOEo4WNj0lrY6mL+ZcRpP3hKHNKisi aSlT0wbs4MC7L1nuSI/y0+YsmR5uPCCpnSnE7Hdu4IpCaH71Bcc4uX+SoiFEOO2ivARE 2K0QFNMjo31SKI3ve0zscRaLtN64VS8SRvc6BlyOSnw2dfKID6y+9hjW4vUKtQjQCCSx nUfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=w6Nm3klmpJAjWregQkU1uqRrDfKu5QPTnff+YgnXYLw=; b=JXYJ2ZwADiCYbLiq0j/QoDeLTG2ONbS9EpwJ92XBAVMcvVpdUtIW3pdabrhmBRSO0w yf5GDtWifOqTadAoWYbTnO05lF+htieFmqqNgd4+NBc5Ji+JAfKbxjeFNut333QvHlCR HxtlQMN1l8uhhqvAC+NFvyw2ipUQ85GWR4AZn78JhWXQA5c8BGqz754CnxBJpookXyDY ProW0ZZPa2JMNl7KEdhfsBaGVjdXSk8N70alyrY92hv41ATRlYZvlJ2/7A5ry/sJeti9 G8oJNZjKkKGaiorHtve78EBswAX/Gx4REuR3bOKLHMLMmeot8D2tv1C1p5LL7fzvoaRw SdjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si27606942plc.80.2019.05.23.05.46.20; Thu, 23 May 2019 05:46:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730635AbfEWMpL (ORCPT + 99 others); Thu, 23 May 2019 08:45:11 -0400 Received: from mx2.suse.de ([195.135.220.15]:37712 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730028AbfEWMpK (ORCPT ); Thu, 23 May 2019 08:45:10 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 645D9AD78; Thu, 23 May 2019 12:45:09 +0000 (UTC) Message-ID: <1558614729.3994.5.camel@suse.com> Subject: Re: [RFC PATCH] usb: host: xhci: allow __GFP_FS in dma allocation From: Oliver Neukum To: Christoph Hellwig , Jaewon Kim Cc: linux-mm@kvack.org, gregkh@linuxfoundation.org, Jaewon Kim , m.szyprowski@samsung.com, ytk.lee@samsung.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Date: Thu, 23 May 2019 14:32:09 +0200 In-Reply-To: <20190520055657.GA31866@infradead.org> References: <20190520055657.GA31866@infradead.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On So, 2019-05-19 at 22:56 -0700, Christoph Hellwig wrote: > Folks, you can't just pass arbitary GFP_ flags to dma allocation > routines, beause very often they are not just wrappers around > the page allocator. > > So no, you can't just fine grained control the flags, but the > existing code is just as buggy. > > Please switch to use memalloc_noio_save() instead. Thinking about this again, we have a problem. We introduced memalloc_noio_save() in 3.10 . Hence the code should have been correct in v4.14. Which means that either 6518202970c1 "(mm/cma: remove unsupported gfp_mask parameter from cma_alloc()" is buggy, or the original issue with a delay of 2 seconds still exist. Do we need to do something? Regards Oliver