]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/atomfirmware: simplify the interface to get vram info
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Sep 2019 20:12:46 +0000 (15:12 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 14:11:01 +0000 (09:11 -0500)
commitb9f064bd8c3c0cb9a96139cfea37b288189ea293
tree8d74be5db4122ee0c6e851cbdf5f6422a54387db
parentedfbf749f5d85ddfbf4d4e790436b92f7c058db5
drm/amdgpu/atomfirmware: simplify the interface to get vram info

fetch both the vram type and width in one function call.  This
avoids having to parse the same data table twice to get the two
pieces of data.

Reviewed-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c