Skip to content

AMDGPU deadcode

[email protected] amd-gfx dri-devel lkml 1 version Applied

Status from this message: Applied the series. Thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5drm/amdgpu: Remove unused amdgpu_device_ip_is_idledrivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_device.c+0 -260 replies
2/5drm/amdgpu: Remove unused amdgpu_atpx functionsdrivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c+0 -200 replies
3/5drm/amdgpu: Remove unused amdgpu_gmc_vram_cpu_padrivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h+0 -130 replies
4/5drm/amdgpu: Remove unused amdgpu_gfx_bit_to_me_queuedrivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h+0 -120 replies
5/5drm/amdgpu: Remove unused amdgpu_i2c functionsdrivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.h+0 -291 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] AMDGPU deadcode

From: "Dr. David Alan Gilbert" <[email protected]>

Hi,
This is a bunch of deadcode removal in amdgpu;
some of the functions are ones which were previously used but haven't been for a while, others are functions that were added a few years ago and haven't ever been used.

There are some others that I've not removed, which have
been added in the last few years but not been used,
I was worried maybe there are patches in someones tree about to use them (e.g. amdgpu_lsdma_copy_mem, amdgpu_mes_reg_wait, amdgpu_ras_unbind_aca, amdgpu_seq64_alloc, and amdgpu_xcp_prepare_resume) - I'd be happy to take those as well.

One other thing I wasn't sure of; I removed
amdgpu_device_ip_is_idle
which has been unused since about 2016, but does that make the 'is_idle' methods unused or is there something else that calls them?

(Sent from this kernel booted on my RX550 GPU)

Dave

Dr. David Alan Gilbert (5):
drm/amdgpu: Remove unused amdgpu_device_ip_is_idle drm/amdgpu: Remove unused amdgpu_atpx functions drm/amdgpu: Remove unused amdgpu_gmc_vram_cpu_pa drm/amdgpu: Remove unused amdgpu_gfx_bit_to_me_queue drm/amdgpu: Remove unused amdgpu_i2c functions

 drivers/gpu/drm/amd/amdgpu/amdgpu.h           | 10 --------
 .../gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c  | 12 ---------
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c    | 24 ------------------
 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c       | 10 --------
 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h       |  2 --
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c       | 12 ---------
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h       |  1 -
 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c       | 25 -------------------
 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.h       |  4 ---
 9 files changed, 100 deletions(-)
Signature · 1 line
2.46.1