Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5358064ybh; Wed, 7 Aug 2019 04:52:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLMWXPqSDferMi5Kxzl9jHckCi46C8zMWSzueDfHB4zTcdrz1ZogOAdrIIlWC/fdw5x80v X-Received: by 2002:a17:902:ac88:: with SMTP id h8mr3474220plr.77.1565178773051; Wed, 07 Aug 2019 04:52:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565178773; cv=none; d=google.com; s=arc-20160816; b=A3lTKzXDI4KmqtwnXGsBEiTFItABLB5vSec+qjKJ/06+zAtKIcukaBBpDV9QsMFI0/ CiIEki330sCyiwgIOpOhOAjtNj9QtKrg7gYkpxjg8WBWJ6GQpcrRlapk5TmTkIJVwGEA vij7EHXyCEmoykL5x/VzH/BchtS2ChnfYldBWGSxBRN7JX0P6wkJPTu+Ln19yfTQZ69e hAEt/NjtQKRInYBhTzew+kfBGC3OZe77T3hEWe3XSW+LsdLLHSx/hCSvcQitDwj8nfxE cqMVqiZGUE9TTcI3WRhdNJBk8ykT4T22KbpGpBcTv0TqDcCycIVdmKuyUBvmQb+NBBGz 6RQQ== 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:cc :to:from:date; bh=kEx+zgyXldE0wJE4h1aSlqR9XLSkc3MntPbfymCj9E8=; b=BBjG3ohx6A1/2RrDawIj46o1aZFtbPI6lfhsVndRWKfQNopn8RCjllZve9oHhjhDI5 ZgL7Fuz1KeLvjC9s8uceDVMWnGNeoSnJWVJSRAqn8c2CIjds9r3nkXCvCXTBmTV9RbOy 4OmmsmR+CWS2g8kFMHVCrBitCXAHPhwiCfcuSajlj1uK76k+eS+D1seOV/ICMN7Csbbr DD9Y2O2P23wv51FaiHAYY4V338EdeUOiDmsbJBwQXmM4DdCvt7vsEPoiWepeXF0Q0c9w 9T7OjMoeWm+xpv8XOgQ4g/QEIPkN/h244pxKbSEWgW1/WufEwC9pqiMdhc6Zho9LHmjQ ENUQ== 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 w19si40403371pga.462.2019.08.07.04.52.36; Wed, 07 Aug 2019 04:52:53 -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 S1729712AbfHGLvf (ORCPT + 99 others); Wed, 7 Aug 2019 07:51:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43470 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726873AbfHGLvf (ORCPT ); Wed, 7 Aug 2019 07:51:35 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0FFEA46660; Wed, 7 Aug 2019 11:51:35 +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 A433460852; Wed, 7 Aug 2019 11:51:34 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 85AE516E32; Wed, 7 Aug 2019 13:51:33 +0200 (CEST) Date: Wed, 7 Aug 2019 13:51:33 +0200 From: Gerd Hoffmann To: Daniel Vetter Cc: dri-devel , Thomas Zimmermann , Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , open list Subject: Re: [PATCH 1/3] drm: add gem ttm helpers Message-ID: <20190807115133.gkr2svqlvq366mub@sirius.home.kraxel.org> References: <20190806133454.8254-1-kraxel@redhat.com> <20190806133454.8254-2-kraxel@redhat.com> <20190806135426.GA7444@phenom.ffwll.local> <20190807072654.arqvx37p4yxhegcu@sirius.home.kraxel.org> <20190807103649.aedmac63eop6ktlk@sirius.home.kraxel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 07 Aug 2019 11:51:35 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > > > > I don't think so. drm_gem_dumb_map_offset() calls > > > > drm_gem_create_mmap_offset(), which I think is not correct for ttm > > > > objects because ttm_bo_init() handles vma_node initialization. > Ok I looked again, and your ttm version seems to exactly match > drm_gem_dumb_map_offset(), No. The difference outlined above is still there. See also v2 which adds an comment saying so. cheers, Gerd