Am 22.09.25 um 13:55 schrieb Christian König:
On 22.09.25 13:54, Thomas Zimmermann wrote:
Hi Melissa
Am 19.09.25 um 17:54 schrieb Melissa Wen:
Hi all,
I just talked with Thomas that these two patches are preventing amdgpu
driver to be unloaded:
`modprobe: FATAL: Module amdgpu is in use.`
and there is no process using the driver.
Melissa could it be that you have a console loaded?
FTR I can also do 'rmmod amdgpu' from amdgpu's fbcon successfully.
Regards,
Christian.
What's the exact STR for this problem? After Christian's comments, I tried to
reproduce the issue, but it works on my system. I do
- boot up with amdgpu in text mode (multiuser.target)
- login by serial console
- 'rmmod amdgpu'
That last step turns my test system's display off and unloads amdgpu. The
kernel is a recent drm-tip at v6.17-rc6.
Best regards
Thomas
We agreed that the best approach now is to completely revert the work
done for improving DMA bug handling to avoid any loose ends. With these
reverts we are just back to the old behavior and amdgpu loading and
unloading will return to normal.
Best Regards,
Melissa
Melissa Wen (2):
Revert "drm/framebuffer: Acquire internal references on GEM handles"
Revert "drm/gem: Acquire references on GEM handles for framebuffers"
drivers/gpu/drm/drm_framebuffer.c | 31 +--------------
drivers/gpu/drm/drm_gem.c | 64 +++++--------------------------
drivers/gpu/drm/drm_internal.h | 2 -
include/drm/drm_framebuffer.h | 7 ----
4 files changed, 11 insertions(+), 93 deletions(-)
--
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)