iommu/amd: Add workaround for event log erratum
commit322a3fe8c915cdf512a510ad1bd359f8e0ed9a86
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 12 Apr 2012 12:12:00 +0000 (12 14:12 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 10 Jun 2012 13:41:31 +0000 (10 14:41 +0100)
treebf0e5512dac79b1ddff0387f77d566c6b50d59e5
parent563b3269570396946bc2b08e078c6556f9029a95
iommu/amd: Add workaround for event log erratum

commit 3d06fca8d2aa3543030e40b95f1d62f9f5a03540 upstream.

Due to a recent erratum it can happen that the head pointer
of the event-log is updated before the actual event-log
entry is written. This patch implements the recommended
workaround.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/iommu/amd_iommu.c