drm/omapdrm: drop fb_debug_enter/leave
PATCH 1/2 drm/omapdrm: drop fb_debug_enter/leave
This is a no-op on atomic drivers because with atomic it's simply too complicated to get all the locking and workers and nonblocking synchronization correct, from essentially an NMI context. Well, too complicated = impossible. Also, omapdrm never implemented the mode_set_base_atomic hook, so I kinda wonder why this was ever added.
Drop the hooks.
--- drivers/gpu/drm/omapdrm/omap_fbdev.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/omapdrm/omap_fbdev.c +0 -2
@@ -87,8 +87,6 @@ static struct fb_ops omap_fb_ops = { .fb_setcmap = drm_fb_helper_setcmap, .fb_blank = drm_fb_helper_blank, .fb_pan_display = omap_fbdev_pan_display, - .fb_debug_enter = drm_fb_helper_debug_enter, - .fb_debug_leave = drm_fb_helper_debug_leave, .fb_ioctl = drm_fb_helper_ioctl, .fb_read = drm_fb_helper_sys_read,
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/2 drm/ast: Drop fb_debug_enter/leave
ast doesn't implement the mode_set_base_atomic hook this would need, so this is dead code.
--- drivers/gpu/drm/ast/ast_fb.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/ast/ast_fb.c +0 -2
@@ -166,8 +166,6 @@ static struct fb_ops astfb_ops = { .fb_pan_display = drm_fb_helper_pan_display, .fb_blank = drm_fb_helper_blank, .fb_setcmap = drm_fb_helper_setcmap, - .fb_debug_enter = drm_fb_helper_debug_enter, - .fb_debug_leave = drm_fb_helper_debug_leave, }; static int astfb_create_object(struct ast_fbdev *afbdev,
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 2/2] drm/ast: Drop fb_debug_enter/leave
Am 12.06.19 um 11:12 schrieb Daniel Vetter:
Quoted 30 lines
ast doesn't implement the
mode_set_base_atomichook this would need, so this is dead code.Signed-off-by Daniel Vetter <[email protected]>Cc Dave Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Gerd Hoffmann <[email protected]>Cc Thomas Zimmermann <[email protected]>Cc Alex Deucher <[email protected]>Cc Sam Bobroff <[email protected]>Cc Sam Ravnborg <[email protected]>Cc YueHaibing <[email protected]>--- drivers/gpu/drm/ast/ast_fb.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/ast/ast_fb.c +0
-2@@ -166,8 +166,6 @@ static struct fb_ops astfb_ops = { .fb_pan_display = drm_fb_helper_pan_display, .fb_blank = drm_fb_helper_blank, .fb_setcmap = drm_fb_helper_setcmap, - .fb_debug_enter = drm_fb_helper_debug_enter, - .fb_debug_leave = drm_fb_helper_debug_leave, }; static int astfb_create_object(struct ast_fbdev *afbdev,
Signature · 5 lines
Thomas Zimmermann Graphics Driver Developer SUSE Linux GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 21284 (AG Nürnberg)
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 2/2] drm/ast: Drop fb_debug_enter/leave
Quoted 1 line · Thomas Zimmermann
Thanks for taking a look, pushed to drm-misc-next. -Daniel
Quoted 40 lines
Am 12.06.19 um 11:12 schrieb Daniel Vetter:
Quoted 30 lines
ast doesn't implement the
mode_set_base_atomichook this would need, so this is dead code.Signed-off-by Daniel Vetter <[email protected]>Cc Dave Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Gerd Hoffmann <[email protected]>Cc Thomas Zimmermann <[email protected]>Cc Alex Deucher <[email protected]>Cc Sam Bobroff <[email protected]>Cc Sam Ravnborg <[email protected]>Cc YueHaibing <[email protected]>--- drivers/gpu/drm/ast/ast_fb.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/ast/ast_fb.c +0
-2@@ -166,8 +166,6 @@ static struct fb_ops astfb_ops = { .fb_pan_display = drm_fb_helper_pan_display, .fb_blank = drm_fb_helper_blank, .fb_setcmap = drm_fb_helper_setcmap, - .fb_debug_enter = drm_fb_helper_debug_enter, - .fb_debug_leave = drm_fb_helper_debug_leave, }; static int astfb_create_object(struct ast_fbdev *afbdev,Signature · 5 lines
Thomas Zimmermann Graphics Driver Developer SUSE Linux GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 21284 (AG Nürnberg)
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 7 lines · Daniel Vetter
This is a no-op on atomic drivers because with atomic it's simply too complicated to get all the locking and workers and nonblocking synchronization correct, from essentially an NMI context. Well, too complicated = impossible. Also, omapdrm never implemented the
mode_set_base_atomichook, so I kinda wonder why this was ever added.Drop the hooks.
f9b34a0fa4e25d9c0b72f124680c37c0c38f9934
It was just open coding DRM_FB_HELPER_DEFAULT_OPS, to get rid of "Initializer entry defined twice" warning.
Or I can pick it up to my branch if this is not part of a bigger series.
Tomi
Signature · 6 lines
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 10 lines · Tomi Valkeinen
Quoted 7 lines · Daniel Vetter
This is a no-op on atomic drivers because with atomic it's simply too complicated to get all the locking and workers and nonblocking synchronization correct, from essentially an NMI context. Well, too complicated = impossible. Also, omapdrm never implemented the
mode_set_base_atomichook, so I kinda wonder why this was ever added.Drop the hooks.
Quoted 8 lines
f9b34a0fa4e25d9c0b72f124680c37c0c38f9934It was just open coding
DRM_FB_HELPER_DEFAULT_OPS, to get rid of "Initializer entry defined twice" warning.Acked-by Tomi Valkeinen <[email protected]>Or I can pick it up to my branch if this is not part of a bigger series.
Not part of a bigger series, there's still a bunch of real users of this in-tree. Although given how absolutely no one seems to care to make kgdb work on top of atomic drivers I'm hoping I can sunset all this code soon.
-Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel