]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerJoerg Roedel <jroedel@suse.de>
Wed, 21 Oct 2015 09:29:06 +0000 (11:29 +0200)
commitcbf3ccd09d683abf1cacd36e3640872ee912d99b
tree3fbda4ca1a94e2bc939d644246c3525606b96652
parentd14f6fced5f9360edca5a1325ddb7077aab1203b
iommu/amd: Don't clear DTE flags when modifying it

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>
Cc: stable@vger.kernel.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c
drivers/iommu/amd_iommu_types.h