[PATCH] drm/tilcdc: Fix hardcoded fail-return value in tilcdc_crtc_create()

2017-01-31 Thread Jyri Sarha
Fix badly hardcoded return return value from under fail-label. All goto branches to the label set the "ret"-variable accordingly. Signed-off-by: Jyri Sarha <jsa...@ti.com> --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

Re: [PATCH] drm/tilcdc: Fix hardcoded fail-return value in tilcdc_crtc_create()

2017-01-31 Thread Jyri Sarha
On 01/31/17 17:46, Gabriel Krisman Bertazi wrote: > Jyri Sarha <jsa...@ti.com> writes: > >> Fix badly hardcoded return return value from under fail-label. All >> goto branches to the label set the "ret"-variable accordingly. >> >> Signed-off-by: Jyr

[PATCH v2] drm/tilcdc: Fix hardcoded fail-return value in tilcdc_crtc_create()

2017-01-31 Thread Jyri Sarha
Fix badly hardcoded return return value under fail-label. All goto branches to the label set the "ret"-variable accordingly. Signed-off-by: Jyri Sarha <jsa...@ti.com> --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

Re: [PATCH v3 21/23] drm: tilcdc: use vblank hooks in struct drm_crtc_funcs

2017-02-07 Thread Jyri Sarha
d instead. > > While at it, the 'return' of .disable_vblank is dropped to fix the > following checkpatch warning. > > WARNING: void function return statements are not generally useful > > Signed-off-by: Shawn Guo <shawn@linaro.org> > Cc: Jyri Sarha <jsa...@ti.com>

[PATCH] drm/omapdrm: dispc: Refuse x-decimation above 4 for all but 8-bit formats

2017-02-07 Thread Jyri Sarha
is not able to fetch the data in burst mode. When this happens it is hard to tell if there enough bandwidth. Despite what theory says this appears to be true also for 16-bit color formats. Signed-off-by: Jyri Sarha <jsa...@ti.com> --- drivers/gpu/drm/omapdrm/dss/dispc.c | 19 +++

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Jyri Sarha
Thanks Rob, for nice cleanup, but ... On 02/04/17 05:36, Rob Herring wrote: > diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c > b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c > index 6dfdb145f3bb..e74cc236a79b 100644 > --- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c > +++

[PATCH v2] drm/omapdrm: dispc: Refuse x-decimation above 4 for all but 8-bit formats

2017-02-08 Thread Jyri Sarha
to fetch the data in burst mode. When this happens it is hard to tell if there enough bandwidth. Despite what theory says this appears to be true also for 16-bit color formats. Signed-off-by: Jyri Sarha <jsa...@ti.com> --- Chnages since first version: - "color_mode_to_bpp(color_mode) > 8&q

Re: [PATCH] drm/omapdrm: dispc: Refuse x-decimation above 4 for all but 8-bit formats

2017-02-08 Thread Jyri Sarha
On 02/08/17 13:25, Laurent Pinchart wrote: > Hi Jyri, > > Thank you for the patch. > > On Tuesday 07 Feb 2017 16:41:20 Jyri Sarha wrote: >> Let's disable all scaling that requires horizontal decimation with >> higher factor than 4, until we have better estimates of wh

Re: [PATCH 2/2] drm/omapdrm: Move commit_modeset_enables() before commit_planes()

2017-01-30 Thread Jyri Sarha
On 01/28/17 18:17, Laurent Pinchart wrote: > Hi Jyri, > > Thank you for the patch. > > On Friday 27 Jan 2017 12:04:55 Jyri Sarha wrote: >> Move drm_atomic_helper_commit_modeset_enables() call to before >> drm_atomic_helper_commit_planes() call and have a >> omap_

Re: [PATCH 2/2] drm/omapdrm: Move commit_modeset_enables() before commit_planes()

2017-01-30 Thread Jyri Sarha
On 01/30/17 13:15, Laurent Pinchart wrote: >>> rebase (and retest) this patch on top of "[PATCH 0/5] omapdrm: fences and >>> zpos" ? >> Thanks, I'll do that. > If you intend on merging this patch as a v4.10 fix then there's no need to > rebase. If it targets v4.11, the above-mentioned series will

Re: [PATCH 15/19] drm/tilcdc: Remove tilcdc_debugfs_cleanup()

2017-01-27 Thread Jyri Sarha
ves all debugfs files using > debugfs_remove_recursive(), so there should be no need for such a > callback in the future. > > Cc: jsa...@ti.com > Cc: tomi.valkei...@ti.com > Signed-off-by: Noralf Trønnes <nor...@tronnes.org>

[PATCH 2/2] drm/omapdrm: Move commit_modeset_enables() before commit_planes()

2017-01-27 Thread Jyri Sarha
uncommitted drm state information. information. Signed-off-by: Jyri Sarha <jsa...@ti.com> --- drivers/gpu/drm/omapdrm/omap_drv.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c index 5

[PATCH 1/2] Revert "drm: omapdrm: Let the DRM core skip plane commit on inactive CRTCs"

2017-01-27 Thread Jyri Sarha
This reverts commit dadf4659d0608e034b6633f30300c2eff2dafb4c. If planes are not disabled when the they are not on any crtc anymore they will remain active and may show as "ghosts" when the crtc they were last on is active again. Signed-off-by: Jyri Sarha <jsa...@ti.com> ---

[PATCH 0/2] drm/omapdrm: Couple of plane related fixes

2017-01-27 Thread Jyri Sarha
I hit these two problems while tracking scaling related problems with omapdrm on DSS5 HW. Jyri Sarha (2): Revert "drm: omapdrm: Let the DRM core skip plane commit on inactive CRTCs" drm/omapdrm: Move commit_modeset_enables() before commit_planes() drivers/gpu/drm/omapdrm/o

Re: [PATCH v2 4/6] drm: convert drivers to use of_graph_get_remote_node

2017-02-20 Thread Jyri Sarha
rm.com> > Tested-by: Eric Anholt <e...@anholt.net> For tilcdc part: Tested-by: Jyri Sarha <jsa...@ti.com> Cheers, Jyri ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH v2] drm: tilcdc: implement palette loading for rev1

2016-10-24 Thread Jyri Sarha
On 10/24/16 11:43, Bartosz Golaszewski wrote: > Revision 1 of the IP doesn't work if we don't load the palette (even > if it's not used, which is the case for the RGB565 format). > > Add a function called from tilcdc_crtc_enable() which performs all > required actions if we're dealing with a rev1

[PATCH] drm: convert DT component matching to component_match_add_release()

2016-10-24 Thread Jyri Sarha
On 10/19/16 13:28, Russell King wrote: > Convert DT component matching to use component_match_add_release(). > > Signed-off-by: Russell King <rmk+kernel at armlinux.org.uk> Acked-by: Jyri Sarha Reviewed-by: Jyri Sarha However, the patch description is a bit brief. It took me t

[PATCH v2 0/3] drm/tilcdc: Cleanup tilcdc init sequence

2016-10-24 Thread Jyri Sarha
st patches should be merged before the third can be merged. So the merge order should be agreed with tda998x before going forward. The last patch is just a cleanup, but depends on earlier ones. Best regards, Jyri [1] https://patchwork.kernel.org/patch/9322771/ Jyri Sarha (3): drm/tilcdc: Remov

[PATCH v2 1/3] drm/tilcdc: Remove obsolete drm_connector_register() calls

2016-10-24 Thread Jyri Sarha
Remove obsolete drm_connector_register() calls from tilcdc_panel.c and tilcdc_tfp410.c. All connectors are registered when drm_dev_register() is called. Signed-off-by: Jyri Sarha Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/tilcdc/tilcdc_panel.c | 2 -- drivers/gpu/drm/tilcdc

[PATCH v2 2/3] drm/tilcdc: Stop using struct drm_driver load() callback

2016-10-24 Thread Jyri Sarha
either in component unbind callback or in platform driver demove callback. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 124 1 file changed, 70 insertions(+), 54 deletions(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers

[PATCH v2 3/3] drm/tilcdc: Use unload to handle initialization failures

2016-10-24 Thread Jyri Sarha
Use unload to handle initialization failures instead of complex goto label mess. To do this the initialization sequence needed slight reordering and some unload functions needed to become conditional. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 10 ++-- drivers/gpu/drm

[PATCH v5 1/2] drm: tilcdc: implement palette loading for rev1

2016-10-31 Thread Jyri Sarha
On 10/31/16 16:19, Bartosz Golaszewski wrote: > Revision 1 of the IP doesn't work if we don't load the palette (even > if it's not used, which is the case for the RGB565 format). > > Add a function called from tilcdc_crtc_enable() which performs all > required actions if we're dealing with a rev1

[PATCH 1/2] drm: tilcdc: Add revision handling for FB_CEILING

2016-10-31 Thread Jyri Sarha
On 10/28/16 14:52, Daniel Schultz wrote: > The commit d8ff0c63fbcb ("drm/tilcdc: Adjust the FB_CEILING address") > added an adjustment of the FB_CEILING address. This is done by decrementing > the address by one. > > On the AM335x (rev 0x4F201000) the framebuffer is rotated left over the >

[PATCH 2/2] drm: tilcdc: Correct misspelling in error message

2016-10-31 Thread Jyri Sarha
On 10/28/16 14:52, Daniel Schultz wrote: > This error message will be printed when a FIFO underflow irq has > triggered. Since this happens sometimes and the error message will be > displayed on the console, it should have a correct spelling. > > Signed-off-by: Daniel Schultz Picked up for my

[PATCH 2/2] drm: tilcdc: Correct misspelling in error message

2016-10-31 Thread Jyri Sarha
On 10/31/16 19:33, Jyri Sarha wrote: > On 10/28/16 14:52, Daniel Schultz wrote: >> This error message will be printed when a FIFO underflow irq has >> triggered. Since this happens sometimes and the error message will be >> displayed on the console, it should have a correct s

[PATCH v3 2/8] drm/tilcdc: Write DMA base and ceiling address with single instruction

2016-09-01 Thread Jyri Sarha
On 09/01/16 10:13, Tomi Valkeinen wrote: > On 31/08/16 16:14, Jyri Sarha wrote: >> Write DMA base and ceiling address with a single instruction, if >> available. This should make it more unlikely that LCDC would fetch the >> DMA addresses in the middle of an update. H

[PATCH v4 0/8] drm/tilcdc: Address LCDC rev 2 color errata + other fixes

2016-09-01 Thread Jyri Sarha
ors output to be in BGR format. With straight wiring the 16 color is RGB and 24 bit is BGR. These patches try to deal with the issue in reasonable manner. For more details see section 3.1.1 in AM335x Silicon Errata: http://www.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=sprz360 Jy

[PATCH v4 1/8] drm/tilcdc: Remove drm_helper_disable_unused_functions() call

2016-09-01 Thread Jyri Sarha
drm_helper_disable_unused_functions() should not be called by atomic drivers. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index 3404d24..e45c268

[PATCH v4 2/8] drm/tilcdc: Write DMA base and ceiling address with single instruction

2016-09-01 Thread Jyri Sarha
ior in LCDC. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 10 -- drivers/gpu/drm/tilcdc/tilcdc_regs.h | 14 ++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c in

[PATCH v4 3/8] drm/tilcdc: Add blue-and-red-crossed devicetree property

2016-09-01 Thread Jyri Sarha
65, RGB888 and XRGB formats. However, depending on wiring, the red and blue colors are swapped in either 16 or 24-bit color modes. For more details see section 3.1.1 in AM335x Silicon Errata: http://www.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=sprz360 Signed-off-by:

[PATCH v4 4/8] drm/tilcdc: Choose console BPP that supports RGB

2016-09-01 Thread Jyri Sarha
but RGB formats, so we must choose such bytes per pixel value that supports RGB. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 14 +- drivers/gpu/drm/tilcdc/tilcdc_drv.h | 1 - drivers/gpu/drm/tilcdc/tilcdc_external.c | 7 +++ drivers/gpu/drm/tilcdc

[PATCH v4 5/8] ARM: dts: am335x-boneblack: Add blue-and-red-wiring -property to LCDC node

2016-09-01 Thread Jyri Sarha
supported color formats from 16 bit RGB and 24 bit BGR to 16 bit BGR and 24 bit RGB. Signed-off-by: Jyri Sarha --- arch/arm/boot/dts/am335x-boneblack.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/am335x-boneblack.dts b/arch/arm/boot/dts/am335x-boneblack.dts

[PATCH v4 6/8] ARM: dts: am335x-evm: Add blue-and-red-wiring -property to lcdc node

2016-09-01 Thread Jyri Sarha
. Signed-off-by: Jyri Sarha --- arch/arm/boot/dts/am335x-evm.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts index 5d28712..c3cbce0 100644 --- a/arch/arm/boot/dts/am335x-evm.dts +++ b/arch/arm/boot/dts/am335x-evm.dts

[PATCH v4 7/8] ARM: dts: am335x-evmsk: Whitespace cleanup of lcdc related nodes

2016-09-01 Thread Jyri Sarha
Whitespace cleanup of lcdc related nodes. Do all indentation and alignment with tabs instead of spaces. Signed-off-by: Jyri Sarha --- arch/arm/boot/dts/am335x-evmsk.dts | 40 +++--- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH v4 8/8] ARM: dts: am335x-evmsk: Add blue-and-red-wiring -property to lcdc node

2016-09-01 Thread Jyri Sarha
. Signed-off-by: Jyri Sarha --- arch/arm/boot/dts/am335x-evmsk.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/am335x-evmsk.dts b/arch/arm/boot/dts/am335x-evmsk.dts index 23b94e7..034e117 100644 --- a/arch/arm/boot/dts/am335x-evmsk.dts +++ b/arch/arm/boot/dts/am335x

[PATCH RFC] drm: Fix property handling for mode object without object type

2016-09-01 Thread Jyri Sarha
Fix property handling for mode object without mode object type. drm_property_change_valid_get() crashes if atomic ioctl for mode object does not specify the mode object type. This patch makes drm_property_change_valid_get() to tolerate such requests. Signed-off-by: Jyri Sarha --- This used

[GIT PULL] tilcdc fixes for 4.9

2016-09-02 Thread Jyri Sarha
s for v4.9 ---- Jyri Sarha (4): drm/tilcdc: Remove drm_helper_disable_unused_functions() call drm/tilcdc: Write DMA base and ceiling address with single instruction drm/tilcdc: Add blue-and-red-crossed devicetree property drm/tilc

[PATCH 0/3] drm/tilcdc: Some fixes for LCDC rev1

2016-09-02 Thread Jyri Sarha
On 09/01/16 01:11, Kevin Hilman wrote: > Hi Jyri, > > Jyri Sarha writes: > >> On 08/23/16 15:56, Karl Beldan wrote: >>> Hi, >>> >>> I found some missing bits for rev1 of the LCDC and here are some of the >>> changes I am using to use the DR

[PATCH 0/3] drm/tilcdc: Fix cpufreq transition related race + cleanup

2016-09-06 Thread Jyri Sarha
Jyri Sarha (3): drm/tilcdc: Take mode config lock while updating the crtc clock rate drm/tilcdc: Add tilcdc_crtc_set_clk() and cleanup cpufreq_transition() drm/tilcdc: Add mutex to protect crtc enable and disable routines drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 93

[PATCH 1/3] drm/tilcdc: Take mode config lock while updating the crtc clock rate

2016-09-06 Thread Jyri Sarha
Take mode config lock while updating the crtc clock rate. To avoid a race in tilcdc_crtc_update_clk(), we do not want the mode to change while we update crtc clock. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 5 + drivers/gpu/drm/tilcdc/tilcdc_drv.h | 2 ++ 2 files

[PATCH 2/3] drm/tilcdc: Add tilcdc_crtc_set_clk() and cleanup cpufreq_transition()

2016-09-06 Thread Jyri Sarha
Add tilcdc_crtc_set_clk() and cleanup cpufreq_transition(). The new tilcdc_crtc_set_clk() is used in tilcdc_crtc_mode_set_nofb() instead tilcdc_crtc_update_clk(). New tilcdc_crtc_update_clk() is implemented using tilcdc_crtc_set_clk() for cpufreq_transition() alone. Signed-off-by: Jyri Sarha

[PATCH 3/3] drm/tilcdc: Add mutex to protect crtc enable and disable routines

2016-09-06 Thread Jyri Sarha
Add mutex to protect crtc enable and disable routines. The tilcdc_crtc_disable() function waits for frame done interrupt, the internal data will get out of sync, should another enable arrive while waiting for the interrupt. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 15

[PATCH 1/3] drm/tilcdc: Take mode config lock while updating the crtc clock rate

2016-09-06 Thread Jyri Sarha
On 09/06/16 12:07, Tomi Valkeinen wrote: > > > On 06/09/16 11:19, Jyri Sarha wrote: >> Take mode config lock while updating the crtc clock rate. To avoid a >> race in tilcdc_crtc_update_clk(), we do not want the mode to change >> while we update crtc clock. >

[PATCH 3/3] drm/tilcdc: Add mutex to protect crtc enable and disable routines

2016-09-06 Thread Jyri Sarha
On 09/06/16 12:30, Tomi Valkeinen wrote: > On 06/09/16 11:19, Jyri Sarha wrote: >> Add mutex to protect crtc enable and disable routines. The >> tilcdc_crtc_disable() function waits for frame done interrupt, the >> internal data will get out of sync, should another enable ar

[PATCH v2 0/5] drm/tilcdc: Fix cpufreq transition related race + cleanup

2016-09-07 Thread Jyri Sarha
The second patch goes a step forward and cleans up the clock setting code a bit. BR, Jyri Jyri Sarha (5): drm/tilcdc: Take crtc modeset lock while updating the crtc clock rate drm/tilcdc: Clean up LCDC functional clock rate setting code drm/tilcdc: Flush flip-work workqueue bef

[PATCH v2 1/5] drm/tilcdc: Take crtc modeset lock while updating the crtc clock rate

2016-09-07 Thread Jyri Sarha
Take crtc modeset lock while updating the crtc clock rate. To avoid a race in tilcdc_crtc_update_clk(), we do not want crtc mode to change while we update crtc clock. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers

[PATCH v2 2/5] drm/tilcdc: Clean up LCDC functional clock rate setting code

2016-09-07 Thread Jyri Sarha
and it needs to take the necessary locks and turn off the CRTC while keeping the LCDC powered. The reimplemented tilcdc_crtc_update_clk() is for that purpose and it uses the new tilcdc_crtc_set_clk() to actually set the clock. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 77

[PATCH v2 3/5] drm/tilcdc: Flush flip-work workqueue before drm_flip_work_cleanup()

2016-09-07 Thread Jyri Sarha
-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c index f4e6a5b..6974624 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c

[PATCH v2 4/5] drm/tilcdc: Remove unnecessary tilcdc_crtc_disable() from tilcdc_unload()

2016-09-07 Thread Jyri Sarha
the flip-work queue. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index 52ff3e1..1981ae9 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b

[PATCH v2 5/5] drm/tilcdc: WARN if CRTC is touched without CRTC lock

2016-09-07 Thread Jyri Sarha
not take the lock. If this ever changes the CRTC locking has to be removed from tilcdc_crtc_destroy(). Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc

[PATCH v3 0/6] drm/tilcdc: Fix cpufreq transition related race + cleanu

2016-09-07 Thread Jyri Sarha
c: WARN if CRTC is touched without CRTC lock" There was a race between mode_set_nofb() and cpufreq_transition() calling tilcdc_crtc_update_clk() without locking. The first patch fixes the race in with a minimal change by taking the drm CRTC lock for the duration of the clock update. The second patch goes a

[PATCH v3 1/6] drm/tilcdc: Take crtc modeset lock while updating the crtc clock rate

2016-09-07 Thread Jyri Sarha
Take crtc modeset lock while updating the crtc clock rate. To avoid a race in tilcdc_crtc_update_clk(), we do not want crtc mode to change while we update crtc clock. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers

[PATCH v3 2/6] drm/tilcdc: Clean up LCDC functional clock rate setting code

2016-09-07 Thread Jyri Sarha
and it needs to take the necessary locks and turn off the CRTC while keeping the LCDC powered. The reimplemented tilcdc_crtc_update_clk() is for that purpose and it uses the new tilcdc_crtc_set_clk() to actually set the clock. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 77

[PATCH v3 3/6] drm/tilcdc: Flush flip-work workqueue before drm_flip_work_cleanup()

2016-09-07 Thread Jyri Sarha
-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c index f4e6a5b..6974624 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c

[PATCH v3 4/6] drm/tilcdc: Remove unnecessary tilcdc_crtc_disable() from tilcdc_unload()

2016-09-07 Thread Jyri Sarha
the flip-work queue. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index 52ff3e1..1981ae9 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b

[PATCH v3 5/6] drm/tilcdc: Take CRTC lock when calling tilcdc_crtc_disable()

2016-09-07 Thread Jyri Sarha
. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c index 6974624..2763f9f 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c +++ b/drivers/gpu/drm

[PATCH v3 6/6] drm/tilcdc: WARN if CRTC is touched without CRTC lock

2016-09-07 Thread Jyri Sarha
WARN if CRTC is touched without CRTC lock. The crtc functions should not be called simultaneously from multiple threads. Having the DRM CRTC lock should take care of that. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 8 1 file changed, 8 insertions(+) diff

[GIT PULL] tilcdc fixes 2 for 4.9

2016-09-07 Thread Jyri Sarha
s for v4.9 ---- Jyri Sarha (10): drm/tilcdc: Remove drm_helper_disable_unused_functions() call drm/tilcdc: Write DMA base and ceiling address with single instruction drm/tilcdc: Add blue-and-red-crossed devicetree property drm/tilcdc: Choose console BPP that supports RGB

[PATCH] drm/tilcdc: add missing header dependencies

2016-09-08 Thread Jyri Sarha
On 09/08/16 14:08, Baoyou Xie wrote: > We get 4 warnings when building kernel with W=1: > drivers/gpu/drm/tilcdc/tilcdc_tfp410.c:393:12: warning: no previous prototype > for 'tilcdc_tfp410_init' [-Wmissing-prototypes] > drivers/gpu/drm/tilcdc/tilcdc_tfp410.c:398:13: warning: no previous prototype

[PATCH] drm/tilcdc: mark symbols static where possible

2016-09-08 Thread Jyri Sarha
On 09/08/16 14:29, Baoyou Xie wrote: > We get 3 warnings when building kernel with W=1: > drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c:142:29: warning: no previous > prototype for 'tilcdc_get_overlay' [-Wmissing-prototypes] > drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c:198:13: warning: no

[PATCH -next] drm/tilcdc: Fix non static symbol warning

2016-09-12 Thread Jyri Sarha
On 09/10/16 15:32, Wei Yongjun wrote: > From: Wei Yongjun > > Fixes the following sparse warning: > > drivers/gpu/drm/tilcdc/tilcdc_drv.c:64:5: warning: > symbol 'tilcdc_atomic_check' was not declared. Should it be static? > > Signed-off-by: Wei Yongjun I'll pick this up. Thanks, Jyri >

[PATCH] drm/tilcdc: Remove "default" from blue-and-red-wiring property binding

2016-09-15 Thread Jyri Sarha
Remove "default" keyword from blue-and-red-wiring devicetree property binding document. The code does not support and there is no intention to support it. Reported-by: Rob Herring Signed-off-by: Jyri Sarha --- I sent the pull request for the color errata changes before I received

[PATCH v4 5/8] ARM: dts: am335x-boneblack: Add blue-and-red-wiring -property to LCDC node

2016-09-15 Thread Jyri Sarha
-devel/2016-September/117283.html https://lists.freedesktop.org/archives/dri-devel/2016-September/117284.html On 09/01/16 12:09, Jyri Sarha wrote: > Add blue-and-red-wiring -property to LCDC node. Also adds comments on > how to get support 24 bit RGB mode. After this patch am335x-bon

[PATCH v4 07/14] drm: tilcdc: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp()

2016-09-15 Thread Jyri Sarha
M_FORMAT_ARGB support >> - Fixed coding style >> - Renamed min_pitch to pitch >> --- >> drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 15 +-- >> drivers/gpu/drm/tilcdc/tilcdc_plane.c | 7 --- >> 2 files changed, 9 insertions(+), 13 deletions(-) >

[PATCH 1/3] ARM: dts: am335x-evm: Add blue-and-red-wiring -property to lcdc node

2016-09-16 Thread Jyri Sarha
. Signed-off-by: Jyri Sarha Reviewed-by: Tomi Valkeinen --- arch/arm/boot/dts/am335x-evm.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts index 5d28712..c3cbce0 100644 --- a/arch/arm/boot/dts/am335x-evm.dts +++ b/arch/arm

[PATCH 2/3] ARM: dts: am335x-evmsk: Whitespace cleanup of lcdc related nodes

2016-09-16 Thread Jyri Sarha
Whitespace cleanup of lcdc related nodes. Do all indentation and alignment with tabs instead of spaces. Signed-off-by: Jyri Sarha Reviewed-by: Tomi Valkeinen --- arch/arm/boot/dts/am335x-evmsk.dts | 40 +++--- 1 file changed, 20 insertions(+), 20 deletions

[PATCH 3/3] ARM: dts: am335x-evmsk: Add blue-and-red-wiring -property to lcdc node

2016-09-16 Thread Jyri Sarha
. Signed-off-by: Jyri Sarha Reviewed-by: Tomi Valkeinen --- arch/arm/boot/dts/am335x-evmsk.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/am335x-evmsk.dts b/arch/arm/boot/dts/am335x-evmsk.dts index 23b94e7..034e117 100644 --- a/arch/arm/boot/dts/am335x-evmsk.dts

[PATCH 0/3] ARM: dts: am335x-* Add blue-and-red-wiring propery to lcdc nodes

2016-09-16 Thread Jyri Sarha
://www.spinics.net/lists/devicetree/msg141246.html Jyri Sarha (3): ARM: dts: am335x-evm: Add blue-and-red-wiring -property to lcdc node ARM: dts: am335x-evmsk: Whitespace cleanup of lcdc related nodes ARM: dts: am335x-evmsk: Add blue-and-red-wiring -property to lcdc node arch/arm/boot/dts/am335x-evm.dts

[PATCH 0/3] ARM: dts: am335x-* Add blue-and-red-wiring propery to lcdc nodes

2016-09-19 Thread Jyri Sarha
On 09/16/16 18:02, Tony Lindgren wrote: > * Jyri Sarha [160916 04:50]: >> > These patches complete the am335x LCDC color errata fix[1]. The >> > functional patches are now queued for v4.9. >> > >> > The patch for am335x-boneblack.dts is delayed unt

[PATCH 1/3] ARM: dts: am335x-evm: Add blue-and-red-wiring -property to lcdc node

2016-09-19 Thread Jyri Sarha
On 09/17/16 01:17, Nishanth Menon wrote: > On 09/16/2016 06:50 AM, Jyri Sarha wrote: > [..] >> +blue-and-red-wiring = "crossed"; > > Dumb question: Why is this a Linux generic property - does it make sense > to have "blue-and-red-wiring" as a Linux

[PATCH] drm/tilcdc: add missing header dependencies

2016-09-22 Thread Jyri Sarha
Thanks, But I have got this already: https://lists.freedesktop.org/archives/dri-devel/2016-September/117900.html I will send a pull request soon. Best regards, Jyri On 09/21/16 08:12, Baoyou Xie wrote: > We get 4 warnings when building kernel with W=1: >

[PATCH] drm/tilcdc: mark tilcdc_atomic_check() static

2016-09-22 Thread Jyri Sarha
Thank, But I already have this too: http://www.spinics.net/lists/kernel/msg2340400.html Best regards, Jyri On 09/21/16 08:14, Baoyou Xie wrote: > We get 1 warning when building kernel with W=1: > drivers/gpu/drm/tilcdc/tilcdc_drv.c:64:5: warning: no previous prototype for >

[PATCH 1/4] GPU-DRM-TILCDC: Use kmalloc_array() in kfree_table_init()

2016-09-22 Thread Jyri Sarha
On 09/22/16 11:31, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 22 Sep 2016 09:05:14 +0200 > > A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function "kmalloc_array". >

[PATCH 2/4] GPU-DRM-TILCDC: Return directly after a failed kfree_table_init() in tilcdc_convert_slave_node()

2016-09-22 Thread Jyri Sarha
On 09/22/16 11:32, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 22 Sep 2016 09:29:23 +0200 > > Return directly after a memory allocation failed in this function > at the beginning. > > Signed-off-by: Markus Elfring > --- > drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c | 2 +- >

[PATCH 3/4] GPU-DRM-TILCDC: Less function calls in tilcdc_convert_slave_node() after error detection

2016-09-22 Thread Jyri Sarha
On 09/22/16 11:33, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 22 Sep 2016 10:06:50 +0200 > > The of_node_put() function was called in some cases > by the tilcdc_convert_slave_node() function during error handling > even if the passed variable contained a null pointer. > > *

GPU-DRM-TILCDC: Less function calls in tilcdc_convert_slave_node() after error detection

2016-09-23 Thread Jyri Sarha
On 09/22/16 21:38, SF Markus Elfring wrote: >>> The of_node_put() function was called in some cases >>> by the tilcdc_convert_slave_node() function during error handling >>> even if the passed variable contained a null pointer. >>> >>> * Adjust jump targets according to the Linux coding style

[PATCH 14/14] drm/tilcdc: Fix sparse warnings

2016-09-23 Thread Jyri Sarha
c_panel.c:446:12: warning: symbol 'tilcdc_panel_init' was not > declared. Should it be static? > drm/tilcdc/tilcdc_panel.c:451:13: warning: symbol 'tilcdc_panel_fini' was not > declared. Should it be static? > drm/tilcdc/tilcdc_drv.c:78:5: warning: symbol 'tilcdc_atomic_check' was not > de

[PATCH] drm/tilcdc: Add atomic and crtc headers to crtc.c

2016-09-23 Thread Jyri Sarha
On 09/22/16 09:18, Daniel Vetter wrote: > On Wed, Sep 21, 2016 at 06:36:28AM -0700, Sean Paul wrote: >> Also reorder alphabetically and fix up drm_flip_work header. >> >> Signed-off-by: Sean Paul > > Reviewed-by: Daniel Vetter > Picked this up. Thanks! Best regards, Jyri >> --- >>

[GIT PULL] tilcdc 3rd set of changes for v4.9

2016-09-23 Thread Jyri Sarha
header dependencies drm/tilcdc: mark symbols static where possible Jyri Sarha (1): drm/tilcdc: Remove "default" from blue-and-red-wiring property binding Markus Elfring (1): drm/tilcdc: Return directly after a failed kfree_table_init() in tilcdc_convert_slave_node()

GPU-DRM-TILCDC: Less function calls in tilcdc_convert_slave_node() after error detection

2016-09-23 Thread Jyri Sarha
On 09/23/16 10:36, SF Markus Elfring wrote: >> I think the "if (node)" in the of_node_put() is there on purpose, > > Yes, of course. > > Does such an implementation detail correspond to a general software design > pattern? > Yes it does. For instance standard malloc()/free() implementation

[PATCH] drm/tilcdc: Add atomic and crtc headers to crtc.c

2016-09-23 Thread Jyri Sarha
On 09/23/16 09:23, Sean Paul wrote: > On Thu, Sep 22, 2016 at 2:04 PM, Jyri Sarha wrote: >> On 09/22/16 09:18, Daniel Vetter wrote: >>> On Wed, Sep 21, 2016 at 06:36:28AM -0700, Sean Paul wrote: >>>> Also reorder alphabetically and fix up drm_flip_work header. >

Please ignore this: [GIT PULL] tilcdc 3rd set of changes for v4.9

2016-09-23 Thread Jyri Sarha
Dave, Please ignore this pull request. I'll send another soon. The "drm/tilcdc: Add atomic and crtc headers to crtc.c" is already coming trough drm-misc. Best regards, Jyri On 09/23/16 00:37, Jyri Sarha wrote: > Hi Dave, > Please pull these collected fixes and cleanups from

[GIT PULL] tilcdc changes for 4.10

2016-11-30 Thread Jyri Sarha
drm/tilcdc: implement palette loading for rev1 drm/tilcdc: fix parsing of some DT properties Daniel Schultz (2): drm/tilcdc: Add revision handling for FB_CEILING drm/tilcdc: Correct misspelling in error message Jyri Sarha (17): drm/tilcdc: Remove obsolete

[PATCH v3] drm: tilcdc: add a da850-specific compatible string

2016-10-10 Thread Jyri Sarha
On 10/03/16 18:45, Bartosz Golaszewski wrote: > Due to some potential tweaks for the da850 LCDC (for example: the > required memory bandwith settings) we need a separate compatible > for the IP present on the da850 boards. > > Suggested-by: Sekhar Nori > Signed-off-by: Bartosz Golaszewski

[PATCH v3] drm: tilcdc: add a workaround for failed clk_set_rate()

2016-10-10 Thread Jyri Sarha
On 09/29/16 19:43, Bartosz Golaszewski wrote: > Some architectures don't use the common clock framework and don't > implement all the clk interfaces for every clock. This is the case > for da850-lcdk where clk_set_rate() only works for PLL0 and PLL1. > > Trying to set the clock rate for the LCDC

[PATCH 2/4] drm/i2c: tda998x: Remove obsolete drm_connector_register() call

2016-10-19 Thread Jyri Sarha
Remove obsolete drm_connector_register() call from tda998x_bind(). All connectors are registered when drm_dev_register() is called by the master drm_device driver. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/i2c/tda998x_drv.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers

[PATCH 0/4] drm/tilcdc: Cleanup tilcdc () init sequence

2016-10-19 Thread Jyri Sarha
patch is just a cleanup, but depends on earlier ones. Best regards, Jyri [1] https://patchwork.kernel.org/patch/9322771/ Jyri Sarha (4): drm/tilcdc: Remove obsolete drm_connector_register() calls drm/i2c: tda998x: Remove obsolete drm_connector_register() call drm/tilcdc: Stop using struct

[PATCH 3/4] drm/tilcdc: Stop using struct drm_driver load() callback

2016-10-19 Thread Jyri Sarha
Stop using struct drm_driver load() callback. The load() callback should not be used anymore. Instead the drm_device is allocated with drm_dev_alloc() and registered with drm_dev_register() only after the driver is completely initialized. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc

[PATCH 4/4] drm/tilcdc: Use unload to handle initialization failures

2016-10-19 Thread Jyri Sarha
Use unload to handle initialization failures instead of complex goto label mess. To do this the initialization sequence needed slight reordering and some unload functions needed to become conditional. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 91

[PATCH 1/4] drm/tilcdc: Remove obsolete drm_connector_register() calls

2016-10-19 Thread Jyri Sarha
Remove obsolete drm_connector_register() calls from tilcdc_panel.c and tilcdc_tfp410.c. All connectors are registered when drm_dev_register() is called. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_panel.c | 2 -- drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | 2 -- 2 files changed, 4

[PATCH] drm/tilcdc: fix wrong error handling

2016-09-23 Thread Jyri Sarha
On 09/23/16 14:47, Sean Paul wrote: > On Fri, Sep 23, 2016 at 3:52 AM, Daniel Schultz > wrote: >> When 'component_bind_all' fails it should not try to unbind components >> in the error handling. This will produce a null pointer kernel panic when >> no component exist. >> >> This patch changes

[GIT PULL] tilcdc 3rd set of changes for v4.9 (second attempt)

2016-09-23 Thread Jyri Sarha
/tilcdc: mark symbols static where possible Daniel Schultz (1): drm/tilcdc: fix wrong error handling Jyri Sarha (1): drm/tilcdc: Remove "default" from blue-and-red-wiring property binding Markus Elfring (1): drm/tilcdc: Return directly after a failed kfree_

[PATCH 1/2] drm/tilcdc: add missing header dependencies

2016-09-25 Thread Jyri Sarha
On 09/25/16 10:16, Baoyou Xie wrote: > We get 4 warnings when building kernel with W=1: > drivers/gpu/drm/tilcdc/tilcdc_tfp410.c:397:12: warning: no previous prototype > for 'tilcdc_tfp410_init' [-Wmissing-prototypes] > drivers/gpu/drm/tilcdc/tilcdc_tfp410.c:402:13: warning: no previous prototype

[PATCH 2/2] drm/tilcdc: mark symbols static where possible

2016-09-25 Thread Jyri Sarha
On 09/25/16 10:16, Baoyou Xie wrote: > We get 4 warnings when building kernel with W=1: > drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c:142:29: warning: no previous > prototype for 'tilcdc_get_overlay' [-Wmissing-prototypes] > drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c:198:13: warning: no

[PATCH] drm: tilcdc: add a workaround for failed clk_set_rate()

2016-09-28 Thread Jyri Sarha
On 09/27/16 18:29, Bartosz Golaszewski wrote: > Some architectures don't use the common clock framework and don't > implement all the clk interfaces for every clock. This is the case > for da850-lcdk where clk_set_rate() only works for PLL0 and PLL1. > > Trying to set the clock rate for the LCDC

[PATCH v2] drm: tilcdc: add a workaround for failed clk_set_rate()

2016-09-29 Thread Jyri Sarha
On 09/28/16 15:41, Bartosz Golaszewski wrote: > Some architectures don't use the common clock framework and don't > implement all the clk interfaces for every clock. This is the case > for da850-lcdk where clk_set_rate() only works for PLL0 and PLL1. > > Trying to set the clock rate for the LCDC

[PATCH v2] drm: tilcdc: simplify the recovery from sync lost error on rev1

2017-01-04 Thread Jyri Sarha
ted by the datasheet. > > Signed-off-by: Bartosz Golaszewski After testing I'll send this as fixes pull req for tilcdc 4.10. Reviewed-by: Jyri Sarha > --- > v1 -> v2: > - add a check to see if the RASTER_ENABLE bit is set before clearing it > > drivers/gpu/drm/tilcdc

[GIT PULL] tilcdc fixes for 4.10

2017-01-04 Thread Jyri Sarha
Hi Dave, Please pull this tilcdc fix for v4.10. The tagged fix has been rebased on top of my previous pull request tag (tilcdc-4.10). Thanks, Jyri The following changes since commit 0186fcce896d3cb6fb690ed8b4405c9c1b76977a: drm/tilcdc: fix parsing of some DT properties (2016-11-30 14:20:16

[PATCH] drm/tilcdc: Set framebuffer DMA address to HW only if CRTC is enabled

2017-03-02 Thread Jyri Sarha
eck for vrefresh and last_vblank being valid is redundant, as they should now always be valid if the crtc is enabled. If they are not a division by zero waning is quite appropriate. Signed-off-by: Jyri Sarha <jsa...@ti.com> --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 27 --

[PATCH 0/3] drm/i2c: tda998x ASoC hdmi-codec support + BeagleBoneBlack audio support

2016-08-02 Thread Jyri Sarha
ch. The first patch changes tda998x pdata, so if there are any out of tree users of tda998x-driver the out of tree code needs to be updated. Jyri Sarha (3): drm/i2c: tda998x: Improve tda998x_configure_audio() audio related pdata drm/i2c: tda998x: Register ASoC hdmi-codec and add audio D

  1   2   3   4   5   6   7   8   9   10   >