Re: [PATCH] iommu/amd: Assign default IOMMU when there is only one IOMMU

From: Suravee Suthikulanit
Date: Wed Dec 16 2015 - 22:18:14 EST


On 12/14/2015 9:08 AM, Joerg Roedel wrote:
On Fri, Dec 11, 2015 at 04:54:38PM -0600, Suravee Suthikulpanit wrote:
Current driver makes assumption that device with devid zero is always
included in the range of devices to be managed by IOMMU. However,
certain FW does not include devid zero in IVRS table.
This has caused IOMMU perf driver to fail to initialize.

Hmm, this is a firmware bug. Is this bug seen in any systems that are
for sale?

This patch implements a workaround for this case by always assign
devid zero to be handled by the first IOMMU.

Otherwise its better to fix the firmware than to add workarounds.


Joerg


Please ignore this patch. There are more stuff that I am planning to fix, and I am reworking them into V2. I'll send this out soon.

Suravee
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/