[PATCH] media: dvbsky: remove unused code

2019-10-22 Thread Jan Pieter van Woerkom
remove unused code Signed-off-by: Jan Pieter van Woerkom --- diff -ru a/drivers/media/usb/dvb-usb-v2/dvbsky.c b/drivers/media/usb/dvb-usb-v2/dvbsky.c --- a/drivers/media/usb/dvb-usb-v2/dvbsky.c 2019-10-22 13:15:31.598029247 +0200 +++ b/drivers/media/usb/dvb-usb-v2/dvbsky.c 2019-10-22

Re: [PATCH 2b/2] media: dvb-usb: move T230 to dvbsky

2019-08-15 Thread Jan Pieter van Woerkom
remove t230 from cxusb (for linux >= 5.3) Signed-off-by: Jan Pieter van Woerkom --- diff -ru a/drivers/media/usb/dvb-usb/cxusb.c b/drivers/media/usb/dvb-usb/cxusb.c --- a/drivers/media/usb/dvb-usb/cxusb.c 2019-08-11 22:26:41.0 +0200 +++ b/drivers/media/usb/dvb-usb/cxusb.c 2019-08-13

Re: [PATCH 2a/2] media: dvb-usb: move T230 to dvbsky

2019-08-15 Thread Jan Pieter van Woerkom
remove t230 from cxusb (for linux <= 5.2) Signed-off-by: Jan Pieter van Woerkom Tested-by: James Hutchinson --- diff -ru a/drivers/media/usb/dvb-usb/cxusb.c b/drivers/media/usb/dvb-usb/cxusb.c --- a/drivers/media/usb/dvb-usb/cxusb.c 2019-07-08 00:41:56.0 +0200 +++ b/drivers/media/

Re: [PATCH 1/2] media: dvb-usb: move T230 to dvbsky

2019-08-15 Thread Jan Pieter van Woerkom
add t230 to dvbsky Signed-off-by: Jan Pieter van Woerkom Tested-by: James Hutchinson --- diff -ru a/drivers/media/usb/dvb-usb-v2/dvbsky.c b/drivers/media/usb/dvb-usb-v2/dvbsky.c --- a/drivers/media/usb/dvb-usb-v2/dvbsky.c 2019-07-08 00:41:56.0 +0200 +++ b/drivers/media/usb/dvb-usb

[PATCH 0/2] media: dvb-usb: move T230 to dvbsky

2019-08-15 Thread Jan Pieter van Woerkom
media: dvb-usb: move t230 driver from cxusb to dvbsky This solves (amongst others) the 'T230 dvb-t2 data corruption since commit 5fa8815' problem. The 'remove from cxusb' patch has 2 versions: the a version applies to linux-5.2 and earlier, the b version applies to linux 5.3-rc4 (and possibly oth

Re: MyGica T230 dvb-t2 data corruption since commit 5fa8815

2019-07-22 Thread Jan Pieter van Woerkom
remove t230 from cxusb Signed-off-by: Jan Pieter van Woerkom --- diff -ru a/drivers/media/usb/dvb-usb/cxusb.c b/drivers/media/usb/dvb-usb/cxusb.c --- a/drivers/media/usb/dvb-usb/cxusb.c 2019-07-08 00:41:56.0 +0200 +++ b/drivers/media/usb/dvb-usb/cxusb.c 2019-07-22 17:34:51.550698820

Re: MyGica T230 dvb-t2 data corruption since commit 5fa8815

2019-07-19 Thread Jan Pieter van Woerkom
dvbsky: add MyGica T230. Moved from cxusb driver as that driver can't handle FX2 FIFO issue. Signed-off-by: Jan Pieter van Woerkom --- diff -ru a/drivers/media/usb/dvb-usb-v2/dvbsky.c b/drivers/media/usb/dvb-usb-v2/dvbsky.c --- a/drivers/media/usb/dvb-usb-v2/dvbsky.c 2019-07-08

Re: [PATCH V3.6.1 2/2] linux-media: dvbsky: add support for Mygica T230C v2

2019-07-17 Thread Jan Pieter van Woerkom
. Signed-off-by: Jan Pieter van Woerkom --- diff -ru a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c --- a/drivers/media/dvb-frontends/si2168.c 2019-07-08 00:41:56.0 +0200 +++ b/drivers/media/dvb-frontends/si2168.c 2019-07-18 01:57:35.036592424 +0200

Re: [PATCH V3.6 2/2] linux-media: dvbsky: add support for Mygica T230C v2

2019-07-17 Thread Jan Pieter van Woerkom
. Signed-off-by: Jan Pieter van Woerkom Tested-by: Frank Rysanek --- diff -ru a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c --- a/drivers/media/dvb-frontends/si2168.c 2019-07-08 00:41:56.0 +0200 +++ b/drivers/media/dvb-frontends/si2168.c 2019-07-16

Re: [PATCH V3.6 1/2] linux-media: dvbsky: add support for Mygica T230C v2

2019-07-17 Thread Jan Pieter van Woerkom
Adds support for the "Mygica T230C v2" into the "dvbsky" driver. Signed-off-by: Jan Pieter van Woerkom Tested-by: Frank Rysanek --- diff -ru a/drivers/media/usb/dvb-usb-v2/dvbsky.c b/drivers/media/usb/dvb-usb-v2/dvbsky.c --- a/drivers/media/usb/dvb-usb-v2/dvbsky.c

[PATCH V3.6 0/2] linux-media: dvbsky: add support for Mygica T230C v2

2019-07-17 Thread Jan Pieter van Woerkom
Add support for the "Mygica T230C v2" into the "dvbsky" driver. A small enhancement in the si2168 demodulator driver is also needed, and a USB device ID in dvb-usb-ids.h . This is v3.6 of proposed patch, based on work from an anonymous author, and with feedback from Sean Young and Antti Palosaari.

[PATCH V3.5 2/2] dvbsky: add support for "Mygica T230C v2"

2019-07-09 Thread Jan Pieter van Woerkom
From: Jan Pieter van Woerkom Adds support for the "Mygica T230C v2" into the "dvbsky" driver. Signed-off-by: Jan Pieter van Woerkom Tested-by: Frank Rysanek --- diff -ru a/drivers/media/usb/dvb-usb-v2/dvbsky.c b/drivers/media/usb/dvb-usb-v2/dvbsky.c --- a/drivers/

PATCH V3.5 1/2] dvbsky: add support for "Mygica T230C v2"

2019-07-09 Thread Jan Pieter van Woerkom
From: Jan Pieter van Woerkom Adds support for the "Mygica T230C v2" into the "dvbsky" driver. A small enhancement is also needed in the si2168 demodulator driver, and a USB device ID in dvb-usb-ids.h . This is v3.5 of the proposed patch, based on feedback from Sean Young

[PATCH v4 2/2] dvbsky: add support for "Mygica T230C v2"

2019-07-08 Thread Jan Pieter van Woerkom
From: Jan Pieter van Woerkom Adds support for the "Mygica T230C v2" into the "dvbsky" driver. Signed-off-by: Jan Pieter van Woerkom Tested-by: Frank Rysanek --- diff -ru a/drivers/media/usb/dvb-usb-v2/dvbsky.c b/drivers/media/usb/dvb-usb-v2/dvbsky.c --- a/drivers/

[PATCH v4 2/1] dvbsky: add support for "Mygica T230C v2"

2019-07-08 Thread Jan Pieter van Woerkom
From: Jan Pieter van Woerkom Adds support for the "Mygica T230C v2" into the "dvbsky" driver. A small enhancement is also needed in the si2168 demodulator driver, and a USB device ID in dvb-usb-ids.h . This is v4 of the proposed patch, based on feedback from Sean Young

Re: [PATCH 2/2] dvbsky: add support for "Mygica T230C v2"

2019-06-15 Thread Jan Pieter van Woerkom
From: Jan Pieter van Woerkom Adds support for the "Mygica T230C v2" into the "dvbsky" driver. Signed-off-by: Jan Pieter van Woerkom Tested-by: Frank Rysanek --- diff -ru a/drivers/media/usb/dvb-usb-v2/dvbsky.c b/drivers/media/usb/dvb-usb-v2/dvbsky.c --- a/drivers/

[PATCH 1/2] dvbsky: add support for "Mygica T230C v2"

2019-06-15 Thread Jan Pieter van Woerkom
From: Jan Pieter van Woerkom Adds support for the "Mygica T230C v2" into the "dvbsky" driver. A small enhancement is also needed in the si2168 demodulator driver, and a USB device ID in dvb-usb-ids.h . This is v3.3 of the proposed patch, based on feedback from Sean Young

photos for your company

2018-07-26 Thread Jan
shadow,Natural shadow Photo Retouching Service Photo Retouching, Glamour Retouching. Our Service is 24-48 hours but we can deliver the images sooner in case of emergency. We can give you editing test on your photos. We do unlimited revisions until you are satisfied with the work. Thanks, Jan Williams

your website photos

2018-07-26 Thread Jan
shadow,Natural shadow Photo Retouching Service Photo Retouching, Glamour Retouching. Our Service is 24-48 hours but we can deliver the images sooner in case of emergency. We can give you editing test on your photos. We do unlimited revisions until you are satisfied with the work. Thanks, Jan Williams

[PATCH v3 0/2] media: imx: add capture support for RGB565_2X8 on parallel bus

2018-05-18 Thread Jan Luebbe
suggested by Steve Longerbeam (is_parallel_bus and requires_passthrough) - removed passthough format check in csi_link_validate() (suggested by Philipp Zabel during internal review) Jan Luebbe (2): media: imx: capture: refactor enum_/try_fmt media: imx: add support for RGB565_2X8 on

[PATCH v3 2/2] media: imx: add support for RGB565_2X8 on parallel bus

2018-05-18 Thread Jan Luebbe
and bus, we then update the width to account for the multiple cycles per pixel. Signed-off-by: Jan Luebbe Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-csi.c | 101 +--- drivers/staging/media/imx/imx-media-utils.c | 1 + drivers/staging/media/imx

[PATCH v3 1/2] media: imx: capture: refactor enum_/try_fmt

2018-05-18 Thread Jan Luebbe
I-2, as we don't need to check the details of the format anymore. Signed-off-by: Jan Luebbe --- drivers/staging/media/imx/imx-media-capture.c | 38 +-- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/drivers/staging/media/imx/imx-media-capture.c b/drivers/st

Re: [PATCH] MAINTAINERS & files: Canonize the e-mails I use at files

2018-05-09 Thread Jan Kara
urity number or whatever), with would be weird, IMO. > > As we all use e-mails to uniquely identify contributors submissions, > IMHO, the best is to keep using e-mails. The side effect is that > we should keep those emails updated. Understood but e-mails in code get stale eventually as people rarely update those. So I think having a contact email in MAINTAINERS and git logs is enough for practical purposes. Honza -- Jan Kara SUSE Labs, CR

[PATCH v2 2/2] media: imx: add support for RGB565_2X8 on parallel bus

2018-05-08 Thread Jan Luebbe
and bus, we then update the width to account for the multiple cycles per pixel. The passthrough check in csi_link_validate() can be dropped because the downstream elements already verifiy their input formats. Signed-off-by: Jan Luebbe --- drivers/staging/media/imx/imx-media-csi.c | 68

[PATCH v2 1/2] media: imx: capture: refactor enum_/try_fmt

2018-05-08 Thread Jan Luebbe
I-2, as we don't need to check the details of the format anymore. Signed-off-by: Jan Luebbe --- drivers/staging/media/imx/imx-media-capture.c | 38 +-- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/drivers/staging/media/imx/imx-media-capture.c b/drivers/st

[PATCH v2 0/2] media: imx: add capture support for RGB565_2X8 on parallel bus

2018-05-08 Thread Jan Luebbe
test robot - added helper functions as suggested by Steve Longerbeam (is_parallel_bus and requires_passthrough) - removed passthough format check in csi_link_validate() (suggested by Philipp Zabel during internal review) Jan Luebbe (2): media: imx: capture: refactor enum_/try_fmt

Re: [PATCH 0/2] media: imx: add capture support for RGB565_2X8 on parallel bus

2018-05-08 Thread Jan Lübbe
Hi, On Mon, 2018-05-07 at 11:21 -0700, Steve Longerbeam wrote: > On 05/07/2018 07:23 AM, Jan Lübbe wrote: > > On Sat, 2018-05-05 at 15:22 -0700, Steve Longerbeam wrote: > > > I reviewed this patch series, and while I don't have any > > > objections to the cod

Re: [PATCH 0/2] media: imx: add capture support for RGB565_2X8 on parallel bus

2018-05-07 Thread Jan Lübbe
If the external device is 24bit - the user can connect a 16 bit > sample of it (RGB565 > format). The IPU has to be configured in the same way as the case of > CSI#_SENS_DATA_FORMAT=RGB565 I've not looked at this case, as I don't have a sensor with that format either.

Re: [PATCH 2/2] media: imx: add support for RGB565_2X8 on parallel bus

2018-05-04 Thread Jan Lübbe
target type [- > Wdiscarded-qualifiers] > outcc = priv->cc[priv->active_output_pad]; >^ I've fixed this and the unneeded semicolon for the next round. Regards, Jan -- Pengutronix e.K. | | Industrial Linux Solutions

[PATCH 0/2] add support for TI SCAN921226H video deserializer

2018-05-04 Thread Jan Luebbe
This series adds a binding and the corresponding V4L subdev driver for the TI SCAN921226H video deserializer. Although the device doesn't need to be configured, it can be controlled via GPIOs to allow multiple sensors on the same parallel video bus. Jan Luebbe (2): media: dt-bindings

[PATCH 2/2] media: platform: add driver for TI SCAN921226H video deserializer

2018-05-04 Thread Jan Luebbe
share the parallel bus. By enabling only one at a time, a camera can be selected at runtime using mediactl. This driver will en-/disable the deserializer via GPIOs as needed depending on the media entity link state. The current v4l2-compliance doesn't report any warnings or errors. Signed-off

[PATCH 1/2] media: dt-bindings: add binding for TI SCAN921226H video deserializer

2018-05-04 Thread Jan Luebbe
: Jan Luebbe --- .../bindings/media/ti,scan921226h.txt | 59 +++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/ti,scan921226h.txt diff --git a/Documentation/devicetree/bindings/media/ti,scan921226h.txt b/Documentation

[PATCH 0/2] media: imx: add capture support for RGB565_2X8 on parallel bus

2018-05-03 Thread Jan Luebbe
RGB565_2X8 support for the parallel bus, this series simplifies handing of the the different configurations for RGB565 between parallel and MIPI CSI-2 in imx-media-capture. This avoids having to explicitly pass on the format in the second patch. Jan Luebbe (2): media: imx: capture: refactor enum_

[PATCH 2/2] media: imx: add support for RGB565_2X8 on parallel bus

2018-05-03 Thread Jan Luebbe
and bus, we then update the width to account for the multiple cycles per pixel. Signed-off-by: Jan Luebbe --- drivers/staging/media/imx/imx-media-csi.c | 47 ++--- drivers/staging/media/imx/imx-media-utils.c | 1 + drivers/staging/media/imx/imx-media.h | 2 + 3 files

[PATCH 1/2] media: imx: capture: refactor enum_/try_fmt

2018-05-03 Thread Jan Luebbe
I-2, as we don't need to check the details of the format anymore. Signed-off-by: Jan Luebbe --- drivers/staging/media/imx/imx-media-capture.c | 38 +-- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/drivers/staging/media/imx/imx-media-capture.c b/drivers/st

[PATCH] media: imx-csi: fix burst size for 16 bit

2018-05-03 Thread Jan Luebbe
A burst_size of 4 does not work for the 16 bit passthrough formats, so we use 8 instead. Signed-off-by: Jan Luebbe --- drivers/staging/media/imx/imx-media-csi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/imx/imx-media-csi.c b/drivers/staging/media

Re: [PATCH v2 3/4] [media] v4l2: disable filesystem-dax mapping support

2017-11-27 Thread Jan Kara
l can > coordinate revoking DMA access when the filesystem needs to truncate > mappings. > > Reported-by: Jan Kara > Cc: Mauro Carvalho Chehab > Cc: linux-media@vger.kernel.org > Cc: > Fixes: 3565fce3a659 ("mm, x86: get_user_pages() for dax mappings")

Re: [PATCH v2 2/4] mm: fail get_vaddr_frames() for filesystem-dax mappings

2017-11-27 Thread Jan Kara
Cc: Inki Dae > Cc: Seung-Woo Kim > Cc: Joonyoung Shim > Cc: Kyungmin Park > Cc: Mauro Carvalho Chehab > Cc: linux-media@vger.kernel.org > Cc: Jan Kara > Cc: Mel Gorman > Cc: Vlastimil Babka > Cc: Andrew Morton > Cc: > Fixes: 3565fce3a659 ("mm, x86:

Re: [PATCH v2 7/7] uapi: export all headers under uapi directories

2017-01-12 Thread Jan Engelhardt
On Thursday 2017-01-12 16:52, Nicolas Dichtel wrote: >Le 09/01/2017 à 13:56, Christoph Hellwig a écrit : >> On Fri, Jan 06, 2017 at 10:43:59AM +0100, Nicolas Dichtel wrote: >>> Regularly, when a new header is created in include/uapi/, the developer >>> forgets to

Re: [PATCH 05/10] mm: replace get_vaddr_frames() write/force parameters with gup_flags

2016-10-19 Thread Jan Kara
r (and hence > bugs) within the mm subsystem. > > Signed-off-by: Lorenzo Stoakes Looks good. You can add: Reviewed-by: Jan Kara Honza > --- > drivers/gpu/drm/exynos/exynos_drm_g2d.c| 3 ++- > drivers/media/pla

Re: [PATCH 04/10] mm: replace get_user_pages_locked() write/force parameters with gup_flags

2016-10-19 Thread Jan Kara
r > (and > hence bugs) within the mm subsystem. > > Signed-off-by: Lorenzo Stoakes After our discussion the patch looks good to me. You can add: Reviewed-by: Jan Kara Honza -- Jan Kara SUSE Labs, CR -- To unsubscribe fro

Re: [PATCH 08/10] mm: replace __access_remote_vm() write parameter with gup_flags

2016-10-19 Thread Jan Kara
addr, buf, len, write); > + return __access_remote_vm(NULL, mm, addr, buf, len, > + write ? FOLL_WRITE : 0); > } > > /* > @@ -1871,7 +1873,8 @@ int access_process_vm(struct task_struct *tsk, unsigned > long addr, void *buf, in > if (!mm) >

Re: [PATCH 06/10] mm: replace get_user_pages() write/force parameters with gup_flags

2016-10-19 Thread Jan Kara
hence > bugs) within the mm subsystem. > > Signed-off-by: Lorenzo Stoakes The patch looks good. You can add: Reviewed-by: Jan Kara Honza > --- > arch/cris/arch-v32/drivers/cryptocop.c |

Re: [PATCH 07/10] mm: replace get_user_pages_remote() write/force parameters with gup_flags

2016-10-19 Thread Jan Kara
r > (and > hence bugs) within the mm subsystem. > > Signed-off-by: Lorenzo Stoakes Looks good. You can add: Reviewed-by: Jan Kara Honza > --- > drivers/gpu/drm/etnaviv/etnaviv_gem.c | 7 +-- > drivers/g

Re: [PATCH 04/10] mm: replace get_user_pages_locked() write/force parameters with gup_flags

2016-10-19 Thread Jan Kara
On Tue 18-10-16 14:56:09, Lorenzo Stoakes wrote: > On Tue, Oct 18, 2016 at 02:54:25PM +0200, Jan Kara wrote: > > > @@ -1282,7 +1282,7 @@ long get_user_pages(unsigned long start, unsigned > > > long nr_pages, > > > int write,

Re: [PATCH 04/10] mm: replace get_user_pages_locked() write/force parameters with gup_flags

2016-10-18 Thread Jan Kara
s second but I don't care that much. But it definitely should be consistent... Honza -- Jan Kara SUSE Labs, CR -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 03/10] mm: replace get_user_pages_unlocked() write/force parameters with gup_flags

2016-10-18 Thread Jan Kara
iour > (and > hence bugs) within the mm subsystem. > > Signed-off-by: Lorenzo Stoakes Looks good. You can add: Reviewed-by: Jan Kara Honza -- Jan Kara SUSE Labs, CR -- To unsubscribe from this list: send the line &quo

Re: [PATCH 02/10] mm: remove write/force parameters from __get_user_pages_unlocked()

2016-10-18 Thread Jan Kara
> mm subsystem. > > Signed-off-by: Lorenzo Stoakes The patch looks good. You can add: Reviewed-by: Jan Kara Honza -- Jan Kara SUSE Labs, CR -- To unsubscribe from this list: send the line "unsubscribe linux-media"

Re: [PATCH 01/10] mm: remove write/force parameters from __get_user_pages_locked()

2016-10-18 Thread Jan Kara
he mm subsystem. > > Signed-off-by: Lorenzo Stoakes Looks good. You can add: Reviewed-by: Jan Kara Honza -- Jan Kara SUSE Labs, CR -- To unsubscribe from this list: send the line "unsubscribe linux-media" in

Re: [PATCH 1/2] [media] vb2-memops: Fix over allocation of frame vectors

2016-03-04 Thread Jan Kara
> Signed-off-by: Ricardo Ribalda Delgado The patch looks good. Thanks for fixing this! You can add: Reviewed-by: Jan Kara Honza > --- > > Maybe we should cc stable. > > This error has not pop-out yet because userp

[PATCH 0/7] get_user_pages() cleanup

2015-10-06 Thread Jan Kara
From: Jan Kara Hello, Now when the usage of get_user_pages() in media drivers got cleaned up, here comes a series which removes knowledge about mmap_sem from a couple of other drivers. Patches are trivial and standalone but please check, they are only compile tested. If you are OK with them

[PATCH 7/7] [media] ivtv: Convert to get_user_pages_unlocked()

2015-10-06 Thread Jan Kara
From: Jan Kara Convert ivtv_yuv_prep_user_dma() to use get_user_pages_unlocked() so that we don't unnecessarily leak knowledge about mm locking into drivers code. CC: Andy Walls CC: Mauro Carvalho Chehab CC: linux-media@vger.kernel.org Signed-off-by: Jan Kara --- drivers/media/pci/ivtv

Re: [PATCH 9/9] drm/exynos: Convert g2d_userptr_get_dma_addr() to use get_vaddr_frames()

2015-07-21 Thread Jan Kara
On Sat 18-07-15 12:14:12, Inki Dae wrote: > On 2015년 07월 17일 19:31, Hans Verkuil wrote: > > On 07/17/2015 12:29 PM, Inki Dae wrote: > >> On 2015년 07월 17일 19:20, Hans Verkuil wrote: > >>> On 07/13/2015 04:55 PM, Jan Kara wrote: > >>>> From: Jan Kara &

[PATCH 3/9] media: omap_vout: Convert omap_vout_uservirt_to_phys() to use get_vaddr_pfns()

2015-07-13 Thread Jan Kara
From: Jan Kara Convert omap_vout_uservirt_to_phys() to use get_vaddr_pfns() instead of hand made mapping of virtual address to physical address. Also the function leaked page reference from get_user_pages() so fix that by properly release the reference when omap_vout_buffer_release() is called

[PATCH 4/9] vb2: Provide helpers for mapping virtual addresses

2015-07-13 Thread Jan Kara
From: Jan Kara Provide simple helper functions to map virtual address range into an array of pfns / pages. Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/Kconfig| 1 + drivers/media/v4l2-core/videobuf2-memops.c | 58

[PATCH 6/9] media: vb2: Convert vb2_vmalloc_get_userptr() to use frame vector

2015-07-13 Thread Jan Kara
From: Jan Kara Convert vb2_vmalloc_get_userptr() to use frame vector infrastructure. When we are doing that there's no need to allocate page array and some code can be simplified. Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2

[PATCH 2/9] mm: Provide new get_vaddr_frames() helper

2015-07-13 Thread Jan Kara
From: Jan Kara Provide new function get_vaddr_frames(). This function maps virtual addresses from given start and fills given array with page frame numbers of the corresponding pages. If given start belongs to a normal vma, the function grabs reference to each of the pages to pin them in memory

[PATCH 1/9] [media] vb2: Push mmap_sem down to memops

2015-07-13 Thread Jan Kara
From: Jan Kara Currently vb2 core acquires mmap_sem just around call to __qbuf_userptr(). However since commit f035eb4e976ef5 (videobuf2: fix lockdep warning) it isn't necessary to acquire it so early as we no longer have to drop queue mutex before acquiring mmap_sem. So push acquisiti

[PATCH 9/9] drm/exynos: Convert g2d_userptr_get_dma_addr() to use get_vaddr_frames()

2015-07-13 Thread Jan Kara
From: Jan Kara Convert g2d_userptr_get_dma_addr() to pin pages using get_vaddr_frames(). This removes the knowledge about vmas and mmap_sem locking from exynos driver. Also it fixes a problem that the function has been mapping user provided address without holding mmap_sem. Signed-off-by: Jan

[PATCH 0/9 v7] Helper to abstract vma handling in media layer

2015-07-13 Thread Jan Kara
From: Jan Kara Hello, I'm sending the seventh version of my patch series to abstract vma handling from the various media drivers. Since the previous version there are just minor cleanups and fixes (see detailed changelog at the end of the email). After this patch set drivers have to

[PATCH 5/9] media: vb2: Convert vb2_dma_sg_get_userptr() to use frame vector

2015-07-13 Thread Jan Kara
From: Jan Kara Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-dma-sg.c | 95 +- 1 file changed, 15 insertions(+), 80 deletions(-) diff --git a/drivers/media/v4l2-core/videobuf2-dma-sg.c b

[PATCH 8/9] media: vb2: Remove unused functions

2015-07-13 Thread Jan Kara
From: Jan Kara Conversion to the use of pinned pfns made some functions unused. Remove them. Also there's no need to lock mmap_sem in __buf_prepare() anymore. Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-memops.c

[PATCH 7/9] media: vb2: Convert vb2_dc_get_userptr() to use frame vector

2015-07-13 Thread Jan Kara
From: Jan Kara Convert vb2_dc_get_userptr() to use frame vector infrastructure. When we are doing that there's no need to allocate page array and some code can be simplified. Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/vide

Re: [PATCH 0/10 v6] Helper to abstract vma handling in media layer

2015-07-13 Thread Jan Kara
On Mon 13-07-15 10:45:25, Hans Verkuil wrote: > On 07/09/2015 02:12 PM, Hans Verkuil wrote: > > On 07/09/2015 01:48 PM, Jan Kara wrote: > >> Hello, > >> > >> Hans, did you have a chance to look at these patches? I have tested them > >> with the v

Re: [PATCH 0/10 v6] Helper to abstract vma handling in media layer

2015-07-09 Thread Jan Kara
... Honza On Thu 18-06-15 16:08:30, Jan Kara wrote: > Hello, > > I'm sending the sixth version of my patch series to abstract vma handling from > the various media drivers. Since the previous version I have added a patch to > mo

Re: [PATCH] [media] mantis: cleanup a warning

2015-06-21 Thread Jan Klötzke
ead(MANTIS_INT_STAT); > - intmask = mmread(MANTIS_INT_MASK); > + mmread(MANTIS_INT_MASK); I'm not sure if the mmread() is still needed. But as I don't have any docs about the chipset I would keep it because that's how it has been tested. I could re-test without i

[PATCH 10/10] mm: Move get_vaddr_frames() behind a config option

2015-06-18 Thread Jan Kara
98 - -98 get_vaddr_frames 485 --485 Suggested-by: Andrew Morton Signed-off-by: Jan Kara --- drivers/gpu/drm/exynos/Kconfig | 1 + drivers/media/platform/omap/Kconfig | 1 + drivers/media/v4l2-core/Kconfig | 1

[PATCH 8/10] media: vb2: Remove unused functions

2015-06-18 Thread Jan Kara
Conversion to the use of pinned pfns made some functions unused. Remove them. Also there's no need to lock mmap_sem in __buf_prepare() anymore. Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-memops.c

[PATCH 5/10] media: vb2: Convert vb2_dma_sg_get_userptr() to use frame vector

2015-06-18 Thread Jan Kara
Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-dma-sg.c | 95 +- 1 file changed, 15 insertions(+), 80 deletions(-) diff --git a/drivers/media/v4l2-core/videobuf2-dma-sg.c b/drivers/media/v4l2

[PATCH 3/10] media: omap_vout: Convert omap_vout_uservirt_to_phys() to use get_vaddr_pfns()

2015-06-18 Thread Jan Kara
: Jan Kara --- drivers/media/platform/omap/omap_vout.c | 67 +++-- 1 file changed, 31 insertions(+), 36 deletions(-) diff --git a/drivers/media/platform/omap/omap_vout.c b/drivers/media/platform/omap/omap_vout.c index 17b189a81ec5..0e4b3cfacc5d 100644 --- a/drivers/media

[PATCH 6/10] media: vb2: Convert vb2_vmalloc_get_userptr() to use frame vector

2015-06-18 Thread Jan Kara
Convert vb2_vmalloc_get_userptr() to use frame vector infrastructure. When we are doing that there's no need to allocate page array and some code can be simplified. Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-vmal

[PATCH 7/10] media: vb2: Convert vb2_dc_get_userptr() to use frame vector

2015-06-18 Thread Jan Kara
Convert vb2_dc_get_userptr() to use frame vector infrastructure. When we are doing that there's no need to allocate page array and some code can be simplified. Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-dma-con

[PATCH 1/10] [media] vb2: Push mmap_sem down to memops

2015-06-18 Thread Jan Kara
ole locking mess will get resolved once we convert videobuf2 core to the new mm helper which avoids the need for mmap_sem in .put_userptr memop altogether. Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-core.c | 2 -- drivers/media/v4l2-core/videobuf2-dma-contig.c | 5 +

[PATCH 9/10] drm/exynos: Convert g2d_userptr_get_dma_addr() to use get_vaddr_frames()

2015-06-18 Thread Jan Kara
Convert g2d_userptr_get_dma_addr() to pin pages using get_vaddr_frames(). This removes the knowledge about vmas and mmap_sem locking from exynos driver. Also it fixes a problem that the function has been mapping user provided address without holding mmap_sem. Signed-off-by: Jan Kara --- drivers

[PATCH 2/10] mm: Provide new get_vaddr_frames() helper

2015-06-18 Thread Jan Kara
belongs to VM_IO | VM_PFNMAP vma, we don't touch page structures. Caller must make sure pfns aren't reused for anything else while he is using them. This function is created for various drivers to simplify handling of their buffers. Acked-by: Mel Gorman Acked-by: Vlastimil Babka Signed-o

[PATCH 4/10] vb2: Provide helpers for mapping virtual addresses

2015-06-18 Thread Jan Kara
Provide simple helper functions to map virtual address range into an array of pfns / pages. Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-memops.c | 58 ++ include/media/videobuf2-memops.h

[PATCH 0/10 v6] Helper to abstract vma handling in media layer

2015-06-18 Thread Jan Kara
Hello, I'm sending the sixth version of my patch series to abstract vma handling from the various media drivers. Since the previous version I have added a patch to move mm helpers into a separate file and behind a config option. I also changed patch pushing mmap_sem down in videobuf2 core to avo

Re: [PATCH 9/9] [media] mm: Move get_vaddr_frames() behind a config option

2015-06-18 Thread Jan Kara
On Wed 10-06-15 09:37:20, Josh Triplett wrote: > On Wed, Jun 10, 2015 at 06:20:52AM -0300, Mauro Carvalho Chehab wrote: > > From: Jan Kara > > > > get_vaddr_frames() is used by relatively rare drivers so hide it and the > > related functions behind a config opti

Re: [PATCH] Revert "[media] vb2: Push mmap_sem down to memops"

2015-06-18 Thread Jan Kara
On Thu 18-06-15 12:45:26, Hans Verkuil wrote: > On 06/18/2015 12:33 PM, Jan Kara wrote: > > On Mon 15-06-15 09:24:55, Hans Verkuil wrote: > >> This reverts commit 48b25a3a713b90988b6882d318f7c0a6bed9aabc. > >> > >> That commit caused two regressions. The firs

Re: [PATCH] Revert "[media] vb2: Push mmap_sem down to memops"

2015-06-18 Thread Jan Kara
49.376820] [] > vivid_fop_release+0x92/0x230 [vivid] > Jun 14 18:44:07 test-media kernel: [ 49.376822] [] > v4l2_release+0x30/0x80 [videodev] > Jun 14 18:44:07 test-media kernel: [ 49.376824] [] > __fput+0xe5/0x200 > Jun 14 18:44:07 test-media kernel: [ 49.376825]

Re: [git:media_tree/master] [media] vb2: Push mmap_sem down to memops

2015-06-18 Thread Jan Kara
On Thu 11-06-15 10:52:22, Hans Verkuil wrote: > Jan, > > This patch causes a regressing in videobuf2-dma-sg with a potential deadlock: > > [ 82.290231] == > [ 82.290232] [ INFO: possible circular locking d

Re: [Xen-devel] RIP MTRR - status update for upcoming v4.2

2015-06-14 Thread Jan Beulich
>>> On 13.06.15 at 01:15, wrote: > On Jun 12, 2015 12:59 AM, "Jan Beulich" wrote: >> >> >>> On 12.06.15 at 01:23, wrote: >> > There are two usages on MTRRs: >> > 1) MTRR entries set by firmware >> > 2) MTRR entries set by

Re: [Xen-devel] RIP MTRR - status update for upcoming v4.2

2015-06-12 Thread Jan Beulich
> UEFI memory table has memory attribute, which describes cache types > supported in physical memory ranges. However, this information gets > lost when it it is converted to e820 table. I'm afraid you rather don't want to trust that information, as firmware vendors frequently scr

[PATCH 0/5] [media] mantis: add remote control support

2015-06-06 Thread Jan Klötzke
Hi Mauro, I am re-submitting my patch for remote control support of mantis based DVB cards for the 3rd time. The last submission can be found here [1]. It has been rebased and tested on v4.0. It has been working fine on my HTPC for almost three years now. Compared to the previous submission I've s

[PATCH 3/5] [media] rc/keymaps: add keytable for Terratec Cinergy S2 HD

2015-06-06 Thread Jan Klötzke
This RC map was taken from Christoph Pinkl's patch (http://patchwork.linuxtv.org/patch/7217/). It is used solely by the respective mantis based card because the encoding is not known. Signed-off-by: Jan Klötzke --- drivers/media/rc/keymaps/Makefile | 1 + .../media/rc/ke

[PATCH 5/5] [media] mantis: add remote control support

2015-06-06 Thread Jan Klötzke
is read by the UART worker. Signed-off-by: Jan Klötzke --- drivers/media/pci/mantis/hopper_cards.c | 13 +++- drivers/media/pci/mantis/mantis_cards.c | 60 + drivers/media/pci/mantis/mantis_common.h | 33 -- drivers/media/pci/mantis/mantis_dma.c| 5 +- drivers

[PATCH 4/5] [media] rc/keymaps: add keytable for Twinhan DTV CAB CI

2015-06-06 Thread Jan Klötzke
This RC map was taken from Christoph Pinkl's patch (http://patchwork.linuxtv.org/patch/7217/). It is used solely by the respective mantis based card because the encoding is not known. Signed-off-by: Jan Klötzke --- drivers/media/rc/keymaps/Makefile| 1 + drivers/med

[PATCH 1/5] [media] rc/keymaps: add RC keytable for TechniSat TS35

2015-06-06 Thread Jan Klötzke
The TS35 remote is distributed with TechniSat CableStar HD2 cards (mantis chipset). The exact protocol type is unknown, making this rc map probably only usable by mantis cards. Signed-off-by: Jan Klötzke --- drivers/media/rc/keymaps/Makefile| 1 + drivers/media/rc/keymaps/rc

[PATCH 2/5] [media] rc/keymaps: add keytable for Terratec Cinergy C PCI

2015-06-06 Thread Jan Klötzke
This RC map was taken from Christoph Pinkl's patch (http://patchwork.linuxtv.org/patch/7217/). It is used solely by the respective mantis based card because the encoding is not known. Signed-off-by: Jan Klötzke --- drivers/media/rc/keymaps/Makefile | 1 + .../media/rc/ke

Re: [PATCH 2/9] mm: Provide new get_vaddr_frames() helper

2015-06-03 Thread Jan Kara
On Tue 02-06-15 15:29:12, Andrew Morton wrote: > On Tue, 2 Jun 2015 17:23:00 +0200 Jan Kara wrote: > > > > That's a lump of new code which many kernels won't be needing. Can we > > > put all this in a new .c file and select it within drivers/media > >

Re: [PATCH 2/9] mm: Provide new get_vaddr_frames() helper

2015-06-02 Thread Jan Kara
On Thu 28-05-15 16:24:02, Andrew Morton wrote: > On Wed, 13 May 2015 15:08:08 +0200 Jan Kara wrote: > > > Provide new function get_vaddr_frames(). This function maps virtual > > addresses from given start and fills given array with page frame numbers of > > the corre

Re: [PATCH 2/9] mm: Provide new get_vaddr_frames() helper

2015-06-01 Thread Jan Kara
On Thu 28-05-15 16:24:02, Andrew Morton wrote: > On Wed, 13 May 2015 15:08:08 +0200 Jan Kara wrote: > > > Provide new function get_vaddr_frames(). This function maps virtual > > addresses from given start and fills given array with page frame numbers of > > the corre

Re: [PATCH 0/9 v5] Helper to abstract vma handling in media layer

2015-05-25 Thread Jan Kara
On Mon 25-05-15 13:37:56, Hans Verkuil wrote: > Hi Jan, > > On 05/13/2015 03:08 PM, Jan Kara wrote: > > Hello, > > > > I'm sending the fifth version of my patch series to abstract vma handling > > from the various media drivers. The patches got some revi

Re: [PATCH] radio-bcm2048: Fix region selection

2015-05-16 Thread Jan Roemisch
Removed "Japan wide band" region since this is impossible to do just like that. Additionally it's now possible to go back to non-Japanese regions without having to reload the module. Greetings Jan Roemisch On Sat, May 16, 2015 at 07:06:17AM -0700, Greg KH wrote: > On Sat, May

Re: [PATCH] radio-bcm2048: Fix region selection

2015-05-16 Thread Jan Roemisch
Oh sorry, the real name is Jan Roemisch. Greetings Jan -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 9/9] drm/exynos: Convert g2d_userptr_get_dma_addr() to use get_vaddr_frames()

2015-05-14 Thread Jan Kara
On Thu 14-05-15 19:51:23, Inki Dae wrote: > Hi, > > On 2015년 05월 13일 22:08, Jan Kara wrote: > > Convert g2d_userptr_get_dma_addr() to pin pages using get_vaddr_frames(). > > This removes the knowledge about vmas and mmap_sem locking from exynos > > driver. Also

[PATCH 3/9] media: omap_vout: Convert omap_vout_uservirt_to_phys() to use get_vaddr_pfns()

2015-05-13 Thread Jan Kara
: Jan Kara --- drivers/media/platform/omap/omap_vout.c | 67 +++-- 1 file changed, 31 insertions(+), 36 deletions(-) diff --git a/drivers/media/platform/omap/omap_vout.c b/drivers/media/platform/omap/omap_vout.c index 17b189a81ec5..0e4b3cfacc5d 100644 --- a/drivers/media

[PATCH 1/9] [media] vb2: Push mmap_sem down to memops

2015-05-13 Thread Jan Kara
into .get_userptr and .put_userptr memops so that the semaphore is acquired for a shorter time and it is clearer what it is needed for. Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-core.c | 2 -- drivers/media/v4l2-core/videobuf2-dma-contig.c | 7 +++ drivers/media/v4l2

[PATCH 4/9] vb2: Provide helpers for mapping virtual addresses

2015-05-13 Thread Jan Kara
Provide simple helper functions to map virtual address range into an array of pfns / pages. Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-memops.c | 58 ++ include/media/videobuf2-memops.h

[PATCH 9/9] drm/exynos: Convert g2d_userptr_get_dma_addr() to use get_vaddr_frames()

2015-05-13 Thread Jan Kara
Convert g2d_userptr_get_dma_addr() to pin pages using get_vaddr_frames(). This removes the knowledge about vmas and mmap_sem locking from exynos driver. Also it fixes a problem that the function has been mapping user provided address without holding mmap_sem. Signed-off-by: Jan Kara --- drivers

  1   2   3   4   >