Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2259628imm; Sun, 9 Sep 2018 20:25:31 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY5hUwoYjhTOOVAhNPvwEUf+py8vGp5brOW3DbnYekiFkljQ9Y8aHvPunx6e/mH/qpHZG54 X-Received: by 2002:a62:f208:: with SMTP id m8-v6mr21167202pfh.222.1536549931610; Sun, 09 Sep 2018 20:25:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536549931; cv=none; d=google.com; s=arc-20160816; b=UzDlj5VcrMdAChsi0hiFtyGNKyKqryEyG4VSQZoQEosQ7LaTaSpPtHZ1A2m4ji796y v12KvyNAzt5YCSiH3H4JoEXDomphQl354Zbka5TiE87IMP84YZQts2dXQvojxxHHeDML 2tSRbvRJHdcLJxUhOwltm9YGl45dAEnj/DR+XBV2RqfZZb5stkqDLOwbflUevmd6yf9l TwqiVJW6AttYM5qKeYhIbLCiZ9jnfgrXpNECQtf/zfOAjbljPVglXqLL+P0pj8IhWUaK TwYHVTZ9za6nGDrk3kn8fpWuh+6q4tPsfJi7wk7ku61Mu1inxjWvVpDoVedlGSA5jOmO 7F7g== 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:mime-version :message-id:date:subject:cc:to:from; bh=Fa6GcGmi2VNRQD7uwdnp9/6SgwHGJBBn3YOFZ2TqnsI=; b=Ks0JBb0DgKuq/fjzDkJ5pFpnQjPkNkHGHnlwXK3249JIrg23tm+DPrs8wzwd68WGXN Kc+yZxvzj+1NUT3TSRuK3uPhqIc+HIrgDOMjbwDMsbxRgs+mw82Iel4t2BZOWTCusoJT PLYCeaW89epHkDYk4dxRxEl4b/n2kna2+4lRhcXJJvfwJGrfu1KvySNftHKJ4DPa11Fk 6zsXMZZsTBuTgnNu6mggOTRfvlelLsq8e54Dst2xm46yVsiUnHfZuONZYUERIkd0/Lgn RV1e6vgqnpTCHD655iTlSp0GliILzcBFJ+xytkKD2h9IpBbvs7WfbnHtGbT8m51pv5Nt yksg== 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 v3-v6si15427089plo.208.2018.09.09.20.25.16; Sun, 09 Sep 2018 20:25:31 -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 S1727006AbeIJIP7 (ORCPT + 99 others); Mon, 10 Sep 2018 04:15:59 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:49068 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725974AbeIJIP6 (ORCPT ); Mon, 10 Sep 2018 04:15:58 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 216AF26A81; Mon, 10 Sep 2018 00:57:47 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-121-42.rdu2.redhat.com [10.10.121.42]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9C26E2026D66; Mon, 10 Sep 2018 00:57:44 +0000 (UTC) From: jglisse@redhat.com To: linux-kernel@vger.kernel.org Cc: =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , dri-devel@lists.freedesktop.org, David Airlie , Daniel Vetter , Chris Wilson , Lionel Landwerlin , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , intel-gfx@lists.freedesktop.org Subject: [PATCH 0/2] [i915] Getting rid of GUP and use HMM for user ptr features. Date: Sun, 9 Sep 2018 20:57:34 -0400 Message-Id: <20180910005736.5805-1-jglisse@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 10 Sep 2018 00:57:47 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 10 Sep 2018 00:57:47 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jglisse@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jérôme Glisse [This depends on some HMM patchset queued upstream see branch [1]] This is simple change to switch to use HMM for user ptr buffer object which conveniently avoid to pin pages. I have more things in the pipe to make HMM more usefull for such cases (like sharing more resources accross multiple mirror of a same process). Beside avoiding pining, this is also an attempt to isolate core mm from device drivers by having clearly define API and boundary where we can set expection of everyone and thus having mm folks to have to read and understand driver code and conversly having driver folks understand mm maze. This is also part of what i want to discuss during XDC2018. Consider this as an RFC to start the discussion. [1] https://cgit.freedesktop.org/~glisse/linux/log/?h=hmm-intel-v00 Cc: dri-devel@lists.freedesktop.org Cc: David Airlie Cc: Daniel Vetter Cc: Chris Wilson Cc: Lionel Landwerlin Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi Cc: intel-gfx@lists.freedesktop.org Jérôme Glisse (2): gpu/i915: use HMM mirror instead of mmu_notifier gpu/i915: use HMM mirror for userptr buffer object. drivers/gpu/drm/i915/Kconfig | 4 +- drivers/gpu/drm/i915/i915_gem_userptr.c | 395 ++++++++++++------------ 2 files changed, 199 insertions(+), 200 deletions(-) -- 2.17.1