Skip to content

Commit 9d8af72

Browse files
Dr. David Alan Gilbertalexdeucher
authored andcommitted
drm/amdgpu: Remove unused nbif_v6_3_1_sriov_funcs
The nbif_v6_3_1_sriov_funcs instance of amdgpu_nbio_funcs was added in commit 894c6d3 ("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: nbif_v6_3_1_sriov_ih_doorbell_range nbif_v6_3_1_sriov_gc_doorbell_init nbif_v6_3_1_sriov_vcn_doorbell_range nbif_v6_3_1_sriov_sdma_doorbell_range Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 289387d commit 9d8af72

File tree

2 files changed

+0
-47
lines changed

2 files changed

+0
-47
lines changed

drivers/gpu/drm/amd/amdgpu/nbif_v6_3_1.c

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -473,52 +473,6 @@ const struct amdgpu_nbio_funcs nbif_v6_3_1_funcs = {
473473
};
474474

475475

476-
static void nbif_v6_3_1_sriov_ih_doorbell_range(struct amdgpu_device *adev,
477-
bool use_doorbell, int doorbell_index)
478-
{
479-
}
480-
481-
static void nbif_v6_3_1_sriov_sdma_doorbell_range(struct amdgpu_device *adev,
482-
int instance, bool use_doorbell,
483-
int doorbell_index,
484-
int doorbell_size)
485-
{
486-
}
487-
488-
static void nbif_v6_3_1_sriov_vcn_doorbell_range(struct amdgpu_device *adev,
489-
bool use_doorbell,
490-
int doorbell_index, int instance)
491-
{
492-
}
493-
494-
static void nbif_v6_3_1_sriov_gc_doorbell_init(struct amdgpu_device *adev)
495-
{
496-
}
497-
498-
const struct amdgpu_nbio_funcs nbif_v6_3_1_sriov_funcs = {
499-
.get_hdp_flush_req_offset = nbif_v6_3_1_get_hdp_flush_req_offset,
500-
.get_hdp_flush_done_offset = nbif_v6_3_1_get_hdp_flush_done_offset,
501-
.get_pcie_index_offset = nbif_v6_3_1_get_pcie_index_offset,
502-
.get_pcie_data_offset = nbif_v6_3_1_get_pcie_data_offset,
503-
.get_rev_id = nbif_v6_3_1_get_rev_id,
504-
.mc_access_enable = nbif_v6_3_1_mc_access_enable,
505-
.get_memsize = nbif_v6_3_1_get_memsize,
506-
.sdma_doorbell_range = nbif_v6_3_1_sriov_sdma_doorbell_range,
507-
.vcn_doorbell_range = nbif_v6_3_1_sriov_vcn_doorbell_range,
508-
.gc_doorbell_init = nbif_v6_3_1_sriov_gc_doorbell_init,
509-
.enable_doorbell_aperture = nbif_v6_3_1_enable_doorbell_aperture,
510-
.enable_doorbell_selfring_aperture = nbif_v6_3_1_enable_doorbell_selfring_aperture,
511-
.ih_doorbell_range = nbif_v6_3_1_sriov_ih_doorbell_range,
512-
.update_medium_grain_clock_gating = nbif_v6_3_1_update_medium_grain_clock_gating,
513-
.update_medium_grain_light_sleep = nbif_v6_3_1_update_medium_grain_light_sleep,
514-
.get_clockgating_state = nbif_v6_3_1_get_clockgating_state,
515-
.ih_control = nbif_v6_3_1_ih_control,
516-
.init_registers = nbif_v6_3_1_init_registers,
517-
.remap_hdp_registers = nbif_v6_3_1_remap_hdp_registers,
518-
.get_rom_offset = nbif_v6_3_1_get_rom_offset,
519-
.set_reg_remap = nbif_v6_3_1_set_reg_remap,
520-
};
521-
522476
static int nbif_v6_3_1_set_ras_err_event_athub_irq_state(struct amdgpu_device *adev,
523477
struct amdgpu_irq_src *src,
524478
unsigned type,

drivers/gpu/drm/amd/amdgpu/nbif_v6_3_1.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828

2929
extern const struct nbio_hdp_flush_reg nbif_v6_3_1_hdp_flush_reg;
3030
extern const struct amdgpu_nbio_funcs nbif_v6_3_1_funcs;
31-
extern const struct amdgpu_nbio_funcs nbif_v6_3_1_sriov_funcs;
3231
extern struct amdgpu_nbio_ras nbif_v6_3_1_ras;
3332

3433
#endif

0 commit comments

Comments
 (0)