[PATCH 0/3] AMD gpu deadcoding (S more)

2025-05-07 Thread linux
From: "Dr. David Alan Gilbert" Hi, A few more AMD deadcoding patches spinning out of the questions I asked, and Kenneth answered. See: https://lore.kernel.org/all/dm4pr12mb5165d85bd85bc8fc8bf7a3b48e...@dm4pr12mb5165.namprd12.prod.outlook.com/ Dave Signed-off-by: Dr. David Alan Gilbert

[PATCH 1/3] drm/amd/pm/smu13: Remove unused smu_v13_0_init_display_count

2025-05-07 Thread linux
From: "Dr. David Alan Gilbert" smu_v13_0_init_display_count() was added in 2020 by commit c05d1c401572 ("drm/amd/swsmu: add aldebaran smu13 ip support (v3)") but is unused. See discussion on: https://lore.kernel.org/all/dm4pr12mb5165d85bd85bc8fc8bf7a3b48e...@dm4pr12mb5165.namprd12.prod.outlook.c

[PATCH 3/3] drm/amd/pm: Remove remainder of mode2_reset_is_support

2025-05-07 Thread linux
From: "Dr. David Alan Gilbert" The previous patch removed smu_mode2_reset_is_support() which was the only function to call through the mode2_reset_is_support() method pointer. Remove the remaining functions that were assigned to it and the pointer itself. See discussion at: https://lore.kernel.

[PATCH 2/3] drm/amd/pm: Remove unused smu_mode2_reset_is_support

2025-05-07 Thread linux
From: "Dr. David Alan Gilbert" smu_mode2_reset_is_support() was added in 2020 by commit 5c03e5843e6b ("drm/amdgpu:add smu mode1/2 support for aldebaran") but has remained unused. See discussion at: https://lore.kernel.org/all/dm4pr12mb5165d85bd85bc8fc8bf7a3b48e...@dm4pr12mb5165.namprd12.prod.out

[PATCH 2/3] drm/amd/pm/smu11: Remove unused smu_v11_0_get_dpm_level_range

2025-05-06 Thread linux
From: "Dr. David Alan Gilbert" The last use of smu_v11_0_get_dpm_level_range() was removed in 2020 by commit 46a301e14e8a ("drm/amd/powerplay: drop unnecessary Navi1x specific APIs") Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0.h | 5 --- .

[PATCH 0/3] AMD gpu deadcoding (S)

2025-05-06 Thread linux
From: "Dr. David Alan Gilbert" Hi, A bunch more deadcode around the AMD GPUs. (I've not done smu_v14 which all looks rather new to me, so perhaps you're still intending to use some of the unused functions). Signed-off-by: Dr. David Alan Gilbert Dr. David Alan Gilbert (3): drm/amd/pm/smu7:

[PATCH 1/3] drm/amd/pm/smu7: Remove unused smu7_copy_bytes_from_smc

2025-05-06 Thread linux
From: "Dr. David Alan Gilbert" smu7_copy_bytes_from_smc() was added in 2016 by commit 1ff55f465103 ("drm/amd/powerplay: implement smu7_smumgr for asics with smu ip version 7.") but never used. Remove it. Signed-off-by: Dr. David Alan Gilbert --- .../drm/amd/pm/powerplay/smumgr/smu7_smumgr.c

[PATCH 3/3] drm/amd/pm/smu13: Remove unused smu_v3 functions

2025-05-06 Thread linux
From: "Dr. David Alan Gilbert" smu_v13_0_display_clock_voltage_request() and smu_v13_0_set_min_deep_sleep_dcefclk() were added in 2020 by commit c05d1c401572 ("drm/amd/swsmu: add aldebaran smu13 ip support (v3)") but have remained unused. Remove them. smu_v13_0_display_clock_voltage_request() w

[PATCH] dma-buf/sw-sync: Remove unused debug code

2025-05-05 Thread linux
From: "Dr. David Alan Gilbert" sync_file_debug_add() and sync_file_debug_remove() have been unused since 2016's commit d4cab38e153d ("staging/android: prepare sync_file for de-staging") Remove them. Since sync_file_debug_add was the only thing to add to sync_file_list_head, the code that dumps

[PATCH 4/4] drm/amd/display: Remove unused *vbios_smu_set_dprefclk

2025-04-17 Thread linux
From: "Dr. David Alan Gilbert" rn_vbios_smu_set_dprefclk() was added in 2019 by commit 4edb6fc91878 ("drm/amd/display: Add Renoir clock manager") rv1_vbios_smu_set_dprefclk() was also added in 2019 by commit dc88b4a684d2 ("drm/amd/display: make clk mgr soc specific") neither have been used. Rem

[PATCH 3/4] drm/radeon: Remove unused radeon_fence_wait_any

2025-04-17 Thread linux
From: "Dr. David Alan Gilbert" radeon_fence_wait_any() last use was removed in 2023's commit 254986e324ad ("drm/radeon: Use the drm suballocation manager implementation.") Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/radeon/radeon.h | 3 -- drivers/gpu/drm/radeo

[PATCH 1/4] drm/radeon/radeon_audio: Remove unused r600_hdmi_audio_workaround

2025-04-17 Thread linux
From: "Dr. David Alan Gilbert" The last use of r600_hdmi_audio_workaround() was removed by 2014's commit 6e72376dcc66 ("radeon/audio: consolidate audio_mode_set() functions") Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/radeon/r600_hdmi.c | 22 --

[PATCH 2/4] drm/radeon: Remove unused radeon_doorbell_free

2025-04-17 Thread linux
From: "Dr. David Alan Gilbert" radeon_doorbell_free() was added in 2013 by commit 75efdee11b5d ("drm/radeon: implement simple doorbell page allocator") but never used. Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/radeon/radeon.h| 1 - drivers/gpu/drm/radeon/ra

[PATCH 0/4] drm/amd & radeon deadcoding

2025-04-17 Thread linux
From: "Dr. David Alan Gilbert" Hi, Another set of deadcoding around amd/radeon GPU stuff. Dave Signed-off-by: Dr. David Alan Gilbert Dr. David Alan Gilbert (4): drm/radeon/radeon_audio: Remove unused r600_hdmi_audio_workaround drm/radeon: Remove unused radeon_doorbell_free drm/radeon:

[PATCH 1/2] drm: qxl: Remove dead qxl_io_flush_* functions

2025-04-13 Thread linux
From: "Dr. David Alan Gilbert" qxl_io_flush_release() and qxl_io_flush_surfaces() were both added in 2013's commit f64122c1f6ad ("drm: add new QXL driver. (v1.4)") but have remained unused. Remove them. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/qxl/qxl_cmd.c | 10 --

[PATCH 2/2] drm: qxl: Remove unused debugfs code

2025-04-13 Thread linux
From: "Dr. David Alan Gilbert" qxl_debugfs_add_files() has been unused since 2022's commit d0719e09264b ("drm/qxl: Use TTM builtin resource manager debugfs code") Remove it. This now leaves the debugfs_count and debugfs members of struct qxl_device unused. Remove them. QXL_DEBUGFS_MAX_COMPONE

[PATCH 0/2] drm: qxl: Deadcoding

2025-04-13 Thread linux
From: "Dr. David Alan Gilbert" Hi, A couple of small deadcodings for qxl. The first just cleans up a couple of trivial unusued wrappers. The second cleans out some debugfs code that's been unused for a few years. Dave Signed-off-by: Dr. David Alan Gilbert Dr. David Alan Gilbert (2): drm:

RE: [PATCH] drm/meson: fix resource cleanup in meson_drv_bind_master() on error

2025-04-11 Thread linux
nt inline for your consideration. > -Original Message- > From: linux-amlogic On Behalf > Of Martin Blumenstingl > Sent: Wednesday, April 9, 2025 11:44 PM > To: linux-amlo...@lists.infradead.org; dri-devel@lists.freedesktop.org > Cc: linux-ker...@vger.kernel.org; linux-ar

[PATCH v2 0/9] Remove pcf50633

2025-03-10 Thread linux
ght/Makefile | 1 - drivers/video/backlight/pcf50633-backlight.c | 154 -- include/linux/mfd/pcf50633/adc.h | 69 --- include/linux/mfd/pcf50633/backlight.h | 42 -- include/linux/mfd/pcf50633/core.h | 232 - include/linux/mfd/pcf50633/gpio.

[PATCH v2 1/9] mfd: pcf50633-adc: Remove

2025-03-10 Thread linux
. Signed-off-by: Dr. David Alan Gilbert --- arch/mips/configs/ip27_defconfig | 1 - drivers/mfd/Kconfig | 7 - drivers/mfd/Makefile | 1 - drivers/mfd/pcf50633-adc.c | 255 --- include/linux/mfd/pcf50633/adc.h | 69 -

[PATCH v2 5/9] regulator: pcf50633-regulator: Remove

2025-03-10 Thread linux
From: "Dr. David Alan Gilbert" The pcf50633 was used as part of the OpenMoko devices but the support for its main chip was recently removed in: commit 61b7f8920b17 ("ARM: s3c: remove all s3c24xx support") See https://lore.kernel.org/all/Z8z236h4B5A6Ki3D@gallifrey/ Remove it. Signed-off-by: Dr.

[PATCH v2 9/9] mfd: pcf50633: Remove remains

2025-03-10 Thread linux
3-core.c | 301 -- include/linux/mfd/pcf50633/core.h | 229 --- include/linux/mfd/pcf50633/mbc.h | 130 ----- include/linux/mfd/pcf50633/pmic.h | 68 --- 7 files changed, 741 deletions(-) delete mode 100644 drivers/mfd/pcf50633-core.c delete mode 100644 includ

[PATCH v2 4/9] Input: pcf50633-input - Remove

2025-03-10 Thread linux
From: "Dr. David Alan Gilbert" The pcf50633 was used as part of the OpenMoko devices but the support for its main chip was recently removed in: commit 61b7f8920b17 ("ARM: s3c: remove all s3c24xx support") See https://lore.kernel.org/all/Z8z236h4B5A6Ki3D@gallifrey/ Remove it. Signed-off-by: Dr.

[PATCH v2 8/9] mfd: pcf50633: Remove irq code

2025-03-10 Thread linux
From: "Dr. David Alan Gilbert" As part of the pcf50633 removal, take out it's irq code (which includes one bit still called from the core, but it'll go soon). Signed-off-by: Dr. David Alan Gilbert --- drivers/mfd/Makefile| 2 +- drivers/mfd/pcf50633-core.c | 5 +- drivers/mfd/pcf50

[PATCH v2 2/9] rtc: pcf50633: Remove

2025-03-10 Thread linux
From: "Dr. David Alan Gilbert" The pcf50633 was used as part of the OpenMoko devices but the support for its main chip was recently removed in: commit 61b7f8920b17 ("ARM: s3c: remove all s3c24xx support") See https://lore.kernel.org/all/Z8z236h4B5A6Ki3D@gallifrey/ Remove it. Signed-off-by: Dr.

[PATCH v2 3/9] mfd: pcF50633-gpio: Remove

2025-03-10 Thread linux
. Signed-off-by: Dr. David Alan Gilbert --- arch/mips/configs/ip27_defconfig | 1 - drivers/mfd/Kconfig | 7 --- drivers/mfd/Makefile | 1 - drivers/mfd/pcf50633-gpio.c | 92 --- include/linux/mfd/pcf50633/gpio.h | 48 -

[PATCH v2 7/9] backlight: pcf50633-backlight: Remove

2025-03-10 Thread linux
. Signed-off-by: Dr. David Alan Gilbert --- drivers/video/backlight/Kconfig | 7 - drivers/video/backlight/Makefile | 1 - drivers/video/backlight/pcf50633-backlight.c | 154 --- include/linux/mfd/pcf50633/backlight.h | 42 - include/linux

[PATCH v2 6/9] power: supply: pcf50633: Remove charger

2025-03-10 Thread linux
From: "Dr. David Alan Gilbert" The pcf50633 was used as part of the OpenMoko devices but the support for its main chip was recently removed in: commit 61b7f8920b17 ("ARM: s3c: remove all s3c24xx support") See https://lore.kernel.org/all/Z8z236h4B5A6Ki3D@gallifrey/ Remove it. Signed-off-by: Dr.

[PATCH 2/9] backlight: pcf50633-backlight: Remove

2025-03-09 Thread linux
. Signed-off-by: Dr. David Alan Gilbert --- drivers/mfd/pcf50633-core.c | 2 - drivers/video/backlight/Kconfig | 7 - drivers/video/backlight/Makefile | 1 - drivers/video/backlight/pcf50633-backlight.c | 154 --- include/linux/mfd/

[PATCH 1/9] mfd: pcf50633-adc: Remove

2025-03-09 Thread linux
. Signed-off-by: Dr. David Alan Gilbert --- arch/mips/configs/ip27_defconfig | 1 - drivers/mfd/Kconfig | 7 - drivers/mfd/Makefile | 1 - drivers/mfd/pcf50633-adc.c| 255 -- drivers/mfd/pcf50633-core.c | 2 - includ

[PATCH 7/9] power: supply: pcf50633: Remove charger

2025-03-09 Thread linux
From: "Dr. David Alan Gilbert" The pcf50633 was used as part of the OpenMoko devices but the support for its main chip was recently removed in: commit 61b7f8920b17 ("ARM: s3c: remove all s3c24xx support") See https://lore.kernel.org/all/Z8z236h4B5A6Ki3D@gallifrey/ Remove it. Signed-off-by: Dr.

[PATCH 9/9] mfd: pcf50633: Remove remains

2025-03-09 Thread linux
3-core.c | 260 -- include/linux/mfd/pcf50633/core.h | 224 ----- include/linux/mfd/pcf50633/mbc.h | 130 --- include/linux/mfd/pcf50633/pmic.h | 68 7 files changed, 695 deletions(-) delete mode 100644 drivers/mfd/pcf50633-core.c delete mode 1006

[PATCH 6/9] regulator: pcf50633-regulator: Remove

2025-03-09 Thread linux
. Signed-off-by: Dr. David Alan Gilbert --- drivers/mfd/pcf50633-core.c| 35 +-- drivers/regulator/Kconfig | 7 -- drivers/regulator/Makefile | 1 - drivers/regulator/pcf50633-regulator.c | 124 ----- include/linux/mfd/pcf50633/co

[PATCH 3/9] rtc: pcf50633: Remove

2025-03-09 Thread linux
. Signed-off-by: Dr. David Alan Gilbert --- drivers/mfd/pcf50633-core.c | 2 - drivers/rtc/Kconfig | 7 - drivers/rtc/Makefile | 1 - drivers/rtc/rtc-pcf50633.c| 284 -- include/linux/mfd/pcf50633/core.h | 1 -

[PATCH 5/9] Input: pcf50633-input - Remove

2025-03-09 Thread linux
. Signed-off-by: Dr. David Alan Gilbert --- drivers/input/misc/Kconfig | 7 -- drivers/input/misc/Makefile | 1 - drivers/input/misc/pcf50633-input.c | 113 drivers/mfd/pcf50633-core.c | 2 - include/linux/mfd/pcf50633/core.h | 1 -

[PATCH 8/9] mfd: pcf50633: Remove irq code

2025-03-09 Thread linux
From: "Dr. David Alan Gilbert" As part of the pcf50633 removal, take out it's irq code (which includes one bit still called from the core, but it'll go soon). Signed-off-by: Dr. David Alan Gilbert --- drivers/mfd/Makefile| 2 +- drivers/mfd/pcf50633-core.c | 5 +- drivers/mfd/pcf50

[PATCH 4/9] mfd: pcF50633-gpio: Remove

2025-03-09 Thread linux
. Signed-off-by: Dr. David Alan Gilbert --- arch/mips/configs/ip27_defconfig | 1 - drivers/mfd/Kconfig | 7 --- drivers/mfd/Makefile | 1 - drivers/mfd/pcf50633-gpio.c | 92 --- include/linux/mfd/pcf50633/gpio.h | 48 -

[PATCH 0/9] Remove pcf50633

2025-03-09 Thread linux
| 1 - drivers/rtc/rtc-pcf50633.c | 284 --- drivers/video/backlight/Kconfig | 7 - drivers/video/backlight/Makefile | 1 - drivers/video/backlight/pcf50633-backlight.c | 154 -- include/linux/mfd/pcf50633/adc.h | 69 --- i

[PATCH] drm/gma500: Remove unused psb_mmu_virtual_to_pfn

2025-03-08 Thread linux
From: "Dr. David Alan Gilbert" psb_mmu_virtual_to_pfn() was added in 2011 by commit 8c8f1c958ab5 ("gma500: introduce the GTT and MMU handling logic") but hasn't been used. Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/gma500/mmu.c | 41 --

[PATCH] drm/gma500/psb_intel_modes: Remove unused psb_intel_ddc_probe

2025-03-08 Thread linux
From: "Dr. David Alan Gilbert" psb_intel_ddc_probe() was added in 2011 by commit 89c78134cc54 ("gma500: Add Poulsbo support") but has remained unused (probably because drm_get_edid is used instead). Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/gma500/psb_intel_drv.h

[PATCH v2] drm/gma500: Remove unused mrst_clock_funcs

2025-03-06 Thread linux
From: "Dr. David Alan Gilbert" The mrst_clock_funcs const was added in 2013 by commit ac6113ebb70d ("drm/gma500/mrst: Add SDVO clock calculation") and commented as 'Not used yet'. It's not been used since, so remove it. The helper functions it points to are still used elsewhere. Signed-off-by:

[PATCH 5/6] drm/amdgpu: Remove unused print__rq_dlg_params_st

2025-03-03 Thread linux
From: "Dr. David Alan Gilbert" print__rq_dlg_params_st() was added in 2017 by commit 061bfa06a42a ("drm/amdgpu/display: Add dml support for DCN") but has remained unused. Remove it. Signed-off-by: Dr. David Alan Gilbert --- .../drm/amd/display/dc/dml/display_rq_dlg_helpers.c | 11 --

[PATCH 1/6] drm/amdgpu: Remove ppatomfwctrl deadcode

2025-03-03 Thread linux
From: "Dr. David Alan Gilbert" pp_atomfwctrl_get_pp_assign_pin() and pp_atomfwctrl_get_pp_assign_pin() were added in 2017 by commit 0d2c7569e196 ("drm/amdgpu: add new atomfirmware based helpers for powerplay") but have remained unused. Remove them, and the helper functions they used. Signed-off

[PATCH 2/6] drm/amdgpu: Remove phm_powerdown_uvd

2025-03-03 Thread linux
From: "Dr. David Alan Gilbert" phm_powerdown_uvd() has been unused since 2017's commit 47047263c527 ("drm/amd/powerplay: delete eventmgr related files.") Remove it. Signed-off-by: Dr. David Alan Gilbert --- .../gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c | 10 -- drivers/gpu/dr

[PATCH 0/6] drm/amdgpu: Deadcode - the P's

2025-03-03 Thread linux
From: "Dr. David Alan Gilbert" Hi, Here's another blob of deadcoding in the amdgpu's; this set is all the symbols I noticed that start with 'P'. Most, as normal are whole function removals, but I also nuke the powerdown_uvd member in one patch. Dave Signed-off-by: Dr. David Alan Gilbert

[PATCH 4/6] drm/amdgpu: Remove unused pre_surface_trace

2025-03-03 Thread linux
From: "Dr. David Alan Gilbert" pre_surface_trace() has been unused since 2017's commit 745cc746da42 ("drm/amd/display: remove dc_pre_update_surfaces_to_stream from dc use") Remove it. Signed-off-by: Dr. David Alan Gilbert --- .../gpu/drm/amd/display/dc/core/dc_debug.c| 120 ---

[PATCH 6/6] drm/amdgpu: Remove unused pqm_get_kernel_queue

2025-03-03 Thread linux
From: "Dr. David Alan Gilbert" pqm_get_kernel_queue() has been unused since 2022's commit 5bdd3eb25354 ("drm/amdkfd: Remove unused old debugger implementation") Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 2 -- .../gpu/drm/amd/am

[PATCH 3/6] drm/amdgpu: Remove powerdown_uvd member

2025-03-03 Thread linux
From: "Dr. David Alan Gilbert" With phm_powerdown_uvd() gone in the previous patch, there's now no longer anything that reads the powerdown_uvd member of the pp_hwmgr_func. Remove it. There are a few assignments to it; a boring NULL which can just go, and two functions, but those functions are

[PATCH] drm/omap: Remove unused omapdss_find_device_by_node

2025-02-24 Thread linux
From: "Dr. David Alan Gilbert" The last use of omapdss_find_device_by_node() was removed by 2020's commit 811860ddceac ("drm/omap: drop unused DSS next pointer") Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/omapdrm/dss/base.c| 12 drivers/gpu/drm/omapd

[PATCH] drm/amd/display: Remove unused optc3_fpu_set_vrr_m_const

2025-02-24 Thread linux
From: "Dr. David Alan Gilbert" The last use of optc3_fpu_set_vrr_m_const() was removed in 2022's commit 64f991590ff4 ("drm/amd/display: Fix a compilation failure on PowerPC caused by FPU code") which removed the only caller (with a similar) name. Remove it. Signed-off-by: Dr. David Alan Gilbert

[PATCH] drm/amdgpu: Remove unused nbif_v6_3_1_sriov_funcs

2025-02-19 Thread linux
From: "Dr. David Alan Gilbert" The nbif_v6_3_1_sriov_funcs instance of amdgpu_nbio_funcs was added in commit 894c6d3522d1 ("drm/amdgpu: Add nbif v6_3_1 ip block support") but has remained unused. Alex has confirmed it wasn't needed. Remove it, together with the four unused stub functions: nbi

[PATCH 7/7] drm/amd/display: Remove unused link_enc_cfg_get_link_enc_used_by_stream

2025-02-02 Thread linux
From: "Dr. David Alan Gilbert" link_enc_cfg_get_link_enc_used_by_stream() is no longer used after 2021's: commit 6366b00346c0 ("drm/amd/display: Maintain consistent mode of operation during encoder assignment") which introduces and uses the _current version instead. Remove it. Signed-off-by: Dr

[PATCH 1/7] drm/amd/display: Remove unused mpc1_is_mpcc_idle

2025-02-02 Thread linux
From: "Dr. David Alan Gilbert" mpc1_is_mpcc_idle() was added in 2017 by commit feb4a3cd8eb0 ("drm/amd/display: Integrating MPC pseudocode") but never used. Remove it. Signed-off-by: Dr. David Alan Gilbert --- .../gpu/drm/amd/display/dc/mpc/dcn10/dcn10_mpc.c | 16 .../gpu/drm/

[PATCH 4/7] drm/amd/display: Remove unused get_clock_requirements_for_state

2025-02-02 Thread linux
From: "Dr. David Alan Gilbert" get_clock_requirements_for_state() was added in 2018 by commit 8ab2180f96f5 ("drm/amd/display: Add function to fetch clock requirements") but never used. Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/amd/display/dc/core/dc.c | 12 -

[PATCH 3/7] drm/amd/display: Remove unused dc_stream_get_crtc_position

2025-02-02 Thread linux
From: "Dr. David Alan Gilbert" The last user of dc_stream_get_crtc_position() was mod_freesync_get_v_position() which is removed in a previous patch in this series. Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/amd/display/dc/core/dc.c | 27 -- dri

[PATCH 5/7] drm/amd/display: Remove unused hubbub1_toggle_watermark_change_req

2025-02-02 Thread linux
From: "Dr. David Alan Gilbert" hubbub1_toggle_watermark_change_req() last use was removed in 2017 by commit b8fce2c9d773 ("drm/amd/display: Optimize programming front end") Remove it. Signed-off-by: Dr. David Alan Gilbert --- .../amd/display/dc/hubbub/dcn10/dcn10_hubbub.c | 18 ---

[PATCH 0/7] drm/amd/display: More deadcoding

2025-02-02 Thread linux
From: "Dr. David Alan Gilbert" Another small pile of deadcode patches. Signed-off-by: Dr. David Alan Gilbert Dr. David Alan Gilbert (7): drm/amd/display: Remove unused mpc1_is_mpcc_idle drm/amd/display: Remove unused freesync functions drm/amd/display: Remove unused dc_stream_get_crtc_p

[PATCH 2/7] drm/amd/display: Remove unused freesync functions

2025-02-02 Thread linux
From: "Dr. David Alan Gilbert" mod_freesync_get_vmin_vmax() and mod_freesync_get_v_position() were added in 2017 by commit 72ada5f76939 ("drm/amd/display: FreeSync Auto Sweep Support") mod_freesync_is_valid_range() was added in 2018 by commit e80e94460841 ("drm/amd/display: add method to check f

[PATCH 6/7] drm/amd/display: Remove unused get_max_support_fbc_buffersize

2025-02-02 Thread linux
From: "Dr. David Alan Gilbert" get_max_support_fbc_buffersize() is unused since 2021's commit 94f0d0c80cf3 ("drm/amd/display/dc/dce110/dce110_compressor: Remove unused function 'dce110_get_required_compressed_surfacesize") removed it's only caller. Remove it. Signed-off-by: Dr. David Alan Gilbe

[PATCH] drm/gma500: Remove unused mrst_helper_funcs

2025-01-31 Thread linux
From: "Dr. David Alan Gilbert" The mrst_helper_funcs const was added in 2013 by commit ac6113ebb70d ("drm/gma500/mrst: Add SDVO clock calculation") and commented as 'Not used yet'. It's not been used since, so remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/gma500/oaktrai

[PATCH] drm/i915: Remove unused live_context_for_engine

2025-01-24 Thread linux
From: "Dr. David Alan Gilbert" The last use of live_context_for_engine() was removed in 2021 by commit 99919be74aa3 ("drm/i915/gem: Zap the i915_gem_object_blt code") Remove it. Signed-off-by: Dr. David Alan Gilbert --- .../gpu/drm/i915/gem/selftests/mock_context.c | 38 --- .

[PATCH] drm/kmb: Remove unused const and defines

2025-01-24 Thread linux
From: "Dr. David Alan Gilbert" layer_irqs[] was added in 2020 as part of commit 7f7b96a8a0a1 ("drm/kmb: Add support for KeemBay Display") but isn't used. Remove it. It was the only user of the LCD_INT_VL0, LCD_INT_VL1, LCD_INT_GL0 and LCD_INT_GL1 defines. Remove them. commit c026565fe9be ("dr

[PATCH] drm/amdkfd: Remove unused functions

2025-01-12 Thread linux
From: "Dr. David Alan Gilbert" kfd_device_by_pci_dev(), kfd_get_pasid_limit() and kfd_set_pasid_limit() have been unused since 2023's commit c99a2e7ae291 ("drm/amdkfd: drop IOMMUv2 support") Remove them. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/amd/amdkfd/kfd_pasid.c| 24

[PATCH 0/7] gpu: ipu-v3: Remove unused functions

2024-12-25 Thread linux
From: "Dr. David Alan Gilbert" Hi, This set removes a bunch of functions in ipu-v3 that have been unused for a long time (since 2012-2017). No changes to functions are made, just full deletions. Build tested only. Signed-off-by: Dr. David Alan Gilbert Dr. David Alan Gilbert (7): gpu

[PATCH 6/7] gpu: ipu-v3: ipu-csi: Remove unused functions

2024-12-25 Thread linux
From: "Dr. David Alan Gilbert" ipu_csi_get_window(), ipu_csi_is_interlaced() and ipu_csi_set_test_generator() were added in 2014 by commit 2ffd48f2e7ae ("gpu: ipu-v3: Add Camera Sensor Interface unit") but have remained unused. Remove them. ipu_csi_set_testgen_mclk() is now unused. Remove it.

[PATCH 3/7] gpu: ipu-v3: Remove unused ipu_idmac_channel_busy

2024-12-25 Thread linux
From: "Dr. David Alan Gilbert" The last use of ipu_idmac_channel_busy() was removed in 2017 by commit eb8c88808c83 ("drm/imx: add deferred plane disabling") Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/ipu-v3/ipu-common.c | 6 -- drivers/gpu/ipu-v3/ipu-prv.h| 2 --

[PATCH 4/7] gpu: ipu-v3: Remove unused ipu_image_convert_* functions

2024-12-25 Thread linux
From: "Dr. David Alan Gilbert" ipu_image_convert_enum_format() and ipu_image_convert_sync() were both added in 2016 by commit cd98e85a6b78 ("gpu: ipu-v3: Add queued image conversion support") but have remained unused. Remove them. ipu_image_convert_sync() was the last user of image_convert_syn

[PATCH 1/7] gpu: ipu-v3: ipu-ic: Remove unused ipu_ic_task_graphics_init

2024-12-25 Thread linux
From: "Dr. David Alan Gilbert" ipu_ic_task_graphics_init() was added in 2014 by commit 1aa8ea0d2bd5 ("gpu: ipu-v3: Add Image Converter unit") but has been unused. Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/ipu-v3/ipu-ic.c | 73 - inclu

[PATCH 5/7] gpu: ipu-v3: Remove unused ipu_vdi_unsetup

2024-12-25 Thread linux
From: "Dr. David Alan Gilbert" ipu_vdi_unsetup() was added in 2016 by commit 2d2ead453077 ("gpu: ipu-v3: Add Video Deinterlacer unit") but has remained unused. Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/ipu-v3/ipu-vdi.c | 11 --- include/video/imx-ipu-v3.h | 1

[PATCH 7/7] gpu: ipu-v3 ipu-cpmem: Remove unused functions

2024-12-25 Thread linux
From: "Dr. David Alan Gilbert" ipu_cpmem_set_yuv_interleaved() was added in 2012 by commit 0125f21b2baf ("staging: drm/imx: Add ipu_cpmem_set_yuv_interleaved()") but has remained unused. ipu_cpmem_get_burstsize() was added in 2016 by commit 03085911d7bb ("gpu: ipu-cpmem: Add ipu_cpmem_get_bursts

[PATCH 2/7] gpu: ipu-v3: Remove unused ipu_rot_mode_to_degrees

2024-12-25 Thread linux
From: "Dr. David Alan Gilbert" ipu_rot_mode_to_degrees() was added in 2014 by commit f835f386a119 ("gpu: ipu-v3: Add rotation mode conversion utilities") but has remained unused. Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/ipu-v3/ipu-common.c | 32

[PATCH] x86/platform/iosf_mbi: Remove unused iosf_mbi_unregister_pmic_bus_access_notifier

2024-12-25 Thread linux
From: "Dr. David Alan Gilbert" The last use of iosf_mbi_unregister_pmic_bus_access_notifier() was removed in 2017 by commit a5266db4d314 ("drm/i915: Acquire PUNIT->PMIC bus for intel_uncore_forcewake_reset()") Remove it. Note the '_unlocked' version is still used. Signed-off-by: Dr. David Alan

[PATCH] drm/i915: Remove unused intel_huc_suspend

2024-12-22 Thread linux
From: "Dr. David Alan Gilbert" intel_huc_suspend() was added in 2022 by commit 27536e03271d ("drm/i915/huc: track delayed HuC load with a fence") but hasn't been used. Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/i915/gt/uc/intel_huc.c | 13 - drivers/gpu/d

[PATCH] drm/i915: Remove unused intel_ring_cacheline_align

2024-12-22 Thread linux
From: "Dr. David Alan Gilbert" The last use of intel_ring_cacheline_align() was removed in 2017 by commit afa8ce5b3080 ("drm/i915: Nuke legacy flip queueing code") Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/i915/gt/intel_ring.c | 24 drivers/

[PATCH] drm/i915: Remove deadcode

2024-12-22 Thread linux
From: "Dr. David Alan Gilbert" i915_active_acquire_for_context() was added in 2020 by commit 5d9341370f57 ("drm/i915: Export a preallocate variant of i915_active_acquire()") but has never been used. The last use of __i915_gem_object_is_lmem() was removed in 2021 by commit ff20afc4cee7 ("drm/i915

[PATCH 0/3] drm/i915/gvt: Deadcoding

2024-12-21 Thread linux
From: "Dr. David Alan Gilbert" Remove a bunch of long unused functions from the gvt code. Signed-off-by: Dr. David Alan Gilbert Dr. David Alan Gilbert (3): drm/i915/gvt: Remove intel_gvt_ggtt_h2g<->index drm/i915/gvt: Remove unused intel_vgpu_decode_sprite_plane drm/i915/gvt: Remove unu

[PATCH 3/3] drm/i915/gvt: Remove unused intel_gvt_in_force_nonpriv_whitelist

2024-12-21 Thread linux
From: "Dr. David Alan Gilbert" The last use of intel_gvt_in_force_nonpriv_whitelist() was removed in 2020 by commit 02dd2b12a685 ("drm/i915/gvt: unify lri cmd handler and mmio handlers") Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/i915/gvt/handlers.c | 17

[PATCH 1/3] drm/i915/gvt: Remove intel_gvt_ggtt_h2g<->index

2024-12-21 Thread linux
From: "Dr. David Alan Gilbert" intel_gvt_ggtt_h2g_index() and intel_gvt_ggtt_index_g2h() were added in 2016 by commit 2707e4446688 ("drm/i915/gvt: vGPU graphics memory virtualization") but haven't been used. Remove them. They were the only users of intel_gvt_ggtt_gmadr_g2h() and intel_gvt_ggtt_

[PATCH 2/3] drm/i915/gvt: Remove unused intel_vgpu_decode_sprite_plane

2024-12-21 Thread linux
From: "Dr. David Alan Gilbert" intel_vgpu_decode_sprite_plane() was added in 2017 by commit 9f31d1063b43 ("drm/i915/gvt: Add framebuffer decoder support") but has remained unused. Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/i915/gvt/fb_decoder.c | 117

[PATCH] drm/omap: Remove hdmi5_core_handle_irqs()

2024-12-17 Thread linux
From: "Dr. David Alan Gilbert" hdmi5_core_handle_irqs() is a function that was copied from omapdss by commit f76ee892a99e ("omapfb: copy omapdss & displays for omapfb") but it wasn't used in the original anyway. Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/omapdrm/dss

[PATCH] fbdev: omapfb: Remove unused hdmi5_core_handle_irqs

2024-12-17 Thread linux
From: "Dr. David Alan Gilbert" hdmi5_core_handle_irqs() has been unused since commit f5bab2229190 ("OMAPDSS: HDMI: Add OMAP5 HDMI support") Remove it. Signed-off-by: Dr. David Alan Gilbert --- .../video/fbdev/omap2/omapfb/dss/hdmi5_core.c | 17 - .../video/fbdev/omap2/omapfb

[PATCH] video: hdmi: Remove unused hdmi_infoframe_check

2024-12-16 Thread linux
7;re staying. Signed-off-by: Dr. David Alan Gilbert --- drivers/video/hdmi.c | 28 ---- include/linux/hdmi.h | 1 - 2 files changed, 29 deletions(-) diff --git a/drivers/video/hdmi.c b/drivers/video/hdmi.c index ba301f3f4951..45b42f14a750 100644 --- a/drivers/video/h

[PATCH] drm/vboxvideo: Remove unused hgsmi_cursor_position

2024-12-15 Thread linux
From: "Dr. David Alan Gilbert" hgsmi_cursor_position() has been unused since 2018's commit 35f3288c453e ("staging: vboxvideo: Atomic phase 1: convert cursor to universal plane") Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/vboxvideo/hgsmi_base.c | 37 -

[PATCH] gpu: host1x: Remove unused host1x_debug_dump_syncpts

2024-12-15 Thread linux
From: "Dr. David Alan Gilbert" host1x_debug_dump_syncpts() has been unused since commit f0fb260a0cdb ("gpu: host1x: Implement syncpoint wait using DMA fences") Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/host1x/debug.c | 9 - drivers/gpu/host1x/debug.h | 1 - 2 fi

Re: [REGRESSION] GM20B pmu timeout

2024-11-12 Thread Linux regression tracking (Thorsten Leemhuis)
[CCing Danilo, who committed the culprit] On 04.11.24 13:11, Diogo Ivo wrote: > On Tue Oct 15, 2024 at 7:13 PM WEST, Linux regression tracking (Thorsten > Leemhuis) wrote: >> On 10.10.24 15:32, Diogo Ivo wrote: >>> >>> Somewhere between 6.11-rc4 and 6.11-rc5

[PATCH 5/5] drm/amd/display: Remove unused dcn_find_dcfclk_suits_all

2024-11-03 Thread linux
From: "Dr. David Alan Gilbert" dcn_find_dcfclk_suits_all() last use was removed by 2018's commit 4fd994c448a3 ("drm/amd/display: Start using the new pp_smu interface") Remove it, and the dcn_find_normalized_clock_vdd_Level helper it used. Signed-off-by: Dr. David Alan Gilbert --- .../drm/amd/

[PATCH 4/5] drm/amd/display: Remove unused mmhubbub_warmup field

2024-11-03 Thread linux
From: "Dr. David Alan Gilbert" mmhubbub_warmup is a field that was only read by the just removed dc_stream_warmup_writeback() function. Remove the field and it's initialisers. It was only ever initialised to a single function value (dcn30_mmhubbub_warmup) which is called explicitly elsewhere.

[PATCH 3/5] drm/amd/display: Remove unused dc_stream_warmup_writeback

2024-11-03 Thread linux
From: "Dr. David Alan Gilbert" dc_stream_warmup_writeback() is unused since it was added in 2019 by commit 6a652f6d127d ("drm/amd/display: Add warmup escape call support") Remove it. Note there is a dcn30 version that's called directly which is kept. Signed-off-by: Dr. David Alan Gilbert ---

[PATCH 2/5] drm/amd/display: Remove unused dwb3_set_host_read_rate_control

2024-11-03 Thread linux
From: "Dr. David Alan Gilbert" dwb3_set_host_read_rate_control() has been unused since it was added by commit 8993dee0de2a ("drm/amd/display: Add DCN3 DWB") Remove it. Signed-off-by: Dr. David Alan Gilbert --- .../gpu/drm/amd/display/dc/dwb/dcn30/dcn30_dwb.c| 13 - .../gpu/drm

[PATCH 1/5] drm/amd/display: Remove unused enable_surface_flip_reporting

2024-11-03 Thread linux
From: "Dr. David Alan Gilbert" enable_surface_flip_reporting() has been unused since it was added by commit 4562236b3bc0 ("drm/amd/dc: Add dc display driver (v2)") Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/amd/display/dc/core/dc_surface.c | 7 --- drivers/gpu/dr

[PATCH 0/5] Some more drm/amd/display deadcoding

2024-11-03 Thread linux
From: "Dr. David Alan Gilbert" Hi, This removes a bunch more functions (and a field) from drm/amd/display that are unused. Signed-off-by: Dr. David Alan Gilbert Dave Dr. David Alan Gilbert (5): drm/amd/display: Remove unused enable_surface_flip_reporting drm/amd/display: Remove unused d

[PATCH] drm/i915/gt: Remove unused execlists_unwind_incomplete_requests

2024-11-03 Thread linux
From: "Dr. David Alan Gilbert" execlists_unwind_incomplete_requests() is unused since 2021's commit eb5e7da736f3 ("drm/i915/guc: Reset implementation for new GuC interface") Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/i915/gt/intel_engine.h | 3 --- driv

[PATCH v2 0/3] DRM deadcode

2024-10-29 Thread linux
From: "Dr. David Alan Gilbert" This is a bunch of deadcode removals; the first two are strictly whole function removals; the last as a revert also undoes an extra parameter that was added. It was a clean revert. v2 Drop Remove unused drm_client_framebuffer_flush Jocelyn & Thomas have plan

[PATCH v2 2/3] drm/sysfs: Remove unused drm_class_device_(un)register

2024-10-29 Thread linux
From: "Dr. David Alan Gilbert" drm_class_device_register() and drm_class_device_unregister() have been unused since commit ed89fff97382 ("drm/ttm: drop sysfs directory") Remove them. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/drm_sysfs.c | 32

[PATCH v2 3/3] Revert "drm/client: Add drm_client_modeset_check()"

2024-10-29 Thread linux
From: "Dr. David Alan Gilbert" drm_client_modeset_check() was explicitly added in 2020 by commit 64593f2a6fc9 ("drm/client: Add drm_client_modeset_check()") but has never been used. This reverts commit 64593f2a6fc933bb9a410bc3f8c261f3e57a9601. Signed-off-by: Dr. David Alan Gilbert --- drivers

[PATCH v2 1/3] drm: Remove unused drm_atomic_helper_commit_planes_on_crtc

2024-10-29 Thread linux
From: "Dr. David Alan Gilbert" The last use of drm_atomic_helper_commit_planes_on_crtc() was removed in 2018 by commit 6c246b81f938 ("drm/i915: Replace call to commit_planes_on_crtc with internal update, v2.") Remove it. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Dmitry Baryshkov ---

[PATCH] fbdev: omapfb: Remove some deadcode

2024-10-26 Thread linux
From: "Dr. David Alan Gilbert" commit f76ee892a99e ("omapfb: copy omapdss & displays for omapfb") took a copy of the omapdrm code into omapfb, however at that point a couple of functions were already unused at that point. Remove dispc_mgr_get_clock_div() and dispc_enable_fifomerge() from the oma

[PATCH] drm/omap: Clean up deadcode functions

2024-10-26 Thread linux
From: "Dr. David Alan Gilbert" dispc_enable_fifomerge() last use was removed by 2012's commit 85099f11bd03 ("Revert "OMAPDSS: APPLY: add fifo merge support funcs"") dispc_has_writeback(), dispc_wb_get_framedone_irq(), dispc_wb_go(), dispc_wb_go_busy() and dispc_wb_setup() were changed from stati

[PATCH] drm: encoder_slave: Remove unused encoder functions

2024-10-25 Thread linux
From: "Dr. David Alan Gilbert" drm_i2c_encoder_commit(), drm_i2c_encoder_mode_set() and drm_i2c_encoder_prepare() have been unused since 2016's commit 7bc61cc5df80 ("drm/arcpgu: Accommodate adv7511 switch to DRM bridge"). Remove them. That change makes drm_i2c_encoder_dpms() unused. Remove it.

[PATCH 2/5] drm/sysfs: Remove unused drm_class_device_(un)register

2024-10-22 Thread linux
From: "Dr. David Alan Gilbert" drm_class_device_register() and drm_class_device_unregister() have been unused since commit ed89fff97382 ("drm/ttm: drop sysfs directory") Remove them. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/drm_sysfs.c | 32 i

  1   2   3   4   5   6   7   8   9   10   >