Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6087260ybi; Sun, 21 Jul 2019 08:59:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMxPOlBZeIXVyW0KWpR54R4OSfohXdVHPC/RWvVLrItJVrELQQnr1dOeEwgFD9Zulnjqg9 X-Received: by 2002:a63:188:: with SMTP id 130mr66081337pgb.231.1563724792416; Sun, 21 Jul 2019 08:59:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563724792; cv=none; d=google.com; s=arc-20160816; b=RxPInbHZhqYf0/vep7tsD9wQm+ZgexUrj2ceAzlesqN9PmhDoLgApKJ/NEroQ80z99 J+MArt9taEVmSEuxqJ4aCfh9Tg2h/pIQHU/JsDkI115TfypbN+S1D+s26BI0Ys4or6qZ EG2Hcu5Uj4TU8RQAv9kYhjcp0lkzsgAsrjJY0VXjprPFZPz6P8dCnb1d8c3YHx598hyY FpeRR/BOYJJhRMsOwf7uUHD3TUsz3lssv1pYn0ysGv3cQWdSjyiJj8y0/Uvfb8rRfxzu pzaEbu4C5cF8JDR0P/Wg2a471/K4wzdfH2tZ3N2XbKVMZD83sZMKdbADmoNUmVqNXmU/ ZOhw== 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:dkim-signature; bh=DDH0NhE6n6ta7EYCQyM5rU/FRAaVDyWq9ScZ3NSNGqI=; b=dzpyrIoo9TX0zdM9uqnSjGn7gOCHuald/KJcmBv3rkLU+sXR7x523513zN0kW36bIi yME0y076TCxd7eu9nV0BYsyxhB1psBYTxqWhDOrutLTDeOpqY+Ut+pQTXxyv+jrle4Fo hjb/F002Lmyv+tQZkXv8viwYdpBWFp1cfHe9nKeWIdHxeMA9pM/gsSlGE/gqkhVT2rQx gl+rn4ZEeZHyyyZaejORPnzRdCukp0YbBeTKuk8VnR1IAlnBauSEBnsi9ad49BJwynn1 26gbak2RSUAZ5ll7uAijCLNJSlCLW1GsYN8UBs+3ViX/7uKF6Iy5LIYB0gyYAN/9jtCw lxDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WVSiCWvN; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c14si7022848pgc.244.2019.07.21.08.59.07; Sun, 21 Jul 2019 08:59:52 -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=@gmail.com header.s=20161025 header.b=WVSiCWvN; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726683AbfGUP6T (ORCPT + 99 others); Sun, 21 Jul 2019 11:58:19 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:39452 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726441AbfGUP6S (ORCPT ); Sun, 21 Jul 2019 11:58:18 -0400 Received: by mail-pg1-f194.google.com with SMTP id u17so16466385pgi.6 for ; Sun, 21 Jul 2019 08:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DDH0NhE6n6ta7EYCQyM5rU/FRAaVDyWq9ScZ3NSNGqI=; b=WVSiCWvN4Myy+QbG5zDlacgHt8OFkZAobDbyEG2NtCptrqKyxBXkLzeAvEcndlSzhv IvqnL+fkctBEMDb8Xy9Gl9WTBwpmRbs1nbFeFi3PZJ3dosmh8U32mR+Srw8bUUCejuIh WpS1r7VN/MSnITGRvwwYs9yd/ceeoVTyv2G0UhJiMycDTpWQjvOlBZmL0raPXDkNdhEt xFVhzZpjxxFlreExaKYDYNgGXEosh9bD5S8lpPPhUIFuhgJDu/2zd1PMqSc+jVJjW2io EbL+owYYNnvARuc7fmsD4zgLnlu43qPiWhdTZAvv+jF/Owbw/3mvF0efs61ayErxxo3N BU0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DDH0NhE6n6ta7EYCQyM5rU/FRAaVDyWq9ScZ3NSNGqI=; b=YnSJWykjKhPcwrdisl6fcv6z0EuaXRY843+TJNX3bjHsHVIiL/5TScPnyxTcSs5urS ShEXgIj5Y3K4R+5mUePLhI0wUpYwvGa3Pi1cNxoS/ZTOwcQna+e6vPCpb1/tGM3p+cY5 a8D3zSEenGj1UuSKL1z3SA6DNRd9VbIKGyywoEmwpuHHdsCVang2YVSaqoOOc13qxdAX FUuYeBdgFE2RHpVzxGYjkcyQZ/90M06mr6dHZoGYVAXUoLXCbfY3vinZRhOY38isYV25 Nw9mQ6d9Kdt8gkTQE3sp5F/gaLqow/aQukFve53704+aHtaD6kH5dnS/x9CzDt/ecEV/ ntqA== X-Gm-Message-State: APjAAAWxL4oqs1iZaqfNzEFLOWfxxbD5b9guoy+uX/OSiBo4HZinXUff LjBSKHb0Rvhcz0mA8RmX12A= X-Received: by 2002:a17:90a:30e4:: with SMTP id h91mr69268220pjb.37.1563724698104; Sun, 21 Jul 2019 08:58:18 -0700 (PDT) Received: from bharath12345-Inspiron-5559 ([103.110.42.34]) by smtp.gmail.com with ESMTPSA id v27sm48568911pgn.76.2019.07.21.08.58.16 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 21 Jul 2019 08:58:17 -0700 (PDT) From: Bharath Vedartham To: arnd@arndb.de, sivanich@sgi.com, gregkh@linuxfoundation.org Cc: ira.weiny@intel.com, jhubbard@nvidia.com, jglisse@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Bharath Vedartham Subject: [PATCH 0/3] sgi-gru: get_user_page changes Date: Sun, 21 Jul 2019 21:28:02 +0530 Message-Id: <1563724685-6540-1-git-send-email-linux.bhar@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series incorporates a few changes in the get_user_page usage of sgi-gru. The main change is the first patch, which is a trivial one line change to convert put_page to put_user_page to enable tracking of get_user_pages. The second patch removes an uneccessary ifdef of CONFIG_HUGETLB. The third patch adds __get_user_pages_fast in atomic_pte_lookup to retrive a physical user page in an atomic context instead of manually walking up the page tables like the current code does. This patch should be subject to more review from the gup people. drivers/misc/sgi-gru/* builds after this patch series. But I do not have the hardware to verify these changes. The first patch implements gup tracking in the current code. This is to be tested as to check whether gup tracking works properly. Currently, in the upstream kernels put_user_page simply calls put_page. But that is to change in the future. Any suggestions as to how to test this code? The implementation of gup tracking is in: https://github.com/johnhubbard/linux/tree/gup_dma_core We could test it by applying the first patch to the above tree and test it. More details are in the individual changelogs. Bharath Vedartham (3): sgi-gru: Convert put_page() to get_user_page*() sgi-gru: Remove CONFIG_HUGETLB_PAGE ifdef sgi-gru: Use __get_user_pages_fast in atomic_pte_lookup drivers/misc/sgi-gru/grufault.c | 50 +++++++---------------------------------- 1 file changed, 8 insertions(+), 42 deletions(-) -- 2.7.4