Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3016682pxk; Sun, 4 Oct 2020 21:50:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4f/0Isckn/Wiu0N5ooob8stgYX03+xtpQMcpMT2DZ2WokgC4ZFJEQU71goqnAHQrCYZUg X-Received: by 2002:a50:ef0e:: with SMTP id m14mr4560062eds.5.1601873425104; Sun, 04 Oct 2020 21:50:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601873425; cv=none; d=google.com; s=arc-20160816; b=KZfDFVDY4aqrzNVJ4J61Zt89iFW7QPAdVjMFo9yUbXSYfD5PEedzL8QLEFcO4Q21GV nYIrR2nsiYNaqb1e2SiTLMdl976R7gDTPN7W69NK7WQSHVHQDaMHSGnmNtTGMMtC6wap U3cWybBFJg2gsx+ugVNo+rkUwMKh/Y7FLn9SGAqYIdTm0u0WxxqksU7sj+cVykAb/l2g tI/AHgDbSifgfcZMWcz4StbfJksz/xnF1fAS4SeIub2dIz7CvOwjm1Rh66lQ0fO4bNt9 Hw0lOC2Sc9kGIryB2xGw5+gJoEKhihui6W6TSNnba0mU5rS1qdWTWA6laRRXlnDbZ9H3 Eksg== 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=VmwS6e+uskNAqwcCTwbcq51GveMEpQ8PqPhuoNYpA9M=; b=gAYSpthkuOXqJ9HLrFN/CVS7F3gF7j1h1PLPA0kOslxKctlfsRufcm9Z6daeuWMSsr C+Vxen7Zcab6AzQtIOOob80XUdD5UPMFVAeAGmJw28S5lwNPw8RQusXrgfOdgcFyqD5d dBDW/bHLqmRE1RaD8MXYjZYnEbQAGehUOe8FCGLRBfvH9wjAYHm8j6ztanKzR2vmrczb OIUDiy9CK/dEKYdOo3co7iLK4unT/ZUCn34Fu/fh3k3eRyZc9Qw4QO7LreTK7CjEivO1 //VF7BrmBJzKTnGa5+opS+w87YtK+xLOtJdI5lvhkduh9zIPDZyzMr9OdsEJPE8+NAL8 Mj9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BQEZCokK; 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 m21si6212063ejq.199.2020.10.04.21.50.02; Sun, 04 Oct 2020 21:50:25 -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=BQEZCokK; 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 S1725888AbgJEEq4 (ORCPT + 99 others); Mon, 5 Oct 2020 00:46:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:55394 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbgJEEq4 (ORCPT ); Mon, 5 Oct 2020 00:46:56 -0400 Received: from localhost (unknown [171.61.67.142]) (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 AB6582080C; Mon, 5 Oct 2020 04:46:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601873215; bh=0SimSveQGeUxXB9OTEuy2aHgGOxBfTXFFfaOsN9roXU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BQEZCokKzw0j4sTpUVkmfD2atNDjTgLkjZZQMfu1cSzDOWRTDnRA1Pe8CgEOjBLWS OTM6xTd1hiYCMPeNowSerJZ32N2tOloRqVmPqLiXr7iDpWRUmWJb0tihdk9rlfdZBr t8a2AqrlxLkmtK5zz/Brdmyrvn0AYBvi75qtaWQ4= Date: Mon, 5 Oct 2020 10:16:51 +0530 From: Vinod Koul To: Logan Gunthorpe Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Robin Murphy , Dave Jiang , Dan Williams Subject: Re: [PATCH] dmaengine: ioat: Allocate correct size for descriptor chunk Message-ID: <20201005044651.GI2968@vkoul-mobl> References: <20200922200844.2982-1-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200922200844.2982-1-logang@deltatee.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22-09-20, 14:08, Logan Gunthorpe wrote: > dma_alloc_coherent() is called with a fixed SZ_2M size, but frees happen > with IOAT_CHUNK_SIZE. Recently, IOAT_CHUNK_SIZE was reduced to 512M but > the allocation did not change. To fix, change to using the > IOAT_CHUNK_SIZE define. > > This was caught with the upcoming patchset for converting Intel platforms to the > dma-iommu implementation. It has a warning when the unmapped size differs from > the mapped size. Applied, thanks -- ~Vinod