Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6852877ybh; Thu, 8 Aug 2019 06:42:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqw4gwgMijvBTiOejQjaKu5AdUlpmbf3agCSyg2MWuR5pds7J3+XqfMqOJxaEvT71s1ghVfK X-Received: by 2002:a63:c442:: with SMTP id m2mr13088709pgg.286.1565271757739; Thu, 08 Aug 2019 06:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565271757; cv=none; d=google.com; s=arc-20160816; b=aPBL2feb8SFOY+R6oh/lfFIVJijGPJPDEepYLWMFIwjDQ7Fo8dsnEa0WdK/nnXEVhR GulpDo5EE60CBBDqQkT/THaUD8eAG1j9siwt9xo/VZO3ObDsD/ciEGft47EahJEQgSho qUmZI/ELsSchoWZdzokaEtnE8mJNiannz4Ab6E+W3mUMO0HqvDLVZbOmvuuGHEb6x7ox Fb7kmWMOqy/Ku2brCLfti96XQ/MK5l4Z4Me9WTqAHYSsJqtR+nXjOumNHb0asVQs8dck noU0wtXdZWU5AY6KRPgOsKkhsXDYeglC4kjMjwDu+tH8PbEhcaBR330quEkPlmpYxQYx 3YNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date; bh=wRO5G4gnexz2ZIephP8f/ADUgI2GPlbIxbzRPe904wQ=; b=oTU61gaohltXXB1hJqzk7fynXIVII2cv3pa9b5p1xqQJ7CEzzppGt5T9qFvvsGoW/c tis4pg6+Z4QRhPH1giHJJ1T3F9Beoa39nU64tttXY6MTFTlFDKUAegdNGRxlOIftgqqy GOIRNfsndnAHmZyc5bY3LnwfNK9B9f3ZMqNRdrg8VercnnpK4xnsAuMwA/lz1PPaQCMB P6qbUsRmuoKsi28cJdKzwyX30hTAU34denjMhtxrgdXBg9esBU67ehHy0lQ19TbiKN/y 0oV4XDGxRVJQ8bXT+JEaYd/mB3UHdP2aQXuQxBvqWo+6hCOsfePy/f2fMzZm1gfJlhHS ZgKQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u3si51069583pgm.122.2019.08.08.06.42.21; Thu, 08 Aug 2019 06:42:37 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733199AbfHHNkD (ORCPT + 99 others); Thu, 8 Aug 2019 09:40:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41118 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732882AbfHHNkD (ORCPT ); Thu, 8 Aug 2019 09:40:03 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E5BB5315C005; Thu, 8 Aug 2019 13:40:02 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-144.ams2.redhat.com [10.36.116.144]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8D0B55C219; Thu, 8 Aug 2019 13:40:02 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id A029816E08; Thu, 8 Aug 2019 15:40:00 +0200 (CEST) Date: Thu, 8 Aug 2019 15:40:00 +0200 From: Gerd Hoffmann To: "Koenig, Christian" , David Airlie , "Huang, Ray" , "tzimmermann@suse.de" , "dri-devel@lists.freedesktop.org" , open list Subject: Re: [PATCH v3 2/8] ttm: turn ttm_bo_device.vma_manager into a pointer Message-ID: <20190808134000.oz5ztbjyyux5ufvo@sirius.home.kraxel.org> References: <20190808093702.29512-1-kraxel@redhat.com> <20190808093702.29512-3-kraxel@redhat.com> <2a90c899-19eb-5be2-3eda-f20efd31aa29@amd.com> <20190808103521.u6ggltj4ftns77je@sirius.home.kraxel.org> <20190808120252.GO7444@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190808120252.GO7444@phenom.ffwll.local> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Thu, 08 Aug 2019 13:40:03 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > > > That would also make the verify_access callback completely superfluous > > > and looks like a good step into the right direction of de-midlayering. > > > > Hmm, right, noticed that too while working on another patch series. > > Guess I'll try to merge those two and see where I end up ... > > ... but if it gets too invasive I'd vote for incremental changes. Yep, this is what I'm up to. Sketching things up with vram helpers and qxl, in a way that we can switch over drivers one by one. Once all drivers are switched removing ttm_bo_device.vma_manager altogether should be easy. > Even if > we completely rip out the vma/mmap lookup stuff from ttm, we still need to > keep a copy somewhere for vmwgfx. If vmwgfx is the only user we can probably just move things from ttm to vmwgfx. > Or would the evil plan be the vmwgfx > would use the gem mmap helpers too? That would work as well ;) cheers, Gerd