All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Helge Deller <deller@gmx.de>,
	Linux Fbdev development list <linux-fbdev@vger.kernel.org>,
	Sven Schnelle <svens@stackframe.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	DRI Development <dri-devel@lists.freedesktop.org>,
	Javier Martinez Canillas <javierm@redhat.com>,
	Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: [PATCH] MAINTAINERS: Add Helge as fbdev maintainer
Date: Fri, 21 Jan 2022 09:55:25 +0100	[thread overview]
Message-ID: <CAKMK7uF-V20qWTxQLvTC6GjC8Sg+Pst+UJ3pWCLQ4Q7Khgy62g@mail.gmail.com> (raw)
In-Reply-To: <20220120125015.sx5n7ziq3765rwyo@sirius.home.kraxel.org>

On Fri, Jan 21, 2022 at 9:46 AM Gerd Hoffmann <kraxel@redhat.com> wrote:
>
>   Hi,
>
> > What I still don't understand: why are you so keen on maintaining an
> > interface that only serves the console? Nothing else uses fbdev these days.
> > Why not improve DRM/userspace to the point where it fits your requirements?
> > Long-term, the latter would make a lot more sense.
>
> And note that it is *much* easier to write drm drivers these days.
> We got alot of helpers, we got generic fbdev emulation and more.
>
> If you are curious just compare the initial commit of the bochs drm
> driver with the current code.  Initially the driver had to manage ttm
> and fbdev and whatnot else.  These days writing a (non-accelerated) drm
> driver is basically some boilerplate picking the helpers which work best
> for your hardware, the code to actually program the hardware and that's
> it.
>
> The "new drivers should be drm" policy exists for years already btw,
> exactly because of the unfixable fbdev API limitations.  The bochs drm
> was a fbdev driver initially.  Never merged.  Got rewritten as drm
> driver and that was merged instead.  In 2013, almost a decade ago.
>
> And, yes, it very well might be that drm misses some piece here and
> there for specific hardware, such as fbdev emulation not supporting
> rgb332.  But I fully agree with Thomas here:  Improving drm is probably
> a much better way to spend your time.  drm is where the development
> happens.  fbdev is only kept alive.

Just to clarify, since we had lots of smaller and bigger
misunderstandings in the thread thus far: DRM_FORMAT_RGB332 exists, so
drm support that already. The fbdev emulation doesn't yet, but all
that's needed for that is filling out the code to remap the drm
description to the fbdev format description for this case. Plus
testing it all works ofc with fbcon and whatelse. Note that RGB332  is
a bit more work than e.g. C4, since atm fbdev still uses only bpp to
identify formats, so would need to be switch over to drm_fourcc first
before adding anything which aliases with something existing (we have
C8 already wired up).
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

WARNING: multiple messages have this Message-ID (diff)
From: Daniel Vetter <daniel@ffwll.ch>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: Linux Fbdev development list <linux-fbdev@vger.kernel.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Helge Deller <deller@gmx.de>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	DRI Development <dri-devel@lists.freedesktop.org>,
	Javier Martinez Canillas <javierm@redhat.com>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	Sven Schnelle <svens@stackframe.org>
Subject: Re: [PATCH] MAINTAINERS: Add Helge as fbdev maintainer
Date: Fri, 21 Jan 2022 09:55:25 +0100	[thread overview]
Message-ID: <CAKMK7uF-V20qWTxQLvTC6GjC8Sg+Pst+UJ3pWCLQ4Q7Khgy62g@mail.gmail.com> (raw)
In-Reply-To: <20220120125015.sx5n7ziq3765rwyo@sirius.home.kraxel.org>

On Fri, Jan 21, 2022 at 9:46 AM Gerd Hoffmann <kraxel@redhat.com> wrote:
>
>   Hi,
>
> > What I still don't understand: why are you so keen on maintaining an
> > interface that only serves the console? Nothing else uses fbdev these days.
> > Why not improve DRM/userspace to the point where it fits your requirements?
> > Long-term, the latter would make a lot more sense.
>
> And note that it is *much* easier to write drm drivers these days.
> We got alot of helpers, we got generic fbdev emulation and more.
>
> If you are curious just compare the initial commit of the bochs drm
> driver with the current code.  Initially the driver had to manage ttm
> and fbdev and whatnot else.  These days writing a (non-accelerated) drm
> driver is basically some boilerplate picking the helpers which work best
> for your hardware, the code to actually program the hardware and that's
> it.
>
> The "new drivers should be drm" policy exists for years already btw,
> exactly because of the unfixable fbdev API limitations.  The bochs drm
> was a fbdev driver initially.  Never merged.  Got rewritten as drm
> driver and that was merged instead.  In 2013, almost a decade ago.
>
> And, yes, it very well might be that drm misses some piece here and
> there for specific hardware, such as fbdev emulation not supporting
> rgb332.  But I fully agree with Thomas here:  Improving drm is probably
> a much better way to spend your time.  drm is where the development
> happens.  fbdev is only kept alive.

Just to clarify, since we had lots of smaller and bigger
misunderstandings in the thread thus far: DRM_FORMAT_RGB332 exists, so
drm support that already. The fbdev emulation doesn't yet, but all
that's needed for that is filling out the code to remap the drm
description to the fbdev format description for this case. Plus
testing it all works ofc with fbcon and whatelse. Note that RGB332  is
a bit more work than e.g. C4, since atm fbdev still uses only bpp to
identify formats, so would need to be switch over to drm_fourcc first
before adding anything which aliases with something existing (we have
C8 already wired up).
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

  reply	other threads:[~2022-01-21  8:55 UTC|newest]

Thread overview: 149+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-14 18:11 [PATCH] MAINTAINERS: Add Helge as fbdev maintainer Helge Deller
2022-01-14 18:31 ` Geert Uytterhoeven
2022-01-14 18:31   ` Geert Uytterhoeven
2022-01-17  9:48 ` Daniel Vetter
2022-01-17  9:48   ` Daniel Vetter
2022-01-17 10:02 ` Daniel Vetter
2022-01-17 10:02   ` Daniel Vetter
2022-01-17 10:19   ` Javier Martinez Canillas
2022-01-17 10:19     ` Javier Martinez Canillas
2022-01-17 10:49   ` Jani Nikula
2022-01-17 10:57     ` Helge Deller
2022-01-17 12:15   ` Helge Deller
2022-01-17 12:15     ` Helge Deller
2022-01-17 12:57     ` Gerd Hoffmann
2022-01-17 12:57       ` Gerd Hoffmann
2022-01-17 13:29       ` Geert Uytterhoeven
2022-01-17 13:29         ` Geert Uytterhoeven
2022-01-17 13:51         ` Thomas Zimmermann
2022-01-17 13:51           ` Thomas Zimmermann
2022-01-17 14:10           ` Geert Uytterhoeven
2022-01-17 14:10             ` Geert Uytterhoeven
2022-01-17 14:47             ` Helge Deller
2022-01-17 14:47               ` Helge Deller
2022-01-17 15:03               ` Daniel Vetter
2022-01-17 15:03                 ` Daniel Vetter
2022-01-17 20:17                 ` Helge Deller
2022-01-17 20:17                   ` Helge Deller
2022-01-18  6:29                   ` Gerd Hoffmann
2022-01-18  6:29                     ` Gerd Hoffmann
2022-01-18  8:10                     ` Geert Uytterhoeven
2022-01-18  8:10                       ` Geert Uytterhoeven
2022-01-18 11:44                       ` Daniel Vetter
2022-01-18 11:44                         ` Daniel Vetter
2022-01-18 14:23                       ` Thomas Zimmermann
2022-01-18 14:23                         ` Thomas Zimmermann
2022-01-18 14:39                         ` Simon Ser
2022-01-18 14:39                           ` Simon Ser
2022-01-20 12:50                         ` Gerd Hoffmann
2022-01-20 12:50                           ` Gerd Hoffmann
2022-01-21  8:55                           ` Daniel Vetter [this message]
2022-01-21  8:55                             ` Daniel Vetter
2022-01-24 18:38                             ` Geert Uytterhoeven
2022-01-24 18:38                               ` Geert Uytterhoeven
2022-01-24 18:50                               ` Daniel Vetter
2022-01-24 18:50                                 ` Daniel Vetter
2022-01-24 19:05                               ` Thomas Zimmermann
2022-01-24 19:05                                 ` Thomas Zimmermann
2022-01-18  8:20                     ` Helge Deller
2022-01-18  8:20                       ` Helge Deller
2022-01-18  9:16                       ` Gerd Hoffmann
2022-01-18  9:16                         ` Gerd Hoffmann
2022-01-18 10:13                         ` Helge Deller
2022-01-18 10:13                           ` Helge Deller
2022-01-18 10:44                           ` Helge Deller
2022-01-18 10:44                             ` Helge Deller
2022-01-18 12:48                           ` Gerd Hoffmann
2022-01-18 12:48                             ` Gerd Hoffmann
2022-01-17 15:05               ` Thomas Zimmermann
2022-01-17 15:05                 ` Thomas Zimmermann
2022-01-17 16:05                 ` Helge Deller
2022-01-17 16:05                   ` Helge Deller
2022-01-17 14:53             ` Thomas Zimmermann
2022-01-17 14:53               ` Thomas Zimmermann
2022-01-18  6:11         ` Gerd Hoffmann
2022-01-18  6:11           ` Gerd Hoffmann
2022-01-18  8:09           ` Helge Deller
2022-01-18  8:09             ` Helge Deller
2022-01-17 15:00     ` Daniel Vetter
2022-01-17 15:00       ` Daniel Vetter
2022-01-17 15:42       ` Helge Deller
2022-01-17 15:42         ` Helge Deller
2022-01-17 15:56         ` Daniel Vetter
2022-01-17 15:56           ` Daniel Vetter
2022-01-17 15:58         ` Thomas Zimmermann
2022-01-17 15:58           ` Thomas Zimmermann
2022-01-17 16:21           ` Helge Deller
2022-01-17 16:21             ` Helge Deller
2022-01-17 16:38             ` Daniel Vetter
2022-01-17 16:38               ` Daniel Vetter
2022-01-17 17:19               ` Helge Deller
2022-01-17 17:19                 ` Helge Deller
2022-01-17 19:45             ` Helge Deller
2022-01-17 19:45               ` Helge Deller
2022-01-17 21:55               ` Ilia Mirkin
2022-01-17 21:55                 ` Ilia Mirkin
2022-01-18 11:14                 ` Daniel Vetter
2022-01-18 11:14                   ` Daniel Vetter
2022-01-18 14:14             ` Thomas Zimmermann
2022-01-18 14:14               ` Thomas Zimmermann
2022-01-17 21:40           ` Jani Nikula
2022-01-17 21:40             ` Jani Nikula
2022-01-17 21:44             ` Helge Deller
2022-01-17 21:44               ` Helge Deller
2022-01-18  8:38               ` Jani Nikula
2022-01-18  8:38                 ` Jani Nikula
2022-01-18  8:41                 ` Geert Uytterhoeven
2022-01-18  8:41                   ` Geert Uytterhoeven
2022-01-18 11:41                   ` Daniel Vetter
2022-01-18 11:41                     ` Daniel Vetter
2022-01-18 12:11                     ` Simon Ser
2022-01-18 12:11                       ` Simon Ser
2022-01-18  8:54                 ` Helge Deller
2022-01-18  8:54                   ` Helge Deller
2022-01-18  9:33                   ` Javier Martinez Canillas
2022-01-18  9:33                     ` Javier Martinez Canillas
2022-01-18  9:45                     ` Geert Uytterhoeven
2022-01-18  9:45                       ` Geert Uytterhoeven
2022-01-18 11:18                   ` Daniel Vetter
2022-01-18 11:18                     ` Daniel Vetter
2022-01-18 11:42                     ` Helge Deller
2022-01-18 11:42                       ` Helge Deller
2022-01-18  8:41       ` Helge Deller
2022-01-18  8:41         ` Helge Deller
2022-01-18  9:12         ` Helge Deller
2022-01-18  9:12           ` Helge Deller
2022-01-17 11:16 ` Thomas Zimmermann
2022-01-17 11:33   ` Helge Deller
2022-01-17 12:13     ` Thomas Zimmermann
2022-01-17 18:47   ` Sven Schnelle
2022-01-18  8:33     ` Pekka Paalanen
2022-01-18  8:33       ` Pekka Paalanen
2022-01-18  9:53       ` Gerd Hoffmann
2022-01-18  9:53         ` Gerd Hoffmann
2022-01-18 11:22         ` Daniel Vetter
2022-01-18 11:22           ` Daniel Vetter
2022-01-18 12:07           ` Gerd Hoffmann
2022-01-18 12:07             ` Gerd Hoffmann
2022-01-19  8:39         ` Pekka Paalanen
2022-01-19  8:39           ` Pekka Paalanen
2022-01-20  9:06         ` Geert Uytterhoeven
2022-01-20  9:06           ` Geert Uytterhoeven
2022-01-20 11:32           ` Daniel Vetter
2022-01-20 11:32             ` Daniel Vetter
2022-01-20 12:13             ` Geert Uytterhoeven
2022-01-20 12:13               ` Geert Uytterhoeven
2022-01-20 12:33               ` Daniel Vetter
2022-01-20 12:33                 ` Daniel Vetter
2022-01-20 12:46                 ` Geert Uytterhoeven
2022-01-20 12:46                   ` Geert Uytterhoeven
2022-01-24 18:50                 ` Geert Uytterhoeven
2022-01-24 18:50                   ` Geert Uytterhoeven
2022-01-24 19:37                   ` Daniel Vetter
2022-01-24 19:37                     ` Daniel Vetter
2022-01-20 11:51           ` Gerd Hoffmann
2022-01-20 11:51             ` Gerd Hoffmann
2022-01-18  8:58     ` Michel Dänzer
2022-01-18 10:05       ` Sven Schnelle
2022-01-18 10:05         ` Sven Schnelle
2022-01-18 14:06     ` Thomas Zimmermann

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=CAKMK7uF-V20qWTxQLvTC6GjC8Sg+Pst+UJ3pWCLQ4Q7Khgy62g@mail.gmail.com \
    --to=daniel@ffwll.ch \
    --cc=deller@gmx.de \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=geert@linux-m68k.org \
    --cc=javierm@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=svens@stackframe.org \
    --cc=torvalds@linux-foundation.org \
    --cc=tzimmermann@suse.de \
    /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.