summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2018-02-27 21:53:00 +0800
committerAlex Deucher <alexander.deucher@amd.com>2018-05-15 13:43:40 -0500
commit00f54b97d7de97c41cffaad83d32a9bf03edad89 (patch)
treed7291094956e528246ae7e8a082d6a7a2e1cc1bb /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parent775b0c11e27fce7d204d2911220fd7eebcc074d0 (diff)
downloadop-kernel-dev-00f54b97d7de97c41cffaad83d32a9bf03edad89.zip
op-kernel-dev-00f54b97d7de97c41cffaad83d32a9bf03edad89.tar.gz
drm/amdgpu: use pp_feature member to store the mask
Signed-off-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 5958e81..e8b57cf 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1545,6 +1545,8 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)
return -EAGAIN;
}
+ adev->powerplay.pp_feature = amdgpu_pp_feature_mask;
+
for (i = 0; i < adev->num_ip_blocks; i++) {
if ((amdgpu_ip_block_mask & (1 << i)) == 0) {
DRM_ERROR("disabled ip block: %d <%s>\n",
OpenPOWER on IntegriCloud