]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/amd: Don't clear DTE flags when modifying it
authorJoerg Roedel <jroedel@suse.de>
Tue, 20 Oct 2015 12:59:36 +0000 (14:59 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 5 Feb 2016 03:28:16 +0000 (19:28 -0800)
commit70c3abed2b7baf50d74d896428c794cd43095ad2
treea18814f582eb3b872b7d3f4e647d593e027d813d
parent48c388e28ae1773d5fe26c98f02ec429c69ba7a8
iommu/amd: Don't clear DTE flags when modifying it

Orabug: 22623807

commit cbf3ccd09d683abf1cacd36e3640872ee912d99b upstream.

During device assignment/deassignment the flags in the DTE
get lost, which might cause spurious faults, for example
when the device tries to access the system management range.
Fix this by not clearing the flags with the rest of the DTE.

Reported-by: G. Richard Bellamy <rbellamy@pteradigm.com>
Tested-by: G. Richard Bellamy <rbellamy@pteradigm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 11d9bb923f7f15361313e6f52bcd6dac0ebbe117)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/iommu/amd_iommu.c
drivers/iommu/amd_iommu_types.h