Skip to contentSkip to conversation

drm/writeback: Delete drm_writeback_cleanup_job

PATCH In review Daniel Vetter 3 participants 6 messages Feb 20, 2019 – Feb 21, 2019

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

PATCH 1/1 drm/writeback: Delete drm_writeback_cleanup_job

No implementation, no callers.

Cc Brian Starkey <[email protected]>
Cc Liviu Dudau <[email protected]>
Cc Eric Anholt <[email protected]>
---
 include/drm/drm_writeback.h | 2 --
 1 file changed, 2 deletions(-)
include/drm/drm_writeback.h +0 -2
index 23df9d463003..f34895f7fcb1 100644
@@ -125,8 +125,6 @@ int drm_writeback_connector_init(struct drm_device *dev,
 void drm_writeback_queue_job(struct drm_writeback_connector *wb_connector,
 			     struct drm_writeback_job *job);
 
-void drm_writeback_cleanup_job(struct drm_writeback_job *job);
-
 void
 drm_writeback_signal_completion(struct drm_writeback_connector *wb_connector,
 				int status);
Signature · 6 lines
2.20.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

Hi Daniel,

Thank you for the patch.

Quoted 1 line · Daniel Vetter

No implementation, no callers.

The issue here isn't that the function is declared, but that it's not defined. Jobs are leaked when atomic commit fails (or when using test commits). I'm working on a fix, please don't apply this patch in the meantime.

Quoted 21 lines
Cc Brian Starkey <[email protected]>
Cc Liviu Dudau <[email protected]>
Cc Eric Anholt <[email protected]>
---
 include/drm/drm_writeback.h | 2 --
 1 file changed, 2 deletions(-)
include/drm/drm_writeback.h +0 -2
index 23df9d463003..f34895f7fcb1 100644
@@ -125,8 +125,6 @@ int drm_writeback_connector_init(struct drm_device *dev,
 void drm_writeback_queue_job(struct drm_writeback_connector *wb_connector,
 			     struct drm_writeback_job *job);
 
-void drm_writeback_cleanup_job(struct drm_writeback_job *job);
-
 void
 drm_writeback_signal_completion(struct drm_writeback_connector *wb_connector,
 				int status);
Signature · 7 lines
Regards,

Laurent Pinchart
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw
Quoted 11 lines · Laurent Pinchart

Hi Daniel,

Thank you for the patch.

Quoted 1 line · Daniel Vetter

No implementation, no callers.

The issue here isn't that the function is declared, but that it's not defined. Jobs are leaked when atomic commit fails (or when using test commits). I'm working on a fix, please don't apply this patch in the meantime.

Hm, can't I merge this one and give you a clean slate? Function in header but nowhere else kinda upsets my ocd :-)
-Daniel

Quoted 26 lines
Quoted 13 lines
Cc Brian Starkey <[email protected]>
Cc Liviu Dudau <[email protected]>
Cc Eric Anholt <[email protected]>
---
 include/drm/drm_writeback.h | 2 --
 1 file changed, 2 deletions(-)
include/drm/drm_writeback.h +0 -0
index 23df9d463003..f34895f7fcb1 100644

include/drm/drm_writeback.h int drm_writeback_connector_init(struct drm_device *dev, · line 130

Quoted 8 lines
include/drm/drm_writeback.h +0 -2
@@ -125,8 +125,6 @@ int drm_writeback_connector_init(struct drm_device *dev,
 void drm_writeback_queue_job(struct drm_writeback_connector *wb_connector,
                           struct drm_writeback_job *job);
 
-void drm_writeback_cleanup_job(struct drm_writeback_job *job);
-
 void
 drm_writeback_signal_completion(struct drm_writeback_connector *wb_connector,
                              int status);

--
Regards,

Laurent Pinchart

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
#3 lore raw

Hi Daniel,

Quoted 9 lines · Daniel Vetter
Quoted 7 lines · Laurent Pinchart

Hi Daniel,

Thank you for the patch.

Quoted 1 line · Daniel Vetter

No implementation, no callers.

Quoted 7 lines
Quoted 4 lines

The issue here isn't that the function is declared, but that it's not defined. Jobs are leaked when atomic commit fails (or when using test commits). I'm working on a fix, please don't apply this patch in the meantime.

Hm, can't I merge this one and give you a clean slate? Function in header but nowhere else kinda upsets my ocd :-)

I'm afraid I've already posted the fix patches that depend on this prototype :-)

Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Cc Brian Starkey <[email protected]>
Cc Liviu Dudau <[email protected]>
Cc Eric Anholt <[email protected]>
---
 include/drm/drm_writeback.h | 2 --
 1 file changed, 2 deletions(-)
include/drm/drm_writeback.h +0 -2
index 23df9d463003..f34895f7fcb1 100644
@@ -125,8 +125,6 @@ int drm_writeback_connector_init(struct drm_device *dev,
 void drm_writeback_queue_job(struct drm_writeback_connector *wb_connector,
                           struct drm_writeback_job *job);
 
-void drm_writeback_cleanup_job(struct drm_writeback_job *job);
-
 void
 drm_writeback_signal_completion(struct drm_writeback_connector *wb_connector,
                              int status);
Signature · 7 lines
Regards,

Laurent Pinchart
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw
In reply to Laurent Pinchart
Quoted 11 lines · Laurent Pinchart

Hi Daniel,

Thank you for the patch.

Quoted 1 line · Daniel Vetter

No implementation, no callers.

The issue here isn't that the function is declared, but that it's not defined. Jobs are leaked when atomic commit fails (or when using test commits). I'm working on a fix, please don't apply this patch in the meantime.

Yeah, looking at the series somehow the call to cleanup the writeback job on failure looks like it got lost between v9 and v10. I saw a patch internally, but looks like James didn't send it to the list yet.

@James, could you send out your patch which fixes the cleanup on failure?

Thanks,
-Brian

Quoted 17 lines
Quoted 17 lines
Cc Brian Starkey <[email protected]>
Cc Liviu Dudau <[email protected]>
Cc Eric Anholt <[email protected]>
---
 include/drm/drm_writeback.h | 2 --
 1 file changed, 2 deletions(-)
include/drm/drm_writeback.h +0 -0
index 23df9d463003..f34895f7fcb1 100644
@@ -125,8 +125,6 @@ int drm_writeback_connector_init(struct drm_device *dev,
 void drm_writeback_queue_job(struct drm_writeback_connector *wb_connector,
 			     struct drm_writeback_job *job);
 
Quoted 14 lines
Quoted 5 lines
include/drm/drm_writeback.h +0 -2
-void drm_writeback_cleanup_job(struct drm_writeback_job *job);
-
 void
 drm_writeback_signal_completion(struct drm_writeback_connector *wb_connector,
 				int status);
Signature · 7 lines
Regards,

Laurent Pinchart
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

Hi Brian,

Quoted 13 lines · Brian Starkey
Quoted 11 lines · Laurent Pinchart

Hi Daniel,

Thank you for the patch.

Quoted 1 line · Daniel Vetter

No implementation, no callers.

The issue here isn't that the function is declared, but that it's not defined. Jobs are leaked when atomic commit fails (or when using test commits). I'm working on a fix, please don't apply this patch in the meantime.

Quoted 6 lines

Yeah, looking at the series somehow the call to cleanup the writeback job on failure looks like it got lost between v9 and v10. I saw a patch internally, but looks like James didn't send it to the list yet.

@James, could you send out your patch which fixes the cleanup on failure?

I've just posted

[PATCH v5 12/19] drm: writeback: Cleanup job ownership handling when queuing job [PATCH v5 13/19] drm: writeback: Fix leak of writeback job

that should address this issue. The series also includes the RFC-like

[PATCH v5 14/19] drm: writeback: Add job prepare and cleanup operations

that addresses a separate issue with writeback support.

Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Cc Brian Starkey <[email protected]>
Cc Liviu Dudau <[email protected]>
Cc Eric Anholt <[email protected]>
---
 include/drm/drm_writeback.h | 2 --
 1 file changed, 2 deletions(-)
include/drm/drm_writeback.h +0 -2
index 23df9d463003..f34895f7fcb1 100644
@@ -125,8 +125,6 @@ int drm_writeback_connector_init(struct drm_device *dev,
 void drm_writeback_queue_job(struct drm_writeback_connector *wb_connector,
 			     struct drm_writeback_job *job);
 
-void drm_writeback_cleanup_job(struct drm_writeback_job *job);
-
 void
 drm_writeback_signal_completion(struct drm_writeback_connector *wb_connector,
 				int status);
Signature · 7 lines
Regards,

Laurent Pinchart
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel