All of lore.kernel.org
 help / color / mirror / Atom feed
* Amdgpu module is references even after unbinding the vtcon
@ 2023-01-24 14:12 Christian König
  2023-01-24 16:15 ` Thomas Zimmermann
  2023-01-25 19:47 ` Thomas Zimmermann
  0 siblings, 2 replies; 16+ messages in thread
From: Christian König @ 2023-01-24 14:12 UTC (permalink / raw)
  To: Thomas Zimmermann
  Cc: Alex Deucher, Slivka, Danijel, dri-devel, Sharma, Shashank

Hi Thomas,

we ran into a problem with the general fbcon/fbdev implementation and 
though that you might have some idea.

What happens is the following:
1. We load amdgpu and get our normal fbcon.
2. fbcon allocates a dump BO as backing store for the console.
3. GDM/X/Applications start, new framebuffers are created BOs imported, 
exported etc...
4. Somehow X or GDM iterated over all the framebuffer objects the 
kernels knows about and export them as DMA-buf.
5. Application/X/GDM are stopped, handles closed, framebuffers released 
etc...
6. We unbind vtcon.

At this point the amdgpu module usually has a reference count of 0 and 
can be unloaded, but since GDM/X/Whoever iterated over all the known 
framebuffers and exported them as DMA-buf (for whatever reason idk) we 
now still have an exported DMA-buf and with it a reference to the module.

Any idea how we could prevent that?

Thanks,
Christian.

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

end of thread, other threads:[~2023-01-31 10:00 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-24 14:12 Amdgpu module is references even after unbinding the vtcon Christian König
2023-01-24 16:15 ` Thomas Zimmermann
2023-01-24 16:36   ` Alex Deucher
2023-01-24 17:35     ` Thomas Zimmermann
2023-01-25  6:49   ` Christian König
2023-01-25 19:47 ` Thomas Zimmermann
2023-01-26  9:49   ` Slivka, Danijel
2023-01-26 12:20     ` Christian König
2023-01-26 13:44       ` Slivka, Danijel
2023-01-26 14:11         ` Christian König
2023-01-26 14:13           ` Sharma, Shashank
2023-01-26 14:26             ` Christian König
2023-01-31 10:00           ` Slivka, Danijel
2023-01-26 12:40     ` Thomas Zimmermann
2023-01-26 12:45       ` Christian König
2023-01-26 12:54         ` Thomas Zimmermann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.