[PATCH] media: vb2-dc: skip CPU sync in map/unmap dma_buf

2019-02-27 Thread Lucas Stach
This is rougly equivalent to ca0e68e21aae (drm/prime: skip CPU sync in map/unmap dma_buf). The contig memory allocated is already device coherent memory, so there is no point in doing a CPU sync when mapping it to another device. Also most importers currently cache the mapping so the CPU sync would

cron job: media_tree daily build: OK

2019-02-27 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Thu Feb 28 05:00:14 CET 2019 media-tree git hash:9fabe1d108ca4755a880de43f751f1c054f8894d media_build git

Re: [RFC PATCH V0 7/7] [media] platform: mtk-isp: Add Mediatek DIP driver

2019-02-27 Thread Brian Norris
Hi Frederic, On Sat, Feb 23, 2019 at 02:18:54PM +0800, Frederic Chen wrote: > Dear Brian, > > I appreciate your comments. I'm really sorry for the delay in responding > to the comments due to some mail subscribing failed issue inside my company. No problem. > On Thu, 2019-02-21 at 21:36 +0800,

Re: media: rockchip: the memory layout of multiplanes buffer for DMA address

2019-02-27 Thread Ayaka
> On Feb 28, 2019, at 5:07 AM, Nicolas Dufresne wrote: > > Hi Ayaka, > >> Le mercredi 27 février 2019 à 23:13 +0800, Ayaka a écrit : >> Last time in FOSDEM, kwiboo and I talk some problems of the request >> API and stateless decoder, I say the a method to describe a buffer >> with many offset

Re: [PATCH RFC 1/1] uio: Add dma-buf import ioctls

2019-02-27 Thread Hyun Kwon
Hi Daniel, On Wed, 2019-02-27 at 06:13:45 -0800, Daniel Vetter wrote: > On Tue, Feb 26, 2019 at 11:20 PM Hyun Kwon wrote: > > > > Hi Daniel, > > > > Thanks for the comment. > > > > On Tue, 2019-02-26 at 04:06:13 -0800, Daniel Vetter wrote: > > > On Tue, Feb 26, 2019 at 12:53 PM Greg Kroah-Hartman

Re: media: rockchip: the memory layout of multiplanes buffer for DMA address

2019-02-27 Thread Nicolas Dufresne
Hi Ayaka, Le mercredi 27 février 2019 à 23:13 +0800, Ayaka a écrit : > Last time in FOSDEM, kwiboo and I talk some problems of the request > API and stateless decoder, I say the a method to describe a buffer > with many offsets as the buffer meta data would solve the most of > problems we talked,

Re: [PATCH v4 1/2] media: uapi: Add H264 low-level decoder API compound controls.

2019-02-27 Thread Nicolas Dufresne
Le mercredi 27 février 2019 à 11:01 +0100, Maxime Ripard a écrit : > > Also regarding the pixel formats. I still think we should have two > > pixel formats: V4L2_PIX_FMT_H264_SLICE_RAW and > > V4L2_PIX_FMT_H264_SLICE_ANNEX_B, to properly represent "raw" NALUs > > and "annex B" formatted NALUs. > >

[PATCH v4 1/4] si2157: add detection of si2177 tuner

2019-02-27 Thread Brad Love
Works in ATSC and QAM as is, DVB is completely untested. Firmware required. Signed-off-by: Brad Love --- Changes since v3: - Fix firmware name to be consistent drivers/media/tuners/si2157.c | 6 ++ drivers/media/tuners/si2157_priv.h | 3 ++- 2 files changed, 8 insertions(+), 1 deletio

[PATCH v4 0/4] Add Hauppauge HVR1955/1975 devices

2019-02-27 Thread Brad Love
Hauppauge device HVR1955 and HVR1975 are old Cypress based devices. When originally produced the demods were lacking upstream drivers and the tuner was unsupported. Well fast forward to now and the only thing missing is the identification of si2177 tuner in the si2157 driver, as well as extension o

[PATCH v4 4/4] pvrusb2: Add Hauppauge HVR1955/1975 devices

2019-02-27 Thread Brad Love
Includes support to identify and use two Hauppauge device. HVR-1955: - LGDT3306a ATSC/QAM demod - si2177 tuner - cx25840 decoder for analog tv/composite/s-video/audio HVR-1975 dual-frontend: - LGDT3306a ATSC/QAM demod - si2168 DVB-C/T/T2 demod - si2177 tuner - cx25840 decoder for analog tv/composi

[PATCH v4 2/4] pvrusb2: Add multiple dvb frontend support

2019-02-27 Thread Brad Love
All changes are equivalent and backwards compatible. All current devices have been changed to use fe[0] Cleanup has been added to dvb init to support cleanup after failure. Signed-off-by: Brad Love --- No changes drivers/media/usb/pvrusb2/pvrusb2-devattr.c | 36 +++--- drivers/media/usb

[PATCH v4 3/4] pvrusb2: Add i2c client demod/tuner support

2019-02-27 Thread Brad Love
Cleanup code has been added to init in case of failure, as well as to frontend exit. Signed-off-by: Brad Love --- No changes drivers/media/usb/pvrusb2/pvrusb2-dvb.c | 11 +++ drivers/media/usb/pvrusb2/pvrusb2-dvb.h | 3 +++ 2 files changed, 14 insertions(+) diff --git a/drivers/media/

Re: [RESEND PATCH 0/7] Add FOLL_LONGTERM to GUP fast and use it

2019-02-27 Thread Ira Weiny
On Tue, Feb 19, 2019 at 09:30:33PM -0800, 'Ira Weiny' wrote: > From: Ira Weiny > > Resending these as I had only 1 minor comment which I believe we have covered > in this series. I was anticipating these going through the mm tree as they > depend on a cleanup patch there and the IB changes are v

[PATCH v2 00/13] si2157: Analog tuning and optimizations

2019-02-27 Thread Brad Love
This series mainly enables analog tuning in the si2157 driver. Some various optimizations are included as well, along with the dots connected to allow devices with TUNER_ABSENT to utilize an analog frontend on two different bridges. Finally two missing statistics are added to get signal strength an

[PATCH] cx231xx-cards: Add Hauppauge 955Q variant

2019-02-27 Thread Brad Love
2040:b124 is an OEM 955Q Signed-off-by: Brad Love --- drivers/media/usb/cx231xx/cx231xx-cards.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/usb/cx231xx/cx231xx-cards.c b/drivers/media/usb/cx231xx/cx231xx-cards.c index a431a99..daf8f8c 100644 --- a/drivers/media/usb/cx231x

[PATCH v2 12/12] lgdt3306a: Add CNR v5 stat

2019-02-27 Thread Brad Love
The CNR is already calculated, so populate DVBv5 CNR stat during read_status. Signed-off-by: Brad Love --- No changes drivers/media/dvb-frontends/lgdt3306a.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/media/dvb-frontends/lgdt3306a.c b/drivers/media/dvb-frontend

[PATCH v2 11/12] si2157: add on-demand rf strength func

2019-02-27 Thread Brad Love
Add get_rf_strength callback to get RSSI from the tuner. DVBv5 stat cache is updated. get_rf_strength is called by tuner_core for analog tuners and is also used by some bridge drivers to obtain RSSI directly from the tuner. Signed-off-by: Brad Love --- Changes since v1: - simplify normalization o

[PATCH v2 10/12] cx231xx: Add i2c device analog tuner support

2019-02-27 Thread Brad Love
The boards listed below use i2c device drivers and have tuner_type equal TUNER_ABSENT. This means additional support is required to enable the analog tuning capability, a case statement is used to identify these models. Models with analog tuning enabled: - CX231XX_BOARD_HAUPPAUGE_930C_HD_1114xx (t

[PATCH v2 06/12] si2157: Briefly wait for tuning operation to complete

2019-02-27 Thread Brad Love
Some software reports no signal found on a frequency due to immediately checking for lock as soon as set_params returns. This waits up 40ms for tuning operation, then from 30-150ms (dig/analog) for signal lock before returning from set_params and set_analog_params. Tuning typically completes in 20

[PATCH v2 02/12] si2157: Check error status bit on cmd execute

2019-02-27 Thread Brad Love
Check error status bit on command execute, if error bit is set return -EAGAIN. Ignore -EAGAIN in probe during device check. Signed-off-by: Brad Love --- No changes drivers/media/tuners/si2157.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/media/tuners

[PATCH v2 07/12] cx23885: Add analog tuner support to Hauppauge QuadHD

2019-02-27 Thread Brad Love
Add analog tuner frontend to 888 Hauppauge QuadHD boards Signed-off-by: Brad Love --- No changes drivers/media/pci/cx23885/cx23885-cards.c | 32 +++ drivers/media/pci/cx23885/cx23885-dvb.c | 20 +++ drivers/media/pci/cx23885/cx23885-video.c | 8 +++

[PATCH v2 05/12] si2157: Add analog tuning related functions

2019-02-27 Thread Brad Love
Include set_analog_params, get_frequency, and get_bandwidth. Tested with NTSC and PAL standards via ch3/4 generator. Other standards are included, but are untested due to lack of generator. Signed-off-by: Brad Love --- Changes since v1: - remove __func__ from dev_dbg macros drivers/media/tuner

[PATCH v2 04/12] cx25840: Register labeling, chip specific correction

2019-02-27 Thread Brad Love
Remove vbi_regs_offset from a group of registers that are 888 specific, include those registers names. Add labels to some undocumented registers. Signed-off-by: Brad Love --- No changes drivers/media/i2c/cx25840/cx25840-core.c | 33 1 file changed, 21 insertion

[PATCH v2 03/12] si2157: Better check for running tuner in init

2019-02-27 Thread Brad Love
Getting the Xtal trim property to check if running is less error prone. Reset if_frequency if state is unknown. Replaces the previous "garbage check". Signed-off-by: Brad Love --- No changes drivers/media/tuners/si2157.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) di

[PATCH v2 01/12] si2157: Enable tuner status flags

2019-02-27 Thread Brad Love
Enable flags to get status of commands sent to the tuner. Signed-off-by: Brad Love --- No changes drivers/media/tuners/si2157.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/media/tuners/si2157.c b/drivers/media/tuners/si2157.c index d389f1f..4855448 100644

[PATCH v2 09/12] cx23885: Add i2c device analog tuner support

2019-02-27 Thread Brad Love
Hauppauge QuadHD boards all use i2c device drivers and have tuner_type equal TUNER_ABSENT. This means additional support is required to enable the analog tuning capability, a case statement is used to identify these models. Models with analog tuner inputs enabled: - CX23885_BOARD_HAUPPAUGE_HVR1265

[PATCH v2 08/12] cx23885: Add analog frontend to 1265_K4

2019-02-27 Thread Brad Love
Enables the analog tuning frontend for Hauppauge HVR-1265_K4. Signed-off-by: Brad Love --- No changes drivers/media/pci/cx23885/cx23885-cards.c | 7 +++ drivers/media/pci/cx23885/cx23885-dvb.c | 5 + 2 files changed, 12 insertions(+) diff --git a/drivers/media/pci/cx23885/cx23885-car

[PATCH v2 0/4] Add debug messages to v4l2-ctrls

2019-02-27 Thread Ezequiel Garcia
v2: * Print the video device node name where possible, in v4l2-ctrls.c, by passing the struct video_device as a parameter. * Added a warning to dev_debug attribute store, to warn the user about V4L2_DEV_DEBUG_CTRL being a no-op for dev_debug. Even though the goal was fairly simple (add

[PATCH v2 1/4] media: v4l: Simplify dev_debug flags

2019-02-27 Thread Ezequiel Garcia
In preparation to cleanup the debug logic, simplify the dev_debug usage. In particular, make sure that a single flag is used to control each debug print. Before this commit V4L2_DEV_DEBUG_STREAMING and V4L2_DEV_DEBUG_FOP were needed to enable read and write debugging. After this commit only the fo

[PATCH v2 3/4] media: v4l: Add a module parameter to control global debugging

2019-02-27 Thread Ezequiel Garcia
In addition to the dev_debug device attribute, which controls per-device debugging, we now add a module parameter to control debugging globally. This will allow to add debugging of v4l2 control logic, using the newly introduced debug parameter. In addition, this module parameter adds consistency

[PATCH v2 2/4] media: v4l: Improve debug dprintk macro

2019-02-27 Thread Ezequiel Garcia
Instead of checking the dev_debug flags before each dprintk call, make the macro smarter by passing the parameters. This makes the code simpler and will allow to add more debug logic. Signed-off-by: Ezequiel Garcia --- drivers/media/v4l2-core/v4l2-dev.c | 35 ++ 1 fi

[PATCH v2 4/4] media: v4l: ctrls: Add debug messages

2019-02-27 Thread Ezequiel Garcia
Currently, the v4l2 control code is a bit silent on errors. Now that we have a debug parameter, it's possible to enable debugging messages here. Add debug messages on (hopefully) most of the error paths. Since it's really hard to associate all these errors to video device instance, we are forced t

[PATCH] gspca: Kill URBs on USB device disconnect

2019-02-27 Thread Ezequiel Garcia
In order to prevent ISOC URBs from being infinitely resubmitted, the driver's USB disconnect handler must kill all the in-flight URBs. While here, change the URB packet status message to a debug level, to avoid spamming the console too much. This commit fixes a lockup caused by an interrupt storm

Re: [PATCH v5 19/21] media: vicodec: Introducing stateless fwht defs and structs

2019-02-27 Thread kbuild test robot
Hi Dafna, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on next-20190227] [cannot apply to v5.0-rc8] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url

Compliment of the day,

2019-02-27 Thread mr philip
Compliment of the day, I am Mr.Philip.Kabore I Have a Business Proposal of $5.3 million For You. I am aware of the unsafe nature of the internet, and was compelled to use this medium due to the nature of this project. I have access to very vital information that can be used to transfer this huge

[PATCH] media: imx7_mipi_csis: remove internal ops

2019-02-27 Thread Rui Miguel Silva
Remove code that is not called anywhere, just remove the internal ops. Signed-off-by: Rui Miguel Silva --- drivers/staging/media/imx/imx7-mipi-csis.c | 27 -- 1 file changed, 27 deletions(-) diff --git a/drivers/staging/media/imx/imx7-mipi-csis.c b/drivers/staging/media/imx

Re: [PATCH 1/2] libv4lconvert: add support for BAYER10

2019-02-27 Thread Ricardo Ribalda Delgado
Hi Daniel, Thanks for both patches On Wed, Feb 27, 2019 at 3:47 PM Daniel Gomez wrote: > > Add support for 10 bit Bayer formats: > -V4L2_PIX_FMT_SBGGR10 > -V4L2_PIX_FMT_SGBRG10 > -V4L2_PIX_FMT_SRGGB10 > > Previous BAYER10 format declared (V4L2_PIX_FMT_SGRBG10) now is grou

Re: [PATCH 2/2] libv4lconvert: add support for BAYER16

2019-02-27 Thread Ricardo Ribalda Delgado
Hi Daniel, On Wed, Feb 27, 2019 at 3:47 PM Daniel Gomez wrote: > > Add support for 16 bit Bayer formats: > -V4L2_PIX_FMT_SBGGR16 > -V4L2_PIX_FMT_SGBRG16 > -V4L2_PIX_FMT_SGRBG16 > -V4L2_PIX_FMT_SRGGB16 > > Tested using vivid included in linux v5.0-rc8. > > Signed-of

media: rockchip: the memory layout of multiplanes buffer for DMA address

2019-02-27 Thread Ayaka
Hello all I am writing the v4l2 decoder driver for rockchip. Although I hear the suggest from the Hans before, it is ok for decoder to use single plane buffer format, but I still decide to the multi planes format. There is not a register for vdpau1 and vdpau2 setting the chroma starting addres

[PATCH 2/2] libv4lconvert: add support for BAYER16

2019-02-27 Thread Daniel Gomez
Add support for 16 bit Bayer formats: -V4L2_PIX_FMT_SBGGR16 -V4L2_PIX_FMT_SGBRG16 -V4L2_PIX_FMT_SGRBG16 -V4L2_PIX_FMT_SRGGB16 Tested using vivid included in linux v5.0-rc8. Signed-off-by: Daniel Gomez --- lib/libv4lconvert/bayer.c | 9 ++ lib/li

[PATCH 1/2] libv4lconvert: add support for BAYER10

2019-02-27 Thread Daniel Gomez
Add support for 10 bit Bayer formats: -V4L2_PIX_FMT_SBGGR10 -V4L2_PIX_FMT_SGBRG10 -V4L2_PIX_FMT_SRGGB10 Previous BAYER10 format declared (V4L2_PIX_FMT_SGRBG10) now is grouped with the new list without the need of tmp buffer. Update v4lconvert_10to8 function: - Rena

Re: [PATCH RFC 1/1] uio: Add dma-buf import ioctls

2019-02-27 Thread Daniel Vetter
On Tue, Feb 26, 2019 at 11:20 PM Hyun Kwon wrote: > > Hi Daniel, > > Thanks for the comment. > > On Tue, 2019-02-26 at 04:06:13 -0800, Daniel Vetter wrote: > > On Tue, Feb 26, 2019 at 12:53 PM Greg Kroah-Hartman > > wrote: > > > > > > On Sat, Feb 23, 2019 at 12:28:17PM -0800, Hyun Kwon wrote: > >

Re: Issues with ov5640 sensor

2019-02-27 Thread Eugen.Hristev
On 13.02.2019 10:51, Loic Poulain wrote: > Hi Eugen, > > On Wed, 13 Feb 2019 at 09:02, wrote: >> >> Hello Loic, >> >> I am trying to make sensor Omnivision ov5640 work with our Atmel-isc >> controller, I saw you implemented RAW mode for this sensor in the >> driver, so I was hoping I can ask yo

Re: [PATCH 1/2] media: vim2m: improve debug messages

2019-02-27 Thread kbuild test robot
://github.com/0day-ci/linux/commits/Mauro-Carvalho-Chehab/media-vim2m-improve-debug-messages/20190227-194011 base: git://linuxtv.org/media_tree.git master config: nds32-allyesconfig (attached as .config) compiler: nds32le-linux-gcc (GCC) 6.4.0 reproduce: wget https

Re: urb issue with an spca561 webcam

2019-02-27 Thread Ezequiel Garcia
+linux-media On Fri, 2018-11-23 at 23:37 +, softwarebugs wrote: > After each time I click to stop capturing, the below messages are logged. > > spca561 : urb status: -2 > gspca_main: usb_submit_urb() ret -1 > spca561 : urb status: -2 > gspca_main: usb_submit_urb() ret -1 > spca561 : urb statu

Re: [PATCH] gspca: do not resubmit URBs when streaming has stopped

2019-02-27 Thread Matti Hämäläinen
On Tue, 26 Feb 2019, Hans Verkuil wrote: When streaming is stopped all URBs are killed, but in fill_frame and in bulk_irq this results in an attempt to resubmit the killed URB. That is not what you want and causes spurious kernel messages. So check if streaming has stopped before resubmitting.

Re: [PATCH 1/2] media: vim2m: improve debug messages

2019-02-27 Thread kbuild test robot
://github.com/0day-ci/linux/commits/Mauro-Carvalho-Chehab/media-vim2m-improve-debug-messages/20190227-194011 base: git://linuxtv.org/media_tree.git master config: i386-randconfig-x001-201908 (attached as .config) compiler: gcc-8 (Debian 8.2.0-20) 8.2.0 reproduce: # save the attached .config to linux

Re: [PATCH v4 1/2] media: uapi: Add H264 low-level decoder API compound controls.

2019-02-27 Thread Maxime Ripard
Hi Ezequiel, On Fri, Feb 22, 2019 at 01:59:33PM -0300, Ezequiel Garcia wrote: > On Fri, 2019-02-22 at 16:46 +0900, Tomasz Figa wrote: > > > diff --git a/include/uapi/linux/videodev2.h > > > b/include/uapi/linux/videodev2.h > > > index 9a920f071ff9..6443ae53597f 100644 > > > --- a/include/uapi/lin