From: Jiang Liu <gerry@linux.alibaba.com>
To: amd-gfx@lists.freedesktop.org, xiaogang.chen@amd.com,
lijo.lazar@amd.com, Kent.Russell@amd.com,
shuox.liu@linux.alibaba.com
Cc: Jiang Liu <gerry@linux.alibaba.com>
Subject: [PATCH v2 0/6] Fix several bugs in error handling during device probe
Date: Sun, 5 Jan 2025 10:45:28 +0800 [thread overview]
Message-ID: <cover.1736044362.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://gitlab.freedesktop.org/agd5f/linux.git amd-staging-drm-next
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):
amdgpu: fix invalid memory access in kfd_cleanup_nodes()
amdgpu: clear adev->in_suspend flag when fails to suspend
drm/amdxcp: introduce new API amdgpu_xcp_drm_dev_free()
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_device.c | 14 +++--
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 13 +++-
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 | 11 +++-
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h | 1 +
drivers/gpu/drm/amd/amdkfd/kfd_device.c | 9 +--
drivers/gpu/drm/amd/amdxcp/amdgpu_xcp_drv.c | 70 +++++++++++++++++----
drivers/gpu/drm/amd/amdxcp/amdgpu_xcp_drv.h | 1 +
9 files changed, 99 insertions(+), 25 deletions(-)
--
2.43.5
next reply other threads:[~2025-01-05 16:40 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-05 2:45 Jiang Liu [this message]
2025-01-05 2:45 ` [PATCH v2 1/6] amdgpu: fix possible resource leakage in kfd_cleanup_nodes() Jiang Liu
2025-01-05 5:22 ` Shuo Liu
2025-01-05 6:57 ` Gerry Liu
2025-01-06 3:07 ` Gerry Liu
2025-01-07 22:53 ` Chen, Xiaogang
2025-01-08 2:29 ` Gerry Liu
2025-01-05 2:45 ` [PATCH v2 2/6] amdgpu: clear adev->in_suspend flag when fails to suspend Jiang Liu
2025-01-05 2:45 ` [PATCH v2 3/6] drm/amdxcp: introduce new API amdgpu_xcp_drm_dev_free() Jiang Liu
2025-01-06 6:51 ` Lazar, Lijo
2025-01-07 2:00 ` Gerry Liu
2025-01-05 2:45 ` [PATCH v2 4/6] amdgpu: fix use after free bug related to amdgpu_driver_release_kms() Jiang Liu
2025-01-05 5:16 ` Shuo Liu
2025-01-07 22:55 ` Chen, Xiaogang
2025-01-08 3:34 ` Gerry Liu
2025-01-05 2:45 ` [PATCH v2 5/6] amdgpu: fix invalid memory access in amdgpu_fence_driver_sw_fini() Jiang Liu
2025-01-07 22:55 ` Chen, Xiaogang
2025-01-05 2:45 ` [PATCH v2 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.1736044362.git.gerry@linux.alibaba.com \
--to=gerry@linux.alibaba.com \
--cc=Kent.Russell@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=lijo.lazar@amd.com \
--cc=shuox.liu@linux.alibaba.com \
--cc=xiaogang.chen@amd.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