drm/amdgpu: Remove unused field kgd2kfd_shared_resources.num_mec
authorJay Cornwall <Jay.Cornwall@amd.com>
Fri, 14 Jul 2017 01:21:56 +0000 (20:21 -0500)
committerOded Gabbay <oded.gabbay@gmail.com>
Fri, 14 Jul 2017 01:21:56 +0000 (20:21 -0500)
Dead code.

Change-Id: I9575aa73b5741b80dc340f953cc773385c92b2be
Signed-off-by: Jay Cornwall <Jay.Cornwall@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/include/kgd_kfd_interface.h

index 76ddedcd1e65c1b9d2a672b4ad30ecf28f25aa8c..37971d9402e3f206910e99dd29e8a72a7b4f93b1 100644 (file)
@@ -101,7 +101,6 @@ void amdgpu_amdkfd_device_init(struct amdgpu_device *adev)
        if (adev->kfd) {
                struct kgd2kfd_shared_resources gpu_resources = {
                        .compute_vmid_bitmap = 0xFF00,
-                       .num_mec = adev->gfx.mec.num_mec,
                        .num_pipe_per_mec = adev->gfx.mec.num_pipe_per_mec,
                        .num_queue_per_pipe = adev->gfx.mec.num_queue_per_pipe
                };
index 91ef1484b3bb6c5f1280f1aa0e49c308b30179f9..36f376677a53322dce8e3e95cc66135457d6ea86 100644 (file)
@@ -63,9 +63,6 @@ struct kgd2kfd_shared_resources {
        /* Bit n == 1 means VMID n is available for KFD. */
        unsigned int compute_vmid_bitmap;
 
-       /* number of mec available from the hardware */
-       uint32_t num_mec;
-
        /* number of pipes per mec */
        uint32_t num_pipe_per_mec;