From: Javier Martinez Canillas <javierm@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: "Neal Gompa" <ngompa13@gmail.com>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"Peter Robinson" <pbrobinson@gmail.com>,
"Ville Syrjälä" <ville.syrjala@linux.intel.com>,
"Javier Martinez Canillas" <javierm@redhat.com>,
"Daniel Vetter" <daniel@ffwll.ch>,
"David Airlie" <airlied@linux.ie>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
dri-devel@lists.freedesktop.org
Subject: [PATCH v2 0/2] Add a drm.disable_native_drivers command line option
Date: Mon, 25 Oct 2021 09:57:54 +0200 [thread overview]
Message-ID: <20211025075756.3479157-1-javierm@redhat.com> (raw)
This patch-series add a drm.disable_native_drivers option that can be used
to prevent native DRM drivers to be probed. That way, the simpledrm driver
won't be removed which can be useful to troubleshoot DRM drivers problems.
Patch #1 is just a small preparatory patch that moves the logic to remove
the conflicting fbdev frame buffer to a helper function.
Patch #2 adds the new kernel command line option and if set, prevents the
drm_aperture_remove_conflicting_framebuffers() function to succeed.
This is a v2 that addresses the issues pointed out by Thomas and Neal.
Best regards,
Javier
Changes in v2:
- Rename command line parameter to drm.disable_native_drivers.
- Return -EBUSY instead of -EINVAL when the function fails.
- Invert the parameter logic and make it false by default.
Javier Martinez Canillas (2):
drm/aperture: Move conflicting fbdev frame buffer removal to a helper
drm/aperture: Prevent conflicting framebuffers removal if option is
set
drivers/gpu/drm/drm_aperture.c | 54 ++++++++++++++++++++++++++--------
1 file changed, 42 insertions(+), 12 deletions(-)
--
2.31.1
next reply other threads:[~2021-10-25 7:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-25 7:57 Javier Martinez Canillas [this message]
2021-10-25 7:57 ` [PATCH v2 1/2] drm/aperture: Move conflicting fbdev frame buffer removal to a helper Javier Martinez Canillas
2021-11-02 9:13 ` Thomas Zimmermann
2021-10-25 7:57 ` [PATCH v2 2/2] drm/aperture: Prevent conflicting framebuffers removal if option is set 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=20211025075756.3479157-1-javierm@redhat.com \
--to=javierm@redhat.com \
--cc=airlied@linux.ie \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=ngompa13@gmail.com \
--cc=pbrobinson@gmail.com \
--cc=tzimmermann@suse.de \
--cc=ville.syrjala@linux.intel.com \
/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
all inboxes | Powered by JetHome®