[PATCH 2/2] media: st-hva: don't use GFP_DMA

2018-05-15 Thread Fabien Dessenne
Set the DMA_MASK and stop using the GFP_DMA flag Signed-off-by: Fabien Dessenne <fabien.desse...@st.com> --- drivers/media/platform/sti/hva/hva-mem.c | 2 +- drivers/media/platform/sti/hva/hva-v4l2.c | 4 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/media/pl

[PATCH 1/2] media: bdisp: don't use GFP_DMA

2018-05-15 Thread Fabien Dessenne
Set the DMA_MASK and stop using the GFP_DMA flag Signed-off-by: Fabien Dessenne <fabien.desse...@st.com> --- drivers/media/platform/sti/bdisp/bdisp-hw.c | 2 +- drivers/media/platform/sti/bdisp/bdisp-v4l2.c | 4 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers

Re: Are media drivers abusing of GFP_DMA? - was: Re: [LSF/MM TOPIC NOTES] x86 ZONE_DMA love

2018-05-15 Thread Fabien DESSENNE
On 14/05/18 12:39, Mauro Carvalho Chehab wrote: > Em Mon, 14 May 2018 07:35:03 -0300 > Mauro Carvalho Chehab <mchehab+sams...@kernel.org> escreveu: > >> Hi Fabien, >> >> Em Mon, 14 May 2018 08:00:37 + >> Fabien DESSENNE <fabien.desse...@st.com&

Re: Are media drivers abusing of GFP_DMA? - was: Re: [LSF/MM TOPIC NOTES] x86 ZONE_DMA love

2018-05-14 Thread Fabien DESSENNE
On 07/05/18 17:19, Mauro Carvalho Chehab wrote: > Em Mon, 07 May 2018 16:26:08 +0300 > Laurent Pinchart escreveu: > >> Hi Mauro, >> >> On Saturday, 5 May 2018 19:08:15 EEST Mauro Carvalho Chehab wrote: >>> There was a recent discussion about the use/abuse of

Re: [PATCH V3 1/2] bdisp: Fix a possible sleep-in-atomic bug in bdisp_hw_reset

2017-12-19 Thread Fabien DESSENNE
Hi, It's almost good! You have to fix these checkpatch Warning/Check: WARNING: Block comments use a trailing */ on a separate line #36: FILE: drivers/media/platform/sti/bdisp/bdisp-hw.c:383: +     * needing any delays */ CHECK: Alignment should match open parenthesis #38: FILE:

Re: [PATCH V2 1/2] bdisp: Fix a possible sleep-in-atomic bug in bdisp_hw_reset

2017-12-19 Thread Fabien DESSENNE
Hi, On 16/12/17 12:54, Jia-Ju Bai wrote: > The driver may sleep under a spinlock. > The function call path is: > bdisp_device_run (acquire the spinlock) >bdisp_hw_reset > msleep --> may sleep > > To fix it, readl_poll_timeout_atomic is used to replace msleep. > > This bug is found by my

Re: [PATCH 1/2] bdisp: Fix a possible sleep-in-atomic bug in bdisp_hw_reset

2017-12-19 Thread Fabien DESSENNE
On 16/12/17 15:14, Mauro Carvalho Chehab wrote: > Em Sat, 16 Dec 2017 19:53:55 +0800 > Jia-Ju Bai <baijiaju1...@gmail.com> escreveu: > >> Hi, >> >> On 2017/12/15 22:51, Fabien DESSENNE wrote: >>> Hi >>> >>> On 12/12/17 14:47,

Re: [PATCH 2/2] bdisp: Fix a possible sleep-in-atomic bug in bdisp_hw_save_request

2017-12-15 Thread Fabien DESSENNE
may sleep > > To fix it, GFP_KERNEL is replaced with GFP_ATOMIC. > > This bug is found by my static analysis tool(DSAC) and checked by my code > review. > > Signed-off-by: Jia-Ju Bai <baijiaju1...@gmail.com> Reviewed-by: Fabien Dessenne <fabien.desse...@st.com> > -

Re: [PATCH 1/2] bdisp: Fix a possible sleep-in-atomic bug in bdisp_hw_reset

2017-12-15 Thread Fabien DESSENNE
Hi On 12/12/17 14:47, Jia-Ju Bai wrote: > The driver may sleep under a spinlock. > The function call path is: > bdisp_device_run (acquire the spinlock) >bdisp_hw_reset > msleep --> may sleep > > To fix it, msleep is replaced with mdelay. May I suggest you to use

Re: [PATCH] media: platform: sti: Adopt SPDX identifier

2017-12-06 Thread Fabien DESSENNE
On 05/12/17 15:52, Benjamin Gaignard wrote: > Add SPDX identifiers to files under sti directory > > Signed-off-by: Benjamin Gaignard <benjamin.gaign...@st.com> For the bdisp part: Reviewed-by: Fabien Dessenne <fabien.desse...@st.com> > --- > drivers/media/platf

Re: [PATCH][V2] bdisp: remove redundant assignment to pix

2017-11-06 Thread Fabien DESSENNE
duplicate assignment. Cleans up the clang warning: > > drivers/media/platform/sti/bdisp/bdisp-v4l2.c:726:26: warning: Value > stored to 'pix' during its initialization is never read > > Signed-off-by: Colin Ian King <colin.k...@canonical.com> Reviewed-by: Fabien Dessenne <fa

Re: [PATCH v4 1/4] [media] exynos-gsc: Use 576p instead 720p as a threshold for colorspaces

2017-02-14 Thread Fabien DESSENNE
Hi Thibault On 13/02/17 20:08, Thibault Saunier wrote: > From: Javier Martinez Canillas > > The media documentation says that the V4L2_COLORSPACE_SMPTE170M colorspace > should be used for SDTV and V4L2_COLORSPACE_REC709 for HDTV. But drivers > don't agree on the display

Re: [PATCH] bdisp: Clean up file handle in open() error path.

2016-12-02 Thread Fabien DESSENNE
ndr...@samsung.com> Reviewed-by: Fabien Dessenne <fabien.desse...@st.com> > --- > drivers/media/platform/sti/bdisp/bdisp-v4l2.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/sti/bdisp/bdisp-v4l2.c > b/drivers/media/pl

Re: [PATCH] Platform: Sti: Bdisp: Clean up file handle in open() error path.

2016-12-01 Thread Fabien DESSENNE
Hi Shailendra Thank you for the patch. Could you please update the subject line (try to have it as short as possible): - there is no need for the 'platform' keyword. This remark applies to your other patches. - write all keywords in lower case (Bdisp -> bdisp). This remark applies also to

Re: YUV444 contradicting wikipedia

2016-11-02 Thread Fabien DESSENNE
Hi "4:x:y" refers to chroma subsampling, details here: https://en.wikipedia.org/wiki/Chroma_subsampling. With "YUV 4:4:4" each pixel has 1 Luma information and 1 Chroma information: 1 Y + 1 Cb + 1 Cr = 24 bits per pixel. In top of that, each of the three components (Y, Cb, Cr) can be stored

Re: [PATCH -next] [media] bdisp: fix error return code in bdisp_probe()

2016-09-22 Thread Fabien DESSENNE
gned-off-by: Wei Yongjun <weiyongj...@huawei.com> Reviewed-by: Fabien Dessenne <fabien.desse...@st.com> > --- > drivers/media/platform/sti/bdisp/bdisp-v4l2.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/media/platform/sti/bdisp/bdisp-v4l2.c > b

Re: [PATCH] [media] platform: constify vb2_ops structures

2016-09-09 Thread Fabien DESSENNE
atform/soc_camera/atmel-isi.c|2 +- > drivers/media/platform/soc_camera/rcar_vin.c |2 +- > drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c |2 +- For this driver: > drivers/media/platform/sti/bdisp/bdisp-v4l2.c|2

Re: [PATCHv5 08/13] media/platform: convert drivers to use the new vb2_queue dev field

2016-06-27 Thread Fabien DESSENNE
On 06/27/2016 03:31 PM, Hans Verkuil wrote: > From: Hans Verkuil <hans.verk...@cisco.com> > > Stop using alloc_ctx and just fill in the device pointer. > > Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> > Cc: Fabien Dessenne <fabien.desse...@st.com

Re: [PATCH 19/19] bdisp: move the V/H filter spec to bdisp-hw.c

2016-06-27 Thread Fabien DESSENNE
be_unused bdisp_filter_h_spec bdisp_h_spec[] = { > ^ > > Signed-off-by: Mauro Carvalho Chehab <mche...@s-opensource.com> Acked-by: Fabien Dessenne <fabien.desse...@st.com> > --- > drivers/media/platform/sti/bdisp/bdisp-fil

Re: v4l2 kernel module debugging methods

2015-12-11 Thread Fabien DESSENNE
Hi Ran, On 12/10/2015 10:46 PM, Ran Shalit wrote: > On Sun, Dec 6, 2015 at 2:23 AM, Nicolas Dufresne > wrote: >> Le dimanche 06 décembre 2015 à 00:00 +0200, Ran Shalit a écrit : >>> Hello, >>> >>> I would like to ask a general question regarding methods to debug a

[PATCH] [media] bdisp: fix debug info memory access

2015-07-13 Thread Fabien Dessenne
bdisp_dev-dbg.copy_node shall be a copy of (and not point to) bdisp_ctx-node, since this resource is freed upon driver release. Signed-off-by: Fabien Dessenne fabien.desse...@st.com --- drivers/media/platform/sti/bdisp/bdisp-hw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 1/2] [media] bdisp: composing support

2015-07-10 Thread Fabien Dessenne
Support the composing (at VIDEO_CAPTURE) with the _selection API. v4l2-compliance successfully run (test Composing: OK) Signed-off-by: Fabien Dessenne fabien.desse...@st.com --- drivers/media/platform/sti/bdisp/bdisp-hw.c | 8 +-- drivers/media/platform/sti/bdisp/bdisp-v4l2.c | 76

[PATCH 2/2] [media] bdisp: add debug info for RGB24 format

2015-07-10 Thread Fabien Dessenne
Add this missing debug information Signed-off-by: Fabien Dessenne fabien.desse...@st.com --- drivers/media/platform/sti/bdisp/bdisp-debug.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/media/platform/sti/bdisp/bdisp-debug.c b/drivers/media/platform/sti/bdisp/bdisp-debug.c

RE: [PATCH 2/2] [media] bdisp-debug: don't try to divide by s64

2015-06-11 Thread Fabien DESSENNE
Carvalho Chehab; Fabien DESSENNE Subject: [PATCH 2/2] [media] bdisp-debug: don't try to divide by s64 There are several warnings there, on some architectures, related to dividing a s32 by a s64 value: drivers/media/platform/sti/bdisp/bdisp-debug.c:594: warning: comparison of distinct pointer

RE: [PATCH 2/2] [media] bdisp-debug: don't try to divide by s64

2015-06-11 Thread Fabien DESSENNE
Acked-by: Fabien Dessenne fabien.desse...@st.com -Original Message- From: Mauro Carvalho Chehab [mailto:mche...@osg.samsung.com] Sent: jeudi 11 juin 2015 12:37 To: Fabien DESSENNE Cc: Linux Media Mailing List; Mauro Carvalho Chehab Subject: Re: [PATCH 2/2] [media] bdisp-debug: don't

RE: [PATCH] [media] bdisp: remove unused var

2015-06-11 Thread Fabien DESSENNE
Acked-by: Fabien Dessenne fabien.desse...@st.com -Original Message- From: linux-media-ow...@vger.kernel.org [mailto:linux-media- ow...@vger.kernel.org] On Behalf Of Mauro Carvalho Chehab Sent: mercredi 10 juin 2015 17:35 To: Linux Media Mailing List Cc: Mauro Carvalho Chehab; Mauro

[PATCH] [media] bdisp: remove needless check

2015-06-10 Thread Fabien Dessenne
, width and height are unsigned. Signed-off-by: Fabien Dessenne fabien.desse...@st.com --- drivers/media/platform/sti/bdisp/bdisp-v4l2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/platform/sti/bdisp/bdisp-v4l2.c b/drivers/media/platform/sti/bdisp/bdisp-v4l2.c

RE: [PATCH v3 2/3] [media] bdisp: 2D blitter driver using v4l2 mem2mem framework

2015-06-08 Thread Fabien DESSENNE
From: Mauro Carvalho Chehab [mailto:mche...@osg.samsung.com] Sent: samedi 6 juin 2015 12:43 To: Fabien DESSENNE Cc: linux-media@vger.kernel.org; Benjamin Gaignard; Hugues FRUCHET Subject: Re: [PATCH v3 2/3] [media] bdisp: 2D blitter driver using v4l2 mem2mem framework Em Tue, 12 May 2015

RE: [PATCH] bdisp: update MAINTAINERS

2015-06-08 Thread Fabien DESSENNE
OK, I will take care of this new driver. -Original Message- From: Hans Verkuil [mailto:hverk...@xs4all.nl] Sent: lundi 8 juin 2015 14:24 To: Linux Media Mailing List; Fabien DESSENNE Subject: [PATCH] bdisp: update MAINTAINERS Add entry for the bdisp driver to the MAINTAINERS file

RE: [PATCH] bdisp: update MAINTAINERS

2015-06-08 Thread Fabien DESSENNE
OK, Acked-by: Fabien Dessenne fabien.desse...@st.com -Original Message- From: Hans Verkuil [mailto:hverk...@xs4all.nl] Sent: lundi 8 juin 2015 16:33 To: Fabien DESSENNE; Linux Media Mailing List Subject: Re: [PATCH] bdisp: update MAINTAINERS On 06/08/2015 03:36 PM, Fabien

[PATCH v3 1/3] [media] bdisp: add DT bindings documentation

2015-05-12 Thread Fabien Dessenne
This adds DT binding documentation for STMicroelectronics bdisp driver. Signed-off-by: Fabien Dessenne fabien.desse...@st.com --- .../devicetree/bindings/media/st,stih4xx.txt | 32 ++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v3 3/3] [media] bdisp: add debug file system

2015-05-12 Thread Fabien Dessenne
Creates 5 debugfs entries to dump the last HW request, the last HW node (=command), the HW registers and the recent HW performance (time fps) Signed-off-by: Fabien Dessenne fabien.desse...@st.com --- drivers/media/platform/sti/bdisp/Makefile | 2 +- drivers/media/platform/sti/bdisp/bdisp

[PATCH v3 0/3] Add media bdisp driver for stihxxx platforms

2015-05-12 Thread Fabien Dessenne
Test input 0: Stream using all formats: Not supported for M2M devices Total: 42, Succeeded: 42, Failed: 0, Warnings: 12 root@st:~# Fabien Dessenne (3): [media] bdisp: add DT bindings documentation [media] bdisp: 2D blitter driver using v4l2 mem2mem framework [media] bdisp: add

[PATCH v3 2/3] [media] bdisp: 2D blitter driver using v4l2 mem2mem framework

2015-05-12 Thread Fabien Dessenne
-off-by: Fabien Dessenne fabien.desse...@st.com --- drivers/media/platform/Kconfig | 10 + drivers/media/platform/Makefile |2 + drivers/media/platform/sti/bdisp/Kconfig|9 + drivers/media/platform/sti/bdisp/Makefile |3 + drivers/media

[PATCH] v4l2-compliance: test SELECTION only for the supported buf_type

2015-05-12 Thread Fabien Dessenne
testBasicSelection defines which of capture and output supports crop (resp. compose). testBasicCrop (resp. testBasicCompose) shall be run only for the supported buf_type. Change-Id: I0a81e826eb7bc8a318a9d833426d802fedce46c9 Signed-off-by: Fabien Dessenne fabien.desse...@st.com --- utils/v4l2

[PATCH v2 0/3] Add media bdisp driver for stihxxx platforms

2015-05-04 Thread Fabien Dessenne
that are implemented in bdisp-hw.c. The additional bdisp-debug.c file manages some debugfs entries. Fabien Dessenne (3): [media] bdisp: add DT bindings documentation [media] bdisp: 2D blitter driver using v4l2 mem2mem framework [media] bdisp: add debug file system .../devicetree/bindings/media/st

[PATCH v2 1/3] [media] bdisp: add DT bindings documentation

2015-05-04 Thread Fabien Dessenne
This adds DT binding documentation for STMicroelectronics bdisp driver. Signed-off-by: Fabien Dessenne fabien.desse...@st.com --- .../devicetree/bindings/media/st,stih4xx.txt | 32 ++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v2 3/3] [media] bdisp: add debug file system

2015-05-04 Thread Fabien Dessenne
Creates 5 debugfs entries to dump the last HW request, the last HW node (=command), the HW registers and the recent HW performance (time fps) Signed-off-by: Fabien Dessenne fabien.desse...@st.com --- drivers/media/platform/sti/bdisp/Makefile | 2 +- drivers/media/platform/sti/bdisp/bdisp

[PATCH v2 2/3] [media] bdisp: 2D blitter driver using v4l2 mem2mem framework

2015-05-04 Thread Fabien Dessenne
-off-by: Fabien Dessenne fabien.desse...@st.com --- drivers/media/platform/Kconfig | 10 + drivers/media/platform/Makefile |2 + drivers/media/platform/sti/bdisp/Kconfig|9 + drivers/media/platform/sti/bdisp/Makefile |3 + drivers/media

RE: [PATCH 0/3] Add media bdisp driver for stihxxx platforms

2015-04-28 Thread Fabien DESSENNE
Fabien -Original Message- From: Hans Verkuil [mailto:hverk...@xs4all.nl] Sent: lundi 27 avril 2015 18:26 To: Fabien DESSENNE; linux-media@vger.kernel.org Cc: Benjamin Gaignard Subject: Re: [PATCH 0/3] Add media bdisp driver for stihxxx platforms Hi Fabien, Thank you for this driver

[PATCH 1/3] [media] bdisp: add DT bindings documentation

2015-04-27 Thread Fabien Dessenne
This adds DT binding documentation for STMicroelectronics bdisp driver. Signed-off-by: Fabien Dessenne fabien.desse...@st.com --- .../devicetree/bindings/media/st,stih4xx.txt | 32 ++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH 3/3] [media] bdisp: add debug file system

2015-04-27 Thread Fabien Dessenne
Creates 5 debugfs entries to dump the last HW request, the last HW node (=command), the HW registers and the recent HW performance (time fps) Signed-off-by: Fabien Dessenne fabien.desse...@st.com --- drivers/media/platform/bdisp/Makefile | 2 +- drivers/media/platform/bdisp/bdisp-debug.c

[PATCH 2/3] [media] bdisp: 2D blitter driver using v4l2 mem2mem framework

2015-04-27 Thread Fabien Dessenne
-off-by: Fabien Dessenne fabien.desse...@st.com --- drivers/media/platform/Kconfig | 10 + drivers/media/platform/Makefile |2 + drivers/media/platform/bdisp/Kconfig|9 + drivers/media/platform/bdisp/Makefile |3 + drivers/media/platform/bdisp

[PATCH 0/3] Add media bdisp driver for stihxxx platforms

2015-04-27 Thread Fabien Dessenne
that are implemented in bdisp-hw.c. The additional bdisp-debug.c file manages some debugfs entries. Fabien Dessenne (3): [media] bdisp: add DT bindings documentation [media] bdisp: 2D blitter driver using v4l2 mem2mem framework [media] bdisp: add debug file system .../devicetree/bindings/media/st