From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Javier Martinez Canillas <javierm@redhat.com>
Cc: linux-kernel@vger.kernel.org,
Geert Uytterhoeven <geert@linux-m68k.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
Arnd Bergmann <arnd@arndb.de>, Borislav Petkov <bp@alien8.de>,
Daniel Vetter <daniel@ffwll.ch>,
Dave Hansen <dave.hansen@linux.intel.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"H. Peter Anvin" <hpa@zytor.com>, Helge Deller <deller@gmx.de>,
Ingo Molnar <mingo@redhat.com>,
Randy Dunlap <rdunlap@infradead.org>,
Sam Ravnborg <sam@ravnborg.org>,
Thomas Gleixner <tglx@linutronix.de>,
dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org,
x86@kernel.org
Subject: Re: [PATCH v4 4/5] fbdev: Split frame buffer support in FB and FB_CORE symbols
Date: Tue, 4 Jul 2023 10:20:34 +0300 [thread overview]
Message-ID: <ZKPIQngz6WkzASqa@smile.fi.intel.com> (raw)
In-Reply-To: <20230703230534.997525-5-javierm@redhat.com>
On Tue, Jul 04, 2023 at 01:05:28AM +0200, Javier Martinez Canillas wrote:
> Currently the CONFIG_FB option has to be enabled even if no legacy fbdev
> drivers are needed (e.g: only to have support for framebuffer consoles).
>
> The DRM subsystem has a fbdev emulation layer, but depends on CONFIG_FB
> and so it can only be enabled if that dependency is enabled as well.
>
> That means fbdev drivers have to be explicitly disabled if users want to
> enable CONFIG_FB, only to use fbcon and/or the DRM fbdev emulation layer.
>
> This patch introduces a non-visible CONFIG_FB_CORE symbol that could be
> enabled just to have core support needed for CONFIG_DRM_FBDEV_EMULATION,
> allowing CONFIG_FB to be disabled (and automatically disabling all the
> fbdev drivers).
>
> Nothing from fb_backlight.o and fbmon.o is used by the DRM fbdev emulation
> layer so these two objects can be compiled out when CONFIG_FB is disabled.
...
Wondering if
if FB_CORE
...
endif
makes Kconfig looking better instead of replacing all these "depends on" lines.
> config FB_DEVICE
> bool "Provide legacy /dev/fb* device"
> - depends on FB
> + depends on FB_CORE
> default y
--
With Best Regards,
Andy Shevchenko
WARNING: multiple messages have this Message-ID (diff)
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Javier Martinez Canillas <javierm@redhat.com>
Cc: x86@kernel.org, linux-fbdev@vger.kernel.org,
Randy Dunlap <rdunlap@infradead.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Helge Deller <deller@gmx.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
"H. Peter Anvin" <hpa@zytor.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Thomas Gleixner <tglx@linutronix.de>,
Sam Ravnborg <sam@ravnborg.org>
Subject: Re: [PATCH v4 4/5] fbdev: Split frame buffer support in FB and FB_CORE symbols
Date: Tue, 4 Jul 2023 10:20:34 +0300 [thread overview]
Message-ID: <ZKPIQngz6WkzASqa@smile.fi.intel.com> (raw)
In-Reply-To: <20230703230534.997525-5-javierm@redhat.com>
On Tue, Jul 04, 2023 at 01:05:28AM +0200, Javier Martinez Canillas wrote:
> Currently the CONFIG_FB option has to be enabled even if no legacy fbdev
> drivers are needed (e.g: only to have support for framebuffer consoles).
>
> The DRM subsystem has a fbdev emulation layer, but depends on CONFIG_FB
> and so it can only be enabled if that dependency is enabled as well.
>
> That means fbdev drivers have to be explicitly disabled if users want to
> enable CONFIG_FB, only to use fbcon and/or the DRM fbdev emulation layer.
>
> This patch introduces a non-visible CONFIG_FB_CORE symbol that could be
> enabled just to have core support needed for CONFIG_DRM_FBDEV_EMULATION,
> allowing CONFIG_FB to be disabled (and automatically disabling all the
> fbdev drivers).
>
> Nothing from fb_backlight.o and fbmon.o is used by the DRM fbdev emulation
> layer so these two objects can be compiled out when CONFIG_FB is disabled.
...
Wondering if
if FB_CORE
...
endif
makes Kconfig looking better instead of replacing all these "depends on" lines.
> config FB_DEVICE
> bool "Provide legacy /dev/fb* device"
> - depends on FB
> + depends on FB_CORE
> default y
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2023-07-04 7:20 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-03 23:05 [PATCH v4 0/5] Allow disabling all native fbdev drivers and only keeping DRM emulation Javier Martinez Canillas
2023-07-03 23:05 ` Javier Martinez Canillas
2023-07-03 23:05 ` [PATCH v4 1/5] video: Add auxiliary display drivers to Graphics support menu Javier Martinez Canillas
2023-07-03 23:05 ` Javier Martinez Canillas
2023-07-04 7:37 ` Geert Uytterhoeven
2023-07-04 7:37 ` Geert Uytterhoeven
2023-07-04 7:54 ` Javier Martinez Canillas
2023-07-04 7:54 ` Javier Martinez Canillas
2023-07-04 8:01 ` Geert Uytterhoeven
2023-07-04 8:01 ` Geert Uytterhoeven
2023-07-04 8:05 ` Javier Martinez Canillas
2023-07-04 8:05 ` Javier Martinez Canillas
2023-07-03 23:05 ` [PATCH v4 2/5] fbdev: Move core fbdev symbols to a separate Kconfig file Javier Martinez Canillas
2023-07-03 23:05 ` Javier Martinez Canillas
2023-07-04 7:17 ` Andy Shevchenko
2023-07-04 7:17 ` Andy Shevchenko
2023-07-04 7:58 ` Javier Martinez Canillas
2023-07-04 7:58 ` Javier Martinez Canillas
2023-07-03 23:05 ` [PATCH v4 3/5] drm/arm: Make ARM devices menu depend on DRM Javier Martinez Canillas
2023-07-03 23:05 ` Javier Martinez Canillas
2023-07-04 16:12 ` Liviu Dudau
2023-07-04 16:12 ` Liviu Dudau
2023-07-10 16:57 ` Javier Martinez Canillas
2023-07-10 16:57 ` Javier Martinez Canillas
2023-07-03 23:05 ` [PATCH v4 4/5] fbdev: Split frame buffer support in FB and FB_CORE symbols Javier Martinez Canillas
2023-07-03 23:05 ` Javier Martinez Canillas
2023-07-04 7:20 ` Andy Shevchenko [this message]
2023-07-04 7:20 ` Andy Shevchenko
2023-07-04 7:21 ` Andy Shevchenko
2023-07-04 7:21 ` Andy Shevchenko
2023-07-04 7:56 ` Javier Martinez Canillas
2023-07-04 7:56 ` Javier Martinez Canillas
2023-07-03 23:05 ` [PATCH v4 5/5] drm: Make FB_CORE to be selected if DRM fbdev emulation is enabled Javier Martinez Canillas
2023-07-03 23:05 ` Javier Martinez Canillas
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=ZKPIQngz6WkzASqa@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=arnd@arndb.de \
--cc=bp@alien8.de \
--cc=daniel@ffwll.ch \
--cc=dave.hansen@linux.intel.com \
--cc=deller@gmx.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=geert@linux-m68k.org \
--cc=gregkh@linuxfoundation.org \
--cc=hpa@zytor.com \
--cc=javierm@redhat.com \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rdunlap@infradead.org \
--cc=sam@ravnborg.org \
--cc=tglx@linutronix.de \
--cc=tzimmermann@suse.de \
--cc=x86@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.