linux_dsm_epyc7002/drivers/media/pci/ivtv
John Hubbard e792031019 ivtv: convert get_user_pages() --> pin_user_pages()
This code was using get_user_pages*(), in a "Case 2" scenario
(DMA/RDMA), using the categorization from [1].  That means that it's
time to convert the get_user_pages*() + put_page() calls to
pin_user_pages*() + unpin_user_pages() calls.

There is some helpful background in [2]: basically, this is a small part
of fixing a long-standing disconnect between pinning pages, and file
systems' use of those pages.

[1] Documentation/core-api/pin_user_pages.rst

[2] "Explicit pinning of user-space pages":
    https://lwn.net/Articles/807108/

Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Walls <awalls@md.metrocast.net>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Link: http://lkml.kernel.org/r/20200518012157.1178336-3-jhubbard@nvidia.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-06-02 10:59:08 -07:00
..
ivtv-alsa-main.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
ivtv-alsa-pcm.c media: ivtv: Drop superfluous ioctl PCM ops 2019-12-13 09:33:16 +01:00
ivtv-alsa-pcm.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
ivtv-alsa.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
ivtv-cards.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-cards.h media: media/pci: set device_caps in struct video_device 2019-06-24 14:57:12 -04:00
ivtv-controls.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-controls.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-driver.c media updates for v5.6-rc1 2020-01-31 14:43:23 -08:00
ivtv-driver.h media: ivtv/cx18: remove ivtvdriver.org references 2019-12-13 09:27:09 +01:00
ivtv-fileops.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-fileops.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-firmware.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-firmware.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-gpio.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-gpio.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-i2c.c media: pci: ivtv: convert to i2c_new_scanned_device 2020-01-08 14:33:04 +01:00
ivtv-i2c.h media: pci: ivtv: convert to i2c_new_scanned_device 2020-01-08 14:33:04 +01:00
ivtv-ioctl.c media: don't do a 31 bit shift on a signed int 2019-08-26 14:11:10 -03:00
ivtv-ioctl.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-irq.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-irq.h media: use the BIT() macro 2019-08-26 14:08:50 -03:00
ivtv-mailbox.c media: remove include stdarg.h from some drivers 2019-08-26 14:01:44 -03:00
ivtv-mailbox.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-queue.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-queue.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-routing.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-routing.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-streams.c media: media/pci: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:53:50 +01:00
ivtv-streams.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-udma.c ivtv: convert get_user_pages() --> pin_user_pages() 2020-06-02 10:59:08 -07:00
ivtv-udma.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-vbi.c media: media/pci/ivtv: Variable vbi.type could be uninitialized if macro v4l2_subdev_call set __result an error code 2019-10-10 07:15:09 -03:00
ivtv-vbi.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-version.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtv-yuv.c ivtv: convert get_user_pages() --> pin_user_pages() 2020-06-02 10:59:08 -07:00
ivtv-yuv.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ivtvfb.c ivtv: convert get_user_pages() --> pin_user_pages() 2020-06-02 10:59:08 -07:00
Kconfig media: ivtv/cx18: remove ivtvdriver.org references 2019-12-13 09:27:09 +01:00
Makefile media: don't include drivers/media/i2c at cflags 2017-12-28 14:14:09 -05:00