* [PATCH] drm: drm_probe_helper: add modes upto 1920x1080
@ 2021-11-15 16:01 Angus Ainslie
2021-11-16 8:44 ` Jani Nikula
0 siblings, 1 reply; 3+ messages in thread
From: Angus Ainslie @ 2021-11-15 16:01 UTC (permalink / raw)
To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
Cc: David Airlie, Daniel Vetter, dri-devel, linux-kernel, kernel,
Angus Ainslie
Lots of monitors nowdays support more than 1024x768 so if the EDID is
unknown then add resolutions upto 1920x1080.
Signed-off-by: Angus Ainslie <angus@akkea.ca>
---
drivers/gpu/drm/drm_probe_helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_probe_helper.c b/drivers/gpu/drm/drm_probe_helper.c
index e7e1ee2aa352..5ad66ae9916e 100644
--- a/drivers/gpu/drm/drm_probe_helper.c
+++ b/drivers/gpu/drm/drm_probe_helper.c
@@ -517,7 +517,7 @@ int drm_helper_probe_single_connector_modes(struct drm_connector *connector,
if (count == 0 && (connector->status == connector_status_connected ||
connector->status == connector_status_unknown))
- count = drm_add_modes_noedid(connector, 1024, 768);
+ count = drm_add_modes_noedid(connector, 1920, 1080);
count += drm_helper_probe_add_cmdline_mode(connector);
if (count == 0)
goto prune;
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm: drm_probe_helper: add modes upto 1920x1080
2021-11-15 16:01 [PATCH] drm: drm_probe_helper: add modes upto 1920x1080 Angus Ainslie
@ 2021-11-16 8:44 ` Jani Nikula
2021-11-16 8:50 ` Daniel Vetter
0 siblings, 1 reply; 3+ messages in thread
From: Jani Nikula @ 2021-11-16 8:44 UTC (permalink / raw)
To: Angus Ainslie, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann
Cc: kernel, David Airlie, Angus Ainslie, linux-kernel, dri-devel,
ville.syrjala
Cc: Ville
On Mon, 15 Nov 2021, Angus Ainslie <angus@akkea.ca> wrote:
> Lots of monitors nowdays support more than 1024x768 so if the EDID is
> unknown then add resolutions upto 1920x1080.
IIUC it's supposed to be the fallback that's pretty much guaranteed to
work. What's going to happen if we add 1920x1080 and it fails?
BR,
Jani.
>
> Signed-off-by: Angus Ainslie <angus@akkea.ca>
> ---
> drivers/gpu/drm/drm_probe_helper.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/drm_probe_helper.c b/drivers/gpu/drm/drm_probe_helper.c
> index e7e1ee2aa352..5ad66ae9916e 100644
> --- a/drivers/gpu/drm/drm_probe_helper.c
> +++ b/drivers/gpu/drm/drm_probe_helper.c
> @@ -517,7 +517,7 @@ int drm_helper_probe_single_connector_modes(struct drm_connector *connector,
>
> if (count == 0 && (connector->status == connector_status_connected ||
> connector->status == connector_status_unknown))
> - count = drm_add_modes_noedid(connector, 1024, 768);
> + count = drm_add_modes_noedid(connector, 1920, 1080);
> count += drm_helper_probe_add_cmdline_mode(connector);
> if (count == 0)
> goto prune;
--
Jani Nikula, Intel Open Source Graphics Center
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm: drm_probe_helper: add modes upto 1920x1080
2021-11-16 8:44 ` Jani Nikula
@ 2021-11-16 8:50 ` Daniel Vetter
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Vetter @ 2021-11-16 8:50 UTC (permalink / raw)
To: Jani Nikula
Cc: Angus Ainslie, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, kernel, David Airlie, linux-kernel, dri-devel
On Tue, Nov 16, 2021 at 9:44 AM Jani Nikula <jani.nikula@linux.intel.com> wrote:
>
>
> Cc: Ville
>
> On Mon, 15 Nov 2021, Angus Ainslie <angus@akkea.ca> wrote:
> > Lots of monitors nowdays support more than 1024x768 so if the EDID is
> > unknown then add resolutions upto 1920x1080.
>
> IIUC it's supposed to be the fallback that's pretty much guaranteed to
> work. What's going to happen if we add 1920x1080 and it fails?
Yeah unless we are now in a times where monitors fail to light up
these very low resolutions then I don't think adding more here is a
good idea. This absolute fallback list is _not_ about making things
good, but about getting anything onto the screen. If we really, really
need this (and then it needs good reasons) then a defensive approach
might be to add more modes, but still leave the old 1024x768 as the
preferred one. That would avoid any regression potential.
Otherwise this just becomes a game of "I want to have the best mode
for my broken screen without working edid as the default", which is
no-go.
-Daniel
> BR,
> Jani.
>
> >
> > Signed-off-by: Angus Ainslie <angus@akkea.ca>
> > ---
> > drivers/gpu/drm/drm_probe_helper.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/drm_probe_helper.c b/drivers/gpu/drm/drm_probe_helper.c
> > index e7e1ee2aa352..5ad66ae9916e 100644
> > --- a/drivers/gpu/drm/drm_probe_helper.c
> > +++ b/drivers/gpu/drm/drm_probe_helper.c
> > @@ -517,7 +517,7 @@ int drm_helper_probe_single_connector_modes(struct drm_connector *connector,
> >
> > if (count == 0 && (connector->status == connector_status_connected ||
> > connector->status == connector_status_unknown))
> > - count = drm_add_modes_noedid(connector, 1024, 768);
> > + count = drm_add_modes_noedid(connector, 1920, 1080);
> > count += drm_helper_probe_add_cmdline_mode(connector);
> > if (count == 0)
> > goto prune;
>
> --
> Jani Nikula, Intel Open Source Graphics Center
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-11-16 8:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-15 16:01 [PATCH] drm: drm_probe_helper: add modes upto 1920x1080 Angus Ainslie
2021-11-16 8:44 ` Jani Nikula
2021-11-16 8:50 ` Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox