forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/iommu/amd/iommu.c
....@@ -3914,8 +3914,7 @@
39143914 struct irte_ga *entry = (struct irte_ga *) ir_data->entry;
39153915 u64 valid;
39163916
3917
- if (!AMD_IOMMU_GUEST_IR_VAPIC(amd_iommu_guest_ir) ||
3918
- !entry || entry->lo.fields_vapic.guest_mode)
3917
+ if (!AMD_IOMMU_GUEST_IR_VAPIC(amd_iommu_guest_ir) || !entry)
39193918 return 0;
39203919
39213920 valid = entry->lo.fields_vapic.valid;