Skip to content

Commit 0e41639

Browse files
Lijo Lazaralexdeucher
authored andcommitted
drm/amdgpu: Remove unused NBIO interface
Set compute partition mode interface in NBIO is no longer used. Remove the only implementation from NBIO v7.9 Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Le Ma <le.ma@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent d297eed commit 0e41639

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ struct amdgpu_nbio_funcs {
9999
int (*get_compute_partition_mode)(struct amdgpu_device *adev);
100100
u32 (*get_memory_partition_mode)(struct amdgpu_device *adev,
101101
u32 *supp_modes);
102-
void (*set_compute_partition_mode)(struct amdgpu_device *adev,
103-
enum amdgpu_gfx_partition mode);
104102
};
105103

106104
struct amdgpu_nbio {

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -393,19 +393,6 @@ static int nbio_v7_9_get_compute_partition_mode(struct amdgpu_device *adev)
393393
return px;
394394
}
395395

396-
static void nbio_v7_9_set_compute_partition_mode(struct amdgpu_device *adev,
397-
enum amdgpu_gfx_partition mode)
398-
{
399-
u32 tmp;
400-
401-
/* SPX=0, DPX=1, TPX=2, QPX=3, CPX=4 */
402-
tmp = RREG32_SOC15(NBIO, 0, regBIF_BX_PF0_PARTITION_COMPUTE_STATUS);
403-
tmp = REG_SET_FIELD(tmp, BIF_BX_PF0_PARTITION_COMPUTE_STATUS,
404-
PARTITION_MODE, mode);
405-
406-
WREG32_SOC15(NBIO, 0, regBIF_BX_PF0_PARTITION_COMPUTE_STATUS, tmp);
407-
}
408-
409396
static u32 nbio_v7_9_get_memory_partition_mode(struct amdgpu_device *adev,
410397
u32 *supp_modes)
411398
{
@@ -461,7 +448,6 @@ const struct amdgpu_nbio_funcs nbio_v7_9_funcs = {
461448
.ih_control = nbio_v7_9_ih_control,
462449
.remap_hdp_registers = nbio_v7_9_remap_hdp_registers,
463450
.get_compute_partition_mode = nbio_v7_9_get_compute_partition_mode,
464-
.set_compute_partition_mode = nbio_v7_9_set_compute_partition_mode,
465451
.get_memory_partition_mode = nbio_v7_9_get_memory_partition_mode,
466452
.init_registers = nbio_v7_9_init_registers,
467453
};

0 commit comments

Comments
 (0)