Re: [RFC PATCH v2 0/5] Media Device Allocator API

2016-04-04 Thread Takashi Iwai
On Tue, 05 Apr 2016 05:35:55 +0200, Shuah Khan wrote: > > There are known problems with media device life time management. When media > device is released while an media ioctl is in progress, ioctls fail with > use-after-free errors and kernel hangs in some cases. > > Media Device can be in any t

[RFC PATCH v2 4/5] media: au0828 change to use Media Device Allocator API

2016-04-04 Thread Shuah Khan
Change au0828 to use Media Device Allocator API and new Media Controller media_device_unregister_put() interface. Fix to unregister entity_notify hook. Signed-off-by: Shuah Khan --- drivers/media/usb/au0828/au0828-core.c | 40 -- drivers/media/usb/au0828/au0828.h

[RFC PATCH v2 1/5] media: Add Media Device Allocator API

2016-04-04 Thread Shuah Khan
Add Media Device Allocator API to manage Media Device life time problems. There are known problems with media device life time management. When media device is released while an media ioctl is in progress, ioctls fail with use-after-free errors and kernel hangs in some cases. Media Allocator API p

[RFC PATCH v2 3/5] media: uvcvideo change to use Media Device Allocator API

2016-04-04 Thread Shuah Khan
Change uvcvideo to use Media Device Allocator API and new Media Controller media_device_unregister_put() interface. Signed-off-by: Shuah Khan --- drivers/media/usb/uvc/uvc_driver.c | 36 ++-- drivers/media/usb/uvc/uvcvideo.h | 3 ++- 2 files changed, 24 inserti

[RFC PATCH v2 5/5] sound/usb: Use Media Controller API to share media resources

2016-04-04 Thread Shuah Khan
Change ALSA driver to use Media Controller API to share media resources with DVB and V4L2 drivers on a AU0828 media device. Media Controller API specific initialization is done after sound card is registered. au0828 and snd-usb-audio use Media Device Allocator API to allocate and share the media d

[RFC PATCH v2 2/5] media: Add driver count to keep track of media device registrations

2016-04-04 Thread Shuah Khan
Add driver count to keep track of media device registrations to avoid releasing the media device, when one of the drivers does unregister when media device belongs to more than one driver. Also add a new interfaces to unregister a media device allocated using Media Device Allocator and a increment

[RFC PATCH v2 0/5] Media Device Allocator API

2016-04-04 Thread Shuah Khan
There are known problems with media device life time management. When media device is released while an media ioctl is in progress, ioctls fail with use-after-free errors and kernel hangs in some cases. Media Device can be in any the following states: - Allocated - Registered (could be tied to mo

cron job: media_tree daily build: ERRORS

2016-04-04 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: Tue Apr 5 04:00:16 CEST 2016 git branch: test git hash: d3f5193019443ef8e556b64f3cd359773c4d377b gcc versi

Re: [media 2/6] drop backstabbing drivers

2016-04-04 Thread Akihiro TSUKADA
You still haven't described any concrete reasons why you revert those existing drivers, and I definitely disagree with this patch. -- akihiro -- 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

[GIT PULL for v4.6-rc3] media fixes

2016-04-04 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v4.6-3 For some bug fixes on au0828 and snd-usb-audio: - The au0828+snd-usb-audio MC patch broke several things and produced some race conditions. Better to revert the patches, and re

Re: [PATCH v3] [media] tpg: Export the tpg code from vivid as a module

2016-04-04 Thread Hans Verkuil
Hi Helen, On 04/01/2016 10:35 PM, Helen Mae Koike Fornazier wrote: The test pattern generator will be used by other drivers as the virtual media controller (vimc) Signed-off-by: Helen Mae Koike Fornazier --- The patch is based on 'media/master' branch and available at https://github.

Re: [media 5/6] PCIE bridge driver for PT3 & PX-Q3PE

2016-04-04 Thread kbuild test robot
Hi Буди, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.6-rc2 next-20160404] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/info-are-ma/DVB-driver-for-Earthsoft

Re: [media 5/6] PCIE bridge driver for PT3 & PX-Q3PE

2016-04-04 Thread kbuild test robot
Hi Буди, [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.6-rc2 next-20160404] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/info-are-ma/DVB-driver-for

Incorrect use of blocking ops in lirc_dev_fop_read

2016-04-04 Thread Laura Abbott
Hi, We received a bug report (https://bugzilla.redhat.com/show_bug.cgi?id=1323440) WARNING: CPU: 3 PID: 765 at kernel/sched/core.c:7557 __might_sleep+0x75/0x80() do not call blocking ops when !TASK_RUNNING; state=1 set at [] lirc_dev_fop_read+0x1e1/0x590 [lirc_dev] CPU: 3 PID: 765 Comm: lirc

Re: [media 5/6] PCIE bridge driver for PT3 & PX-Q3PE

2016-04-04 Thread kbuild test robot
Hi Буди, [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.6-rc2 next-20160404] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/info-are-ma/DVB-driver-for

[media 4/6] Tuners for Earthsoft PT3, PLEX PX-Q3PE ISDB-S/T PCIE cards & PX-BCUD ISDB-S USB dongle

2016-04-04 Thread info
From: Буди Романто, AreMa Inc tda2014x.c TDA20142PX-Q3PE qm1d1c004x.cQM1D1C0042, QM1D1C0045, QM1D1C0045_2PX-BCUD, PT3 nm131.c NM131, NM130, NM120 PX-Q3PE mxl301rf.c MxL301RFPT3 Signed-of

[media 0/6] DVB driver for Earthsoft PT3, PLEX PX-Q3PE ISDB-S/T PCIE cards & PX-BCUD ISDB-S USB dongle

2016-04-04 Thread info
From: Буди Романто, AreMa Inc DVB driver for Earthsoft PT3, PLEX PX-Q3PE ISDB-S/T PCIE cards & PX-BCUD ISDB-S USB dongle == Status: stable Features: 1. in addition to the real frequency: ISDB-S : f

[media 1/6] Raise adapter number limit

2016-04-04 Thread info
From: Буди Романто, AreMa Inc The current limit is too low for latest cards with 8+ tuners on a single slot. IMHO, the most appropriate minimum default is 16. Signed-off-by: Буди Романто, AreMa Inc --- drivers/media/dvb-core/Kconfig | 4 ++-- drivers/media/dvb-core/dvbdev.h | 2 +- 2 files ch

[media 2/6] drop backstabbing drivers

2016-04-04 Thread info
From: Буди Романто, AreMa Inc Obsoleted & superseded, please read cover letter for details. Signed-off-by: Буди Романто, AreMa Inc --- drivers/media/dvb-frontends/tc90522.c | 840 drivers/media/dvb-frontends/tc90522.h | 42 -- drivers/media/pci/pt3/Kconfig

[media 3/6] Demodulator for Earthsoft PT3, PLEX PX-Q3PE ISDB-S/T PCIE cards & PX-BCUD ISDB-S USB dongle

2016-04-04 Thread info
From: Буди Романто, AreMa Inc Toshiba TC905xx demodulator driver for PT3, PX-Q3PE & PX-BCUD Signed-off-by: Буди Романто, AreMa Inc --- drivers/media/dvb-frontends/tc90522.c | 254 ++ drivers/media/dvb-frontends/tc90522.h | 18 +++ 2 files changed, 272 insertion

[media 5/6] PCIE bridge driver for PT3 & PX-Q3PE

2016-04-04 Thread info
From: Буди Романто, AreMa Inc Please read cover letter for details. Signed-off-by: Буди Романто, AreMa Inc --- drivers/media/pci/Kconfig | 2 +- drivers/media/pci/Makefile | 2 +- drivers/media/pci/ptx/Kconfig | 23 ++ drivers/media/pci/ptx/Makefile | 6 + driv

[media 6/6] Bridge driver for PLEX PX-BCUD ISDB-S USB dongle

2016-04-04 Thread info
From: Буди Романто, AreMa Inc Support for PLEX PX-BCUD (ISDB-S usb dongle) Nagahama's patch simplified... Signed-off-by: Буди Романто, AreMa Inc --- drivers/media/Kconfig | 5 +- drivers/media/usb/em28xx/Kconfig| 3 ++ drivers/media/usb/em28xx/Makefile | 1 +

[PATCH] em28xx: add support for Hauppauge WinTV-dualHD DVB tuner

2016-04-04 Thread Olli Salonen
Hauppauge WinTV-dualHD is a USB 2.0 dual DVB-T/T2/C tuner with following components: USB bridge: Empia EM28274 (chip id is the same as EM28174) Demodulator: 2x Silicon Labs Si2168-B40 Tuner: 2x Silicon Labs Si2157-A30 This patch adds support only for the first tuner. The demodulator needs firmwa

Re: [PATCH 1/4] mm: add is_highmem_addr() helper

2016-04-04 Thread Boris Brezillon
On Mon, 4 Apr 2016 13:44:11 +0530 Vignesh R wrote: > Hi, > > On 03/31/2016 05:59 PM, Boris Brezillon wrote: > > Add an helper to check if a virtual address is in the highmem region. > > > > Signed-off-by: Boris Brezillon > > --- > > include/linux/highmem.h | 13 + > > 1 file chang

Non-coherent (streaming) contig-dma?

2016-04-04 Thread Krzysztof Hałasa
Hi, I know certain approaches had been tried to allow use of streaming DMA (dma_map_single() etc. - i.e., not coherent) in the media drivers, is there something which can be used at this point (for MMAP method)? Coherent buffers on many systems are very slow (uncacheable), should i simply add/rep

Re: [PATCH] Add GS1662 driver (a SPI video serializer)

2016-04-04 Thread Jean-Michel Hautbois
>> Next, you should add a complete description to your commit. Just >> having an object and a signed-off-by line is not enough. > Oh, I'm sorry, I don't have any idea to explicit more details. I will > find something for that. Just get the description from the datasheet as a start ;-). >> You als

Re: [PATCH] Add GS1662 driver (a SPI video serializer)

2016-04-04 Thread Charles-Antoine Couret
Le 01/04/2016 21:11, Jean-Michel Hautbois a écrit : > Hi Charles-Antoine, Hi, > FIrst of all, we, on the ML, do prefer reading patches as sent by git > send-email tool. Ok, I will configure that. > Next, you should add a complete description to your commit. Just > having an object and a signed-o

Re: [PATCH 1/4] mm: add is_highmem_addr() helper

2016-04-04 Thread Vignesh R
Hi, On 03/31/2016 05:59 PM, Boris Brezillon wrote: > Add an helper to check if a virtual address is in the highmem region. > > Signed-off-by: Boris Brezillon > --- > include/linux/highmem.h | 13 + > 1 file changed, 13 insertions(+) > > diff --git a/include/linux/highmem.h b/includ