Skip to contentSkip to conversation

drm/vmwgfx: Fix a boot time warning

PATCH In review Thomas Hellstrom 2 participants 3 messages Jan 17, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
index 641294a..fcd5814 100644
@@ -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
#1 lore raw
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 of vmw_enable_vblank() and what the drm_atomic_helper expects.

Signed-off by: Woody Suwalski <[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
index 641294a..fcd5814 100644
@@ -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
#2 lore raw
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 of vmw_enable_vblank() and what the drm_atomic_helper expects.

Quoted 7 lines
Quoted 2 lines

Signed-off by: Woody Suwalski <[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