Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2201300ybl; Thu, 15 Aug 2019 08:06:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtXzhtz3sPPaEzf9tIl7rZWxArK/vGEX0+DHP1IlFuYU1qN4dT9XnQwaUaVYz1MEewHjeJ X-Received: by 2002:a17:90a:8591:: with SMTP id m17mr2708881pjn.100.1565881578842; Thu, 15 Aug 2019 08:06:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565881578; cv=none; d=google.com; s=arc-20160816; b=yAiFjDlXCw2xTSSekE5H/cmHM1+QdAMCWDjA9YYd0D930AZjRhw/OULAG2Mc6xYjL7 c9EEE6NPxdZF/IYQO+YCoII53fGrgW0DDlPSWSB2fT/ltpEX36SOrvYAaQSal0ZhdIpd i4Hsa338tiPOS97GRPZEKeS+o13Fumb0ByCyTGgRETkgYDAZCHf4+b0B6oWYqn56CUiR /jcLdsER4WVarm4v2OvcSt/IU04sZ73M0cTB+MxbNPrLaxhMg5ZY1x1J1kXV3XaDuxAU ZtpmICOvERyQ7iUC25R77eWNnVEafQOLOS2yZcP4/AWpZG+e6K5HtjxjRkTr8UMg1vg9 bbnQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=wg3BMfOrOLpw26v12F4FkpuHeYgfDMMjGjz9mi4kaWg=; b=x5Wz+c0qpFYdyH36npUy+rXp7s43bLZb7tjMs0XuIbE0Nbq+BH/6EwzdjEDejsEyZr Su7Zi5GsgV5LLWgLnKyYpkWjIYt+H/bFkNCi65xZXncj/Xk5HXg/YyIpuQwrv5uA+7WW ohHKAJzOfOwJa/yX/MM89yCFSL/On1JROqysGElxE96rTMa5ogku3vCKuNJ8B1ISUT1+ K2G5725lo8SIxUlQ+rChr4b3xGHBQW08yFmnIEh8qnX5M5v1+zjxltsqQwl5qp4MLHac O8AFg78rx9P3Wgrv8H3E4GyIIPScjcUy7C34XNO4q+IsB2gCsDhBgYS1xqgVMwOfUQ2P tx+g== 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 v143si2200037pfc.63.2019.08.15.08.06.02; Thu, 15 Aug 2019 08:06:18 -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 S1732572AbfHONu4 (ORCPT + 99 others); Thu, 15 Aug 2019 09:50:56 -0400 Received: from foss.arm.com ([217.140.110.172]:44456 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732426AbfHONu4 (ORCPT ); Thu, 15 Aug 2019 09:50:56 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 25C6D344; Thu, 15 Aug 2019 06:50:56 -0700 (PDT) Received: from [10.1.197.57] (e110467-lin.cambridge.arm.com [10.1.197.57]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 068C83F694; Thu, 15 Aug 2019 06:50:54 -0700 (PDT) Subject: Re: DMA-API: cacheline tracking ENOMEM, dma-debug disabled due to nouveau ? To: Christoph Hellwig , Corentin Labbe , bskeggs@redhat.com, airlied@linux.ie, m.szyprowski@samsung.com, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org References: <20190814145033.GA11190@Red> <20190814174927.GT7444@phenom.ffwll.local> <20190815133554.GE12036@lst.de> From: Robin Murphy Message-ID: Date: Thu, 15 Aug 2019 14:50:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190815133554.GE12036@lst.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/08/2019 14:35, Christoph Hellwig wrote: > On Wed, Aug 14, 2019 at 07:49:27PM +0200, Daniel Vetter wrote: >> On Wed, Aug 14, 2019 at 04:50:33PM +0200, Corentin Labbe wrote: >>> Hello >>> >>> Since lot of release (at least since 4.19), I hit the following error message: >>> DMA-API: cacheline tracking ENOMEM, dma-debug disabled >>> >>> After hitting that, I try to check who is creating so many DMA mapping and see: >>> cat /sys/kernel/debug/dma-api/dump | cut -d' ' -f2 | sort | uniq -c >>> 6 ahci >>> 257 e1000e >>> 6 ehci-pci >>> 5891 nouveau >>> 24 uhci_hcd >>> >>> Does nouveau having this high number of DMA mapping is normal ? >> >> Yeah seems perfectly fine for a gpu. > > That is a lot and apparently overwhelm the dma-debug tracking. Robin > rewrote this code in Linux 4.21 to work a little better, so I'm curious > why this might have changes in 4.19, as dma-debug did not change at > all there. FWIW, the cacheline tracking entries are a separate thing from the dma-debug entries that I rejigged - judging by those numbers there should still be plenty of free dma-debug entries, but for some reason it has failed to extend the radix tree :/ Robin.