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

Submitted by Huang, Ray on Sept. 4, 2019, 3:48 p.m.

Details

Message ID 20190904154803.5102-5-ray.huang@amd.com
State New
Headers show
Series "drm/amdkfd: introduce the kfd support for Renoir" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Huang, Ray Sept. 4, 2019, 3:48 p.m.
Renoir is the same with Raven, will enable iommu event in future.

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

Patch hide | download patch | download mbox

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 */