From: Stefan Agner <stefan@agner.ch>
To: Leonard Crestez <leonard.crestez@nxp.com>
Cc: marex@denx.de, devicetree@vger.kernel.org,
linux-fbdev@vger.kernel.org, marcofrk@gmail.com,
shawnguo@kernel.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org, marek.vasut@gmail.com,
dl-linux-imx <linux-imx@nxp.com>,
kernel@pengutronix.de, Fabio Estevam <fabio.estevam@nxp.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 1/3] drm: mxsfb: Change driver.name to mxsfb-drm
Date: Thu, 12 Jul 2018 13:46:33 +0000 [thread overview]
Message-ID: <ce461f1f192de0648feb2db148edf60b@agner.ch> (raw)
In-Reply-To: <7f40f34a401ced78703b1a151d9f5fe4ed8c209f.camel@nxp.com>
On 12.07.2018 15:03, Leonard Crestez wrote:
> On Thu, 2018-07-12 at 11:21 +0200, Stefan Agner wrote:
>> On 10.07.2018 11:11, Marek Vasut wrote:
>> > On 07/10/2018 11:06 AM, Stefan Agner wrote:
>> > > This is one of the situation where states quo is kinda the worst
>> > > situation.
>> > >
>> > > Currently imx_v6_v7_defconfig and mxs_defconfig actually still uses
>> > > CONFIG_FB_MXS.
>> > >
>> > > I understand that you'd rather prefer to move forward. I suggest we do
>> > > it in steps.
>> > >
>> > > In 4.19:
>> > >
>> > > - Change DRM driver.name to mxsfb-drm so we avoid conflicts for now
>> >
>> > But this will break mesa if it depends on mxsfb name for ie. etnaviv
>> > binding.
>>
>> Does it? grep -r -e mxsfb in libdrm and mesa master returns nothing.
>>
>> There is also .name in struct drm_driver, which is already set to
>> mxsfb-drm... Is that the one exposed to user space?
>
> Running etnaviv+x11 with a renamed mxsfb driver works fine on imx6sx-
> sdb.
>
> Tools like modetest already need -M mxsfb-drm, the drm_driver.name
> seems to be what matters.
Ok, almost thought so, thanks for the confirmation! So we should be
good.
>
>> - Remove CONFIG_FB_MXS from imx_v6_v7_defconfig/mxs_defconfig now, and
>> only enable CONFIG_DRM_MXSFB=y
>
> If one of the drivers is renamed then they can coexist: since the
> bindings are distinct one driver will return a probe error and the
> other will bind successfully. This can even be adjusted so that it
> doesn't even print ugly scary errors.
>
> This can last until somebody implements support for old bindings in the
> drm driver and then FB_MXS can just be deleted.
Yeah I guess that is what Marek don't want because it promotes using
FB_MXS for longer than needed.
I don't care as much since we anyway use the MXSFB DRM driver. However,
what I really dislike is that a kernel compiled with both drivers
currently leads to MXSFB DRM being unusable (because fbdev gets probed
first). I feel removing the MXS_FB is rather harsh, so I *really* would
love to see the MXSFB DRM driver renamed.
--
Stefan
next prev parent reply other threads:[~2018-07-12 13:46 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-15 19:43 [PATCH 0/3] ARM: imx: Make DRM_MXSFB and FB_MXS coexist Leonard Crestez
2018-06-15 19:43 ` [PATCH 1/3] drm: mxsfb: Change driver.name to mxsfb-drm Leonard Crestez
2018-06-15 19:47 ` Fabio Estevam
2018-06-15 20:58 ` Leonard Crestez
2018-06-15 21:05 ` Fabio Estevam
2018-06-15 21:36 ` Marek Vasut
2018-06-15 22:22 ` Fabio Estevam
2018-06-15 23:29 ` Marek Vasut
2018-06-15 22:42 ` Leonard Crestez
2018-06-15 23:32 ` Marek Vasut
2018-06-18 7:43 ` Daniel Vetter
2018-06-18 8:13 ` Stefan Agner
2018-07-10 9:06 ` Stefan Agner
2018-07-10 9:11 ` Marek Vasut
2018-07-12 9:21 ` Stefan Agner
2018-07-12 13:03 ` Leonard Crestez
2018-07-12 13:14 ` Marek Vasut
2018-07-13 7:25 ` Daniel Vetter
2018-07-12 13:46 ` Stefan Agner [this message]
2018-07-12 12:15 ` Stefan Agner
2018-06-15 19:43 ` [PATCH 2/3] fbdev: mxsfb: Return ENODEV on missing display node Leonard Crestez
2018-06-15 19:43 ` [PATCH 3/3] ARM: imx_v6_v7_defconfig: Enable DRM_MXSFB Leonard Crestez
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=ce461f1f192de0648feb2db148edf60b@agner.ch \
--to=stefan@agner.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=fabio.estevam@nxp.com \
--cc=kernel@pengutronix.de \
--cc=leonard.crestez@nxp.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marcofrk@gmail.com \
--cc=marek.vasut@gmail.com \
--cc=marex@denx.de \
--cc=shawnguo@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).