Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1267866ybl; Fri, 16 Aug 2019 11:47:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxglHXW3qIKTbd5B/nYn+jBuBCCkTfo/qe1bCsh2H/+4AqoNxryHYOUMCs06ZokCdA46JuZ X-Received: by 2002:a17:90a:c086:: with SMTP id o6mr8888874pjs.2.1565981246469; Fri, 16 Aug 2019 11:47:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565981246; cv=none; d=google.com; s=arc-20160816; b=WviWW/JJwIPYer1HhfWftun0vDEPCzww3ITrnWae8xwQTRSrXUEhnd5zxypJYo+p2K Rdzmk5I8GXy7S/SV+hGSlw6Hf3GyIJbsJqhwkhUlTfyTwrk+3zwT4vNxzgcMtSfkhgjI /mKmVF3KEZuCE28tv3l630sk7Gv1e1SxtwYDGbjK6cOpO8rtsYlYVaZgNwYj7jtn6cgK jAAkJ5eH9A3HtRv3JtQrp1zlsFvb5D4XZwqbx7OC2EDw3KdJz88sYDMN8sImPrvHxR83 8QI9lohogfM/aeYrJVvkJcF7pxlXgaUDY+/IwcmXNBNecztkR12pJ0g9KUog6fSed+/I Yc3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=8m/PnUmMNG5r4K8qxwTrufqLXmjy5RNoUVedVSyDCas=; b=SaGDynvbGOBmXTa7TaM3qkcbx9aq3haVezBD8UyQrU5cZ8Ew1s3iWUecKixLSDLCQL WYTH8IAGIEAtXqh1WRKvEK0SfIhAl71zNJGa+HuoJrx/D7tsxCje3xpIxh5ZwxPRklk0 o6Eg73NUtGChIDqtewJcOHRpio6bNw/xGaOWQLvTo5/lvfec8/nOLjOZT90imnXH/KHv ElbhHFkr6nN9cgnAxkz/XoDH485wHlvThhUXzWbrciLjfO9f2nVIt+JOZ/ozyBWnLof8 WtcHbNz74VNMtP+MM8WWmpc7RC/lZJUytPikxtII2grEWNB8lUC+s4Fiy/HgJXzJvYxU r7Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=li2IDh4m; 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 bo6si3924906pjb.1.2019.08.16.11.47.10; Fri, 16 Aug 2019 11:47:26 -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; dkim=pass header.i=@ffwll.ch header.s=google header.b=li2IDh4m; 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 S1727551AbfHPSpX (ORCPT + 99 others); Fri, 16 Aug 2019 14:45:23 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:34574 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727067AbfHPSpX (ORCPT ); Fri, 16 Aug 2019 14:45:23 -0400 Received: by mail-oi1-f193.google.com with SMTP id l12so5528150oil.1 for ; Fri, 16 Aug 2019 11:45:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8m/PnUmMNG5r4K8qxwTrufqLXmjy5RNoUVedVSyDCas=; b=li2IDh4mr+UAvox0w8zYX5tehUMkPPvP7XXDZCuFsaYSIFIidndEttxHLIPHalJnbr NjPHIAX42dtPi/AoVxuy5mtla/nzfy/BXFISPwcgG5eg7CKIeWppsVo+M1yV0O1Ivv6x ZkGpP31kNHoxf/lHiet4xJZ4Hrg989UdKskSM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8m/PnUmMNG5r4K8qxwTrufqLXmjy5RNoUVedVSyDCas=; b=cMnoJQnljtv69+ZKawboDYFzE5ST9JTXP/fcFZ09L1ZeFvjs7QCEnaKwzTenuZMcK7 ff6xT16ZUlODsOKCJ/eQ5BghPHAHg2iwdjp57ZFvrvaPrJDd1rDs/2OjIu5bgg9xsUAR vhh+oif3GgYktvG+K+xpz23vnSdibtxhPx45G4uHw04WZa1hLXU8fKbIhRYTjDr71BA1 QDVhlszSUN/5NEBWaJtskBdQcNLTGbdjZxdwACjk6ST+pHC8t3bN3BlR6TRLPVWyIW7a U3/bg3n/opI//V6sgAnONBZz1gSCHOOpJNjahzp1Bv3CN41sZbJ6alBL4pVoBb3ixeU3 B2Bw== X-Gm-Message-State: APjAAAXhTfJSAK+RXlgk/jHEw9OleZ5wMvFBHtriWIdus/8gEITxqeBp PBiZcE3/8Q1aOdjnNc1qfJhNNPve640yL5nTLDHCWQ== X-Received: by 2002:a05:6808:28d:: with SMTP id z13mr5408599oic.101.1565981122323; Fri, 16 Aug 2019 11:45:22 -0700 (PDT) MIME-Version: 1.0 References: <20190814145033.GA11190@Red> <20190814174927.GT7444@phenom.ffwll.local> <20190816143146.GB30445@Red> In-Reply-To: <20190816143146.GB30445@Red> From: Daniel Vetter Date: Fri, 16 Aug 2019 20:45:11 +0200 Message-ID: Subject: Re: DMA-API: cacheline tracking ENOMEM, dma-debug disabled due to nouveau ? To: Corentin Labbe Cc: Ben Skeggs , Dave Airlie , Christoph Hellwig , Marek Szyprowski , Robin Murphy , dri-devel , Nouveau Dev , Linux Kernel Mailing List , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 16, 2019 at 4:31 PM Corentin Labbe 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. > > Note that it never go down and when I terminate my X session, it stays the same. > So without any "real" GPU work, does it is still normal to have so many active mapping ? Might just be the dma_alloc cache. It should go down under memory pressure I think. Otherwise might also be a leak. > For example, when doing some transfer, the ahci mapping number changes and then always go down to 6. gpu drivers tend to cache everything, all the time ... -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch