drm/vmwgfx: Fix a boot time warning
Subsystems (3)
PATCH 1/1 drm/vmwgfx: Fix a boot time warning
From: Woody Suwalski <[email protected]>
The 4.15 vmwgfx driver shows a warning during boot.
It is caused by a mismatch between the result of vmw_enable_vblank() and what the drm_atomic_helper expects.
Signed-off by: Woody Suwalski <[email protected]>
--- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +1 -1
@@ -1863,7 +1863,7 @@ u32 vmw_get_vblank_counter(struct drm_device *dev, unsigned int pipe)*/ int vmw_enable_vblank (struct drm_device *dev,unsigned int pipe) { -return -ENOSYS ; +return -EINVAL ; }/**
Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 8 lines · Thomas Hellstrom
From: Woody Suwalski <[email protected]>
The 4.15 vmwgfx driver shows a warning during boot.
It is caused by a mismatch between the result ofvmw_enable_vblank()and what thedrm_atomic_helperexpects.Signed-off by: Woody Suwalski <[email protected]>
Signed-off-by Thomas Hellstrom <[email protected]>
Just curious question, but why do you even have all that code? Not enabling any of the vblank stuff should also work with atomic drivers, and would require much less boilerplate ...
Either way: Reviewed-by: Daniel Vetter <[email protected]>
Quoted 24 lines
--- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +1
-1@@ -1863,7 +1863,7 @@ u32 vmw_get_vblank_counter(struct drm_device *dev, unsigned int pipe)*/ int vmw_enable_vblank (struct drm_device *dev,unsigned int pipe) { -return -ENOSYS ; +return -EINVAL ; }/** Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
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
Quoted 6 lines · Thomas Hellstrom
From: Woody Suwalski <[email protected]>
The 4.15 vmwgfx driver shows a warning during boot.
It is caused by a mismatch between the result ofvmw_enable_vblank()and what thedrm_atomic_helperexpects.
Quoted 7 lines
Quoted 2 lines
Signed-off by: Woody Suwalski <[email protected]>
Signed-off-by Thomas Hellstrom <[email protected]>Just curious question, but why do you even have all that code? Not enabling any of the vblank stuff should also work with atomic drivers, and would require much less boilerplate ...
Either way: Reviewed-by: Daniel Vetter <[email protected]>
To be honest, nobody here has really looked at exactly what parts are needed when we don't have the vblank interrupt. We'll put that on the to-do list.
Thanks,
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel