Received: by 10.192.165.148 with SMTP id m20csp352038imm; Wed, 25 Apr 2018 00:03:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+QnMF2UKtPJLtPh+0q9HWcrg8jhxxILCylYVGkszmbg0O6OmE3YXPEPVOPgwbqgHni3Wf+ X-Received: by 10.99.117.29 with SMTP id q29mr22878086pgc.269.1524639831067; Wed, 25 Apr 2018 00:03:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524639831; cv=none; d=google.com; s=arc-20160816; b=klRDjBDi6PPeiss2JFQGZGLQSjMgfDMJgJXeNrflZaldnrPpCQjxk03wjm7z/Yw2CQ 9qvgAff6HibSCrrT8gPUU+pS6H7rwd4ht3Iipic0gcZW06mZbYsMFfodmfVBZS9vRGqc fkjhe1PMdOQFHwWnGHZ3merVCHc5hyfAmVzh3iAQBosXTQ2YhQ+0h0M77O9Cpf79xMoM /RqeS810Y9EBYEp5xgVqJMsniMW28IIl9hfiHV4GxEz/k9sBor4gOp1bZbEcNBrpt7jH rhharTZUzoTEYJnabuCjxwgN/bItH7WDjwJpshg4kLxjhnKujGzg7syZbwY2CeMrSsXQ hGwg== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=pgwHgxCxOW4eOaaM20F15Fy94bFOS6x5wqhzUsNMIx4=; b=rgKdFX5oCa0rkfsE+Y0PMQi5eF8eLii0Y7w7lWQQjSFRHAd2YztkRx9qDYMBh1yoa/ hcHSOPXrwq89V9medGDa5OJKbva3akLs5dFKweh2qmIGtcMBkqwIkyGg8wFa7696MWdp NwmsYuJtfd3X3Oajt2oxF7ceBjpt4nanch6NbWoG0XEIz1D0kN59GzGym/pQDGn3aQgD tB/VfbGKXmVxjfT58+GbLzuKL3x1XK0aBHzj4ITNL3QZVHYbcyX0fZ3Hbeenyxe+f+Fo bIl0py9RibRb7TdYHlnWsHp2YLIRu3AxeAil1A/gHrVjiJRQ/RvOXep8fzZsSqnV3acj IEfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=C2hWvMdr; 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 n86si15362557pfb.126.2018.04.25.00.03.36; Wed, 25 Apr 2018 00:03:51 -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=fail header.i=@ffwll.ch header.s=google header.b=C2hWvMdr; 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 S1751418AbeDYHCU (ORCPT + 99 others); Wed, 25 Apr 2018 03:02:20 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:42160 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751212AbeDYHCT (ORCPT ); Wed, 25 Apr 2018 03:02:19 -0400 Received: by mail-io0-f194.google.com with SMTP id a10-v6so7708200ioc.9 for ; Wed, 25 Apr 2018 00:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=pgwHgxCxOW4eOaaM20F15Fy94bFOS6x5wqhzUsNMIx4=; b=C2hWvMdr8LccyOTVzcVM4V7VQNDq0QZ3uxbudvG3WivzKUOH8tLaX2KhBbn2OX97Nc 0oi9yJlZOnMTNnaMNGvOMEcDTew84sTPrIbWy+mWdWu9XyZihUoVnOv8r0CgwkFA3C1j +HczjybOvwQNSIfQasuSACF8gTFpfddhPrNV0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=pgwHgxCxOW4eOaaM20F15Fy94bFOS6x5wqhzUsNMIx4=; b=hASO81j0HUjNAHrjhyG/SUW+bjqkfOV1y5inSjU611H7QpqhPaxN3mtyWq9YCg8zWs 69IHUrl5wH4iuWjc/ZncZeVs1APk3X64nulOxvBbNzLeRr6MgJOYRQtj1cjy+5hbxViW WBx02b7m0Krue96GjG6FJjqSbDLkLJaxsNV74auuwUqhF3/zDnTO1t7WcNyxCyjUsK/9 a38EGoMw0QFjz4anr/sa+rKBgGDmEiULhIUUfqZhYOnqO1a0oQur+Pg5Q8cpODBleh1+ jMrsKfP+ndkVF/ZKW77IcS57AG14tpb1W+R99lepd3vMdCkvqUnqVgxDQ6YJVIIJuUMk rrJA== X-Gm-Message-State: ALQs6tDYdpLkPnOxBYT3QvgGrigoT2/Q+bJddBWuYq5CUnl7UPZ1kui5 c30aWeik4XJM5OUB5pP2QxMAu9wtQcdDuKKIzGFCUA== X-Received: by 2002:a6b:a4cb:: with SMTP id d72-v6mr7719884ioj.34.1524639738365; Wed, 25 Apr 2018 00:02:18 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:5b42:0:0:0:0:0 with HTTP; Wed, 25 Apr 2018 00:02:17 -0700 (PDT) X-Originating-IP: [2a02:168:5635:0:39d2:f87e:2033:9f6] In-Reply-To: <20180425064335.GB28100@infradead.org> References: <3e17afc5-7d6c-5795-07bd-f23e34cf8d4b@gmail.com> <20180420101755.GA11400@infradead.org> <20180420124625.GA31078@infradead.org> <20180420152111.GR31310@phenom.ffwll.local> <20180424184847.GA3247@infradead.org> <20180425054855.GA17038@infradead.org> <20180425064335.GB28100@infradead.org> From: Daniel Vetter Date: Wed, 25 Apr 2018 09:02:17 +0200 X-Google-Sender-Auth: JzuImgSxR8wh2Y_U2EY5TJMl_Zg Message-ID: Subject: Re: [Linaro-mm-sig] [PATCH 4/8] dma-buf: add peer2peer flag To: Christoph Hellwig Cc: =?UTF-8?Q?Christian_K=C3=B6nig?= , "moderated list:DMA BUFFER SHARING FRAMEWORK" , Linux Kernel Mailing List , amd-gfx list , Jerome Glisse , dri-devel , Dan Williams , Logan Gunthorpe , "open list:DMA BUFFER SHARING FRAMEWORK" , Thierry Reding 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 Wed, Apr 25, 2018 at 8:43 AM, Christoph Hellwig wrote: > On Wed, Apr 25, 2018 at 08:23:15AM +0200, Daniel Vetter wrote: >> For more fun: >> >> https://www.spinics.net/lists/dri-devel/msg173630.html >> >> Yeah, sometimes we want to disable the iommu because the on-gpu >> pagetables are faster ... > > I am not on this list, but remote NAK from here. This needs an > API from the iommu/dma-mapping code. Drivers have no business poking > into these details. Can we please not nack everything right away? Doesn't really motivate me to show you all the various things we're doing in gpu to make the dma layer work for us. That kind of noodling around in lower levels to get them to do what we want is absolutely par-for-course for gpu drivers. If you just nack everything I point you at for illustrative purposes, then I can't show you stuff anymore. Just to make it clear: I do want to get this stuff sorted, and it's awesome that someone from core finally takes a serious look at what gpu folks have been doing for decades (instead of just telling us we're incompetent and doing it all wrong and then steaming off), and how to make this work without layering violations to no end. But stopping the world until this is fixed isn't really a good option. Thanks, Daniel > Thierry, please resend this with at least the iommu list and > linux-arm-kernel in Cc to have a proper discussion on the right API. -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch