All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/6] Fix several bugs in error handling during device probe
@ 2025-01-08  8:55 Jiang Liu
  2025-01-08  8:55 ` [v3 1/6] drm/amdgpu: clear adev->in_suspend flag when fails to suspend Jiang Liu
                   ` (5 more replies)
  0 siblings, 6 replies; 23+ messages in thread
From: Jiang Liu @ 2025-01-08  8:55 UTC (permalink / raw)
  To: alexander.deucher, christian.koenig, Xinhui.Pan, airlied, simona,
	sunil.khatri, lijo.lazar, Hawking.Zhang, mario.limonciello,
	Jun.Ma2, xiaogang.chen, Kent.Russell, shuox.liu, amd-gfx
  Cc: Jiang Liu

This patchset tries to fix several memory leakages/invalid memory
accesses on error handling path during GPU driver loading/unloading.
They applies to:
https://gitlab.freedesktop.org/agd5f/linux.git amd-staging-drm-next

v3:
1) drop first patch of v2
2) rework the 0003/0004 patches of v2 according to review comments
3) add patch 0004 to fix possible resource leakage in amdgpu_pci_probe()

v2:
1) rebased to https://gitlab.freedesktop.org/agd5f/linux.git branch
   amd-staging-drm-next.
2) removed the first patch, which is unnecessary.
3) add amdgpu_xcp_drm_dev_free() in patch 0003 to enhance amdxcp
   driver to better support device remove and error handling.
4) reworked patch 0005 to fix it in amdgpu instead of drm core.

Jiang Liu (6):
  drm/amdgpu: clear adev->in_suspend flag when fails to suspend
  drm/amdxcp: introduce new API amdgpu_xcp_drm_dev_free()
  drm/amdgpu: fix use after free bug related to
    amdgpu_driver_release_kms()
  drm/amdgpu: enhance error handling in function amdgpu_pci_probe()
  drm/amdgpu: fix invalid memory access in amdgpu_fence_driver_sw_fini()
  drm/amdgpu: get rid of false warnings caused by amdgpu_irq_put()

 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c  | 16 +++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c     | 14 ++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c   | 13 +++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c     |  1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h    |  1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c     | 47 +++++++++++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h     |  4 +-
 drivers/gpu/drm/amd/amdxcp/amdgpu_xcp_drv.c | 76 +++++++++++++++++----
 drivers/gpu/drm/amd/amdxcp/amdgpu_xcp_drv.h |  1 +
 9 files changed, 140 insertions(+), 33 deletions(-)

-- 
2.43.5


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

end of thread, other threads:[~2025-01-10  2:01 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-08  8:55 [PATCH v3 0/6] Fix several bugs in error handling during device probe Jiang Liu
2025-01-08  8:55 ` [v3 1/6] drm/amdgpu: clear adev->in_suspend flag when fails to suspend Jiang Liu
2025-01-08  8:56 ` [v3 2/6] drm/amdxcp: introduce new API amdgpu_xcp_drm_dev_free() Jiang Liu
2025-01-08  9:31   ` Lazar, Lijo
2025-01-09  1:46     ` Gerry Liu
2025-01-08 16:04   ` Mario Limonciello
2025-01-09  2:39     ` Gerry Liu
2025-01-08  8:56 ` [v3 3/6] drm/amdgpu: fix use after free bug related to amdgpu_driver_release_kms() Jiang Liu
2025-01-08  9:54   ` Lazar, Lijo
2025-01-09  3:00     ` Gerry Liu
2025-01-08  8:56 ` [v3 4/6] drm/amdgpu: enhance error handling in function amdgpu_pci_probe() Jiang Liu
2025-01-08 16:08   ` Mario Limonciello
2025-01-09  3:34     ` Gerry Liu
2025-01-08  8:56 ` [v3 5/6] drm/amdgpu: fix invalid memory access in amdgpu_fence_driver_sw_fini() Jiang Liu
2025-01-08  9:16   ` Christian König
2025-01-08  9:58     ` Lazar, Lijo
2025-01-08 16:30     ` Chen, Xiaogang
2025-01-09 15:21       ` Christian König
2025-01-08  8:56 ` [v3 6/6] drm/amdgpu: get rid of false warnings caused by amdgpu_irq_put() Jiang Liu
2025-01-08  9:05   ` Christian König
2025-01-10  2:01     ` Gerry Liu
2025-01-08 10:02   ` Lazar, Lijo
2025-01-08 10:05     ` Gerry Liu

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.