]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Restore IRTE.RemapEn bit after programming IRTE
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Thu, 3 Sep 2020 09:38:21 +0000 (09:38 +0000)
committerJoerg Roedel <jroedel@suse.de>
Fri, 4 Sep 2020 09:53:10 +0000 (11:53 +0200)
commit9f3bfa7f350e674c774f90874d1f654589d3cf87
tree868e1207906e4cd18b923db4d2cad08844e51ba2
parent41e89c95a17d39a37eed476134ce53c2f523f317
iommu/amd: Restore IRTE.RemapEn bit after programming IRTE

Currently, the RemapEn (valid) bit is accidentally cleared when
programming IRTE w/ guestMode=0. It should be restored to
the prior state.

Fixes: f8662a76e2e4 ("iommu/amd: Implements irq_set_vcpu_affinity() hook to setup vapic mode for pass-through devices")
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Reviewed-by: Joao Martins <joao.m.martins@oracle.com>
Link: https://lore.kernel.org/r/20200903093822.52012-2-suravee.suthikulpanit@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/iommu.c