Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2344233ybk; Sun, 17 May 2020 18:24:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrtrzIVxtYAUV4s+fIy0w0cBus2lPq1wyBh4uCrGsvgh1zrCeLrOJU1gDbsDDo8JuoLLYt X-Received: by 2002:a50:b202:: with SMTP id o2mr11374595edd.251.1589765065205; Sun, 17 May 2020 18:24:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589765065; cv=none; d=google.com; s=arc-20160816; b=VL8HPa5cbvJ9Vw2cckA2sayymlJjChYUsbOSiyuKSurRKrJpEcJ31gJ9SIIijfV6Jp kv3NH7V2OT4xa7jOQeekqXs9+ImQsnaFkrPG3E5wUzLDEj6R2narJNB4PG73MQuPTJ1d FHK1mEi9bAgZqiu2nF7XN1OSHr12vI52qlUgkI04QFfbNdVKJib04bTb1P/v99/orsWe K3p5VzPlt0VVgd/q4D/6CzlA8Be7E11xzw02SP6GHvAXGAGmII+u/l5QNz6JrcgoLexj I4ol3oX7XHRqph3VzT8Pt12mg+29MXwHVH1mu651JvYimf0z6+IRBtCIWjJ9cdl+tHCa RwAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=UKuuw28idvbuk9+JyJWn1HzG2Q0RnTnMVtU5hSmRMG4=; b=VpjPO3id5mBVKrPBdCBxIP9FSDEZPzXwUtO/aA8r9jqSAxSDKi5hPliEF3ZVoNv/wY tWiEz+vmNp7AwMgiDDgpMNtOPcnhC6n6dcSLFaFXm+GjBi9+EYiTdssuQ5t+5s+P43vp xyy/X5U1aN7FfGWHom4rJxE1dvKEjFsvvr8Sm3ncKKuuY7WJMqem+iiESfVjhRG6ZICf m84x037FtcjgMsYgAPg7lOCYh8xrte05tK0EpbI5TgsqtGS+AtY8eaie3t7H0VQdOVX0 DHQRwM5F08ZuOXOFQ7YLSmi1sYogWznTjEaWxqWXvOEi24KUfjWhECspl8DzI353j3JJ hojQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=FkE9zSIv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 8si5987138ejx.280.2020.05.17.18.23.44; Sun, 17 May 2020 18:24:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=FkE9zSIv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727798AbgERBWL (ORCPT + 99 others); Sun, 17 May 2020 21:22:11 -0400 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:17575 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726999AbgERBWA (ORCPT ); Sun, 17 May 2020 21:22:00 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Sun, 17 May 2020 18:20:42 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Sun, 17 May 2020 18:21:59 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Sun, 17 May 2020 18:21:59 -0700 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 18 May 2020 01:21:59 +0000 Received: from hqnvemgw03.nvidia.com (10.124.88.68) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Mon, 18 May 2020 01:21:59 +0000 Received: from sandstorm.nvidia.com (Not Verified[10.2.48.175]) by hqnvemgw03.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Sun, 17 May 2020 18:21:59 -0700 From: John Hubbard To: Andrew Morton CC: Andy Walls , Mauro Carvalho Chehab , , LKML , , John Hubbard Subject: [PATCH 0/2] mm/gup, media/ivtv: introduce pin_user_pages_unlocked Date: Sun, 17 May 2020 18:21:55 -0700 Message-ID: <20200518012157.1178336-1-jhubbard@nvidia.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-NVConfidentiality: public Content-Transfer-Encoding: quoted-printable Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1589764842; bh=UKuuw28idvbuk9+JyJWn1HzG2Q0RnTnMVtU5hSmRMG4=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:X-NVConfidentiality:Content-Transfer-Encoding: Content-Type; b=FkE9zSIv1hkK/DzpQp1IN5hwESe78ZJonRfsEtsMWei5LWN6Bx1vKgHaaTYkyleE4 r/CKasFjc83PUfYVSQ23U7edCIuZtwRXlBfTCuP4jEChBOzoCrwo4dpqWdVgiajEAz G1ydrOhnQ4L+Cyn8l767TURR5zZmMMb6wCXoRIkuVBc9XIXyDKuKo9XcgrxvwNAzk7 P2Y9Vkb0kc+OPssuN8c0CE6XEt95anhC1vSNZzpe7UYjCqLCL0U64C3TMJSI8Z6lYn CsOJ12c4enptaTlurTh2a7Xk1diiTU+YfFnf4219tPRwIPwACv7ZAvstv263w1Bnfs Z6IMHkvmmn8mw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I suppose these should go up through Andrew's linux-mm tree, due to adding a new pin_user_pages*() variant to gup.c. However, it would be nice if anyone from IVTV or linux-media could provide some run time testing, maybe even a Tested-by. Note that I have only compile-tested these patches, although that does also include cross-compiling for half a dozen arches. John Hubbard (2): mm/gup: introduce pin_user_pages_unlocked ivtv: convert get_user_pages() --> pin_user_pages() drivers/media/pci/ivtv/ivtv-udma.c | 19 ++++++------------- drivers/media/pci/ivtv/ivtv-yuv.c | 17 ++++++----------- drivers/media/pci/ivtv/ivtvfb.c | 4 ++-- include/linux/mm.h | 2 ++ mm/gup.c | 17 +++++++++++++++++ 5 files changed, 33 insertions(+), 26 deletions(-) base-commit: b9bbe6ed63b2b9f2c9ee5cbd0f2c946a2723f4ce --=20 2.26.2