]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: add function to check tmz capability (v4)
authorHuang Rui <ray.huang@amd.com>
Thu, 19 Mar 2020 20:46:10 +0000 (16:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Apr 2020 20:20:28 +0000 (16:20 -0400)
commitee1344a0e67ba119e5728e7a89aa89c34cea453a
treea59365a174f5acdd237bf7cfe858c93558e937d1
parent20fe4a83670bbc8d4e2295aec593388d6b698cda
drm/amdgpu: add function to check tmz capability (v4)

Add a function to check tmz capability with kernel parameter and ASIC type.

v2: use a per device tmz variable instead of global amdgpu_tmz.
v3: refine the comments for the function. (Luben)
v4: add amdgpu_tmz.c/h for future use.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/Makefile
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_tmz.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/amdgpu_tmz.h