drm/amdgpu: rename discovery_read_binary helper
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 22 Nov 2021 12:12:59 +0000 (20:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Dec 2021 21:33:15 +0000 (16:33 -0500)
add _from_vram in the funciton name to diffrentiate
the one used to read from file

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

index 6c6283248edda8d9ab5ac10afec80a09f74544c0..9ca5f5bac1a67f7057c6bfa8508dfd17347493fc 100644 (file)
@@ -180,7 +180,7 @@ static int hw_id_map[MAX_HWIP] = {
        [DCI_HWIP]      = DCI_HWID,
 };
 
-static int amdgpu_discovery_read_binary(struct amdgpu_device *adev, uint8_t *binary)
+static int amdgpu_discovery_read_binary_from_vram(struct amdgpu_device *adev, uint8_t *binary)
 {
        uint64_t vram_size = (uint64_t)RREG32(mmRCC_CONFIG_MEMSIZE) << 20;
        uint64_t pos = vram_size - DISCOVERY_TMR_OFFSET;
@@ -262,7 +262,7 @@ static int amdgpu_discovery_init(struct amdgpu_device *adev)
                release_firmware(fw);
        } else {
 get_from_vram:
-               r = amdgpu_discovery_read_binary(adev, adev->mman.discovery_bin);
+               r = amdgpu_discovery_read_binary_from_vram(adev, adev->mman.discovery_bin);
                if (r) {
                        DRM_ERROR("failed to read ip discovery binary\n");
                        goto out;