mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] drm/ttm: Cleanup state in global ttm structures
@ 2019-04-14 23:37 Brian Yip
  2019-04-14 23:37 ` [PATCH 1/3] drm/ttm: Reset num_zones on ttm_mem_global cleanup Brian Yip
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Brian Yip @ 2019-04-14 23:37 UTC (permalink / raw)
  To: christian.koenig
  Cc: ray.huang, Jerry.Zhang, airlied, daniel, dri-devel, linux-kernel,
	Brian Yip

State in global ttm structures was not properly reset on cleanup.

In the scenario where multiple drm drivers are loaded and the first one 
fails to initialize, there is an attempt to reset the global state in
the ttm structures. However, there were some attributes which were not
properly reset during this process. This resulted in a crash and 
false positive kobj initialization warnings during subsequent initialization
of these global structures.

Fix the crash and false positive kobj initialization warnings.

Brian Yip (3):
  drm/ttm: Reset num_zones on ttm_mem_global cleanup
  drm/ttm: Fix ttm_mem_glob.kobj state on cleanup
  drm/ttm: Fix ttm_bo_glob.kobj state on cleanup

 drivers/gpu/drm/ttm/ttm_bo.c     | 4 ++++
 drivers/gpu/drm/ttm/ttm_memory.c | 5 +++++
 2 files changed, 9 insertions(+)

-- 
2.20.1


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

end of thread, other threads:[~2019-04-15  6:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-14 23:37 [PATCH 0/3] drm/ttm: Cleanup state in global ttm structures Brian Yip
2019-04-14 23:37 ` [PATCH 1/3] drm/ttm: Reset num_zones on ttm_mem_global cleanup Brian Yip
2019-04-15  6:25   ` Koenig, Christian
2019-04-14 23:37 ` [PATCH 2/3] drm/ttm: Fix ttm_mem_glob.kobj state on cleanup Brian Yip
2019-04-14 23:37 ` [PATCH 3/3] drm/ttm: Fix ttm_bo_glob.kobj " Brian Yip

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

all inboxes | Powered by JetHome®