Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: rename discovery_read_binary helper

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>

authored by

Hawking Zhang and committed by
Alex Deucher
f6dcaf0c 43a80bd5

+2 -2
+2 -2
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
··· 180 180 [DCI_HWIP] = DCI_HWID, 181 181 }; 182 182 183 - static int amdgpu_discovery_read_binary(struct amdgpu_device *adev, uint8_t *binary) 183 + static int amdgpu_discovery_read_binary_from_vram(struct amdgpu_device *adev, uint8_t *binary) 184 184 { 185 185 uint64_t vram_size = (uint64_t)RREG32(mmRCC_CONFIG_MEMSIZE) << 20; 186 186 uint64_t pos = vram_size - DISCOVERY_TMR_OFFSET; ··· 262 262 release_firmware(fw); 263 263 } else { 264 264 get_from_vram: 265 - r = amdgpu_discovery_read_binary(adev, adev->mman.discovery_bin); 265 + r = amdgpu_discovery_read_binary_from_vram(adev, adev->mman.discovery_bin); 266 266 if (r) { 267 267 DRM_ERROR("failed to read ip discovery binary\n"); 268 268 goto out;