* [PATCH 1/2] drm/bochs: Clear struct drm_connector_funcs.dpms
@ 2020-02-07 14:16 Thomas Zimmermann
2020-02-07 14:16 ` [PATCH 2/2] drm/udl: " Thomas Zimmermann
2020-02-10 8:58 ` [PATCH 1/2] drm/bochs: " Gerd Hoffmann
0 siblings, 2 replies; 6+ messages in thread
From: Thomas Zimmermann @ 2020-02-07 14:16 UTC (permalink / raw)
To: kraxel, airlied, daniel, sean, emil.l.velikov, sam
Cc: Thomas Zimmermann, dri-devel
Atomic modesetting doesn't use struct drm_connector_funcs.dpms and
the set function, drm_helper_connector_dpms(), wouldn't support it
anyway. So keep the pointer to NULL.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
---
drivers/gpu/drm/bochs/bochs_kms.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/bochs/bochs_kms.c b/drivers/gpu/drm/bochs/bochs_kms.c
index cc93ff74fbd8..7410b0ea4623 100644
--- a/drivers/gpu/drm/bochs/bochs_kms.c
+++ b/drivers/gpu/drm/bochs/bochs_kms.c
@@ -88,7 +88,6 @@ static const struct drm_connector_helper_funcs bochs_connector_connector_helper_
};
static const struct drm_connector_funcs bochs_connector_connector_funcs = {
- .dpms = drm_helper_connector_dpms,
.fill_modes = drm_helper_probe_single_connector_modes,
.destroy = drm_connector_cleanup,
.reset = drm_atomic_helper_connector_reset,
--
2.25.0
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] drm/udl: Clear struct drm_connector_funcs.dpms
2020-02-07 14:16 [PATCH 1/2] drm/bochs: Clear struct drm_connector_funcs.dpms Thomas Zimmermann
@ 2020-02-07 14:16 ` Thomas Zimmermann
2020-02-07 16:41 ` Daniel Vetter
2020-02-10 8:58 ` [PATCH 1/2] drm/bochs: " Gerd Hoffmann
1 sibling, 1 reply; 6+ messages in thread
From: Thomas Zimmermann @ 2020-02-07 14:16 UTC (permalink / raw)
To: kraxel, airlied, daniel, sean, emil.l.velikov, sam
Cc: Thomas Zimmermann, dri-devel
Atomic modesetting doesn't use struct drm_connector_funcs.dpms and
the set function, drm_helper_connector_dpms(), wouldn't support it
anyway. So keep the pointer to NULL.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
---
drivers/gpu/drm/udl/udl_connector.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/udl/udl_connector.c b/drivers/gpu/drm/udl/udl_connector.c
index e9671d38b4a0..0afdfb0d1fe1 100644
--- a/drivers/gpu/drm/udl/udl_connector.c
+++ b/drivers/gpu/drm/udl/udl_connector.c
@@ -109,7 +109,6 @@ static const struct drm_connector_helper_funcs udl_connector_helper_funcs = {
};
static const struct drm_connector_funcs udl_connector_funcs = {
- .dpms = drm_helper_connector_dpms,
.reset = drm_atomic_helper_connector_reset,
.detect = udl_detect,
.fill_modes = drm_helper_probe_single_connector_modes,
--
2.25.0
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] drm/udl: Clear struct drm_connector_funcs.dpms
2020-02-07 14:16 ` [PATCH 2/2] drm/udl: " Thomas Zimmermann
@ 2020-02-07 16:41 ` Daniel Vetter
2020-02-10 8:09 ` Thomas Zimmermann
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Vetter @ 2020-02-07 16:41 UTC (permalink / raw)
To: Thomas Zimmermann; +Cc: airlied, sam, emil.l.velikov, dri-devel, kraxel, sean
On Fri, Feb 07, 2020 at 03:16:02PM +0100, Thomas Zimmermann wrote:
> Atomic modesetting doesn't use struct drm_connector_funcs.dpms and
> the set function, drm_helper_connector_dpms(), wouldn't support it
> anyway. So keep the pointer to NULL.
>
> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
On both patches:
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
I just suggested a drm_mode_config_validate() to Ville in his patch
series, which runs in drm_dev_register(). Maybe we could add a check for
that for atomic drivers? It's a bit a game of whack-a-mole otherwise :-)
-Daniel
> ---
> drivers/gpu/drm/udl/udl_connector.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/udl/udl_connector.c b/drivers/gpu/drm/udl/udl_connector.c
> index e9671d38b4a0..0afdfb0d1fe1 100644
> --- a/drivers/gpu/drm/udl/udl_connector.c
> +++ b/drivers/gpu/drm/udl/udl_connector.c
> @@ -109,7 +109,6 @@ static const struct drm_connector_helper_funcs udl_connector_helper_funcs = {
> };
>
> static const struct drm_connector_funcs udl_connector_funcs = {
> - .dpms = drm_helper_connector_dpms,
> .reset = drm_atomic_helper_connector_reset,
> .detect = udl_detect,
> .fill_modes = drm_helper_probe_single_connector_modes,
> --
> 2.25.0
>
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] drm/udl: Clear struct drm_connector_funcs.dpms
2020-02-07 16:41 ` Daniel Vetter
@ 2020-02-10 8:09 ` Thomas Zimmermann
2020-02-11 12:02 ` Emil Velikov
0 siblings, 1 reply; 6+ messages in thread
From: Thomas Zimmermann @ 2020-02-10 8:09 UTC (permalink / raw)
To: Daniel Vetter; +Cc: airlied, sam, emil.l.velikov, dri-devel, kraxel, sean
[-- Attachment #1.1.1: Type: text/plain, Size: 1870 bytes --]
Hi
Am 07.02.20 um 17:41 schrieb Daniel Vetter:
> On Fri, Feb 07, 2020 at 03:16:02PM +0100, Thomas Zimmermann wrote:
>> Atomic modesetting doesn't use struct drm_connector_funcs.dpms and
>> the set function, drm_helper_connector_dpms(), wouldn't support it
>> anyway. So keep the pointer to NULL.
>>
>> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
>
> On both patches:
>
> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
>
> I just suggested a drm_mode_config_validate() to Ville in his patch
> series, which runs in drm_dev_register(). Maybe we could add a check for
> that for atomic drivers? It's a bit a game of whack-a-mole otherwise :-)
From the 'git grep' I'd say those where the only atomic drivers to set
the callback. The others where non-atomic ones. OTOH, I recently thought
on several occasions that this or that behaviour should be enforced at
least by WARN_ON.
Best regards
Thomas
> -Daniel
>
>> ---
>> drivers/gpu/drm/udl/udl_connector.c | 1 -
>> 1 file changed, 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/udl/udl_connector.c b/drivers/gpu/drm/udl/udl_connector.c
>> index e9671d38b4a0..0afdfb0d1fe1 100644
>> --- a/drivers/gpu/drm/udl/udl_connector.c
>> +++ b/drivers/gpu/drm/udl/udl_connector.c
>> @@ -109,7 +109,6 @@ static const struct drm_connector_helper_funcs udl_connector_helper_funcs = {
>> };
>>
>> static const struct drm_connector_funcs udl_connector_funcs = {
>> - .dpms = drm_helper_connector_dpms,
>> .reset = drm_atomic_helper_connector_reset,
>> .detect = udl_detect,
>> .fill_modes = drm_helper_probe_single_connector_modes,
>> --
>> 2.25.0
>>
>
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] drm/bochs: Clear struct drm_connector_funcs.dpms
2020-02-07 14:16 [PATCH 1/2] drm/bochs: Clear struct drm_connector_funcs.dpms Thomas Zimmermann
2020-02-07 14:16 ` [PATCH 2/2] drm/udl: " Thomas Zimmermann
@ 2020-02-10 8:58 ` Gerd Hoffmann
1 sibling, 0 replies; 6+ messages in thread
From: Gerd Hoffmann @ 2020-02-10 8:58 UTC (permalink / raw)
To: Thomas Zimmermann; +Cc: airlied, sam, emil.l.velikov, dri-devel, sean
On Fri, Feb 07, 2020 at 03:16:01PM +0100, Thomas Zimmermann wrote:
> Atomic modesetting doesn't use struct drm_connector_funcs.dpms and
> the set function, drm_helper_connector_dpms(), wouldn't support it
> anyway. So keep the pointer to NULL.
>
> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] drm/udl: Clear struct drm_connector_funcs.dpms
2020-02-10 8:09 ` Thomas Zimmermann
@ 2020-02-11 12:02 ` Emil Velikov
0 siblings, 0 replies; 6+ messages in thread
From: Emil Velikov @ 2020-02-11 12:02 UTC (permalink / raw)
To: Thomas Zimmermann
Cc: Dave Airlie, Sam Ravnborg, ML dri-devel, Gerd Hoffmann, Sean Paul
On Mon, 10 Feb 2020 at 08:10, Thomas Zimmermann <tzimmermann@suse.de> wrote:
>
> Hi
>
> Am 07.02.20 um 17:41 schrieb Daniel Vetter:
> > On Fri, Feb 07, 2020 at 03:16:02PM +0100, Thomas Zimmermann wrote:
> >> Atomic modesetting doesn't use struct drm_connector_funcs.dpms and
> >> the set function, drm_helper_connector_dpms(), wouldn't support it
> >> anyway. So keep the pointer to NULL.
> >>
> >> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> >
> > On both patches:
> >
> > Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> >
> > I just suggested a drm_mode_config_validate() to Ville in his patch
> > series, which runs in drm_dev_register(). Maybe we could add a check for
> > that for atomic drivers? It's a bit a game of whack-a-mole otherwise :-)
>
> From the 'git grep' I'd say those where the only atomic drivers to set
> the callback. The others where non-atomic ones. OTOH, I recently thought
> on several occasions that this or that behaviour should be enforced at
> least by WARN_ON.
>
Having a WARN_ON was my first idea as I saw these patches fly-by.
Sure it will add some dmesg noise in the very odd corner-case.
At the same time, it will high-light existing and future bugs so that
we can address them promptly.
Emil
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-02-11 12:02 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-07 14:16 [PATCH 1/2] drm/bochs: Clear struct drm_connector_funcs.dpms Thomas Zimmermann
2020-02-07 14:16 ` [PATCH 2/2] drm/udl: " Thomas Zimmermann
2020-02-07 16:41 ` Daniel Vetter
2020-02-10 8:09 ` Thomas Zimmermann
2020-02-11 12:02 ` Emil Velikov
2020-02-10 8:58 ` [PATCH 1/2] drm/bochs: " Gerd Hoffmann
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.