aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c2
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c
index 74fcb8b42fd0..b8be7b961b7e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c
@@ -787,7 +787,7 @@ static uint16_t get_atc_vmid_pasid_mapping_pasid(struct kgd_dev *kgd,
787 struct amdgpu_device *adev = (struct amdgpu_device *) kgd; 787 struct amdgpu_device *adev = (struct amdgpu_device *) kgd;
788 788
789 reg = RREG32(mmATC_VMID0_PASID_MAPPING + vmid); 789 reg = RREG32(mmATC_VMID0_PASID_MAPPING + vmid);
790 return reg & ATC_VMID0_PASID_MAPPING__VALID_MASK; 790 return reg & ATC_VMID0_PASID_MAPPING__PASID_MASK;
791} 791}
792 792
793static void write_vmid_invalidate_request(struct kgd_dev *kgd, uint8_t vmid) 793static void write_vmid_invalidate_request(struct kgd_dev *kgd, uint8_t vmid)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
index c70c8e1d1863..744c05b186d5 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
@@ -704,7 +704,7 @@ static uint16_t get_atc_vmid_pasid_mapping_pasid(struct kgd_dev *kgd,
704 struct amdgpu_device *adev = (struct amdgpu_device *) kgd; 704 struct amdgpu_device *adev = (struct amdgpu_device *) kgd;
705 705
706 reg = RREG32(mmATC_VMID0_PASID_MAPPING + vmid); 706 reg = RREG32(mmATC_VMID0_PASID_MAPPING + vmid);
707 return reg & ATC_VMID0_PASID_MAPPING__VALID_MASK; 707 return reg & ATC_VMID0_PASID_MAPPING__PASID_MASK;
708} 708}
709 709
710static void write_vmid_invalidate_request(struct kgd_dev *kgd, uint8_t vmid) 710static void write_vmid_invalidate_request(struct kgd_dev *kgd, uint8_t vmid)