[PATCH 04/10] drm/amdkfd: add renoir typs for the workaround of iommu v2

Huang, Ray Ray.Huang at amd.com
Wed Sep 4 15:48:28 UTC 2019


Renoir is the same with Raven, will enable iommu event in future.

Signed-off-by: Huang Rui <ray.huang at amd.com>
---
 drivers/gpu/drm/amd/amdkfd/kfd_events.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_events.c b/drivers/gpu/drm/amd/amdkfd/kfd_events.c
index 3e22fa3..bb3a642 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_events.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_events.c
@@ -987,7 +987,8 @@ void kfd_signal_iommu_event(struct kfd_dev *dev, unsigned int pasid,
 	 * before IOMMU is able to finish processing all the excessive PPRs
 	 * triggered due to HW flaws.
 	 */
-	if (dev->device_info->asic_family != CHIP_RAVEN) {
+	if (dev->device_info->asic_family != CHIP_RAVEN ||
+	    dev->device_info->asic_family != CHIP_RENOIR) {
 		mutex_lock(&p->event_mutex);
 
 		/* Lookup events by type and signal them */
-- 
2.7.4



More information about the amd-gfx mailing list