[PATCH] drm/komeda: remove unused struct 'gamma_curve_segment'

2024-05-16 Thread linux
From: "Dr. David Alan Gilbert" 'gamma_curve_segment' looks like it has never been used. Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/arm/display/komeda/komeda_color_mgmt.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_

[PATCH 1/6] drm/bridge: analogix: remove unused struct 'bridge_init'

2024-05-17 Thread linux
From: "Dr. David Alan Gilbert" 'bridge_init' is unused, I think following: commit 6a1688ae8794 ("drm/bridge: ptn3460: Convert to I2C driver model") (which is where a git --follow finds it) Remove it. Build tested. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/bridge/analogix/analo

[PATCH 2/6] drm/nouveau: remove unused struct 'init_exec'

2024-05-17 Thread linux
From: "Dr. David Alan Gilbert" 'init_exec' is unused since commit cb75d97e9c77 ("drm/nouveau: implement devinit subdev, and new init table parser") Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/nouveau/nouveau_bios.c | 5 - 1 file changed, 5 deletions(-) diff --git

[PATCH 3/6] drm/vmwgfx: remove unused struct 'vmw_stdu_dma'

2024-05-17 Thread linux
From: "Dr. David Alan Gilbert" 'vmw_stdu_dma' is unused since commit 39985eea5a6d ("drm/vmwgfx: Abstract placement selection") Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/vmwgf

[PATCH 0/3] A bunch of struct removals

2024-05-17 Thread linux
From: "Dr. David Alan Gilbert" A bunch of deadcode/struct removals in drm/amd Signed-off-by: Dr. David Alan Gilbert Dr. David Alan Gilbert (3): drm/amdgpu: remove unused struct 'hqd_registers' drm/amd/display: remove unused struct 'aux_payloads' drm/amd/display: remove unused struct 'dc

[PATCH 1/3] drm/amdgpu: remove unused struct 'hqd_registers'

2024-05-17 Thread linux
From: "Dr. David Alan Gilbert" 'hqd_registers' used to be used in a member of the 'bonaire_mqd' struct. 'bonaire_mqd' was removed by commit 486d807cd9a9 ("drm/amdgpu: remove duplicate definition of cik_mqd") It's now unused. Remove 'hqd_registers' as well. Signed-off-by: Dr. David Alan Gilbert

[PATCH 3/3] drm/amd/display: remove unused struct 'dc_reg_sequence'

2024-05-17 Thread linux
From: "Dr. David Alan Gilbert" 'dc_reg_sequence' was added in commit 44788bbc309b ("drm/amd/display: refactor reg_update") but isn't actually used. Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/amd/display/dc/dc_helper.c | 5 - 1 file changed, 5 deletions(-) diff

[PATCH 2/3] drm/amd/display: remove unused struct 'aux_payloads'

2024-05-17 Thread linux
From: "Dr. David Alan Gilbert" 'aux_payloads' is unused since commit eae5ffa9bd7b ("drm/amd/display: Switch ddc to new aux interface") Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/amd/display/dc/link/protocols/link_ddc.c | 4 1 file changed, 4 deletions(-) diff --

[PATCH v2] drm/bridge: analogix: remove unused struct 'bridge_init'

2024-05-20 Thread linux
From: "Dr. David Alan Gilbert" commit 6a1688ae8794 ("drm/bridge: ptn3460: Convert to I2C driver model") has dropped all the users of the struct bridge_init from the exynos_dp_core, while retaining unused structure definition. Later on the driver was reworked and the definition migrated to the ana

[PATCH] drm/xe: remove unused struct 'xe_gt_desc'

2024-05-22 Thread linux
From: "Dr. David Alan Gilbert" 'xe_gt_desc' is unused since commit 1e6c20be6c83 ("drm/xe: Drop extra_gts[] declarations and XE_GT_TYPE_REMOTE"). Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/xe/xe_pci.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/gp

[PATCH] drm/amd/display: Remove unused function bios_get_vga_enabled_displays

2024-09-15 Thread linux
From: "Dr. David Alan Gilbert" bios_get_vga_enabled_displays has been unused since commit 5a8132b9f606 ("drm/amd/display: remove dead dc vbios code") Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c | 7 --- drivers/gpu/drm/am

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

2024-10-08 Thread linux
From: "Dr. David Alan Gilbert" cm3_helper_translate_curve_to_degamma_hw_format() since it was added in 2020's commit 03f54d7d3448 ("drm/amd/display: Add DCN3 DPP") Remove it. Signed-off-by: Dr. David Alan Gilbert --- .../amd/display/dc/dcn30/dcn30_cm_common.c| 151 -- .../

[PATCH] drm/amd/display: Remove unused regamma functions

2024-10-04 Thread linux
From: "Dr. David Alan Gilbert" calculate_user_regamma_coeff() and calculate_user_regamma_ramp() were added in 2018 in commit 55a01d4023ce ("drm/amd/display: Add user_regamma to color module") but never used. Remove them and their helpers. Signed-off-by: Dr. David Alan Gilbert --- .../amd/dis

[PATCH] drm/amd/powerplay: Delete unused function and maths library

2024-09-29 Thread linux
From: "Dr. David Alan Gilbert" We start with the function 'atomctrl_calculate_voltage_evv_on_sclk' which has been unused since 2016's commit e805ed83ba1c ("drm/amd/powerplay: delete useless files.") Remove it. It was the last user of the struct ATOM_ASIC_PROFILING_INFO_V3_4 remove it. It was a

[PATCH] drm/rockchip: cdn-dp: Remove unused functions

2024-10-05 Thread linux
From: "Dr. David Alan Gilbert" cdn_dp_get_event and cdn_dp_dpcd_write were added in 2017 by commit 1a0f7ed3abe2 ("drm/rockchip: cdn-dp: add cdn DP support for rk3399") but unused. Remove them. (Build tested only on x86-64) Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/rockchip/cdn

[PATCH] drm/bridge: cdns-mhdp8546: Remove unused functions

2024-10-05 Thread linux
From: "Dr. David Alan Gilbert" cdns_mhdp_hdcp_set_lc() and cdns_mhdp_hdcp_set_public_key_param() were added by commit 6a3608eae6d3 ("drm: bridge: cdns-mhdp8546: Enable HDCP") but never used. Remove them. Signed-off-by: Dr. David Alan Gilbert --- .../drm/bridge/cadence/cdns-mhdp8546-hdcp.c |

[PATCH] nouveau: Remove unused functions

2024-10-21 Thread linux
From: "Dr. David Alan Gilbert" dcb_outp_match() last use was removed in 2017 in commit 99a845a30f62 ("drm/nouveau/disp/nv50-gt21x: remove workaround for dp->tmds hotplug issues") dcb_xpio_parse was added in 2012 in commit 112a12aab8a5 ("drm/nouveau/bios: add support for parsing xpio table data")

[PATCH] drm/amd/display: Remove last parts of timing_trace

2024-10-10 Thread linux
From: "Dr. David Alan Gilbert" Commit c2c2ce1e9623 ("drm/amd/display: Optimize passive update planes.") removed the last caller of context_timing_trace. Remove it. With that gone, no one is now looking at the 'timing_trace' flag, remove it and all the places that set it. Signed-off-by: Dr. Davi

[PATCH 4/5] drm/client: Remove unused drm_client_framebuffer_flush

2024-10-22 Thread linux
From: "Dr. David Alan Gilbert" drm_client_framebuffer_flush() was explicitly added in 2020 by commit c9c03e3cf072 ("drm/client: Add drm_client_framebuffer_flush()") but has never been used. Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/drm_client.c | 33

[PATCH 0/5] DRM deadcode

2024-10-22 Thread linux
From: "Dr. David Alan Gilbert" Hi, This is a bunch of deadcode removals; they're all whole function removals, no changing actual code or behaviour. Note the last 3 delete functions that were each added (long ago) by patches that explicitly added that individual function, but then neve used the

[PATCH 3/5] drm/vblank: Remove unused drm_crtc_vblank_count_and_time

2024-10-22 Thread linux
From: "Dr. David Alan Gilbert" drm_crtc_vblank_count_and_time() was explicitly added by commit cf6483050e9b ("drm/irq: Add drm_crtc_vblank_count_and_time()") in 2015, but never used. Remove it, and rework comments that reference it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/dr

[PATCH 5/5] drm/client: Remove unused drm_client_modeset_check

2024-10-22 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. Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/drm_client_modeset.c | 24

[PATCH 1/5] drm: Remove unused drm_atomic_helper_commit_planes_on_crtc

2024-10-22 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 --- drivers/gpu/drm/drm_atomic_hel

[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

[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 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 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 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 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 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 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 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] 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] 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 1/5] drm/amdgpu: Remove unused amdgpu_device_ip_is_idle

2024-09-22 Thread linux
From: "Dr. David Alan Gilbert" amdgpu_device_ip_is_idle is unused. It was renamed from 'amdgpu_is_idle' which was originally added in commit 5dbbb60ba61e ("drm/amdgpu: add IP helpers for wait_for_idle and is_idle") but hasn't been used. Remove it. Signed-off-by: Dr. David Alan Gilbert --- dr

[PATCH 0/5] AMDGPU deadcode

2024-09-22 Thread linux
From: "Dr. David Alan Gilbert" 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 remov

[PATCH 2/5] drm/amdgpu: Remove unused amdgpu_atpx functions

2024-09-22 Thread linux
From: "Dr. David Alan Gilbert" amdgpu_atpx_dgpu_req_power_for_displays has been unused since commit bdb1ccb080da ("drm/amdgpu: remove ATPX_DGPU_REQ_POWER_FOR_DISPLAYS check when hotplug-in") amdgpu_atpx_get_dhandle has been unused since commit f9b7f3703ff9 ("drm/amdgpu/acpi: make ATPX/ATCS struc

[PATCH 5/5] drm/amdgpu: Remove unused amdgpu_i2c functions

2024-09-22 Thread linux
From: "Dr. David Alan Gilbert" amdgpu_i2c_add and amdgpu_i2c_init were added in 2015's commit d38ceaf99ed0 ("drm/amdgpu: add core driver (v4)") but never used. Remove them. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c | 25 - driver

[PATCH 4/5] drm/amdgpu: Remove unused amdgpu_gfx_bit_to_me_queue

2024-09-22 Thread linux
From: "Dr. David Alan Gilbert" amdgpu_gfx_bit_to_me_queue has been unused since it was added in commit 7470bfcf2014 ("drm/amdgpu: add helper function for gfx queue/bitmap transition") Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 10 --

[PATCH 3/5] drm/amdgpu: Remove unused amdgpu_gmc_vram_cpu_pa

2024-09-22 Thread linux
From: "Dr. David Alan Gilbert" amdgpu_gmc_vram_cpu_pa has been unused since commit 087451f372bf ("drm/amdgpu: use generic fb helpers instead of setting up AMD own's.") Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 12 drivers/gpu/

[PATCH] backlight: Remove notifier

2024-09-19 Thread linux
d, it means that the backlight_notifier list is always empty. Remove the functions, the list itself and the enum used in the notifications. Signed-off-by: Dr. David Alan Gilbert --- drivers/video/backlight/backlight.c | 42 ----- include/linux/backlight.h | 20 ---

[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 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 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 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 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 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 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 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 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 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 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 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 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] 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] 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

[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] 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] 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] 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 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 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 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 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] 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] 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 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/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] 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] 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

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 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 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 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 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 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 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 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 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:

[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 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 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 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 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 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 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] 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 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 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.

  1   2   3   4   5   6   7   8   9   10   >