IOMMU, AMD Family15h Model10-1Fh erratum 746 Workaround
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Tue, 26 Feb 2013 09:14:53 +0000 (10:14 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 26 Feb 2013 09:14:53 +0000 (10:14 +0100)
commit0f8adcb2a7183bea5063f6fffba7d7e1aa14fc84
treeef2b17262d9b573396226307bdad7717e26eca39
parenta90bc1471a74c42b9618f0ec3bc0cc0e76f0f5ee
IOMMU, AMD Family15h Model10-1Fh erratum 746 Workaround

The IOMMU may stop processing page translations due to a perceived lack
of credits for writing upstream peripheral page service request (PPR)
or event logs. If the L2B miscellaneous clock gating feature is enabled
the IOMMU does not properly register credits after the log request has
completed, leading to a potential system hang.

BIOSes are supposed to disable L2B micellaneous clock gating by setting
L2_L2B_CK_GATE_CONTROL[CKGateL2BMiscDisable](D0F2xF4_x90[2]) = 1b. This
patch corrects that for those which do not enable this workaround.

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/amd/iommu_init.c