dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] move more drivers to gem_free_object_unlocked
@ 2018-03-22 10:51 Daniel Vetter
  2018-03-22 10:51 ` [PATCH 1/6] drm/tinydrm: Use gem_free_object_unlocked Daniel Vetter
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Vetter @ 2018-03-22 10:51 UTC (permalink / raw)
  To: DRI Development; +Cc: Daniel Vetter

Hi all,

Random drive-by crusade against dev->struct_mutex usage. The only two
leftover drivers still relying on gem_free_object and the magic lifetime
rule that hodling dev->struct_mutex will prevent gem object destruction
are msm and gma500. Both actually need this, and don't look like they can
be fixed with an easy patch.

But the less this pattern is in the tree the more we can hopefully avoid
copypasta-spreading it more.

Cheers, Daniel

Daniel Vetter (6):
  drm/tinydrm: Use gem_free_object_unlocked
  staging/vboxvideo: Use gem_free_object_unlocked
  drm/rockchip: fixup comment for gem_free_object_unlocked
  drm/udl: Get rid of dev->struct_mutex usage
  drm/omapdrm: Fix mm_list locking
  drm/omapdrm: Switch to gem_free_object_unlocked

 drivers/gpu/drm/omapdrm/omap_debugfs.c      |  2 ++
 drivers/gpu/drm/omapdrm/omap_drv.c          |  4 ++--
 drivers/gpu/drm/omapdrm/omap_drv.h          |  2 +-
 drivers/gpu/drm/omapdrm/omap_gem.c          | 11 +++++++----
 drivers/gpu/drm/rockchip/rockchip_drm_gem.c |  4 ++--
 drivers/gpu/drm/tinydrm/core/tinydrm-core.c |  2 +-
 drivers/gpu/drm/udl/udl_dmabuf.c            |  5 +++--
 drivers/gpu/drm/udl/udl_drv.c               |  2 +-
 drivers/gpu/drm/udl/udl_drv.h               |  2 ++
 drivers/gpu/drm/udl/udl_gem.c               |  5 +++--
 drivers/gpu/drm/udl/udl_main.c              |  2 ++
 drivers/staging/vboxvideo/vbox_drv.c        |  2 +-
 include/drm/tinydrm/tinydrm.h               |  2 +-
 13 files changed, 28 insertions(+), 17 deletions(-)

-- 
2.16.2

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH 0/6] move more drivers to gem_free_object_unlocked
@ 2018-03-26 15:43 Daniel Vetter
  2018-03-26 15:43 ` [PATCH 1/6] drm/tinydrm: Use gem_free_object_unlocked Daniel Vetter
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Vetter @ 2018-03-26 15:43 UTC (permalink / raw)
  To: DRI Development; +Cc: Daniel Vetter, Laurent Pinchart

Hi all,

Random drive-by crusade against dev->struct_mutex usage. The only two
leftover drivers still relying on gem_free_object and the magic lifetime
rule that hodling dev->struct_mutex will prevent gem object destruction
are msm and gma500. Both actually need this, and don't look like they can
be fixed with an easy patch.

But the less this pattern is in the tree the more we can hopefully avoid
copypasta-spreading it more.

Cheers, Daniel

Daniel Vetter (6):
  drm/tinydrm: Use gem_free_object_unlocked
  staging/vboxvideo: Use gem_free_object_unlocked
  drm/rockchip: fixup comment for gem_free_object_unlocked
  drm/udl: Get rid of dev->struct_mutex usage
  drm/omapdrm: Fix mm_list locking
  drm/omapdrm: Switch to gem_free_object_unlocked

 drivers/gpu/drm/omapdrm/omap_debugfs.c      |  2 ++
 drivers/gpu/drm/omapdrm/omap_drv.c          |  4 ++--
 drivers/gpu/drm/omapdrm/omap_drv.h          |  2 +-
 drivers/gpu/drm/omapdrm/omap_gem.c          | 11 +++++++----
 drivers/gpu/drm/rockchip/rockchip_drm_gem.c |  4 ++--
 drivers/gpu/drm/tinydrm/core/tinydrm-core.c |  2 +-
 drivers/gpu/drm/udl/udl_dmabuf.c            |  5 +++--
 drivers/gpu/drm/udl/udl_drv.c               |  2 +-
 drivers/gpu/drm/udl/udl_drv.h               |  2 ++
 drivers/gpu/drm/udl/udl_gem.c               |  5 +++--
 drivers/gpu/drm/udl/udl_main.c              |  2 ++
 drivers/staging/vboxvideo/vbox_drv.c        |  2 +-
 include/drm/tinydrm/tinydrm.h               |  2 +-
 13 files changed, 28 insertions(+), 17 deletions(-)

-- 
2.16.2

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-03-27  8:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-22 10:51 [PATCH 0/6] move more drivers to gem_free_object_unlocked Daniel Vetter
2018-03-22 10:51 ` [PATCH 1/6] drm/tinydrm: Use gem_free_object_unlocked Daniel Vetter
2018-03-22 13:46   ` Noralf Trønnes
2018-03-27  8:19     ` Daniel Vetter
  -- strict thread matches above, loose matches on Subject: below --
2018-03-26 15:43 [PATCH 0/6] move more drivers to gem_free_object_unlocked Daniel Vetter
2018-03-26 15:43 ` [PATCH 1/6] drm/tinydrm: Use gem_free_object_unlocked Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox