Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp713004ybz; Wed, 15 Apr 2020 17:18:09 -0700 (PDT) X-Google-Smtp-Source: APiQypK3idXtxWiPjhI0gmMSkEIDqXCsunno/59HsFJSGajdYttl+6HlPhAnFUHXvmMHLbZn9Yao X-Received: by 2002:a17:906:f90e:: with SMTP id lc14mr7092710ejb.156.1586996288848; Wed, 15 Apr 2020 17:18:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586996288; cv=none; d=google.com; s=arc-20160816; b=uHjVlKukby6uNmM9BwtICcaf+I1/R+e9kxkfmnIWSabI7yaPA1XnWGsHvAKp9mirmj Gn4Da9XI+gThIL6hU7OuJeHkgT7YTyC7PO3YwJSoVx/vmk+UrwPsg3HftpKPcRvleBwc 3iKW7BzNYSGuj5EIiqZlBvB+BxBkGhijbKWIUFrE9n8gdzw3hdOlVfIHOuMVN3Mbd+iP ++ks70SD5eOBVNnWrY8w/IMMofQojThWEYj0/BfyJc3vYZZ36hHYhw5Gm+e1XNH1Q+Ey /Oah4T5jNB8r6yyTCcMgUmchD4Cpwv/7mZD7LHqGPUAAPOyecB0qnDUxsqeREO6/DotK v4LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=FWSht42FDu7S06YV/4waRiy4+33XYheOIe2Xl44FWeg=; b=KhthA0PbZochzQsLjpnTQsa7NPMavk0NZ8t3pAIvNBwGgwXhQUlX7vpH7r0jO0flTo yeWwVDYMomX6IiUfqIGbCm9fP5WdBcK45FbufAeueOeJIph4bXxB4/EmOipkumjVIBnw HF5S0myrqbO58tvexISfrPSt1tNUojqUl18EaQpT9Z/IGDGYJVRw/j5OkyMc/V6mTuiQ FGm5fsgREWMYIOUDr8a6BpmPqULjNT/2Jifp7I11ysZ7HFGHmlqK+ajXE06R0PrgWNAO n5ZGBUZRWPaanRBx/K0kTbwQj7IrryklevdPp6lZNI5hwBfPnjCyxUz/kTtAc5QUeL3f taXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="nT/1/zng"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si8459777edv.341.2020.04.15.17.17.45; Wed, 15 Apr 2020 17:18:08 -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=@kernel.org header.s=default header.b="nT/1/zng"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1414947AbgDOPyQ (ORCPT + 99 others); Wed, 15 Apr 2020 11:54:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:47064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1414941AbgDOPyN (ORCPT ); Wed, 15 Apr 2020 11:54:13 -0400 Received: from localhost (unknown [106.201.106.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DC99E2078B; Wed, 15 Apr 2020 15:54:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586966052; bh=vnmTaBMnbWeZwBEDn7jEJ2FxWVO9YscBRgyo6TVC4A8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nT/1/zngd0WdQg2V/NRBkL8bMFXf+XI/Vnkjec7wJ3QbxNPL/tpLPpOp3qpNtpypf 4HMA3PKkSUaBIwFssoHqn2gJn3hwtAvlZG3ZikkrwSx7x6+rIJbcyr7FqaopArJPOK MNy0CD4ADSnA4o5FU6R1bkvHhki0V0UPPs1IK6Cc= Date: Wed, 15 Apr 2020 21:23:59 +0530 From: Vinod Koul To: leonid.ravich@dell.com Cc: dmaengine@vger.kernel.org, lravich@gmail.com, Dan Williams , Dave Jiang , Greg Kroah-Hartman , Alexios Zavras , "Alexander.Barabash@dell.com" , Thomas Gleixner , Kate Stewart , Jilayne Lovejoy , Logan Gunthorpe , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] dmaengine: ioat: Decreasing allocation chunk size 2M -> 512K Message-ID: <20200415155359.GT72691@vkoul-mobl> References: <20200402092725.15121-2-leonid.ravich@dell.com> <20200402163356.9029-1-leonid.ravich@dell.com> <20200402163356.9029-2-leonid.ravich@dell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200402163356.9029-2-leonid.ravich@dell.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02-04-20, 19:33, leonid.ravich@dell.com wrote: > From: Leonid Ravich > > current IOAT driver using big (2MB) allocations chunk for its descriptors > therefore each ioat dma engine need 2 such chunks > (64k entres in ring each entry 64B = 4MB) > requiring 2 * 2M * dmaengine contiguies memory chunk > might fail due to memory fragmention. This is quite decent explanation :) pls use upto 72 chars to make it a better read. > > so we decreasing chunk size and using more chunks. > > Acked-by: Dave Jiang > Signed-off-by: Leonid Ravich > --- > drivers/dma/ioat/dma.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/dma/ioat/dma.h b/drivers/dma/ioat/dma.h > index 5216c6b..e6b622e 100644 > --- a/drivers/dma/ioat/dma.h > +++ b/drivers/dma/ioat/dma.h > @@ -83,7 +83,7 @@ struct ioatdma_device { > > #define IOAT_MAX_ORDER 16 > #define IOAT_MAX_DESCS (1 << IOAT_MAX_ORDER) > -#define IOAT_CHUNK_SIZE (SZ_2M) > +#define IOAT_CHUNK_SIZE (SZ_512K) > #define IOAT_DESCS_PER_CHUNK (IOAT_CHUNK_SIZE / IOAT_DESC_SZ) > > struct ioat_descs { > -- > 1.9.3 -- ~Vinod