From: Thomas Zimmermann <tzimmermann@suse.de>
To: Anitha Chrisanthus <anitha.chrisanthus@intel.com>,
dri-devel@lists.freedesktop.org
Cc: sam@ravnborg.org, edmund.j.dea@intel.com
Subject: Re: [PATCH v3 7/7] drm/kmb: Enable support for framebuffer console
Date: Thu, 14 Oct 2021 14:50:22 +0200 [thread overview]
Message-ID: <81a14354-e03a-7768-ed90-effc5adf19f2@suse.de> (raw)
In-Reply-To: <20211013233632.471892-7-anitha.chrisanthus@intel.com>
[-- Attachment #1.1: Type: text/plain, Size: 2082 bytes --]
Hi
Am 14.10.21 um 01:36 schrieb Anitha Chrisanthus:
> Enable support for fbcon (framebuffer console).
> The user can initialize fbcon by loading kmb-drm with the parameter
> console=1.
>
> v2: added missing static clk_enable
>
> Signed-off-by: Edmund Dea <edmund.j.dea@intel.com>
> Signed-off-by: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
> ---
> drivers/gpu/drm/kmb/kmb_drv.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/drivers/gpu/drm/kmb/kmb_drv.c b/drivers/gpu/drm/kmb/kmb_drv.c
> index 961ac6fb5fcf..b4e66eac63b5 100644
> --- a/drivers/gpu/drm/kmb/kmb_drv.c
> +++ b/drivers/gpu/drm/kmb/kmb_drv.c
> @@ -5,6 +5,7 @@
>
> #include <linux/clk.h>
> #include <linux/module.h>
> +#include <linux/moduleparam.h>
> #include <linux/of_graph.h>
> #include <linux/of_platform.h>
> #include <linux/of_reserved_mem.h>
> @@ -15,6 +16,7 @@
>
> #include <drm/drm_atomic_helper.h>
> #include <drm/drm_drv.h>
> +#include <drm/drm_fb_helper.h>
> #include <drm/drm_gem_cma_helper.h>
> #include <drm/drm_gem_framebuffer_helper.h>
> #include <drm/drm_probe_helper.h>
> @@ -24,6 +26,12 @@
> #include "kmb_dsi.h"
> #include "kmb_regs.h"
>
> +/* Module Parameters */
> +static bool console;
> +module_param(console, bool, 0400);
> +MODULE_PARM_DESC(console,
> + "Enable framebuffer console support (0=disable [default], 1=on)");
There's already fbdev_emulation in drm_fb_helper.c. No need for a
separate parameter here.
Best regards
Thomas
> +
> static int kmb_display_clk_enable(struct kmb_drm_private *kmb)
> {
> int ret = 0;
> @@ -559,6 +567,9 @@ static int kmb_probe(struct platform_device *pdev)
> if (ret)
> goto err_register;
>
> + if (console)
> + drm_fbdev_generic_setup(&kmb->drm, 32);
> +
> return 0;
>
> err_register:
>
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
next prev parent reply other threads:[~2021-10-14 12:50 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-13 23:36 [PATCH v3 1/7] drm/kmb: Work around for higher system clock Anitha Chrisanthus
2021-10-13 23:36 ` [PATCH v3 2/7] drm/kmb: Limit supported mode to 1080p Anitha Chrisanthus
2021-10-14 18:36 ` Sam Ravnborg
2021-10-13 23:36 ` [PATCH v3 3/7] drm/kmb: Remove clearing DPHY regs Anitha Chrisanthus
2021-10-14 18:37 ` Sam Ravnborg
2021-10-13 23:36 ` [PATCH v3 4/7] drm/kmb: Disable change of plane parameters Anitha Chrisanthus
2021-10-14 18:39 ` Sam Ravnborg
2021-10-13 23:36 ` [PATCH v3 5/7] drm/kmb: Corrected typo in handle_lcd_irq Anitha Chrisanthus
2021-10-14 18:40 ` Sam Ravnborg
2021-10-13 23:36 ` [PATCH v3 6/7] drm/kmb: Enable ADV bridge after modeset Anitha Chrisanthus
2021-10-14 18:44 ` Sam Ravnborg
2021-10-13 23:36 ` [PATCH v3 7/7] drm/kmb: Enable support for framebuffer console Anitha Chrisanthus
2021-10-14 12:50 ` Thomas Zimmermann [this message]
2021-10-15 17:17 ` Chrisanthus, Anitha
2021-10-14 13:08 ` Thomas Zimmermann
2021-10-15 17:16 ` Chrisanthus, Anitha
2021-10-14 18:33 ` [PATCH v3 1/7] drm/kmb: Work around for higher system clock Sam Ravnborg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=81a14354-e03a-7768-ed90-effc5adf19f2@suse.de \
--to=tzimmermann@suse.de \
--cc=anitha.chrisanthus@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=edmund.j.dea@intel.com \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox