* Re: [PATCH] video: vgacon: Don't build on arm64
From: Geert Uytterhoeven @ 2014-01-08 14:34 UTC (permalink / raw)
To: linux-fbdev
In-Reply-To: <1387323421-26126-1-git-send-email-broonie@kernel.org>
On Wed, Jan 8, 2014 at 2:48 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> On Wednesday 08 January 2014 15:43:20 Tomi Valkeinen wrote:
>> On 2013-12-18 01:37, Mark Brown wrote:
>> > From: Mark Brown <broonie@linaro.org>
>> >
>> > arm64 is unlikely to have a VGA console and does not export screen_info
>> > causing build failures if the driver is build, for example in all*config.
>> > Add a dependency on !ARM64 to prevent this.
>> >
>> > This list is getting quite long, it may be easier to depend on a symbol
>> > which architectures that do support the driver can select.
>>
>> I agree, that depends on looks horrible =).
>
> I've suggested creating a "CONFIG_PC_IO" symbol before that could used
> to simplify this one and a couple of other similar Kconfig statements.
> It is unfortunately a bit tricky because out of the dozen drivers that
> are similar to this one, each one has a slightly different list of
> architectures, and it's not clear which of the differences are intentional
> rather than mistakes.
VGA is special, in that it uses "ISA memory space". This is not a subset of
"PCI memory space", but something different. Some PCI host bridges
(IIRC, e.g. on Mac) do not allow access to this space.
Most other "PC I/O" use ISA I/O space, which is a subset of PCI I/O space.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply
* Re: [PATCH 1/2] ARM: omapfb: add coherent dma memory support
From: Tomi Valkeinen @ 2014-01-08 14:13 UTC (permalink / raw)
To: linux-arm-kernel
In-Reply-To: <20140107235951.GH5074@atomide.com>
[-- Attachment #1: Type: text/plain, Size: 1443 bytes --]
On 2014-01-08 01:59, Tony Lindgren wrote:
> * Tomi Valkeinen <tomi.valkeinen@ti.com> [131230 05:21]:
>> The omapfb driver uses dma_alloc to reserve memory for the framebuffers.
>> However, on some use cases, even when CMA is in use, it's quite probable
>> that omapfb fails to allocate the fb, either due to not enough free dma
>> memory, fragmented dma memory, or CMA failing to make enough contiguous
>> space.
>>
>> This patch adds a kernel cmdline parameter 'omapfb_vram' which can be
>> used to give the size of a memory area reserved exclusively for omapfb,
>> and optionally a physical address where the memory area is reserved.
>>
>> The memory area is reserved with memblock, and assigned to omapfb with
>> dma_declare_coherent_memory. The dma_alloc function will first try to
>> allocate the fb from the coherent memory area, and if that fails, it'll
>> use the normal method of allocation.
>>
>> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
>> Cc: Ivaylo Dimitrov <freemangordon@abv.bg>
>
> Feel free to queue this along with the DSS patches:
>
> Acked-by: Tony Lindgren <tony@atomide.com>
Thanks.
This introduces new kernel boot parameter, and I haven't really had time
to test and think about this. If Ivaylo doesn't insist on this to be
merged for 3.14, I'd rather leave this for 3.15 as adding new parameter
that we need to support "forever" should be thought a bit more.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
^ permalink raw reply
* Re: [PATCH] fbmem: really support wildcard video=options for all fbdev drivers
From: Tomi Valkeinen @ 2014-01-08 13:55 UTC (permalink / raw)
To: Olaf Hering; +Cc: plagnioj, linux-fbdev, linux-kernel
In-Reply-To: <1387140035-12234-1-git-send-email-olaf@aepfle.de>
[-- Attachment #1: Type: text/plain, Size: 2043 bytes --]
On 2013-12-15 22:40, Olaf Hering wrote:
> Documentation/fb/modedb.txt states that video=option should be
> considered a global option. But video_setup and fb_get_options are not
> coded that way. Instead its required to boot with video=driver:option to
> set a given option in drvier. This is cumbersome because it requires to
> know in advance which driver will be active for a given board/kernel.
>
> The following patch implements the documented catchall for the fbdev
> drivers. It is now possible to boot with video=XxY without the need to
> know the active driver in advance. The specific case it tries to fix is
> syslinux in the SUSE installer which offers a menu to set a display
> resolution. Right now this just appends the vga= option the kernel. But
> in addition to vga= it should be possible to pass a generic video=XxY
> for all framebuffer/drm drivers. With this change forcing a certain
> window size of VM displays is now much easier.
>
> Today the video= option is stored in a global fb_mode_option. But
> unfortunately only drm uses it.
>
> Note: this change introduces a small memleak if video=option is actually
> used because fb_mode_option is const. Most drivers use strsep to get to
> individual options. This could be fixed in a followup patch which always
> releases the option string in every caller of fb_get_options.
>
> Signed-off-by: Olaf Hering <olaf@aepfle.de>
> ---
> drivers/video/fbmem.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c
> index 010d191..cde4619 100644
> --- a/drivers/video/fbmem.c
> +++ b/drivers/video/fbmem.c
> @@ -1930,6 +1930,9 @@ int fb_get_options(const char *name, char **option)
> options = opt + name_len + 1;
> }
> }
> + /* No match, pass global option */
> + if (!options && option && fb_mode_option)
> + options = kstrdup(fb_mode_option, GFP_KERNEL);
> if (options && !strncmp(options, "off", 3))
> retval = 1;
>
>
Queued for 3.14.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
^ permalink raw reply
* Re: [PATCH] omapdss: dispc: Preload more data in pipeline DMAs for OMAP4+ SoCs
From: Tomi Valkeinen @ 2014-01-08 13:52 UTC (permalink / raw)
To: Archit Taneja; +Cc: linux-omap, linux-fbdev
In-Reply-To: <1387278621-10966-1-git-send-email-archit@ti.com>
[-- Attachment #1: Type: text/plain, Size: 3045 bytes --]
On 2013-12-17 13:10, Archit Taneja wrote:
> DISPC pipeline DMAs preload some bytes of pixel data in the vertical blanking
> region before the start of each frame. The preload ensures the pipeline doesn't
> underflow when the active region of the display starts.
>
> DISPC_GFX/VIDp_PRELOAD registers allow us to program how many bytes of data
> should be preloaded for each pipeline. Calculating a precise preload value
> would be a complex function of the pixel clock of the connected display, the
> vertical blanking duration and the interconnect traffic at that instance. If
> the register is left untouched, a default value is preloaded.
>
> We observe underflows for OMAP4+ SoCs for certain bandwidth intensive use cases
> with many other initiators active, and in situations where memory access isn't
> very efficient(like accessing Tiler mapped buffers and EMIF configured in
> non-interleaved more). The cause of the underflow is because the default preload
> value isn't sufficient for the DMA to reach a steady state. We configure the
> PRELOAD register such that the pipelines preload data up to the high threshold
> of the FIFO.
>
> Preloading lot of data for older SoCs can have a negative impact. Due to slower
> interconnects, it's possible that the DISPC DMA cannot preload up to the high
> threshold within the vertical blanking region of the panel. We leave the PRELOAD
> registers to their reset values since we haven't faced underflows with these
> SoCs because of low value of PRELOAD.
>
> Signed-off-by: Archit Taneja <archit@ti.com>
> ---
> drivers/video/omap2/dss/dispc.c | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
> index 6578540..ace179e 100644
> --- a/drivers/video/omap2/dss/dispc.c
> +++ b/drivers/video/omap2/dss/dispc.c
> @@ -90,6 +90,8 @@ struct dispc_features {
>
> /* revert to the OMAP4 mechanism of DISPC Smart Standby operation */
> bool mstandby_workaround:1;
> +
> + bool set_max_preload:1;
> };
>
> #define DISPC_MAX_NR_FIFOS 5
> @@ -1200,6 +1202,15 @@ void dispc_ovl_set_fifo_threshold(enum omap_plane plane, u32 low, u32 high)
> dispc_write_reg(DISPC_OVL_FIFO_THRESHOLD(plane),
> FLD_VAL(high, hi_start, hi_end) |
> FLD_VAL(low, lo_start, lo_end));
> +
> + /*
> + * configure the preload to the pipeline's high threhold, if HT it's too
> + * large for the preload field, set the threshold to the maximum value
> + * that can be held by the preload register
> + */
> + if (dss_has_feature(FEAT_PRELOAD) && dispc.feat->set_max_preload &&
> + plane != OMAP_DSS_WB)
> + dispc_write_reg(DISPC_OVL_PRELOAD(plane), min(high, 0xfff));
This causes compile warning:
drivers/video/omap2/dss/dispc.c: In function ‘dispc_ovl_set_fifo_threshold’:
drivers/video/omap2/dss/dispc.c:1213:152: warning: comparison of
distinct pointer types lacks a cast
I fixed it by changing 0xfff to 0xfffu
Queued for 3.14.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
^ permalink raw reply
* Re: [PATCH] video: vgacon: Don't build on arm64
From: Arnd Bergmann @ 2014-01-08 13:48 UTC (permalink / raw)
To: linux-fbdev
In-Reply-To: <1387323421-26126-1-git-send-email-broonie@kernel.org>
On Wednesday 08 January 2014 15:43:20 Tomi Valkeinen wrote:
> On 2013-12-18 01:37, Mark Brown wrote:
> > From: Mark Brown <broonie@linaro.org>
> >
> > arm64 is unlikely to have a VGA console and does not export screen_info
> > causing build failures if the driver is build, for example in all*config.
> > Add a dependency on !ARM64 to prevent this.
> >
> > This list is getting quite long, it may be easier to depend on a symbol
> > which architectures that do support the driver can select.
>
> I agree, that depends on looks horrible =).
I've suggested creating a "CONFIG_PC_IO" symbol before that could used
to simplify this one and a couple of other similar Kconfig statements.
It is unfortunately a bit tricky because out of the dozen drivers that
are similar to this one, each one has a slightly different list of
architectures, and it's not clear which of the differences are intentional
rather than mistakes.
Arnd
^ permalink raw reply
* Re: [PATCH] video: vgacon: Don't build on arm64
From: Tomi Valkeinen @ 2014-01-08 13:43 UTC (permalink / raw)
To: linux-fbdev
In-Reply-To: <1387323421-26126-1-git-send-email-broonie@kernel.org>
[-- Attachment #1: Type: text/plain, Size: 1387 bytes --]
On 2013-12-18 01:37, Mark Brown wrote:
> From: Mark Brown <broonie@linaro.org>
>
> arm64 is unlikely to have a VGA console and does not export screen_info
> causing build failures if the driver is build, for example in all*config.
> Add a dependency on !ARM64 to prevent this.
>
> This list is getting quite long, it may be easier to depend on a symbol
> which architectures that do support the driver can select.
I agree, that depends on looks horrible =).
> Signed-off-by: Mark Brown <broonie@linaro.org>
> ---
> drivers/video/console/Kconfig | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/video/console/Kconfig b/drivers/video/console/Kconfig
> index 846caab75a46..c39d6c42c3ef 100644
> --- a/drivers/video/console/Kconfig
> +++ b/drivers/video/console/Kconfig
> @@ -8,7 +8,8 @@ config VGA_CONSOLE
> bool "VGA text console" if EXPERT || !X86
> depends on !4xx && !8xx && !SPARC && !M68K && !PARISC && !FRV && \
> !SUPERH && !BLACKFIN && !AVR32 && !MN10300 && !CRIS && \
> - (!ARM || ARCH_FOOTBRIDGE || ARCH_INTEGRATOR || ARCH_NETWINDER)
> + (!ARM || ARCH_FOOTBRIDGE || ARCH_INTEGRATOR || ARCH_NETWINDER) \
> + && !ARM64
> default y
> help
> Saying Y here will allow you to use Linux in text mode through a
I moved the && to the previous line as is the custom. Queued for 3.14.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
^ permalink raw reply
* Re: [PATCH] video: mx3fb: Allow blocking during framebuffer allocation
From: Tomi Valkeinen @ 2014-01-08 13:37 UTC (permalink / raw)
To: Sascha Hauer; +Cc: linux-fbdev, Jean-Christophe Plagniol-Villard, linux-kernel
In-Reply-To: <1387441388-10962-1-git-send-email-s.hauer@pengutronix.de>
[-- Attachment #1: Type: text/plain, Size: 1165 bytes --]
On 2013-12-19 10:23, Sascha Hauer wrote:
> No need to allocate the framebuffer from the atomic pool, we are not
> in interrupt context. Adding GFP_KERNEL to the framebuffer allocation
> allows to use the much bigger CMA pool to allocate the framebuffer.
>
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
> Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
> Cc: linux-fbdev@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> ---
> drivers/video/mx3fb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c
> index cfdb380..c882bec 100644
> --- a/drivers/video/mx3fb.c
> +++ b/drivers/video/mx3fb.c
> @@ -1263,7 +1263,7 @@ static int mx3fb_map_video_memory(struct fb_info *fbi, unsigned int mem_len,
>
> fbi->screen_base = dma_alloc_writecombine(fbi->device,
> mem_len,
> - &addr, GFP_DMA);
> + &addr, GFP_DMA | GFP_KERNEL);
>
> if (!fbi->screen_base) {
> dev_err(fbi->device, "Cannot allocate %u bytes framebuffer memory\n",
>
Thanks, queued for 3.14.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
^ permalink raw reply
* Re: [PATCH] video: imxfb: Use regulator API with LCD class for powering
From: Tomi Valkeinen @ 2014-01-08 13:32 UTC (permalink / raw)
To: linux-arm-kernel
In-Reply-To: <20131223082842.GI26070@S2101-09.ap.freescale.net>
[-- Attachment #1: Type: text/plain, Size: 692 bytes --]
On 2013-12-23 10:28, Shawn Guo wrote:
> On Mon, Dec 23, 2013 at 12:24:13PM +0400, Alexander Shiyan wrote:
>>> On Sat, Dec 21, 2013 at 03:08:00PM +0400, Alexander Shiyan wrote:
>>>> This patch replaces custom lcd_power() callback with
>>>> regulator API over LCD class.
>>>
>>> FYI. Denis' effort on this already goes to v13.
>>>
>>> http://thread.gmane.org/gmane.linux.ports.arm.kernel/285326
>>
>> Hmm, OK, but having LCD class could resolve our problems with contrast control.
>> https://www.mail-archive.com/devicetree@vger.kernel.org/msg07660.html
>
> I just want to make sure you two are aware of each other's work.
So, should I ignore this patch, or...?
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
^ permalink raw reply
* Re: [PATCH 1/4] video: ep93xx: Cleanup video-ep93xx.h header
From: Sachin Kamat @ 2014-01-08 10:33 UTC (permalink / raw)
To: linux-fbdev
In-Reply-To: <1388384533-20458-1-git-send-email-sachin.kamat@linaro.org>
On 8 January 2014 15:12, Tomi Valkeinen <tomi.valkeinen@ti.com> wrote:
> On 2014-01-08 11:09, Sachin Kamat wrote:
>> Hi Tomi,
>>
>> On 30 December 2013 11:52, Sachin Kamat <sachin.kamat@linaro.org> wrote:
>>> Commit a3b2924547a7 ("ARM: ep93xx: move platform_data definitions")
>>> moved the file to the current location but forgot to remove the pointer
>>> to its previous location. Clean it up. While at it also change the header
>>> file protection macros appropriately.
>>>
>>> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
>
> Thanks, queued the series for 3.14.
Thanks Tomi.
--
With warm regards,
Sachin
^ permalink raw reply
* Re: [PATCH] fbcon: Fix memory leak in fbcon_exit().
From: Tomi Valkeinen @ 2014-01-08 9:53 UTC (permalink / raw)
To: Masami Ichikawa
Cc: plagnioj, linux-fbdev, airlied, udknight, gregkh, akpm, tiwai,
linux-kernel
In-Reply-To: <1387982857-14500-1-git-send-email-masami256@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2140 bytes --]
On 2013-12-25 16:47, Masami Ichikawa wrote:
> kmemleak reported a memory leak as below.
>
> unreferenced object 0xffff880036ca84c0 (size 16):
> comm "swapper/0", pid 1, jiffies 4294877407 (age 4434.633s)
> hex dump (first 16 bytes):
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff ff ................
> backtrace:
> [<ffffffff814ed01e>] kmemleak_alloc+0x4e/0xb0
> [<ffffffff8118913c>] __kmalloc+0x1fc/0x290
> [<ffffffff81302c9e>] bit_cursor+0x24e/0x6c0
> [<ffffffff812ff2f4>] fbcon_cursor+0x154/0x1d0
> [<ffffffff813675d8>] hide_cursor+0x28/0xa0
> [<ffffffff81368acf>] update_region+0x6f/0x90
> [<ffffffff81300268>] fbcon_switch+0x518/0x550
> [<ffffffff813695b9>] redraw_screen+0x189/0x240
> [<ffffffff8136a0e0>] do_bind_con_driver+0x360/0x380
> [<ffffffff8136a6e4>] do_take_over_console+0x114/0x1c0
> [<ffffffff812fdc83>] do_fbcon_takeover+0x63/0xd0
> [<ffffffff813023e5>] fbcon_event_notify+0x605/0x720
> [<ffffffff81501dcc>] notifier_call_chain+0x4c/0x70
> [<ffffffff81087f8d>] __blocking_notifier_call_chain+0x4d/0x70
> [<ffffffff81087fc6>] blocking_notifier_call_chain+0x16/0x20
> [<ffffffff812f201b>] fb_notifier_call_chain+0x1b/0x20
>
> In this case ops->cursor_state.mask is allocated in bit_cursor() but
> not freed in fbcon_exit(). So, fbcon_exit() needs to free buffer in its
> process.
> In the case, fbcon_exit() was called from fbcon_deinit() when driver
> called remove_conflicting_framebuffers().
>
> Signed-off-by: Masami Ichikawa <masami256@gmail.com>
> ---
> drivers/video/console/fbcon.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
> index cd8a802..4f02375 100644
> --- a/drivers/video/console/fbcon.c
> +++ b/drivers/video/console/fbcon.c
> @@ -3561,6 +3561,7 @@ static void fbcon_exit(void)
>
> fbcon_del_cursor_timer(info);
> kfree(ops->cursor_src);
> + kfree(ops->cursor_state.mask);
> kfree(info->fbcon_par);
> info->fbcon_par = NULL;
> }
>
Thanks, queued for 3.14.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
^ permalink raw reply
* Re: [PATCH] fbcon: trivial optimization for fbcon_exit
From: Tomi Valkeinen @ 2014-01-08 9:48 UTC (permalink / raw)
To: Wang YanQing
Cc: plagnioj, airlied, gregkh, akpm, kamal, linux-fbdev, linux-kernel
In-Reply-To: <20131227023917.GA3908@udknight>
[-- Attachment #1: Type: text/plain, Size: 764 bytes --]
On 2013-12-27 04:39, Wang YanQing wrote:
> Break out as soon as we find a mapped entry con2fb_map.
>
> Signed-off-by: Wang YanQing <udknight@gmail.com>
> ---
> drivers/video/console/fbcon.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
> index cd8a802..f39931f 100644
> --- a/drivers/video/console/fbcon.c
> +++ b/drivers/video/console/fbcon.c
> @@ -3547,8 +3547,10 @@ static void fbcon_exit(void)
> "no"));
>
> for (j = first_fb_vc; j <= last_fb_vc; j++) {
> - if (con2fb_map[j] == i)
> + if (con2fb_map[j] == i) {
> mapped = 1;
> + break;
> + }
> }
>
> if (mapped) {
>
Thanks, queued for 3.14.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
^ permalink raw reply
* Re: [PATCH 1/4] video: ep93xx: Cleanup video-ep93xx.h header
From: Tomi Valkeinen @ 2014-01-08 9:42 UTC (permalink / raw)
To: linux-fbdev
In-Reply-To: <1388384533-20458-1-git-send-email-sachin.kamat@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 1447 bytes --]
On 2014-01-08 11:09, Sachin Kamat wrote:
> Hi Tomi,
>
> On 30 December 2013 11:52, Sachin Kamat <sachin.kamat@linaro.org> wrote:
>> Commit a3b2924547a7 ("ARM: ep93xx: move platform_data definitions")
>> moved the file to the current location but forgot to remove the pointer
>> to its previous location. Clean it up. While at it also change the header
>> file protection macros appropriately.
>>
>> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
>> ---
>> include/linux/platform_data/video-ep93xx.h | 10 +++-------
>> 1 file changed, 3 insertions(+), 7 deletions(-)
>>
>> diff --git a/include/linux/platform_data/video-ep93xx.h b/include/linux/platform_data/video-ep93xx.h
>> index d5ae11d7c453..92fc2b2232e7 100644
>> --- a/include/linux/platform_data/video-ep93xx.h
>> +++ b/include/linux/platform_data/video-ep93xx.h
>> @@ -1,9 +1,5 @@
>> -/*
>> - * arch/arm/mach-ep93xx/include/mach/fb.h
>> - */
>> -
>> -#ifndef __ASM_ARCH_EP93XXFB_H
>> -#define __ASM_ARCH_EP93XXFB_H
>> +#ifndef __VIDEO_EP93XX_H
>> +#define __VIDEO_EP93XX_H
>>
>> struct platform_device;
>> struct fb_videomode;
>> @@ -53,4 +49,4 @@ struct ep93xxfb_mach_info {
>> void (*blank)(int blank_mode, struct fb_info *info);
>> };
>>
>> -#endif /* __ASM_ARCH_EP93XXFB_H */
>> +#endif /* __VIDEO_EP93XX_H */
>> --
>> 1.7.9.5
>>
>
> Gentle ping on this series..
Thanks, queued the series for 3.14.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
^ permalink raw reply
* Re: [PATCH 1/4] video: ep93xx: Cleanup video-ep93xx.h header
From: Sachin Kamat @ 2014-01-08 9:21 UTC (permalink / raw)
To: linux-fbdev
In-Reply-To: <1388384533-20458-1-git-send-email-sachin.kamat@linaro.org>
Hi Tomi,
On 30 December 2013 11:52, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> Commit a3b2924547a7 ("ARM: ep93xx: move platform_data definitions")
> moved the file to the current location but forgot to remove the pointer
> to its previous location. Clean it up. While at it also change the header
> file protection macros appropriately.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
> include/linux/platform_data/video-ep93xx.h | 10 +++-------
> 1 file changed, 3 insertions(+), 7 deletions(-)
>
> diff --git a/include/linux/platform_data/video-ep93xx.h b/include/linux/platform_data/video-ep93xx.h
> index d5ae11d7c453..92fc2b2232e7 100644
> --- a/include/linux/platform_data/video-ep93xx.h
> +++ b/include/linux/platform_data/video-ep93xx.h
> @@ -1,9 +1,5 @@
> -/*
> - * arch/arm/mach-ep93xx/include/mach/fb.h
> - */
> -
> -#ifndef __ASM_ARCH_EP93XXFB_H
> -#define __ASM_ARCH_EP93XXFB_H
> +#ifndef __VIDEO_EP93XX_H
> +#define __VIDEO_EP93XX_H
>
> struct platform_device;
> struct fb_videomode;
> @@ -53,4 +49,4 @@ struct ep93xxfb_mach_info {
> void (*blank)(int blank_mode, struct fb_info *info);
> };
>
> -#endif /* __ASM_ARCH_EP93XXFB_H */
> +#endif /* __VIDEO_EP93XX_H */
> --
> 1.7.9.5
>
Gentle ping on this series..
--
With warm regards,
Sachin
^ permalink raw reply
* Re: [PATCH 0/2] video: mxsfb: fix broken videomode selection
From: Tomi Valkeinen @ 2014-01-08 9:04 UTC (permalink / raw)
To: linux-arm-kernel
In-Reply-To: <1389014278-4903-1-git-send-email-LW@KARO-electronics.de>
[-- Attachment #1: Type: text/plain, Size: 1079 bytes --]
On 2014-01-06 15:17, Lothar Waßmann wrote:
> The first patch in this set converts some messages that are printed
> in case of errors to be error messages rather than debug messages.
>
> The second patch fixes a bug in the video selection code that
> incorrectly OR's together the 'pixelclk-active' and 'de-active'
> flags from all possible video modes specified in DT into one flag.
>
> The current code does not allow selecting one specific mode from a
> list of video modes, but always uses the last one of the video modes
> listed in the DT.
>
>
> Since all current dts files only have one entry in their
> 'display-timings' node, this bug was not apparent and the fix does not
> change the driver's behaviour for the current users.
>
> b/drivers/video/mxsfb.c | 6 +--
> drivers/video/mxsfb.c | 120 +++++++++++++++++++++++++++++-----------------------------------------
> 2 files changed, 53 insertions(+), 73 deletions(-)
>
Thanks, queued for 3.14.
Your diffstat above looks a bit funny. Where did that "b/" come from?
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
^ permalink raw reply
* Re: [PATCH RESEND 1/4] video: asiliantfb: remove unnecessary pci_set_drvdata()
From: Tomi Valkeinen @ 2014-01-08 8:33 UTC (permalink / raw)
To: linux-fbdev
In-Reply-To: <001901cf0c0a$cb48b5e0$61da21a0$%han@samsung.com>
[-- Attachment #1: Type: text/plain, Size: 856 bytes --]
On 2014-01-08 02:44, Jingoo Han wrote:
> The driver core clears the driver data to NULL after device_release
> or on probe failure. Thus, it is not needed to manually clear the
> device driver data to NULL.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
> drivers/video/asiliantfb.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/video/asiliantfb.c b/drivers/video/asiliantfb.c
> index d611f1a..7e8ddf0 100644
> --- a/drivers/video/asiliantfb.c
> +++ b/drivers/video/asiliantfb.c
> @@ -589,7 +589,6 @@ static void asiliantfb_remove(struct pci_dev *dp)
> fb_dealloc_cmap(&p->cmap);
> iounmap(p->screen_base);
> release_mem_region(pci_resource_start(dp, 0), pci_resource_len(dp, 0));
> - pci_set_drvdata(dp, NULL);
> framebuffer_release(p);
> }
>
>
Series queued for 3.14.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
^ permalink raw reply
* Re: [PATCH] fbdev: sh_mobile_lcdcfb: Don't use plain 0 as NULL pointer
From: Tomi Valkeinen @ 2014-01-08 8:31 UTC (permalink / raw)
To: linux-fbdev
In-Reply-To: <1385512723-11722-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com>
[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]
On 2014-01-07 17:17, Laurent Pinchart wrote:
> Hi Jean-Christophe and Tomi,
>
> Could you please pick this patch up for v3.14 ?
>
> On Wednesday 27 November 2013 01:38:43 Laurent Pinchart wrote:
>> This fixes a sparse warning.
>>
>> Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
>> Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
>> Cc: linux-fbdev@vger.kernel.org
>> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
>> ---
>> drivers/video/sh_mobile_lcdcfb.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/video/sh_mobile_lcdcfb.c
>> b/drivers/video/sh_mobile_lcdcfb.c index ab85ad6..2bcc84a 100644
>> --- a/drivers/video/sh_mobile_lcdcfb.c
>> +++ b/drivers/video/sh_mobile_lcdcfb.c
>> @@ -1227,7 +1227,7 @@ static void sh_mobile_lcdc_stop(struct
>> sh_mobile_lcdc_priv *priv) /* Free the MERAM cache. */
>> if (ch->cache) {
>> sh_mobile_meram_cache_free(priv->meram_dev, ch->cache);
>> - ch->cache = 0;
>> + ch->cache = NULL;
>> }
>>
>> }
Queued for 3.14.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
^ permalink raw reply
* Re: [PATCH 13/15] fbdev: sh-mobile-lcdcfb: Enable driver compilation with COMPILE_TEST
From: Tomi Valkeinen @ 2014-01-08 8:30 UTC (permalink / raw)
To: linux-arm-kernel
In-Reply-To: <1917257.yB7aZMXWdP@avalon>
[-- Attachment #1: Type: text/plain, Size: 248 bytes --]
On 2014-01-07 17:15, Laurent Pinchart wrote:
> On Wednesday 11 December 2013 13:51:18 Laurent Pinchart wrote:
>> Hi Jean-Christophe and Tomi,
>>
>> Could you please pick this patch up for v3.14 ?
>
> Ping ?
Queued for 3.14.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
^ permalink raw reply
* [PATCH RESEND 4/4] video: vmlfb: remove unnecessary pci_set_drvdata()
From: Jingoo Han @ 2014-01-08 0:46 UTC (permalink / raw)
To: linux-fbdev
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/video/vermilion/vermilion.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/video/vermilion/vermilion.c b/drivers/video/vermilion/vermilion.c
index 09a1366..048a666 100644
--- a/drivers/video/vermilion/vermilion.c
+++ b/drivers/video/vermilion/vermilion.c
@@ -383,7 +383,6 @@ static void vmlfb_disable_mmio(struct vml_par *par)
static void vmlfb_release_devices(struct vml_par *par)
{
if (atomic_dec_and_test(&par->refcount)) {
- pci_set_drvdata(par->vdc, NULL);
pci_disable_device(par->gpu);
pci_disable_device(par->vdc);
}
--
1.7.10.4
^ permalink raw reply related
* [PATCH RESEND 3/4] video: rivafb: remove unnecessary pci_set_drvdata()
From: Jingoo Han @ 2014-01-08 0:45 UTC (permalink / raw)
To: linux-fbdev
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/video/riva/fbdev.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/video/riva/fbdev.c b/drivers/video/riva/fbdev.c
index a5514ac..8a8d7f0 100644
--- a/drivers/video/riva/fbdev.c
+++ b/drivers/video/riva/fbdev.c
@@ -2128,7 +2128,6 @@ static void rivafb_remove(struct pci_dev *pd)
pci_release_regions(pd);
kfree(info->pixmap.addr);
framebuffer_release(info);
- pci_set_drvdata(pd, NULL);
NVTRACE_LEAVE();
}
--
1.7.10.4
^ permalink raw reply related
* [PATCH RESEND 2/4] video: nvidiafb: remove unnecessary pci_set_drvdata()
From: Jingoo Han @ 2014-01-08 0:45 UTC (permalink / raw)
To: linux-fbdev
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/video/nvidia/nvidia.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c
index ff22871..def0412 100644
--- a/drivers/video/nvidia/nvidia.c
+++ b/drivers/video/nvidia/nvidia.c
@@ -1461,7 +1461,6 @@ static void nvidiafb_remove(struct pci_dev *pd)
pci_release_regions(pd);
kfree(info->pixmap.addr);
framebuffer_release(info);
- pci_set_drvdata(pd, NULL);
NVTRACE_LEAVE();
}
--
1.7.10.4
^ permalink raw reply related
* [PATCH RESEND 1/4] video: asiliantfb: remove unnecessary pci_set_drvdata()
From: Jingoo Han @ 2014-01-08 0:44 UTC (permalink / raw)
To: linux-fbdev
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/video/asiliantfb.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/video/asiliantfb.c b/drivers/video/asiliantfb.c
index d611f1a..7e8ddf0 100644
--- a/drivers/video/asiliantfb.c
+++ b/drivers/video/asiliantfb.c
@@ -589,7 +589,6 @@ static void asiliantfb_remove(struct pci_dev *dp)
fb_dealloc_cmap(&p->cmap);
iounmap(p->screen_base);
release_mem_region(pci_resource_start(dp, 0), pci_resource_len(dp, 0));
- pci_set_drvdata(dp, NULL);
framebuffer_release(p);
}
--
1.7.10.4
^ permalink raw reply related
* Re: [PATCH 1/2] ARM: omapfb: add coherent dma memory support
From: Tony Lindgren @ 2014-01-07 23:59 UTC (permalink / raw)
To: linux-arm-kernel
In-Reply-To: <1388409550-10720-2-git-send-email-tomi.valkeinen@ti.com>
* Tomi Valkeinen <tomi.valkeinen@ti.com> [131230 05:21]:
> The omapfb driver uses dma_alloc to reserve memory for the framebuffers.
> However, on some use cases, even when CMA is in use, it's quite probable
> that omapfb fails to allocate the fb, either due to not enough free dma
> memory, fragmented dma memory, or CMA failing to make enough contiguous
> space.
>
> This patch adds a kernel cmdline parameter 'omapfb_vram' which can be
> used to give the size of a memory area reserved exclusively for omapfb,
> and optionally a physical address where the memory area is reserved.
>
> The memory area is reserved with memblock, and assigned to omapfb with
> dma_declare_coherent_memory. The dma_alloc function will first try to
> allocate the fb from the coherent memory area, and if that fails, it'll
> use the normal method of allocation.
>
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
> Cc: Ivaylo Dimitrov <freemangordon@abv.bg>
Feel free to queue this along with the DSS patches:
Acked-by: Tony Lindgren <tony@atomide.com>
^ permalink raw reply
* Re: [PATCH 1/2] drm/panel: Add support for Samsung LTN101NT05 panel
From: Thierry Reding @ 2014-01-07 16:00 UTC (permalink / raw)
To: Stephen Warren; +Cc: linux-fbdev, Thierry Reding, dri-devel, Marc Dietrich
In-Reply-To: <52CB0281.7060203@wwwdotorg.org>
[-- Attachment #1: Type: text/plain, Size: 319 bytes --]
On Mon, Jan 06, 2014 at 12:22:41PM -0700, Stephen Warren wrote:
> On 12/21/2013 01:40 PM, Marc Dietrich wrote:
> > The Samsung LNT101NT05 10.1" WXVGA panel can be supported by the simple panel
> > driver.
>
> Thierry, I assume you'll take patch 1/2 throught the appropriate DRM tree.
Yes, will do.
Thierry
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply
* Re: [PATCH] fbdev: sh_mobile_lcdcfb: Don't use plain 0 as NULL pointer
From: Laurent Pinchart @ 2014-01-07 15:17 UTC (permalink / raw)
To: linux-fbdev
In-Reply-To: <1385512723-11722-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com>
Hi Jean-Christophe and Tomi,
Could you please pick this patch up for v3.14 ?
On Wednesday 27 November 2013 01:38:43 Laurent Pinchart wrote:
> This fixes a sparse warning.
>
> Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
> Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
> Cc: linux-fbdev@vger.kernel.org
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> ---
> drivers/video/sh_mobile_lcdcfb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/video/sh_mobile_lcdcfb.c
> b/drivers/video/sh_mobile_lcdcfb.c index ab85ad6..2bcc84a 100644
> --- a/drivers/video/sh_mobile_lcdcfb.c
> +++ b/drivers/video/sh_mobile_lcdcfb.c
> @@ -1227,7 +1227,7 @@ static void sh_mobile_lcdc_stop(struct
> sh_mobile_lcdc_priv *priv) /* Free the MERAM cache. */
> if (ch->cache) {
> sh_mobile_meram_cache_free(priv->meram_dev, ch->cache);
> - ch->cache = 0;
> + ch->cache = NULL;
> }
>
> }
--
Regards,
Laurent Pinchart
^ permalink raw reply
* Re: [PATCH 13/15] fbdev: sh-mobile-lcdcfb: Enable driver compilation with COMPILE_TEST
From: Laurent Pinchart @ 2014-01-07 15:15 UTC (permalink / raw)
To: linux-arm-kernel
In-Reply-To: <1542726.dq1lpTml5f@avalon>
On Wednesday 11 December 2013 13:51:18 Laurent Pinchart wrote:
> Hi Jean-Christophe and Tomi,
>
> Could you please pick this patch up for v3.14 ?
Ping ?
> On Wednesday 27 November 2013 02:18:35 Laurent Pinchart wrote:
> > This helps increasing build testing coverage.
> >
> > Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
> > Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
> > Cc: linux-fbdev@vger.kernel.org
> > Signed-off-by: Laurent Pinchart
> > <laurent.pinchart+renesas@ideasonboard.com>
> > Acked-by: Simon Horman <horms@verge.net.au>
> > ---
> >
> > drivers/video/Kconfig | 8 +++++---
> > 1 file changed, 5 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
> > index 4f2e1b3..2aceb08 100644
> > --- a/drivers/video/Kconfig
> > +++ b/drivers/video/Kconfig
> > @@ -10,7 +10,8 @@ config HAVE_FB_ATMEL
> >
> > config SH_MIPI_DSI
> > tristate
> > - depends on (SUPERH || ARCH_SHMOBILE) && HAVE_CLK
> > + depends on HAVE_CLK
> > + depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
> >
> > config SH_LCD_MIPI_DSI
> > bool
> > @@ -1997,7 +1998,8 @@ config FB_W100
> >
> > config FB_SH_MOBILE_LCDC
> > tristate "SuperH Mobile LCDC framebuffer support"
> > - depends on FB && (SUPERH || ARCH_SHMOBILE) && HAVE_CLK
> > + depends on FB && HAVE_CLK
> > + depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
> > select FB_SYS_FILLRECT
> > select FB_SYS_COPYAREA
> > select FB_SYS_IMAGEBLIT
> > @@ -2484,7 +2486,7 @@ endif
> >
> > config FB_SH_MOBILE_MERAM
> > tristate "SuperH Mobile MERAM read ahead support"
> > - depends on (SUPERH || ARCH_SHMOBILE)
> > + depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
> > select GENERIC_ALLOCATOR
> > ---help---
> > Enable MERAM support for the SuperH controller.
--
Regards,
Laurent Pinchart
^ permalink raw reply
page: next (older) | prev (newer) | latest
- recent:[subjects (threaded)|topics (new)|topics (active)]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox