AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jiang Liu <gerry@linux.alibaba.com>
To: amd-gfx@lists.freedesktop.org, kent.russell@amd.com,
	shuox.liu@linux.alibaba.com
Cc: Jiang Liu <gerry@linux.alibaba.com>
Subject: [PATCH 0/6] Fix several bugs in error handling during device
Date: Thu,  2 Jan 2025 13:36:51 +0800	[thread overview]
Message-ID: <cover.1735795671.git.gerry@linux.alibaba.com> (raw)

This patchset tries to fix several memory leakages/invalid memory
accesses on error handling path during GPU driver loading/unloading.
They applies to:
https://github.com/ROCm/ROCK-Kernel-Driver/tree/master/drivers

Jiang Liu (6):
  amdgpu: add flags to track sysfs initialization status
  amdgpu: fix invalid memory access in kfd_cleanup_nodes()
  amdgpu: clear adev->in_suspend flag when fails to suspend
  amdgpu: fix use after free bug related to amdgpu_driver_release_kms()
  amdgpu: fix invalid memory access in amdgpu_fence_driver_sw_fini()
  amdgpu: get rid of false warnings caused by amdgpu_irq_put()

 drivers/gpu/drm/amd/amdgpu/amdgpu.h        |  3 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 47 +++++++++++++++++-----
 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c  |  9 ++++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c    |  4 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h   |  1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c    |  1 +
 drivers/gpu/drm/amd/amdkfd/kfd_device.c    |  7 +++-
 drivers/gpu/drm/scheduler/sched_main.c     |  3 ++
 8 files changed, 60 insertions(+), 15 deletions(-)

-- 
2.43.5


             reply	other threads:[~2025-01-02 16:24 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-02  5:36 Jiang Liu [this message]
2025-01-02  5:36 ` [PATCH 1/6] amdgpu: add flags to track sysfs initialization status Jiang Liu
2025-01-02 23:07   ` Chen, Xiaogang
2025-01-03 13:46     ` Russell, Kent
2025-01-03  4:04   ` Lazar, Lijo
2025-01-02  5:36 ` [PATCH 2/6] amdgpu: fix invalid memory access in kfd_cleanup_nodes() Jiang Liu
2025-01-02 23:08   ` Chen, Xiaogang
2025-01-03  2:22     ` Gerry Liu
2025-01-03  5:44       ` Chen, Xiaogang
2025-01-03  5:55         ` Gerry Liu
2025-01-03  6:19           ` Chen, Xiaogang
2025-01-03  7:05             ` Gerry Liu
2025-01-03 17:33               ` Chen, Xiaogang
2025-01-04 14:18                 ` Gerry Liu
2025-01-02  5:36 ` [PATCH 3/6] amdgpu: clear adev->in_suspend flag when fails to suspend Jiang Liu
2025-01-02  5:36 ` [PATCH 4/6] amdgpu: fix use after free bug related to amdgpu_driver_release_kms() Jiang Liu
2025-01-03  5:20   ` Lazar, Lijo
2025-01-03  5:58   ` Chen, Xiaogang
2025-01-03  7:02     ` Gerry Liu
2025-01-03  7:43       ` Shuo Liu
2025-01-03 17:34         ` Chen, Xiaogang
2025-01-04 14:21           ` Gerry Liu
2025-01-02  5:36 ` [PATCH 5/6] amdgpu: fix invalid memory access in amdgpu_fence_driver_sw_fini() Jiang Liu
2025-01-02 23:09   ` Chen, Xiaogang
2025-01-03  2:35     ` Gerry Liu
2025-01-02  5:36 ` [PATCH 6/6] amdgpu: get rid of false warnings caused by amdgpu_irq_put() Jiang Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1735795671.git.gerry@linux.alibaba.com \
    --to=gerry@linux.alibaba.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=kent.russell@amd.com \
    --cc=shuox.liu@linux.alibaba.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox