Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp320584pxf; Thu, 18 Mar 2021 00:37:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAc2OYBOJAgrfssuWhf7kMAOODt5+Num+Q0y43g+ux3hdfRuQLe7bEM6FgGKZxHj3CMt3J X-Received: by 2002:a05:6402:10c9:: with SMTP id p9mr1973171edu.268.1616053031939; Thu, 18 Mar 2021 00:37:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616053031; cv=none; d=google.com; s=arc-20160816; b=YKE8/yoPXolvXv7r8PDSmZweGG0j7X0wfeQ0DySesCh5RH9g8qevNQvrlKfxnqwFbq aTEBKqkUW7Z1+wyEP4z6/12SudcDceRc1eIVRnVRGdiMKH+BK4dXNAVEfFq7Zt+xEJ1m WwupyyR73s9cwdEhnBrHBnjl6F3L/l+BnkJGPsplPpUYgYQB2fz95SWsIWXWmPdLfPmY t0amj3tF2+7FuzzT5x5GYBwPBYnZ9AjMMiG+kosk8JhS+6vSdG2nenlg+WKrLXUoBLuL njXjiEUFgQXkOf2tdqcTx/q2+Hud7hbhkknnmFcwNybSnLsUSjX0WB44+rp4OWY2FwF6 sptQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zypyosUtrV6QzTvXoX23o+mMWUQBWuhFbCWQYbPQecU=; b=CvYRHGZduvsbpNQVWXgOzuJOFaRRxfqqjL3wXmWvM8oiV5dBfCiDBQCL7UybPAME6D k2DurMusLBsOTnFTlIf2PnKN9OB+fUU1sHfVnkf9+bkKsDqXfXp4u5+4kcVBsNgai4QP Anjk+OsdbLXaw2HrzvMsHTwusqyCA6ZBiEVcB+0Px8pLsL6EM4oHdUqsjnSMQ7cf7zwa 6rzgHOxUYxPmQ+BWq3tc4bfaTt8Y9bp9eZt345Y4tubvQVkoD2kPVX7zie8CcMnLd6Li nL2BuLpTnOj4UgFkZyXMQS2vvIFtb25GaZCi5zlBGKjBjvjPsNWDyNL8VxdrtgQJgY2Y NI2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=IcFknYOb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t24si967797edw.402.2021.03.18.00.36.49; Thu, 18 Mar 2021 00:37:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=IcFknYOb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229649AbhCRHdZ (ORCPT + 99 others); Thu, 18 Mar 2021 03:33:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbhCRHdM (ORCPT ); Thu, 18 Mar 2021 03:33:12 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5A43C06174A; Thu, 18 Mar 2021 00:33:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=zypyosUtrV6QzTvXoX23o+mMWUQBWuhFbCWQYbPQecU=; b=IcFknYObn9SYN4UaRscH8XVCLt mOcixKnDJ0Km6/FoFKFPr9sACQxyOLm13wDPgFwTC/CnN6tYy5qSQ5m+lcDTn0Ds0ihw2SmvCCj5Z mph2kCx4/nGLWbYAuZrL9iTc6MkMXtx8vg9c2tSpqB7/orCYmvCNbGVlmwtpBa1TlBt8frrww5VZo Gz9uEc8baAZ0IVHnVTq/USGsNvR0eg6qEmdfq97265EL5hWIwC7sBJHOqrIAhdI4TPGXyEnvHt2WB e97MgjUxI25zN18HjidW8hnAyeGrayDnryZGH2TvFrfL0yNYUqGKnmWyqqNKKBbyn3t7yqsI6iHND wS4wY3pg==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lMn9B-002hqf-LJ; Thu, 18 Mar 2021 07:32:48 +0000 Date: Thu, 18 Mar 2021 07:32:45 +0000 From: Christoph Hellwig To: Sanket Parmar Cc: peter.chen@kernel.org, pawell@cadence.com, a-govindraju@ti.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, kurahul@cadence.com, gregkh@linuxfoundation.org, kishon@ti.com, hch@infradead.org Subject: Re: [PATCH v2] usb: cdns3: Optimize DMA request buffer allocation Message-ID: <20210318073245.GA645121@infradead.org> References: <1616008439-15494-1-git-send-email-sparmar@cadence.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1616008439-15494-1-git-send-email-sparmar@cadence.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 17, 2021 at 08:13:59PM +0100, Sanket Parmar wrote: > dma_alloc_coherent() might fail on the platform with a small > DMA region. > > To avoid such failure in cdns3_prepare_aligned_request_buf(), > dma_alloc_coherent() is replaced with dma_alloc_noncoherent() > to allocate aligned request buffer of dynamic length. > > Reported-by: Aswath Govindraju > Signed-off-by: Sanket Parmar Looks good to me: Reviewed-by: Christoph Hellwig